/* ==========================================================================
   MyCreaTools - Meta Stories CSS
   Horizontal Rail Cards, Fullscreen Meta Story Viewer & Toast System
   ========================================================================== */

.mct-stories-wrapper {
	width: 100%;
	box-sizing: border-box;
	font-family: inherit;
	position: relative;
}

/* Horizontal Rail Container */
.mct-stories-rail {
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	box-sizing: border-box;
}

.mct-stories-rail::-webkit-scrollbar {
	height: 5px;
}

.mct-stories-rail::-webkit-scrollbar-track {
	background: #f1f5f9;
	border-radius: 10px;
}

.mct-stories-rail::-webkit-scrollbar-thumb {
	background: #cbd5e1;
	border-radius: 10px;
}

/* Individual Story Card Base - NO BOX SHADOWS AT ALL */
.mct-story-card {
	position: relative;
	width: 115px;
	height: 195px;
	flex: 0 0 115px;
	border-radius: 18px;
	overflow: hidden;
	cursor: pointer;
	box-sizing: border-box;
	scroll-snap-align: start;
	transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
	background-color: #0f172a;
	user-select: none;
	-webkit-user-select: none;
	box-shadow: none !important;
}

.mct-story-card:hover {
	box-shadow: none !important;
}

/* 1. "+ Add Story" Card */
.mct-story-card-add {
	background: linear-gradient(135deg, #ffe4e6 0%, #fef3c7 100%);
	border: 2px solid transparent;
	background-clip: padding-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	box-shadow: none !important;
	position: relative;
}

.mct-story-card-add::before {
	content: '';
	position: absolute;
	inset: -2px;
	border-radius: 20px;
	background: linear-gradient(135deg, #ef4444 0%, #f59e0b 100%);
	z-index: -1;
}

.mct-story-add-badge {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	color: #0f172a;
	box-shadow: none !important;
	transition: transform 0.2s ease;
}

.mct-story-card-add:hover .mct-story-add-badge {
	transform: scale(1.1);
}

.mct-story-add-label {
	font-size: 12px;
	font-weight: 700;
	color: #0f172a;
	margin-top: 10px;
	text-align: center;
	padding: 0 8px;
	line-height: 1.2;
}

/* 2. User Story Card with Media & Gradient Border - NO BOX SHADOWS */
.mct-story-card-user {
	position: relative;
	box-shadow: none !important;
}

/* Unviewed Story Gradient Outline Ring */
.mct-story-card-user.has-unviewed {
	padding: 2.5px;
	background: linear-gradient(135deg, #ef4444 0%, #f59e0b 100%);
}

.mct-story-card-user.has-unviewed .mct-story-card-inner {
	border-radius: 15.5px;
}

.mct-story-card-inner {
	width: 100%;
	height: 100%;
	position: relative;
	border-radius: 18px;
	overflow: hidden;
	background-color: #0f172a;
	box-shadow: none !important;
}

/* Story Media Preview (Image/Video) - MUST fill 100% height */
.mct-story-media-preview {
	width: 100% !important;
	height: 100% !important;
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	object-fit: cover !important;
	display: block !important;
	transition: transform 0.4s ease !important;
}

.mct-story-card:hover .mct-story-media-preview {
	transform: scale(1.06) !important;
}

/* Dark Bottom Gradient Overlay */
.mct-story-card-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.85) 100%);
	pointer-events: none;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 10px 8px;
	box-sizing: border-box;
	z-index: 2;
}

/* Bottom Author Avatar & Name Overlay - FULL ROUNDED AVATAR */
.mct-story-author-wrap {
	display: flex;
	align-items: center;
	gap: 6px;
	z-index: 2;
}

.mct-story-author-avatar-ring {
	width: 28px !important;
	height: 28px !important;
	min-width: 28px !important;
	min-height: 28px !important;
	border-radius: 50% !important;
	padding: 1.5px !important;
	background: linear-gradient(135deg, #ef4444 0%, #f59e0b 100%) !important;
	flex-shrink: 0 !important;
	box-sizing: border-box !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	overflow: hidden !important;
	box-shadow: none !important;
}

.mct-story-author-avatar-img {
	width: 100% !important;
	height: 100% !important;
	border-radius: 50% !important;
	object-fit: cover !important;
	display: block !important;
	background-color: #1e293b !important;
	overflow: hidden !important;
}

.mct-story-author-name {
	font-size: 11.5px;
	font-weight: 700;
	color: #ffffff;
	line-height: 1.2;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}


/* ==========================================================================
   3. UPLOAD STORY MODAL (Creation Modal) - NO BOX SHADOWS
   ========================================================================== */
.mct-story-modal-backdrop {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(15, 23, 42, 0.7);
	backdrop-filter: blur(8px);
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
}

.mct-story-modal-backdrop.is-open {
	opacity: 1;
	visibility: visible;
}

.mct-story-modal-box {
	background: #ffffff;
	border-radius: 24px;
	width: 100%;
	max-width: 440px;
	box-shadow: none !important;
	overflow: hidden;
	box-sizing: border-box;
	transform: scale(0.92);
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
	border: 1px solid #f1f5f9;
}

.mct-story-modal-backdrop.is-open .mct-story-modal-box {
	transform: scale(1);
}

.mct-story-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 24px;
	border-bottom: 1px solid #f1f5f9;
}

.mct-story-modal-title {
	font-size: 18px;
	font-weight: 800;
	color: #0f172a;
	margin: 0;
}

/* Modal Close Button */
.mct-story-modal-close {
	background: #f1f5f9 !important;
	border: none !important;
	color: #475569 !important;
	cursor: pointer !important;
	width: 32px !important;
	height: 32px !important;
	border-radius: 50% !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	font-size: 16px !important;
	line-height: 1 !important;
	transition: all 0.2s ease !important;
	box-shadow: none !important;
	outline: none !important;
	padding: 0 !important;
}

.mct-story-modal-close:hover {
	background: #e2e8f0 !important;
	color: #0f172a !important;
}

.mct-story-modal-body {
	padding: 24px;
}

.mct-story-dropzone {
	border: 2px dashed #cbd5e1;
	border-radius: 16px;
	padding: 30px 20px;
	text-align: center;
	cursor: pointer;
	background: #f8fafc;
	transition: all 0.2s ease;
	position: relative;
	overflow: hidden;
}

.mct-story-dropzone:hover {
	border-color: #dc2626;
	background: #fff5f5;
}

.mct-story-dropzone-icon {
	font-size: 32px;
	color: #dc2626;
	margin-bottom: 8px;
}

.mct-story-dropzone-text {
	font-size: 14px;
	font-weight: 600;
	color: #334155;
	margin: 0 0 4px 0;
}

.mct-story-dropzone-sub {
	font-size: 12px;
	color: #94a3b8;
	margin: 0;
}

.mct-story-preview-container {
	width: 100%;
	max-height: 240px;
	border-radius: 14px;
	overflow: hidden;
	margin-bottom: 16px;
	display: none;
	background: #000000;
}

.mct-story-preview-container img,
.mct-story-preview-container video {
	width: 100%;
	max-height: 240px;
	object-fit: contain;
	display: block;
}

.mct-story-caption-input {
	width: 100% !important;
	padding: 12px 16px !important;
	border: 1px solid #e2e8f0 !important;
	border-radius: 14px !important;
	font-size: 14px !important;
	font-family: inherit !important;
	color: #0f172a !important;
	background: #ffffff !important;
	outline: none !important;
	box-sizing: border-box !important;
	margin-top: 14px !important;
	box-shadow: none !important;
}

.mct-story-caption-input:focus {
	border-color: #dc2626 !important;
}

/* Primary Button - Solid System Primary Red (#dc2626) & NO BOX SHADOW */
.mct-story-submit-btn {
	width: 100% !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 14px 24px !important;
	border-radius: 50px !important;
	background-color: #dc2626 !important;
	background-image: none !important;
	color: #ffffff !important;
	font-size: 15.5px !important;
	font-weight: 800 !important;
	border: none !important;
	cursor: pointer !important;
	margin-top: 18px !important;
	box-shadow: none !important;
	text-align: center !important;
	line-height: 1.2 !important;
	transition: background-color 0.2s ease, transform 0.2s ease !important;
	box-sizing: border-box !important;
}

.mct-story-submit-btn:hover {
	background-color: #b91c1c !important;
	box-shadow: none !important;
	transform: translateY(-1px) !important;
}

/* Upload Progress Bar System */
.mct-story-progress-wrap {
	margin-top: 16px !important;
	padding: 12px 14px !important;
	background: #f8fafc !important;
	border: 1px solid #e2e8f0 !important;
	border-radius: 14px !important;
	box-sizing: border-box !important;
}

.mct-story-progress-info {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	margin-bottom: 8px !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	color: #0f172a !important;
}

.mct-story-progress-status {
	color: #334155 !important;
	display: flex !important;
	align-items: center !important;
	gap: 6px !important;
}

.mct-story-progress-percent {
	color: #dc2626 !important;
	font-weight: 800 !important;
}

.mct-story-progress-bar {
	width: 100% !important;
	height: 8px !important;
	background-color: #e2e8f0 !important;
	border-radius: 999px !important;
	overflow: hidden !important;
	position: relative !important;
	box-sizing: border-box !important;
}

.mct-story-progress-fill {
	height: 100% !important;
	width: 0% !important;
	background: linear-gradient(90deg, #dc2626 0%, #ef4444 100%) !important;
	border-radius: 999px !important;
	transition: width 0.15s ease-out !important;
}


/* ==========================================================================
   4. FULLSCREEN META STORY VIEWER (Player Modal)
   ========================================================================== */
.mct-meta-viewer-backdrop {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	height: 100dvh;
	background: rgba(0, 0, 0, 0.92);
	backdrop-filter: blur(20px);
	z-index: 1000000;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease;
	box-sizing: border-box;
}

.mct-meta-viewer-backdrop.is-active {
	opacity: 1;
	visibility: visible;
}

.mct-meta-viewer-phone {
	position: relative;
	width: 100%;
	max-width: 420px;
	height: 100%;
	max-height: 840px;
	background: #000000;
	border-radius: 24px;
	overflow: hidden;
	box-shadow: none !important;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

@media (max-width: 480px) {
	.mct-meta-viewer-phone {
		max-width: 100vw;
		max-height: 100vh;
		border-radius: 0;
	}
}

/* Top Progress Bars Segment Track */
.mct-meta-progress-track {
	position: absolute;
	top: 14px;
	left: 14px;
	right: 14px;
	display: flex;
	gap: 5px;
	z-index: 20;
}

.mct-meta-progress-bar {
	height: 3px;
	flex: 1;
	background: rgba(255, 255, 255, 0.35);
	border-radius: 10px;
	overflow: hidden;
}

.mct-meta-progress-fill {
	height: 100%;
	width: 0%;
	background: #ffffff;
	border-radius: 10px;
	transition: width 0.1s linear;
}

.mct-meta-progress-bar.is-completed .mct-meta-progress-fill {
	width: 100% !important;
}

/* Top Header Info & Viewer Buttons (Close / Delete / Sound) */
.mct-meta-viewer-top-bar {
	position: absolute;
	top: 26px;
	left: 16px;
	right: 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	z-index: 20;
}

.mct-meta-viewer-author {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
}

.mct-meta-viewer-avatar-ring {
	width: 38px !important;
	height: 38px !important;
	border-radius: 50% !important;
	padding: 2px !important;
	background: linear-gradient(135deg, #ef4444 0%, #f59e0b 100%) !important;
	flex-shrink: 0 !important;
	overflow: hidden !important;
}

.mct-meta-viewer-avatar-img {
	width: 100% !important;
	height: 100% !important;
	border-radius: 50% !important;
	object-fit: cover !important;
	display: block !important;
}

.mct-meta-viewer-author-info {
	display: flex !important;
	flex-direction: column !important;
	justify-content: center !important;
	gap: 2px !important;
	line-height: 1.2 !important;
}

.mct-meta-viewer-name {
	font-size: 13.5px !important;
	font-weight: 700 !important;
	color: #ffffff !important;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6) !important;
	display: block !important;
	line-height: 1.2 !important;
}

.mct-meta-viewer-time {
	font-size: 11.5px !important;
	color: rgba(255, 255, 255, 0.85) !important;
	margin-left: 0 !important;
	display: block !important;
	line-height: 1.2 !important;
}

.mct-meta-viewer-controls {
	display: flex;
	align-items: center;
	gap: 8px;
}

/* Viewer Action Control Buttons */
.mct-meta-control-btn {
	background: rgba(255, 255, 255, 0.18) !important;
	border: none !important;
	color: #ffffff !important;
	font-size: 15px !important;
	cursor: pointer !important;
	width: 34px !important;
	height: 34px !important;
	border-radius: 50% !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	transition: all 0.2s ease !important;
	box-shadow: none !important;
	outline: none !important;
}

.mct-meta-control-btn:hover {
	background: rgba(255, 255, 255, 0.35) !important;
}

/* Custom Delete Button Style */
.js-mct-delete-story {
	background: rgba(239, 68, 68, 0.25) !important;
	color: #fca5a5 !important;
	border: 1px solid rgba(239, 68, 68, 0.4) !important;
}

.js-mct-delete-story:hover {
	background: #dc2626 !important;
	color: #ffffff !important;
	border-color: #dc2626 !important;
}

/* Main Display Area (Media Content) */
.mct-meta-viewer-media-wrap {
	width: 100%;
	height: 100%;
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #000000;
}

.mct-meta-viewer-media-wrap img,
.mct-meta-viewer-media-wrap video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Touch Tap Navigation Overlay */
.mct-meta-nav-touch-left,
.mct-meta-nav-touch-right {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 45%;
	z-index: 15;
	cursor: pointer;
}

.mct-meta-nav-touch-left {
	left: 0;
}

.mct-meta-nav-touch-right {
	right: 0;
}

/* Bottom Caption & Views Bar */
.mct-meta-viewer-caption-bar {
	position: absolute;
	bottom: 24px;
	left: 20px;
	right: 20px;
	z-index: 20;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.mct-meta-caption-text {
	font-size: 15px;
	font-weight: 600;
	color: #ffffff;
	line-height: 1.35;
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
	margin: 0;
}

.mct-meta-views-count {
	font-size: 12.5px;
	color: rgba(255, 255, 255, 0.8);
	display: flex;
	align-items: center;
	gap: 5px;
}


/* ==========================================================================
   5. TOAST NOTIFICATIONS & CUSTOM CONFIRM DIALOG SYSTEM
   ========================================================================== */
.mct-toast-container {
	position: fixed !important;
	top: 24px !important;
	left: 50% !important;
	transform: translateX(-50%) !important;
	z-index: 10000000 !important;
	display: flex !important;
	flex-direction: column !important;
	gap: 10px !important;
	pointer-events: none !important;
}

.mct-toast {
	pointer-events: auto !important;
	display: flex !important;
	align-items: center !important;
	gap: 10px !important;
	padding: 12px 24px !important;
	border-radius: 50px !important;
	background-color: #0f172a !important;
	color: #ffffff !important;
	font-size: 14.5px !important;
	font-weight: 700 !important;
	box-shadow: none !important;
	border: 1px solid rgba(255, 255, 255, 0.12) !important;
	animation: mctToastSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

.mct-toast.mct-toast-success {
	background-color: #059669 !important;
}

.mct-toast.mct-toast-error {
	background-color: #dc2626 !important;
}

@keyframes mctToastSlideIn {
	0% { opacity: 0; transform: translateY(-20px); }
	100% { opacity: 1; transform: translateY(0); }
}

/* Custom Confirm Modal */
.mct-confirm-backdrop {
	position: fixed !important;
	inset: 0 !important;
	background: rgba(15, 23, 42, 0.75) !important;
	backdrop-filter: blur(8px) !important;
	z-index: 10000001 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 20px !important;
	opacity: 0;
	visibility: hidden;
	transition: all 0.25s ease !important;
}

.mct-confirm-backdrop.is-open {
	opacity: 1 !important;
	visibility: visible !important;
}

.mct-confirm-box {
	background: #ffffff !important;
	border-radius: 24px !important;
	padding: 28px 24px !important;
	width: 100% !important;
	max-width: 380px !important;
	text-align: center !important;
	box-shadow: none !important;
	border: 1px solid #f1f5f9 !important;
}

.mct-confirm-title {
	font-size: 18px !important;
	font-weight: 800 !important;
	color: #0f172a !important;
	margin: 0 0 10px 0 !important;
}

.mct-confirm-msg {
	font-size: 14px !important;
	color: #64748b !important;
	margin: 0 0 24px 0 !important;
	line-height: 1.4 !important;
}

.mct-confirm-actions {
	display: flex !important;
	align-items: center !important;
	gap: 12px !important;
}

.mct-confirm-btn-cancel {
	flex: 1 !important;
	padding: 12px 18px !important;
	border-radius: 50px !important;
	background: #f1f5f9 !important;
	color: #475569 !important;
	border: none !important;
	font-weight: 700 !important;
	font-size: 14px !important;
	cursor: pointer !important;
}

.mct-confirm-btn-danger {
	flex: 1 !important;
	padding: 12px 18px !important;
	border-radius: 50px !important;
	background: #dc2626 !important;
	color: #ffffff !important;
	border: none !important;
	font-weight: 700 !important;
	font-size: 14px !important;
	cursor: pointer !important;
}

/* ==========================================================================
   6. COMMUNITY AUTH CTA OVERLAY FOR UNAUTHENTICATED USERS
   ========================================================================== */
.mct-meta-auth-cta-overlay {
	position: absolute !important;
	inset: 0 !important;
	background: rgba(15, 23, 42, 0.85) !important;
	backdrop-filter: blur(12px) !important;
	z-index: 50 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 24px !important;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease !important;
}

.mct-meta-auth-cta-overlay.is-open {
	opacity: 1 !important;
	visibility: visible !important;
}

.mct-meta-auth-cta-card {
	background: #ffffff !important;
	border-radius: 24px !important;
	padding: 32px 24px !important;
	text-align: center !important;
	width: 100% !important;
	max-width: 340px !important;
	box-shadow: none !important;
	position: relative !important;
	box-sizing: border-box !important;
	border: 1px solid #f1f5f9 !important;
}

.mct-meta-auth-cta-close {
	position: absolute !important;
	top: 14px !important;
	right: 14px !important;
	background: #f1f5f9 !important;
	border: none !important;
	color: #64748b !important;
	width: 30px !important;
	height: 30px !important;
	border-radius: 50% !important;
	font-size: 16px !important;
	cursor: pointer !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
}

.mct-meta-auth-cta-icon {
	width: 54px !important;
	height: 54px !important;
	border-radius: 50% !important;
	background: #fef2f2 !important;
	color: #dc2626 !important;
	font-size: 22px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	margin: 0 auto 16px auto !important;
}

.mct-meta-auth-cta-title {
	font-size: 17px !important;
	font-weight: 800 !important;
	color: #0f172a !important;
	margin: 0 0 10px 0 !important;
	line-height: 1.3 !important;
}

.mct-meta-auth-cta-desc {
	font-size: 13.5px !important;
	color: #64748b !important;
	margin: 0 0 22px 0 !important;
	line-height: 1.45 !important;
}

.mct-meta-auth-cta-buttons {
	display: flex !important;
	flex-direction: column !important;
	gap: 10px !important;
	width: 100% !important;
}

.mct-meta-auth-btn-login {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100% !important;
	padding: 12.5px 20px !important;
	border-radius: 50px !important;
	background-color: #dc2626 !important;
	color: #ffffff !important;
	font-size: 14.5px !important;
	font-weight: 800 !important;
	text-decoration: none !important;
	box-shadow: none !important;
	box-sizing: border-box !important;
	transition: background-color 0.2s ease !important;
}

.mct-meta-auth-btn-login:hover {
	background-color: #b91c1c !important;
}

.mct-meta-auth-btn-register {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100% !important;
	padding: 12.5px 20px !important;
	border-radius: 50px !important;
	background-color: #ffffff !important;
	border: 1px solid #e2e8f0 !important;
	color: #0f172a !important;
	font-size: 14.5px !important;
	font-weight: 700 !important;
	text-decoration: none !important;
	box-shadow: none !important;
	box-sizing: border-box !important;
	transition: background-color 0.2s ease !important;
}

.mct-meta-auth-btn-register:hover {
	background-color: #f8fafc !important;
}

/* ==========================================================================
   7. META TEXT STORY MODE STYLES & CANVAS
   ========================================================================== */
.mct-story-modal-tabs {
	display: flex !important;
	align-items: center !important;
	padding: 8px 24px !important;
	border-bottom: 1px solid #f1f5f9 !important;
	gap: 10px !important;
	background: #f8fafc !important;
}

.mct-story-modal-tab-btn {
	flex: 1 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;
	padding: 10px 14px !important;
	border-radius: 12px !important;
	border: 1px solid transparent !important;
	background: transparent !important;
	color: #64748b !important;
	font-size: 13.5px !important;
	font-weight: 700 !important;
	cursor: pointer !important;
	transition: all 0.2s ease !important;
}

.mct-story-modal-tab-btn.is-active {
	background: #ffffff !important;
	border-color: #e2e8f0 !important;
	color: #dc2626 !important;
	box-shadow: none !important;
}

.mct-story-tab-pane {
	display: none !important;
}

.mct-story-tab-pane.is-active {
	display: block !important;
}

/* Live Meta Text Canvas in Creation Modal */
.mct-story-text-canvas {
	width: 100% !important;
	height: 180px !important;
	border-radius: 18px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 14px !important;
	box-sizing: border-box !important;
	margin-bottom: 14px !important;
	text-align: center !important;
	overflow: hidden !important;
	transition: background 0.3s ease !important;
	position: relative !important;
}

.mct-story-direct-textarea {
	width: 100% !important;
	height: 100% !important;
	background: transparent !important;
	border: none !important;
	outline: none !important;
	color: #ffffff !important;
	font-size: 18px !important;
	font-weight: 800 !important;
	font-family: inherit !important;
	text-align: center !important;
	resize: none !important;
	box-shadow: none !important;
	line-height: 1.35 !important;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
	padding: 10px !important;
	box-sizing: border-box !important;
}

.mct-story-direct-textarea::placeholder {
	color: rgba(255, 255, 255, 0.8) !important;
	font-weight: 700 !important;
}

.mct-story-field-label {
	font-size: 12.5px !important;
	font-weight: 700 !important;
	color: #475569 !important;
	margin: 10px 0 6px 0 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.03em !important;
}

/* Gradient Picker Circles */
.mct-story-gradient-picker {
	display: flex !important;
	align-items: center !important;
	gap: 12px !important;
	margin-bottom: 14px !important;
}

.mct-gradient-dot {
	width: 32px !important;
	height: 32px !important;
	border-radius: 50% !important;
	border: 2px solid #ffffff !important;
	cursor: pointer !important;
	outline: none !important;
	transition: transform 0.2s ease !important;
	padding: 0 !important;
}

.mct-gradient-dot.is-active {
	transform: scale(1.2) !important;
	box-shadow: 0 0 0 2px #dc2626 !important;
}

/* Rail Card Text Preview */
.mct-story-text-preview {
	position: absolute !important;
	inset: 0 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 16px 10px !important;
	box-sizing: border-box !important;
	text-align: center !important;
	overflow: hidden !important;
}

.mct-story-text-preview-content {
	color: #ffffff !important;
	font-size: 12px !important;
	font-weight: 800 !important;
	line-height: 1.3 !important;
	word-break: break-word !important;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5) !important;
	display: -webkit-box !important;
	-webkit-line-clamp: 4 !important;
	-webkit-box-orient: vertical !important;
	overflow: hidden !important;
}

/* Fullscreen Viewer Text Canvas */
.mct-meta-viewer-text-canvas {
	position: absolute !important;
	inset: 0 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 40px 24px !important;
	box-sizing: border-box !important;
	text-align: center !important;
	overflow: hidden !important;
}

.mct-meta-viewer-text-content {
	color: #ffffff !important;
	font-size: 26px !important;
	font-weight: 800 !important;
	line-height: 1.4 !important;
	word-break: break-word !important;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5) !important;
}

/* Mobile & Desktop Source Selection Buttons */
.mct-story-source-buttons {
	display: flex !important;
	gap: 10px !important;
	margin-bottom: 12px !important;
}

.mct-source-btn {
	flex: 1 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;
	padding: 11px 16px !important;
	border-radius: 14px !important;
	background: #f1f5f9 !important;
	border: 1px solid #e2e8f0 !important;
	color: #0f172a !important;
	font-size: 13.5px !important;
	font-weight: 700 !important;
	cursor: pointer !important;
	transition: all 0.2s ease !important;
}

.mct-source-btn i {
	font-size: 15px !important;
	color: #dc2626 !important;
}

.mct-source-btn:hover {
	background: #e2e8f0 !important;
}

/* ==========================================================================
   8. MOBILE RESPONSIVE COMPATIBILITY STYLES
   ========================================================================== */
@media (max-width: 640px) {
	.mct-story-modal-backdrop {
		padding: 0 !important;
		align-items: stretch !important;
		justify-content: stretch !important;
		z-index: 9999999 !important;
	}

	.mct-story-modal-box {
		width: 100vw !important;
		max-width: 100vw !important;
		height: 100vh !important;
		height: 100dvh !important;
		max-height: 100dvh !important;
		border-radius: 0 !important;
		border: none !important;
		display: flex !important;
		flex-direction: column !important;
		justify-content: space-between !important;
		overflow-y: auto !important;
	}

	.mct-story-modal-header {
		padding: 16px 20px !important;
		flex-shrink: 0 !important;
	}

	.mct-story-modal-title {
		font-size: 18px !important;
	}

	.mct-story-modal-tabs {
		padding: 8px 14px !important;
		gap: 8px !important;
		flex-shrink: 0 !important;
	}

	.mct-story-modal-tab-btn {
		padding: 9px 12px !important;
		font-size: 13px !important;
		gap: 6px !important;
		border-radius: 10px !important;
	}

	.mct-story-modal-body {
		flex-grow: 1 !important;
		display: flex !important;
		flex-direction: column !important;
		justify-content: space-between !important;
		padding: 20px 16px 24px 16px !important;
		overflow-y: auto !important;
	}

	.mct-story-source-buttons {
		gap: 6px !important;
		margin-bottom: 10px !important;
	}

	.mct-source-btn {
		padding: 9px 6px !important;
		font-size: 12px !important;
		gap: 4px !important;
		border-radius: 10px !important;
		white-space: nowrap !important;
	}

	.mct-source-btn i {
		font-size: 13px !important;
	}

	.mct-story-dropzone {
		padding: 20px 14px !important;
		border-radius: 14px !important;
	}

	.mct-story-dropzone-icon {
		font-size: 26px !important;
		margin-bottom: 6px !important;
	}

	.mct-story-dropzone-text {
		font-size: 13px !important;
	}

	.mct-story-dropzone-sub {
		font-size: 11.5px !important;
	}

	.mct-story-submit-btn {
		padding: 12px 18px !important;
		font-size: 14.5px !important;
		margin-top: 14px !important;
	}

	.mct-meta-viewer-backdrop {
		padding: 0 !important;
	}

	.mct-meta-viewer-phone {
		width: 100vw !important;
		max-width: 100vw !important;
		height: 100vh !important;
		height: 100dvh !important;
		max-height: 100dvh !important;
		border-radius: 0 !important;
	}
}

@media (max-width: 480px) {
	.mct-stories-rail {
		gap: 10px !important;
		padding: 2px 2px 8px 2px !important;
	}

	.mct-story-card {
		width: 100px !important;
		height: 170px !important;
		flex: 0 0 100px !important;
		border-radius: 16px !important;
	}

	.mct-story-add-badge {
		width: 40px !important;
		height: 40px !important;
		font-size: 17px !important;
	}

	.mct-story-add-label {
		font-size: 11px !important;
		margin-top: 6px !important;
	}

	.mct-story-source-buttons {
		gap: 4px !important;
	}

	.mct-source-btn {
		padding: 8px 4px !important;
		font-size: 11.5px !important;
		gap: 3px !important;
	}
}
