/* ==========================================================================
   AIFaceSwap Studio — Ultra-Clean Luminous White & Pearl Glass UI
   ========================================================================== */

:root,
:root[data-theme="light"] {
    --primary: #5b21b6;
    --primary-bright: #6d28d9;
    --primary-light: #7c3aed;
    --primary-glow: rgba(109, 40, 217, 0.22);
    --primary-soft: #f3effe;
    --cyan: #0284c7;
    --cyan-bright: #06b6d4;
    --cyan-soft: #ecfeff;
    --accent: #e11d48;
    --emerald: #059669;
    --bg-page: #f8fafc;
    --bg-card: #ffffff;
    --bg-card-elevated: #ffffff;
    --bg-input: #f8fafc;
    --bg-subtle: #f1f5f9;
    --text-main: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --border-highlight: #c4b5fd;
    --shadow-sm: 0 4px 16px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 20px 50px rgba(91, 33, 182, 0.07), 0 4px 16px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 28px 65px rgba(91, 33, 182, 0.11), 0 8px 24px rgba(15, 23, 42, 0.05);
    --radius-lg: 22px;
    --radius-md: 14px;
    --header-bg: rgba(255, 255, 255, 0.90);
}

:root[data-theme="dark"] {
    --primary: #7c3aed;
    --primary-bright: #8b5cf6;
    --primary-light: #a78bfa;
    --primary-glow: rgba(124, 58, 237, 0.42);
    --primary-soft: rgba(124, 58, 237, 0.16);
    --cyan: #06b6d4;
    --cyan-bright: #22d3ee;
    --cyan-soft: rgba(6, 182, 212, 0.16);
    --accent: #f43f5e;
    --emerald: #10b981;
    --bg-page: #0b0f19;
    --bg-card: rgba(17, 24, 39, 0.86);
    --bg-card-elevated: #1e293b;
    --bg-input: #0f172a;
    --bg-subtle: #1e293b;
    --text-main: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border-color: rgba(148, 163, 184, 0.18);
    --border-highlight: rgba(167, 139, 250, 0.45);
    --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 20px 50px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 28px 65px rgba(0, 0, 0, 0.65);
    --radius-lg: 22px;
    --radius-md: 14px;
    --header-bg: rgba(11, 15, 25, 0.88);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-page);
    color: var(--text-main);
    line-height: 1.5;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    transition: background 0.25s ease, color 0.25s ease;
}

/* Soft Pastel Ambient Mesh Background */
.ambient-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 8%, rgba(124, 58, 237, 0.07) 0%, transparent 42%),
        radial-gradient(circle at 88% 14%, rgba(6, 182, 212, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 50% 85%, rgba(236, 72, 153, 0.05) 0%, transparent 50%);
}

.aurora-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(110px);
    opacity: 0.14;
    animation: floatOrb 18s ease-in-out infinite alternate;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #8b5cf6, transparent 70%);
    top: -160px;
    left: -100px;
}

.orb-2 {
    width: 440px;
    height: 440px;
    background: radial-gradient(circle, #06b6d4, transparent 70%);
    top: 25%;
    right: -120px;
    animation-delay: -6s;
}

.orb-3 {
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, #f43f5e, transparent 70%);
    bottom: -160px;
    left: 25%;
    animation-delay: -11s;
}

.cyber-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(15, 23, 42, 0.025) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(15, 23, 42, 0.025) 1px, transparent 1px);
    background-size: 44px 44px;
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(35px, 25px) scale(1.08); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 22px;
    position: relative;
    z-index: 1;
}

.hidden {
    display: none !important;
}

.text-primary {
    color: var(--primary-light);
}

/* ==========================================================================
   HEADER NAVIGATION (Clean White Glass)
   ========================================================================== */
.site-header {
    background: var(--header-bg);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 6px rgba(15, 23, 42, 0.03);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    gap: 16px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    color: var(--text-main);
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #6d28d9 0%, #06b6d4 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 6px 16px rgba(109, 40, 217, 0.28);
}

.logo-text {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 21px;
    letter-spacing: -0.03em;
    color: var(--text-main);
}

.logo-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    background: var(--primary-soft);
    border: 1px solid var(--border-highlight);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 99px;
    white-space: nowrap;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-subtle);
    padding: 5px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.nav-link {
    background: transparent;
    border: none;
    padding: 8px 14px;
    border-radius: 9px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-decoration: none;
}

.nav-link:hover {
    color: var(--text-main);
    text-decoration: none;
}

.nav-link.active {
    background: #ffffff;
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

:root[data-theme="dark"] .nav-link.active {
    background: var(--primary);
    color: #ffffff;
}

.pill-tag {
    font-size: 9.5px;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 99px;
    color: #fff;
    white-space: nowrap;
}

.pill-tag.hot { background: #7c3aed; }
.pill-tag.new { background: #e11d48; }

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #059669;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 6px 13px;
    border-radius: 99px;
    white-space: nowrap;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.35); opacity: 0.65; }
}

.btn-theme-toggle {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s ease;
}

.btn-theme-toggle:hover {
    border-color: var(--primary-light);
    color: var(--primary);
    transform: translateY(-1px);
}

/* ==========================================================================
   HERO BANNER — ULTRA-CLEAN EDITORIAL SPLIT & TRANSFORMATION SHOWCASE
   ========================================================================== */
.hero-banner {
    padding: 28px 0 20px;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 40px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 28px;
    padding: 44px 48px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.05), 0 4px 16px rgba(91, 33, 182, 0.04);
    position: relative;
    overflow: hidden;
}

:root[data-theme="dark"] .hero-grid {
    background: var(--bg-card);
    border-color: var(--border-color);
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 5px 14px 5px 7px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 18px;
}

:root[data-theme="dark"] .hero-eyebrow {
    background: rgba(15, 23, 42, 0.7);
    color: #e2e8f0;
    border-color: rgba(167, 139, 250, 0.35);
}

.pulse-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--primary);
    color: #ffffff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 99px;
}

.live-dot-inner {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #34d399;
    animation: pulseDot 1.4s infinite;
}

.hero-copy h1 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 48px;
    font-weight: 800;
    line-height: 1.10;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
    color: var(--text-main);
}

.gradient-text {
    background: linear-gradient(90deg, #6d28d9 0%, #2563eb 55%, #0284c7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-lead {
    font-size: 15.5px;
    line-height: 1.65;
    color: var(--text-secondary);
    margin-bottom: 26px;
    max-width: 520px;
}

.hero-lead strong {
    color: var(--text-main);
    font-weight: 700;
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.btn-hero-primary {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #6d28d9 0%, #4f46e5 100%);
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 14.5px;
    padding: 13px 24px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 24px rgba(109, 40, 217, 0.24);
    transition: all 0.2s ease;
}

.btn-cta-glow {
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.30), transparent);
    transform: skewX(-20deg);
    animation: shimmerSweep 3.5s infinite;
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(109, 40, 217, 0.32);
}

.btn-hero-secondary {
    background: #f8fafc;
    color: var(--text-main);
    border: 1px solid #cbd5e1;
    font-weight: 700;
    font-size: 14px;
    padding: 13px 18px;
    border-radius: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all 0.18s ease;
}

:root[data-theme="dark"] .btn-hero-secondary {
    background: rgba(15, 23, 42, 0.65);
    color: #ffffff;
    border-color: rgba(148, 163, 184, 0.35);
}

.btn-hero-secondary:hover {
    background: #ffffff;
    border-color: var(--primary-light);
    color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

/* Clean 3-Stat Trust Bar */
.hero-bento-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 500px;
    padding-top: 22px;
    border-top: 1px solid var(--border-color);
}

.bento-metric-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 11px 14px;
}

:root[data-theme="dark"] .bento-metric-card {
    background: rgba(15, 23, 42, 0.65);
    border-color: rgba(255, 255, 255, 0.14);
}

.bento-val {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.15;
}

.bento-val span {
    font-size: 13px;
    color: var(--primary-light);
    margin-left: 1px;
}

.bento-lbl {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 3px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.bento-lbl i {
    color: var(--primary-light);
}

/* Right Column: Unobstructed Interactive Transformation Studio Card */
.hero-showcase {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.hero-studio-frame {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.07);
}

:root[data-theme="dark"] .hero-studio-frame {
    background: var(--bg-input);
    border-color: var(--border-color);
}

/* Top Visual Equation Header: Target + Source = Result */
.hero-formula-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 8px 12px;
    flex-wrap: wrap;
}

:root[data-theme="dark"] .hero-formula-bar {
    background: var(--bg-card);
    border-color: var(--border-color);
}

.formula-pair {
    display: flex;
    align-items: center;
    gap: 10px;
}

.formula-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 2px 6px 2px 2px;
    border-radius: 10px;
    transition: background 0.15s ease;
}

.formula-item:hover {
    background: #f1f5f9;
}

.formula-item img {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    object-fit: cover;
    border: 2px solid var(--primary-light);
}

.formula-item img.circle {
    border-radius: 50%;
    border-color: var(--cyan);
}

.formula-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.formula-text span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 0.04em;
}

.formula-text span.cyan {
    color: var(--cyan);
}

.formula-text strong {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-main);
}

.formula-plus {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #f1f5f9;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.btn-hero-try-pair {
    background: var(--primary-soft);
    border: 1px solid var(--border-highlight);
    color: var(--primary);
    font-size: 11.5px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 9px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.18s ease;
}

.btn-hero-try-pair:hover {
    background: var(--primary);
    color: #ffffff;
}

/* Centerpiece Interactive Portrait Stage (Full-Width, Zero Overlapping Clutter) */
.hero-main-viewport {
    position: relative;
    width: 100%;
    height: 360px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #e2e8f0;
    cursor: ew-resize;
    user-select: none;
}

.hero-main-viewport img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 18%;
    display: block;
    pointer-events: none;
}

.hero-before-clip {
    position: absolute;
    inset: 0;
    clip-path: inset(0 50% 0 0);
    animation: heroSweepClip 4.8s ease-in-out infinite alternate;
    pointer-events: none;
}

.hero-main-viewport.user-scrubbing .hero-before-clip,
.hero-main-viewport.user-scrubbing .hero-laser-line {
    animation: none !important;
}

.hero-laser-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2.5px;
    background: #ffffff;
    box-shadow: 0 0 12px rgba(15, 23, 42, 0.45);
    left: 50%;
    animation: heroSweepLaser 4.8s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 4;
}

.hero-laser-knob {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid var(--primary);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.22);
}

@keyframes heroSweepClip {
    0% { clip-path: inset(0 72% 0 0); }
    100% { clip-path: inset(0 28% 0 0); }
}

@keyframes heroSweepLaser {
    0% { left: 28%; }
    100% { left: 72%; }
}

.hero-vp-tag {
    position: absolute;
    top: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 8px;
    z-index: 5;
    pointer-events: none;
}

.hero-vp-tag.before {
    left: 12px;
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
    border: 1px solid #cbd5e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.hero-vp-tag.after {
    right: 12px;
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(109, 40, 217, 0.30);
}

.hero-vp-hint-pill {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border: 1px solid #e2e8f0;
    color: #334155;
    font-size: 11px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 99px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 5;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.10);
}

/* Bottom 3-Scene Visual Switcher Bar */
.hero-presets-dock {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 6px 10px;
    flex-wrap: wrap;
}

:root[data-theme="dark"] .hero-presets-dock {
    background: var(--bg-card);
    border-color: var(--border-color);
}

.dock-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    padding-left: 4px;
}

.hero-preset-pills {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.hero-preset-btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: var(--text-secondary);
    border-radius: 10px;
    padding: 4px 11px 4px 5px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.16s ease;
}

:root[data-theme="dark"] .hero-preset-btn {
    background: rgba(255, 255, 255, 0.06);
    border-color: transparent;
    color: #cbd5e1;
}

.hero-preset-btn img {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    object-fit: cover;
}

.hero-preset-btn:hover {
    border-color: var(--primary-light);
    color: var(--primary);
}

.hero-preset-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

/* ==========================================================================
   PLAYGROUND SECTION & UPLOAD STUDIO (Clean White Cards)
   ========================================================================== */
.playground-section {
    padding: 24px 0 60px;
}

.section-header {
    text-align: center;
    margin-bottom: 20px;
}

.section-header h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 30px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.section-header p {
    font-size: 14.5px;
    color: var(--text-muted);
}

/* Clean Segmented Mode Bar */
.mode-pills-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.mode-pills {
    display: inline-flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 6px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

:root[data-theme="dark"] .mode-pills {
    background: var(--bg-card);
    border-color: var(--border-color);
}

.mode-pill {
    background: transparent;
    color: var(--text-secondary);
    border: none;
    border-radius: 11px;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all 0.18s ease;
}

.mode-pill:hover {
    color: var(--primary);
    background: #f8fafc;
}

.mode-pill.active {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(91, 33, 182, 0.22);
}

/* Workspace Grid */
.workspace-grid {
    display: grid;
    grid-template-columns: 1fr 1.08fr;
    gap: 24px;
    align-items: stretch;
    margin-bottom: 32px;
}

.controls-card,
.result-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.mode-panel {
    display: none;
}

.mode-panel.active {
    display: block;
}

/* Step Labels above Dropzones */
.upload-step-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}

.step-dot {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: var(--primary-soft);
    color: var(--primary);
    border: 1px solid var(--border-highlight);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
}

.step-dot.accent {
    background: var(--cyan-soft);
    color: var(--cyan);
    border-color: #bae6fd;
}

/* Upload Pair Row & Clean Dropzones */
.upload-pair-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.upload-col {
    flex: 1;
    min-width: 0;
}

.swap-dir-col {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 16px;
}

.energy-bridge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.swap-dir-hint {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
}

.btn-swap-inputs {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

:root[data-theme="dark"] .btn-swap-inputs {
    background: var(--bg-card-elevated);
    color: var(--primary-light);
}

.btn-swap-inputs:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: rotate(180deg);
}

.upload-box {
    border: 1.5px dashed #cbd5e1;
    border-radius: 16px;
    height: 210px;
    background: #f8fafc;
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.2s ease;
}

.upload-box:hover,
.upload-box.dragover {
    border-color: var(--primary-light);
    background: #faf8ff;
}

/* Hide busy corner brackets for ultra-clean UI */
.hud-corner {
    display: none;
}

.upload-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px;
}

.upload-icon-ring {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: var(--primary-soft);
    border: 1px solid var(--border-highlight);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.upload-icon-ring.accent {
    background: var(--cyan-soft);
    border-color: #bae6fd;
}

.upload-icon {
    font-size: 28px;
    color: var(--primary);
}

.upload-icon-ring.accent .upload-icon {
    color: var(--cyan);
}

.upload-title {
    font-weight: 700;
    font-size: 14.5px;
    color: var(--text-main);
    margin-bottom: 3px;
}

.upload-sub {
    font-size: 12px;
    color: var(--text-muted);
}

.upload-preview-wrap {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 8px;
}

.upload-preview-wrap > img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
    transition: transform 0.25s ease;
}

.upload-box:hover .upload-preview-wrap > img {
    transform: scale(1.03);
}

.avatar-circle-preview {
    width: 158px;
    height: 158px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px dashed var(--cyan);
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(2, 132, 199, 0.15);
}

.avatar-circle-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.face-count-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--border-highlight);
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 99px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.10);
}

.face-count-badge.accent {
    border-color: #7dd3fc;
    color: var(--cyan);
}

.btn-clear-img {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: #ef4444;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.35);
    transition: transform 0.15s ease;
}

.btn-clear-img:hover {
    transform: scale(1.12);
    background: #dc2626;
}

.upload-caption {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 7px;
}

/* Multiple Face Swap List */
.multi-box {
    height: 168px;
}

.multi-faces-list {
    margin-top: 12px;
    max-height: 200px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.multi-hint {
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 12.5px;
    color: var(--text-muted);
}

.multi-face-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 8px 12px;
    gap: 10px;
}

.multi-face-left,
.multi-face-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.multi-thumb {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-light);
}

.multi-meta {
    font-size: 12px;
}

.multi-meta strong {
    display: block;
    color: var(--text-main);
}

.multi-meta span {
    color: var(--text-muted);
    font-size: 11px;
}

.btn-pick-multi-source {
    background: var(--primary-soft);
    border: 1px dashed var(--primary-light);
    color: var(--primary);
    padding: 6px 11px;
    border-radius: 8px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Batch Grid */
.batch-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 12px;
}

.batch-thumbs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 10px;
    width: 100%;
    height: 100%;
    overflow-y: auto;
}

.batch-thumbs-grid img {
    width: 100%;
    height: 62px;
    object-fit: cover;
    border-radius: 6px;
}

/* AI Engine Selector Cards & Toggles */
.ai-options-panel {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
}

.option-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.option-label {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-main);
}

.engine-speed-hint {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--cyan);
    font-weight: 700;
}

.engine-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.engine-choice-card {
    background: var(--bg-input);
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.engine-choice-card:hover {
    border-color: var(--primary-light);
}

.engine-choice-card.active {
    background: var(--primary-soft);
    border-color: var(--primary-light);
    box-shadow: 0 4px 14px rgba(109, 40, 217, 0.10);
}

.engine-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.engine-card-icon {
    color: var(--primary);
    font-size: 15px;
}

.engine-card-icon.fast {
    color: #059669;
}

.engine-card-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9.5px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 99px;
}

.engine-card-badge.pro {
    background: #ede9fe;
    color: #5b21b6;
}

.engine-card-badge.fast {
    background: #d1fae5;
    color: #047857;
}

.engine-card-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-main);
}

.engine-card-desc {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.35;
    margin-top: 2px;
}

.toggles-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.toggle-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    padding: 6px 11px;
    border-radius: 9px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    user-select: none;
    transition: border-color 0.15s ease;
}

.toggle-chip:hover {
    border-color: var(--primary-light);
}

.toggle-chip input {
    accent-color: var(--primary);
}

/* Primary Start Swap Button */
.btn-start-swap {
    margin-top: 16px;
    width: 100%;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #6d28d9 0%, #4f46e5 55%, #0284c7 100%);
    color: #ffffff;
    border: none;
    border-radius: 14px;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 10px 26px rgba(109, 40, 217, 0.28);
    transition: all 0.22s ease;
}

.btn-glow-shimmer {
    position: absolute;
    top: 0;
    left: -120%;
    width: 65%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.32), transparent);
    transform: skewX(-20deg);
    animation: shimmerSweep 3.2s infinite;
}

@keyframes shimmerSweep {
    0% { left: -120%; }
    65%, 100% { left: 160%; }
}

.btn-start-swap:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(109, 40, 217, 0.38);
}

.btn-start-swap:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.free-tag {
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.35);
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 99px;
}

.error-banner {
    margin-top: 12px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 600;
}

/* ==========================================================================
   INTERACTIVE GENERATION LOUNGE (#result-loading — Clean White & Lavender UI)
   ========================================================================== */
.result-card {
    min-height: 500px;
    justify-content: center;
    align-items: center;
}

.result-loading {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.loading-telemetry-top {
    background: linear-gradient(135deg, #faf8ff 0%, #f0f9ff 100%);
    border: 1px solid #ddd6fe;
    border-radius: 16px;
    padding: 14px;
}

:root[data-theme="dark"] .loading-telemetry-top {
    background: var(--bg-input);
    border-color: var(--border-color);
}

/* Holographic Target + Source Fusion Strip */
.holo-fusion-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 12px;
}

.holo-thumb-box {
    width: 72px;
    height: 72px;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    border: 2.5px solid #7c3aed;
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.2);
    background: #ffffff;
}

.holo-thumb-box.source {
    border-radius: 50%;
    border-color: #0284c7;
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.2);
}

.holo-thumb-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.laser-scan-bar {
    position: absolute;
    left: 0;
    right: 0;
    height: 2.5px;
    background: #06b6d4;
    box-shadow: 0 0 10px #06b6d4, 0 0 18px #7c3aed;
    animation: verticalLaser 1.6s ease-in-out infinite alternate;
}

.laser-scan-bar.reverse {
    background: #e11d48;
    box-shadow: 0 0 10px #e11d48;
    animation-direction: alternate-reverse;
}

@keyframes verticalLaser {
    0% { top: 6%; }
    100% { top: 92%; }
}

.holo-tag {
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'JetBrains Mono', monospace;
    font-size: 8.5px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.92);
    color: #4c1d95;
    padding: 1px 5px;
    border-radius: 4px;
}

.holo-tag.accent {
    color: #0284c7;
}

.holo-stream-bridge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    min-width: 110px;
}

.stream-particles {
    display: flex;
    gap: 7px;
    align-items: center;
}

.stream-particles span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #0284c7;
    animation: streamBounce 1s infinite ease-in-out;
}
.stream-particles span:nth-child(2) { animation-delay: 0.18s; background: #7c3aed; }
.stream-particles span:nth-child(3) { animation-delay: 0.36s; background: #e11d48; }
.stream-particles span:nth-child(4) { animation-delay: 0.54s; background: #10b981; }

@keyframes streamBounce {
    0%, 100% { transform: scale(0.7); opacity: 0.4; }
    50% { transform: scale(1.35); opacity: 1; }
}

.holo-timer-pill {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 800;
    color: #0284c7;
    background: #ffffff;
    border: 1px solid #bae6fd;
    padding: 2px 10px;
    border-radius: 99px;
}

.loading-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    text-align: left;
}

.loading-status-row h4 {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-main);
}

.loading-status-row p {
    font-size: 12px;
    color: var(--text-muted);
}

.loading-pct-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 15px;
    font-weight: 800;
    color: var(--primary);
}

.progress-bar-track {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 99px;
    margin: 10px 0;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #6d28d9, #06b6d4, #ec4899);
    background-size: 200% 100%;
    border-radius: 99px;
    transition: width 0.3s ease;
    animation: gradientMove 2s linear infinite;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* 6-Stage Neural Pipeline Stepper */
.pipeline-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.pipe-step {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 600;
    padding: 5px 7px;
    border-radius: 7px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.25s ease;
}

:root[data-theme="dark"] .pipe-step {
    background: rgba(255, 255, 255, 0.05);
    border-color: transparent;
}

.pipe-step.active {
    background: #ecfeff;
    border-color: #38bdf8;
    color: #0284c7;
    box-shadow: 0 2px 10px rgba(6, 182, 212, 0.15);
}

.pipe-step.done {
    background: #ecfdf5;
    border-color: #6ee7b7;
    color: #059669;
}

/* Interactive Wait Lounge Box */
.wait-lounge-box {
    background: #ffffff;
    border: 1.5px solid #ddd6fe;
    border-radius: 16px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 8px 24px rgba(109, 40, 217, 0.06);
}

:root[data-theme="dark"] .wait-lounge-box {
    background: var(--bg-input);
    border-color: var(--border-highlight);
}

.lounge-tabs-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    flex-wrap: wrap;
}

.lounge-tab-btns {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.lounge-tab {
    background: #f1f5f9;
    border: 1px solid transparent;
    color: var(--text-secondary);
    font-size: 11.5px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.18s ease;
}

.lounge-tab.active {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 12px var(--primary-glow);
}

.btn-sfx-toggle {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: 7px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-sfx-toggle.active {
    color: #059669;
    background: #ecfdf5;
    border-color: #6ee7b7;
}

.lounge-panel {
    display: none;
}

.lounge-panel.active {
    display: block;
}

.arcade-hud {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11.5px;
    color: var(--text-muted);
    margin-bottom: 7px;
    flex-wrap: wrap;
    gap: 6px;
}

.arcade-scores {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'JetBrains Mono', monospace;
}

.score-pill {
    background: #f8fafc;
    border: 1px solid #bae6fd;
    color: #0369a1;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
}

.score-pill.combo {
    background: #fff1f2;
    border-color: #fda4af;
    color: #e11d48;
    font-weight: 800;
}

.score-pill.best {
    background: #fefce8;
    border-color: #fde047;
    color: #b45309;
}

.arcade-canvas-wrap {
    position: relative;
    width: 100%;
    height: 210px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f7ff 0%, #eef6ff 50%, #f0fdfa 100%);
    border: 1.5px solid #ddd6fe;
}

:root[data-theme="dark"] .arcade-canvas-wrap {
    background: radial-gradient(circle at center, #0f172a 0%, #050811 100%);
    border-color: rgba(56, 189, 248, 0.25);
}

.arcade-canvas-wrap canvas {
    width: 100%;
    height: 100%;
    display: block;
    cursor: crosshair;
}

.swap-ready-banner {
    position: absolute;
    bottom: 10px;
    left: 12px;
    right: 12px;
    background: linear-gradient(90deg, #059669, #10b981, #0284c7);
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.45);
    animation: pulseBanner 1.1s infinite alternate;
    z-index: 10;
}

@keyframes pulseBanner {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-2px) scale(1.015); }
}

/* Trivia Panel inside Wait Lounge */
.trivia-card {
    background: #faf8ff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px;
    min-height: 210px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

:root[data-theme="dark"] .trivia-card {
    background: rgba(15, 23, 42, 0.55);
    border-color: var(--border-color);
}

.trivia-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.trivia-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
    font-weight: 800;
    color: var(--primary);
}

.btn-next-trivia {
    background: #ffffff;
    border: 1px solid var(--border-highlight);
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
}

.trivia-q {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 10px;
}

.trivia-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
}

.btn-trivia-opt {
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s ease;
}

:root[data-theme="dark"] .btn-trivia-opt {
    background: var(--bg-card);
}

.btn-trivia-opt:hover {
    border-color: var(--primary-light);
}

.btn-trivia-opt.correct {
    background: #ecfdf5;
    border-color: #10b981;
    color: #047857;
}

.btn-trivia-opt.wrong {
    background: #fef2f2;
    border-color: #ef4444;
    color: #b91c1c;
}

.trivia-feedback {
    margin-top: 8px;
    font-size: 11.5px;
    color: #0284c7;
    font-weight: 700;
}

/* ==========================================================================
   PLACEHOLDER & ACTIVE RESULT STUDIO (Clean White UI)
   ========================================================================== */
.result-placeholder {
    text-align: center;
    padding: 12px;
}

.placeholder-Showcase {
    position: relative;
    display: inline-block;
    margin-bottom: 14px;
}

.placeholder-sample-img {
    max-height: 270px;
    border-radius: 18px;
    border: 3px solid #ffffff;
    box-shadow: 0 14px 34px rgba(109, 40, 217, 0.14);
}

.placeholder-badge {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid #ddd6fe;
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 99px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.10);
}

.placeholder-heading {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 4px;
}

.placeholder-text {
    font-size: 13px;
    color: var(--text-muted);
    max-width: 390px;
    margin: 0 auto 14px;
}

.placeholder-features-mini {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 11.5px;
    color: var(--text-secondary);
}

.placeholder-features-mini span {
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    padding: 4px 10px;
    border-radius: 99px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
}

/* Active Result Studio */
.result-active {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.result-toolbar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.result-meta-badges {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.meta-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: 7px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.meta-badge.engine {
    background: var(--primary-soft);
    border-color: var(--border-highlight);
    color: var(--primary);
}

.meta-badge.time {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #059669;
}

.result-compare-btns {
    display: flex;
    gap: 5px;
}

.btn-tool-pill {
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s ease;
}

.btn-tool-pill:hover {
    color: var(--primary);
    border-color: var(--primary-light);
}

.btn-tool-pill.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Interactive Split Viewport */
.comparison-viewport {
    position: relative;
    width: 100%;
    height: 315px;
    background: #f1f5f9;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-img-layer,
.before-img-layer {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.split-overlay {
    position: absolute;
    inset: 0;
    clip-path: inset(0 50% 0 0);
    pointer-events: none;
}

.label-before,
.label-after {
    position: absolute;
    top: 10px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #cbd5e1;
    color: #0f172a;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    pointer-events: none;
    z-index: 3;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.label-before { left: 10px; }
.label-after { right: 10px; background: var(--primary); border-color: var(--primary); color: #ffffff; }

.split-range-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: ew-resize;
    z-index: 5;
}

.split-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2.5px;
    background: var(--primary);
    box-shadow: 0 0 12px rgba(109, 40, 217, 0.5);
    pointer-events: none;
    z-index: 4;
}

.split-handle-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid var(--primary);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

/* Side-by-Side Comparison View */
.sbs-viewport {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
    height: 315px;
}

.sbs-pane {
    position: relative;
    background: #f1f5f9;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sbs-pane img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Studio Color Finisher Strip */
.studio-finisher-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 11px;
    padding: 7px 12px;
    flex-wrap: wrap;
}

.finisher-slider-group {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    flex: 1;
    min-width: 110px;
}

.finisher-slider-group input[type="range"] {
    width: 100%;
    accent-color: var(--primary);
    cursor: pointer;
    height: 4px;
}

.btn-reset-filters {
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
}

.btn-reset-filters:hover {
    color: var(--primary);
    border-color: var(--primary-light);
}

/* Batch Results Gallery */
.batch-results-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 8px;
    max-height: 125px;
    overflow-y: auto;
}

.batch-res-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--border-color);
    cursor: pointer;
}

.batch-res-card img {
    width: 100%;
    height: 85px;
    object-fit: cover;
    display: block;
}

/* Result Action Buttons */
.result-actions-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.btn-action {
    border: none;
    border-radius: 10px;
    padding: 9px 14px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.18s ease;
}

.btn-action:hover {
    transform: translateY(-2px);
}

.btn-action.primary {
    background: linear-gradient(135deg, #2563eb, #0284c7);
    color: #fff;
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.25);
}

.btn-action.indigo {
    background: var(--primary);
    color: #fff;
}

.btn-action.rose {
    background: var(--accent);
    color: #fff;
}

.btn-action.outline {
    background: var(--bg-subtle);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

/* Bottom Tabs Card */
.bottom-tabs-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-md);
}

.tabs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 14px;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 10px;
}

.tab-buttons {
    display: flex;
    gap: 10px;
}

.tab-btn {
    background: transparent;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-muted);
    padding: 8px 14px;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all 0.18s ease;
}

.tab-btn.active {
    background: var(--primary-soft);
    border-color: var(--border-highlight);
    color: var(--primary);
}

.count-pill {
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    padding: 1px 7px;
    border-radius: 99px;
}

.btn-quick-demo {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
    padding: 7px 14px;
    border-radius: 99px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease;
}

.btn-quick-demo:hover {
    transform: translateY(-1px);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Templates & History Grid */
.templates-grid,
.history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
    gap: 16px;
}

.template-item,
.history-item {
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
    position: relative;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

:root[data-theme="dark"] .template-item,
:root[data-theme="dark"] .history-item {
    background: var(--bg-input);
}

.template-item:hover,
.history-item:hover {
    transform: translateY(-4px);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}

.template-item img,
.history-item img {
    width: 100%;
    height: 195px;
    object-fit: cover;
    display: block;
}

.template-info {
    padding: 10px;
}

.template-title {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 7px;
    display: block;
}

.template-btns {
    display: flex;
    gap: 6px;
}

.btn-tpl {
    flex: 1;
    border: none;
    border-radius: 7px;
    padding: 6px 6px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.btn-tpl:hover {
    opacity: 0.9;
}

.btn-tpl.target {
    background: var(--primary);
    color: #fff;
}

.btn-tpl.source {
    background: var(--cyan-soft);
    border: 1px solid #bae6fd;
    color: var(--cyan);
}

.history-overlay-btns {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 5px;
}

.btn-hist-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-hist-icon.delete:hover {
    background: #ef4444;
    color: #fff;
}

.history-footer {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12.5px;
    color: var(--text-muted);
}

.btn-clear-history {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

/* How It Works Section */
.how-section {
    border-top: 1px solid var(--border-color);
    background: #ffffff;
    padding: 50px 0;
}

:root[data-theme="dark"] .how-section {
    background: transparent;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.step-card {
    background: var(--bg-page);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.step-num {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #6d28d9, #0284c7);
    color: #fff;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.step-card h3 {
    font-size: 16.5px;
    margin-bottom: 8px;
    color: var(--text-main);
}

.step-card p {
    font-size: 13.5px;
    color: var(--text-muted);
}

/* Fullscreen Modal */
.fullscreen-modal {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.fullscreen-modal img {
    max-width: 92vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 25px 65px rgba(15, 23, 42, 0.25);
}

.btn-close-modal {
    position: absolute;
    top: 22px;
    right: 26px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #0f172a;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Footer (Clean White Footer) */
.site-footer {
    border-top: 1px solid var(--border-color);
    background: #ffffff;
    color: var(--text-muted);
    padding: 24px 0;
    font-size: 13px;
}

:root[data-theme="dark"] .site-footer {
    background: #0b0f19;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

@media (max-width: 960px) {
    .hero-grid,
    .workspace-grid,
    .steps-grid {
        grid-template-columns: 1fr;
    }
    .main-nav {
        display: none;
    }
    .holo-stage-wrapper {
        justify-content: center;
        padding-right: 0;
    }
}

/* ==========================================================================
   50-COMPETITOR USPs INTEGRATION STYLES (Clean Luminous White UI)
   ========================================================================== */

/* Upload Step Header & Quick Input Buttons (Webcam Selfie, URL, Paste) */
.upload-step-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.upload-step-header .upload-step-label {
    margin-bottom: 0;
}

.quick-input-btns {
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-mini-input {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 7px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.16s ease;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.btn-mini-input:hover {
    border-color: var(--primary-light);
    color: var(--primary);
    background: var(--primary-soft);
}

/* Biometric Face Analytics Inspector Bar */
.biometric-inspector-bar {
    margin-top: 12px;
    background: linear-gradient(90deg, #faf8ff 0%, #f0f9ff 100%);
    border: 1px solid #ddd6fe;
    border-radius: 10px;
    padding: 7px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
}

:root[data-theme="dark"] .biometric-inspector-bar {
    background: var(--bg-input);
    border-color: var(--border-color);
}

.bio-title,
.bio-chip {
    font-weight: 700;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.bio-chip i {
    color: var(--primary);
}

.bio-chip strong,
.bio-metrics-row strong {
    color: var(--text-main);
    font-weight: 800;
}

.bio-metrics-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    color: var(--text-secondary);
}

/* Identity Morph / Blend Ratio Slider */
.morph-slider-box {
    background: #faf8ff;
    border: 1px solid #e2e8f0;
    border-radius: 11px;
    padding: 9px 12px;
    margin-bottom: 12px;
}

:root[data-theme="dark"] .morph-slider-box {
    background: var(--bg-input);
    border-color: var(--border-color);
}

.morph-header,
.morph-slider-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
    gap: 8px;
    flex-wrap: wrap;
}

.morph-slider-top strong,
.morph-val-pill {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
    font-weight: 700;
    color: var(--primary);
    background: #ede9fe;
    padding: 2px 8px;
    border-radius: 99px;
}

.morph-range-input,
.morph-slider-box input[type="range"] {
    width: 100%;
    accent-color: var(--primary);
    cursor: pointer;
    height: 5px;
}

/* Viral Meme Caption Overlay Inside Result Viewport */
.meme-text-overlay {
    position: absolute;
    left: 12px;
    right: 12px;
    text-align: center;
    font-family: 'Impact', 'Plus Jakarta Sans', sans-serif;
    font-size: 26px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #ffffff;
    text-shadow:
        -2px -2px 0 #000,
         2px -2px 0 #000,
        -2px  2px 0 #000,
         2px  2px 0 #000,
         0px  4px 10px rgba(0,0,0,0.65);
    pointer-events: none;
    z-index: 6;
    line-height: 1.15;
    word-wrap: break-word;
}

.meme-text-overlay.top {
    top: 12px;
}

.meme-text-overlay.bottom {
    bottom: 12px;
}

/* 1-Click Artistic LUT Filter Presets Strip */
.lut-presets-strip {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 6px 10px;
    flex-wrap: wrap;
}

:root[data-theme="dark"] .lut-presets-strip {
    background: var(--bg-input);
}

.lut-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-right: 4px;
}

.lut-pills-row {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.lut-pill,
.btn-lut {
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 99px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.lut-pill:hover,
.btn-lut:hover {
    border-color: var(--primary-light);
    color: var(--primary);
}

.lut-pill.active,
.btn-lut.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

/* Viral Meme Caption Studio Input Bar */
.meme-maker-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 6px 10px;
    flex-wrap: wrap;
}

.meme-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.meme-input,
.meme-maker-bar input[type="text"] {
    flex: 1;
    min-width: 110px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    padding: 5px 10px;
    font-size: 11.5px;
    color: var(--text-main);
    outline: none;
}

:root[data-theme="dark"] .meme-input,
:root[data-theme="dark"] .meme-maker-bar input[type="text"] {
    background: var(--bg-card);
    border-color: var(--border-color);
}

.meme-input:focus,
.meme-maker-bar input[type="text"]:focus {
    border-color: var(--primary);
}

.btn-action.emerald {
    background: #059669;
    color: #ffffff;
    text-decoration: none;
}

/* Multi-Format Export Combo Button Group */
.export-combo-group {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    padding: 3px;
    border-radius: 12px;
}

.export-format-select {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #0f172a;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 8px;
    border-radius: 8px;
    cursor: pointer;
    outline: none;
}

/* Template Category Filter Pills */
.tabs-actions-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.template-filter-pills {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.tpl-filter-btn {
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 11.5px;
    font-weight: 700;
    padding: 5px 11px;
    border-radius: 99px;
    cursor: pointer;
    transition: all 0.16s ease;
}

.tpl-filter-btn:hover {
    border-color: var(--primary-light);
    color: var(--primary);
}

.tpl-filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

/* Live Webcam Selfie Capture Dialog */
.webcam-dialog {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 20px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.webcam-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.webcam-header h3,
.webcam-header h4 {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-close-webcam {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-subtle);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.webcam-video-wrap,
.webcam-viewport {
    position: relative;
    width: 100%;
    height: 320px;
    background: #0f172a;
    border-radius: 14px;
    overflow: hidden;
}

.webcam-video-wrap video,
.webcam-viewport video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
}

.webcam-face-guide,
.webcam-oval-guide {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 170px;
    height: 220px;
    border: 2.5px dashed rgba(56, 189, 248, 0.85);
    border-radius: 50%;
    pointer-events: none;
    box-shadow: 0 0 0 999px rgba(15, 23, 42, 0.32);
}

.webcam-countdown {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 72px;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 6px 24px rgba(0, 0, 0, 0.65);
    background: rgba(15, 23, 42, 0.25);
    z-index: 5;
}

.webcam-footer,
.webcam-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ==========================================================================
   6. REMAKER-STYLE AI TOOLS DRAWER, SUBTOOL RIBBON & 7 SEMANTIC SEO SECTIONS
   ========================================================================== */
.brand-cluster {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-explore-drawer {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 13px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--bg-subtle);
    color: var(--text-main);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-explore-drawer:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(79, 70, 229, 0.06);
}

.ai-tools-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(3px);
    z-index: 990;
}

.ai-tools-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 300px;
    max-width: 86vw;
    background: var(--bg-card);
    border-right: 1px solid var(--border-color);
    box-shadow: 16px 0 48px rgba(15, 23, 42, 0.14);
    z-index: 1000;
    transform: translateX(-104%);
    transition: transform 0.26s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.ai-tools-drawer.open {
    transform: translateX(0);
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-color);
}

.drawer-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: var(--text-main);
}

.btn-close-drawer {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-subtle);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drawer-body {
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.drawer-top-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-radius: 12px;
    background: rgba(79, 70, 229, 0.08);
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.drawer-group-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 800;
    color: var(--text-main);
    padding: 4px 8px 8px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.drawer-sublist {
    list-style: none;
    padding: 0 0 0 12px;
    margin: 0;
    border-left: 2px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.drawer-sublink {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 13.5px;
    font-weight: 600;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.16s ease;
}

.drawer-sublink:hover {
    background: var(--bg-subtle);
    color: var(--primary);
}

.drawer-tag,
.mini-badge {
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 99px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.drawer-tag.free { background: #dcfce7; color: #15803d; }
.drawer-tag.hot, .mini-badge.hot { background: #ffe4e6; color: #e11d48; }
.drawer-tag.new, .mini-badge.new { background: #e0e7ff; color: #4338ca; }

/* Secondary Sub-Tool Ribbon (aifaceswap.io style) */
.subtool-ribbon {
    background: var(--bg-subtle);
    border-top: 1px solid var(--border-color);
    padding: 7px 0;
}

.subtool-ribbon-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    white-space: nowrap;
}

.subtool-ribbon-inner::-webkit-scrollbar { display: none; }

.ribbon-label {
    font-size: 12px;
    font-weight: 800;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-right: 4px;
}

.ribbon-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 11px;
    border-radius: 99px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.18s ease;
}

.ribbon-link:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
}

/* Playground Trust & Community Strip */
.playground-trust-strip {
    margin-top: 18px;
    padding: 14px 20px;
    border-radius: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    align-items: center;
}

.trust-strip-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    color: var(--text-secondary);
    line-height: 1.45;
}

.trust-strip-item i {
    font-size: 18px;
    flex-shrink: 0;
}

.trust-strip-item h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

/* Shared Semantic SEO Section Containers */
.seo-section {
    padding: 76px 0;
    border-top: 1px solid var(--border-color);
}

.seo-bg-white {
    background: var(--bg-card);
}

.seo-bg-slate {
    background: var(--bg-subtle);
}

.section-eyebrow-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 99px;
    background: rgba(79, 70, 229, 0.08);
    border: 1px solid rgba(79, 70, 229, 0.18);
    color: var(--primary);
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

/* Section 1: Visual Equation Banner + 4-Step Cards */
.visual-equation-card {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1.25fr;
    gap: 16px;
    align-items: center;
    padding: 24px;
    border-radius: 24px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.04);
    margin-bottom: 32px;
}

.eq-step-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.eq-step-card.result-highlight {
    border: 2px solid var(--primary);
    box-shadow: 0 12px 30px rgba(79, 70, 229, 0.12);
}

.eq-badge {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    background: var(--bg-subtle);
    padding: 5px 10px;
    border-radius: 8px;
    text-align: center;
}

.eq-badge.primary {
    background: var(--primary);
    color: #ffffff;
}

.eq-img-wrap {
    position: relative;
    height: 210px;
    border-radius: 12px;
    overflow: hidden;
    background: #0f172a;
}

.eq-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.eq-corner-tag {
    position: absolute;
    bottom: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 99px;
    background: rgba(15, 23, 42, 0.82);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
}

.eq-corner-tag.indigo { background: #4f46e5; }
.eq-corner-tag.emerald { background: #059669; }

.eq-caption {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: center;
}

.eq-caption strong {
    font-size: 14px;
    color: var(--text-main);
}

.eq-caption span {
    font-size: 12px;
    color: var(--text-muted);
}

.btn-inline-try {
    margin-top: 4px;
    padding: 7px 12px;
    border-radius: 99px;
    border: 1px solid rgba(79, 70, 229, 0.25);
    background: rgba(79, 70, 229, 0.08);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s ease;
}

.btn-inline-try:hover {
    background: var(--primary);
    color: #ffffff;
}

.eq-operator-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    color: var(--primary);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.eq-operator-circle.equals {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

.steps-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.step-card-modern {
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 24px;
    transition: all 0.22s ease;
}

.step-card-modern:hover {
    transform: translateY(-4px);
    border-color: rgba(79, 70, 229, 0.35);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
}

.step-top-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.step-pill-badge {
    align-self: flex-start;
    padding: 4px 11px;
    border-radius: 99px;
    background: var(--primary);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.step-h6-tag {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.step-card-modern h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 10px;
}

.step-card-modern p {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Section 2: 8 Use-Case Cards with Authentic Before/After + Source Face Visuals */
.uc-filter-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}

.uc-filter-btn {
    padding: 9px 18px;
    border-radius: 99px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.uc-filter-btn.active,
.uc-filter-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(79, 70, 229, 0.22);
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.use-case-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
    display: flex;
    flex-direction: column;
    transition: all 0.24s ease;
}

.use-case-card:hover {
    transform: translateY(-4px);
    border-color: rgba(79, 70, 229, 0.4);
    box-shadow: 0 18px 40px rgba(79, 70, 229, 0.1);
}

.uc-visual-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 2;
    background: #f8fafc;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.uc-visual-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.use-case-card:hover .uc-visual-wrap img {
    transform: scale(1.02);
}

.uc-floating-tag {
    position: absolute;
    bottom: 12px;
    right: 12px;
    padding: 5px 12px;
    border-radius: 99px;
    background: rgba(15, 23, 42, 0.84);
    backdrop-filter: blur(6px);
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.uc-body {
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.uc-body h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 10px;
}

.uc-body p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0 0 18px;
    flex: 1;
}

.uc-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
}

.uc-entity-chip {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-muted);
    background: var(--bg-subtle);
    padding: 5px 11px;
    border-radius: 99px;
    border: 1px solid var(--border-color);
}

.btn-uc-try {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    border-radius: 12px;
    border: none;
    background: var(--primary);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-uc-try:hover {
    background: #4338ca;
    transform: translateX(2px);
}

/* Section 3: Alternating 2-Column Zig-Zag Feature Blocks */
.zigzag-block {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 44px;
    align-items: center;
    padding: 32px 0;
}

.zigzag-block + .zigzag-block {
    border-top: 1px dashed var(--border-color);
}

.zigzag-block.reverse {
    grid-template-columns: 1fr 1.05fr;
}

.zigzag-block.reverse .zigzag-visual {
    order: 2;
}

.zigzag-block.reverse .zigzag-copy {
    order: 1;
}

.zigzag-visual {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
    background: var(--bg-subtle);
}

.zigzag-visual img {
    width: 100%;
    height: auto;
    display: block;
}

.zigzag-visual-badge {
    position: absolute;
    bottom: 14px;
    left: 14px;
    padding: 6px 14px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.zigzag-kicker {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.zigzag-copy h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 14px;
    line-height: 1.25;
}

.zigzag-copy p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0 0 18px;
}

.zigzag-checklist {
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.zigzag-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.55;
}

.zigzag-checklist li i {
    color: #10b981;
    font-size: 17px;
    margin-top: 1px;
}

.btn-zigzag-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 12px;
    background: rgba(79, 70, 229, 0.09);
    border: 1px solid rgba(79, 70, 229, 0.25);
    color: var(--primary);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-zigzag-cta:hover {
    background: var(--primary);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Section 4: 6 Core Advantages + Google Knowledge Graph 5-Pillar Matrix & Spec Table */
.advantages-grid-6 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 36px;
}

.advantage-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.03);
}

.adv-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(79, 70, 229, 0.09);
    color: var(--primary);
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.advantage-card h3,
.advantage-card h4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 8px;
}

.advantage-card p {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.62;
    margin: 0;
}

.semantic-matrix-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.05);
}

.matrix-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-color);
}

.matrix-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.matrix-header h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
}

.kg-pillars-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    margin-bottom: 26px;
}

.kg-pillar {
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
}

.kg-num {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 800;
    color: var(--primary);
    background: rgba(79, 70, 229, 0.1);
    padding: 2px 8px;
    border-radius: 6px;
    margin-bottom: 8px;
}

.kg-pillar strong {
    display: block;
    font-size: 15px;
    color: var(--text-main);
    margin-bottom: 6px;
}

.kg-pillar p {
    font-size: 12.5px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.spec-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: 16px;
}

.semantic-spec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    text-align: left;
}

.semantic-spec-table th {
    background: var(--bg-subtle);
    color: var(--text-main);
    font-weight: 800;
    padding: 13px 16px;
    border-bottom: 1px solid var(--border-color);
}

.semantic-spec-table td {
    padding: 12px 16px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.semantic-spec-table tr:last-child td {
    border-bottom: none;
}

/* Section 5: Creator Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.testimonial-card {
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
}

.testi-stars {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #f59e0b;
    font-size: 14px;
}

.testi-verified {
    margin-left: auto;
    font-size: 11.5px;
    font-weight: 700;
    color: #059669;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.testi-quote {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.65;
    font-style: italic;
    margin: 0;
}

.testi-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
}

.testi-author img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.testi-author strong {
    display: block;
    font-size: 14px;
    color: var(--text-main);
}

.testi-author span {
    font-size: 12px;
    color: var(--text-muted);
}

/* Section 6: Categorized FAQs */
.faq-controls-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 26px;
}

.faq-cat-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.faq-cat-btn {
    padding: 8px 16px;
    border-radius: 99px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s ease;
}

.faq-cat-btn.active,
.faq-cat-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

.faq-expand-btns {
    display: flex;
    gap: 8px;
}

.btn-faq-toggle {
    padding: 7px 13px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.faq-group-block {
    margin-bottom: 28px;
}

.faq-group-heading {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 17px;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.faq-accordion-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-accordion-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.faq-accordion-item[open] {
    border-color: rgba(79, 70, 229, 0.4);
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.06);
}

.faq-accordion-item summary {
    list-style: none;
    padding: 16px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.faq-accordion-item summary::-webkit-details-marker { display: none; }

.faq-accordion-item summary h3 {
    font-size: 15.5px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

.faq-accordion-item summary i {
    color: var(--text-muted);
    transition: transform 0.2s ease;
}

.faq-accordion-item[open] summary i {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-answer {
    padding: 0 20px 18px;
    border-top: 1px solid var(--border-color);
    padding-top: 14px;
}

.faq-answer p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.68;
    margin: 0;
}

/* Section 7: Discover More AI Tools Grid & Rich Multi-Column Footer */
.more-tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.more-tool-card {
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 22px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    cursor: pointer;
    transition: all 0.22s ease;
}

.more-tool-card:hover {
    background: var(--bg-card);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(79, 70, 229, 0.1);
}

.mt-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mt-content h3 {
    font-size: 16.5px;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mt-content p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0 0 10px;
}

.mt-link {
    font-size: 12.5px;
    font-weight: 800;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.site-footer-rich {
    background: var(--bg-subtle);
    border-top: 1px solid var(--border-color);
    padding: 56px 0 32px;
}

.footer-top-grid,
.footer-grid-4 {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 36px;
    border-bottom: 1px solid var(--border-color);
}

.footer-desc {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 14px 0;
}

.footer-trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-trust-badges span {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--primary);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 4px 10px;
    border-radius: 99px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.footer-links-col h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13.5px;
    font-weight: 800;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 14px;
}

.footer-links-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.footer-links-col a {
    font-size: 13.5px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.16s ease;
}

.footer-links-col a:hover {
    color: var(--primary);
}

.footer-bottom-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 24px;
    font-size: 13px;
    color: var(--text-muted);
}

@media (max-width: 1024px) {
    .visual-equation-card {
        grid-template-columns: 1fr;
    }
    .eq-operator-circle {
        margin: 0 auto;
    }
    .steps-grid-4,
    .use-cases-grid,
    .advantages-grid-6,
    .testimonials-grid,
    .more-tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .zigzag-block,
    .zigzag-block.reverse {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .zigzag-block.reverse .zigzag-visual,
    .zigzag-block.reverse .zigzag-copy {
        order: unset;
    }
    .kg-pillars-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-top-grid,
    .footer-grid-4,
    .playground-trust-strip {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .steps-grid-4,
    .use-cases-grid,
    .advantages-grid-6,
    .testimonials-grid,
    .more-tools-grid,
    .kg-pillars-row,
    .footer-top-grid,
    .footer-grid-4,
    .playground-trust-strip {
        grid-template-columns: 1fr;
    }
}

/* Google SERP "Things to know" Interactive Knowledge Graph Stack */
.things-to-know-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}

.ttk-accordion-item {
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.ttk-accordion-item[open] {
    background: var(--bg-card);
    border-color: rgba(79, 70, 229, 0.38);
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.06);
}

.ttk-accordion-item summary {
    list-style: none;
    padding: 16px 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.ttk-accordion-item summary::-webkit-details-marker {
    display: none;
}

.ttk-title-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ttk-category-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: var(--text-main);
}

.ttk-title-group h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 0;
}

.ttk-chevron-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.ttk-accordion-item[open] .ttk-chevron-circle {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    transform: rotate(180deg);
}

.ttk-answer-body {
    padding: 16px 22px 20px;
    border-top: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.68;
}

.ttk-answer-body p {
    margin: 0 0 10px;
}

.ttk-list {
    margin: 0;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.ttk-list li strong {
    color: var(--text-main);
}

/* ==========================================================================
   HOMEPAGE QDS: PHOTO FACE SWAP SEMANTIC GUIDE & FAQ SECTION
   ========================================================================== */
.photo-qds-container {
    margin-top: 40px;
    padding-top: 36px;
    border-top: 1px solid var(--border-light);
}

.photo-qds-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

@media (max-width: 991px) {
    .photo-qds-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.photo-qds-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.qds-info-block {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 24px 28px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
}

[data-theme="dark"] .qds-info-block {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.08);
}

.qds-mini-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--primary);
    background: rgba(99, 102, 241, 0.08);
    margin-bottom: 12px;
}

.qds-info-block h3 {
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 12px;
    line-height: 1.35;
}

.qds-info-block p {
    font-size: 0.93rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0;
}

.qds-steps-list, .qds-tips-list {
    margin: 0;
    padding-left: 20px;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.65;
}

.qds-steps-list li, .qds-tips-list li {
    margin-bottom: 10px;
}

.qds-steps-list li strong, .qds-tips-list li strong {
    color: var(--text-main);
}

.qds-faq-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 24px 28px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
    height: 100%;
}

[data-theme="dark"] .qds-faq-card {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.08);
}

.qds-faq-card h3 {
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 18px;
}




/* ==========================================================================
   Dedicated Video Face Swap Studio — Layout & Component Styles
   ========================================================================== */

/* Sub-Tool Quick Ribbon */
.subtool-ribbon {
    background: var(--bg-subtle);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
    font-size: 0.88rem;
}

.subtool-ribbon-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}

.subtool-ribbon-inner::-webkit-scrollbar {
    display: none;
}

.ribbon-label {
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.ribbon-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ribbon-link:hover {
    color: var(--primary);
    background: var(--primary-soft);
}

.ribbon-link.active {
    color: #ffffff;
    background: var(--primary);
    font-weight: 600;
}

.mini-badge {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 6px;
    text-transform: uppercase;
}

.mini-badge.hot {
    background: #ef4444;
    color: #ffffff;
}

.mini-badge.new {
    background: #0284c7;
    color: #ffffff;
}

/* Dedicated Video Page Hero & Workspace */
.video-studio-page {
    padding: 24px 0 60px;
    min-height: calc(100vh - 120px);
}

.video-page-header {
    text-align: center;
    max-width: 860px;
    margin: 0 auto 36px;
}

.breadcrumb-trail {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.breadcrumb-trail a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-trail a:hover {
    color: var(--primary);
}

.breadcrumb-trail .separator {
    color: var(--border-color);
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-soft);
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 18px;
    border: 1px solid var(--border-highlight);
}

.pulse-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #059669;
    font-weight: 700;
}

.live-dot-inner {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981;
    animation: livePulse 1.8s infinite;
}

@keyframes livePulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.6; }
}

.video-page-header h1 {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-main);
    margin-bottom: 16px;
    letter-spacing: -0.025em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, #0284c7 60%, #e11d48 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-lead {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--text-secondary);
    margin: 0 auto 24px;
}

/* Video Mode Selector Pills */
.video-mode-selector-wrap {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.video-mode-pills {
    display: inline-flex;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 4px;
    border-radius: 30px;
    box-shadow: var(--shadow-sm);
    gap: 4px;
}

.vmode-pill {
    padding: 8px 20px;
    border-radius: 24px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    border: none;
    background: transparent;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.vmode-pill.active {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 12px var(--primary-glow);
}

.vmode-pill:hover:not(.active) {
    color: var(--text-main);
    background: var(--bg-subtle);
}

/* Video Workspace 2-Column Grid */
.video-workspace-grid {
    display: grid;
    grid-template-columns: 460px 1fr;
    gap: 32px;
    align-items: start;
    margin-bottom: 50px;
}

@media (max-width: 1080px) {
    .video-workspace-grid {
        grid-template-columns: 1fr;
    }
}

/* Left Column: Video Controls Box */
.video-controls-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 26px;
    box-shadow: var(--shadow-md);
    position: relative;
}

.panel-header-badge {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.video-input-group {
    margin-bottom: 18px;
}

.upload-step-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.upload-step-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.04em;
}

.step-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary);
    color: #ffffff;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.btn-mini-input {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-soft);
    border: 1px solid var(--border-highlight);
    padding: 4px 10px;
    border-radius: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
}

.btn-mini-input:hover {
    background: var(--primary);
    color: #ffffff;
}

.video-dropzone {
    min-height: 180px;
    border: 2px dashed var(--border-color);
    border-radius: 18px;
    background: var(--bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.25s ease;
}

.video-dropzone:hover,
.video-dropzone.drag-over {
    border-color: var(--primary);
    background: var(--primary-soft);
}

.video-dropzone video {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 16px;
    display: block;
}

.duration-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    z-index: 5;
}

.upload-caption {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 6px;
    margin-bottom: 0;
}

/* Energy Bridge Connector */
.video-bridge-row {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 14px 0;
    gap: 12px;
}

.bridge-line {
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.bridge-tag {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    background: var(--bg-subtle);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

/* Video Options Panel */
.video-options-panel {
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 14px 16px;
    margin: 20px 0;
}

.toggle-option-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
}

.toggle-option-row:not(:last-child) {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.toggle-info {
    display: flex;
    flex-direction: column;
}

.toggle-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 6px;
}

.toggle-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Switch UI */
.switch-ui {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch-ui input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: 0.25s;
    border-radius: 24px;
}

.switch-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.25s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.switch-ui input:checked + .switch-slider {
    background-color: var(--primary);
}

.switch-ui input:checked + .switch-slider:before {
    transform: translateX(20px);
}

.model-badge {
    font-size: 0.75rem;
    font-weight: 700;
    background: var(--primary-soft);
    color: var(--primary);
    border: 1px solid var(--border-highlight);
    padding: 3px 10px;
    border-radius: 12px;
}

/* Action Footer */
.btn-generate-swap {
    width: 100%;
    padding: 16px 24px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-bright) 100%);
    border: none;
    border-radius: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 24px var(--primary-glow);
    transition: all 0.25s ease;
}

.btn-generate-swap:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px var(--primary-glow);
}

.btn-generate-swap:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.speed-hint-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.76rem;
    color: var(--text-muted);
    margin-top: 10px;
}

.speed-pill {
    color: var(--emerald);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Pipeline Progress Card */
.pipeline-progress-card {
    margin-top: 18px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    animation: fadeIn 0.3s ease;
}

.progress-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.stage-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
}

.stage-pct {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--primary);
}

.progress-bar-track {
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, #06b6d4 100%);
    border-radius: 10px;
    transition: width 0.35s ease;
}

.stage-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* RIGHT COLUMN: macOS 3-Dot Browser Frame & Dual Video Comparison Player */
.video-results-box {
    background: transparent;
    border: none;
    padding: 0;
}

.macos-window-frame {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.macos-titlebar {
    background: #0f172a;
    color: #cbd5e1;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.macos-traffic-lights {
    display: flex;
    align-items: center;
    gap: 8px;
}

.traffic-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.traffic-dot.red { background: #ff5f56; }
.traffic-dot.yellow { background: #ffbd2e; }
.traffic-dot.green { background: #27c93f; }

.macos-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #f8fafc;
    display: flex;
    align-items: center;
    gap: 8px;
}

.macos-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: #94a3b8;
}

.status-indicator-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
}

/* Viewport Body & Video Container */
.macos-viewport-body {
    padding: 18px;
    background: #090d16;
}

[data-theme="light"] .macos-viewport-body {
    background: #090d16; /* Always keep cinematic dark viewport for videos */
}

.video-player-container {
    position: relative;
    width: 100%;
    height: 480px;
    border-radius: 18px;
    overflow: hidden;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .video-player-container {
        height: 320px;
    }
    .video-page-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .video-player-container {
        height: 250px;
    }
    .floating-face-badge {
        width: 44px;
        height: 44px;
    }
    .curved-arrow-indicator svg {
        width: 32px;
        height: 32px;
    }
}

.video-stream-display {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Floating Circular Source Face ID Badge with Curved Indicator Arrow */
.floating-face-badge-wrap {
    position: absolute;
    bottom: 24px;
    left: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10;
    pointer-events: none;
}

.floating-face-badge {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #eab308;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6), 0 0 15px rgba(234, 179, 8, 0.4);
    overflow: hidden;
    background: #1e293b;
    flex-shrink: 0;
}

.floating-face-badge img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.curved-arrow-indicator {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.arrow-caption {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #eab308;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    padding: 2px 6px;
    border-radius: 6px;
    border: 1px solid rgba(234, 179, 8, 0.3);
}

/* Video Overlay Tags */
.video-overlay-tag {
    position: absolute;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    backdrop-filter: blur(10px);
    z-index: 5;
}

.video-overlay-tag.result-tag {
    top: 18px;
    left: 18px;
    background: rgba(109, 40, 217, 0.85);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.video-overlay-tag.audio-tag {
    top: 18px;
    right: 18px;
    background: rgba(15, 23, 42, 0.85);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Video Toolbar */
.video-player-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding: 10px 4px 4px;
    gap: 16px;
    flex-wrap: wrap;
}

.toolbar-left {
    display: flex;
    gap: 10px;
}

.btn-tool-action {
    background: rgba(255, 255, 255, 0.1);
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 10px 16px;
    border-radius: 14px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-tool-action:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-tool-action.active {
    background: var(--primary);
    border-color: var(--primary-light);
    color: #ffffff;
}

.btn-video-download {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 16px;
    font-size: 0.95rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
    transition: all 0.25s ease;
}

.btn-video-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.45);
}

.dl-badge {
    background: rgba(0, 0, 0, 0.25);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.05em;
}

/* Trust Banner */
.player-trust-banner {
    display: flex;
    justify-content: space-around;
    padding: 14px 0 0;
    margin-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.trust-pill {
    font-size: 0.78rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Interactive Movie & Pop-Culture Scene Carousel */
.video-presets-section {
    margin: 50px 0;
    padding: 36px 0;
    border-top: 1px solid var(--border-color);
}

.presets-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.presets-eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--primary);
    text-transform: uppercase;
    display: block;
    margin-bottom: 6px;
}

.presets-header-row h2 {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 6px;
}

.presets-header-row p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
}

.preset-tag-hint {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--emerald);
    background: rgba(16, 185, 129, 0.1);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.presets-carousel-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 992px) {
    .presets-carousel-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 580px) {
    .presets-carousel-grid {
        grid-template-columns: 1fr;
    }
}

.cinema-preset-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
}

.cinema-preset-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}

.cinema-preset-card.active {
    border-color: var(--primary);
    box-shadow: 0 8px 25px var(--primary-glow);
}

.preset-video-wrap {
    position: relative;
    width: 100%;
    height: 180px;
    background: #000;
    overflow: hidden;
}

.preset-video-wrap video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.preset-audio-pill {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.65);
    color: #ffffff;
    font-size: 0.72rem;
    padding: 3px 8px;
    border-radius: 12px;
    backdrop-filter: blur(4px);
}

.preset-category-label {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(15, 23, 42, 0.85);
    color: #f8fafc;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 8px;
    letter-spacing: 0.04em;
}

.preset-card-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.preset-card-body h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
}

.preset-card-body p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 14px;
}

.btn-try-preset {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-soft);
    border: none;
    padding: 8px 12px;
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    width: 100%;
}

.cinema-preset-card:hover .btn-try-preset,
.cinema-preset-card.active .btn-try-preset {
    background: var(--primary);
    color: #ffffff;
}

/* Video History Section */
.video-history-section {
    margin: 40px 0;
    padding: 30px 0 0;
    border-top: 1px solid var(--border-color);
}

.history-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.history-header-row h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

.btn-clear-history {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.82rem;
    padding: 6px 14px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-clear-history:hover {
    color: #ef4444;
    border-color: #ef4444;
}

.video-history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.history-empty-hint {
    grid-column: 1 / -1;
    text-align: center;
    padding: 36px 20px;
    background: var(--bg-card);
    border: 1px dashed var(--border-color);
    border-radius: 18px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.history-empty-hint i {
    font-size: 2rem;
    display: block;
    margin-bottom: 8px;
    color: var(--primary);
}

.video-history-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
}

.video-history-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.history-card-media {
    position: relative;
    width: 100%;
    height: 120px;
    background: #000;
}

.history-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.history-badge-time {
    position: absolute;
    bottom: 6px;
    left: 6px;
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    font-size: 0.68rem;
    padding: 2px 6px;
    border-radius: 6px;
}

.history-card-actions {
    padding: 8px 10px;
    display: flex;
    justify-content: flex-end;
}

.btn-history-dl {
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Webcam Capture Modal */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    width: 100%;
    max-width: 520px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    animation: zoomIn 0.25s ease;
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-close-modal {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    color: var(--text-muted);
    cursor: pointer;
}

.modal-body {
    padding: 24px;
    text-align: center;
}

.webcam-viewport {
    position: relative;
    width: 100%;
    height: 320px;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.webcam-viewport video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
}

.face-guide-oval {
    position: absolute;
    width: 160px;
    height: 220px;
    border: 2px dashed rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    pointer-events: none;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.25);
}

.modal-hint {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 12px;
    margin-bottom: 0;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-subtle);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    border: none;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Toast Notifications */
.toast-hub {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 2000;
}

.toast-pill {
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(10px);
    color: #f8fafc;
    padding: 12px 20px;
    border-radius: 30px;
    font-size: 0.88rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideInRight 0.3s ease;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.toast-pill.success {
    border-color: rgba(16, 185, 129, 0.4);
    color: #34d399;
}

.toast-pill.error {
    border-color: rgba(239, 68, 68, 0.4);
    color: #f87171;
}

.toast-pill.fade-out {
    opacity: 0;
    transform: translateY(10px);
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

.hidden {
    display: none !important;
}

.spinner-border-sm {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    vertical-align: -0.125em;
    border: 0.18em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   Video Face Swap Comprehensive SEO Content & Visual Modules
   ========================================================================== */

.vseo-section {
    padding: 64px 0;
    border-top: 1px solid var(--border-color);
}

.vseo-header {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 44px;
}

.vseo-eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    color: var(--primary);
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-soft);
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
    border: 1px solid var(--border-highlight);
}

.vseo-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.25;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

.vseo-header p {
    font-size: 1.02rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0;
}

/* 4-Step How-To Grid */
.how-to-video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 20px;
}

@media (max-width: 1024px) {
    .how-to-video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 580px) {
    .how-to-video-grid {
        grid-template-columns: 1fr;
    }
}

.vstep-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 26px 22px;
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
}

.vstep-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}

.vstep-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.vstep-num {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: var(--primary);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px var(--primary-glow);
}

.vstep-icon-wrap {
    font-size: 1.6rem;
    color: var(--primary);
}

.vstep-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 10px;
    line-height: 1.35;
}

.vstep-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 14px;
    flex: 1;
}

.vstep-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--emerald);
    background: rgba(16, 185, 129, 0.1);
    padding: 4px 10px;
    border-radius: 8px;
    align-self: flex-start;
}

/* Duration Engineering Stack */
.duration-stack-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

@media (max-width: 960px) {
    .duration-stack-grid {
        grid-template-columns: 1fr;
    }
}

.duration-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 22px;
    padding: 30px 26px;
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: all 0.25s ease;
}

.duration-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.duration-card.featured {
    border: 2px solid var(--primary);
    box-shadow: 0 10px 30px var(--primary-glow);
}

.duration-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--primary);
    background: var(--primary-soft);
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.duration-card h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 12px;
}

.duration-card p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 18px;
}

.duration-specs-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

.duration-specs-list li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.duration-specs-list li i {
    color: var(--emerald);
    font-size: 1rem;
}

/* Things to Know Accordion */
.things-to-know-accordion {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
}

.ttk-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s ease;
}

.ttk-item[open] {
    border-color: var(--primary);
}

.ttk-summary {
    padding: 20px 24px;
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    list-style: none;
}

.ttk-summary::-webkit-details-marker {
    display: none;
}

.ttk-summary i.bi-chevron-down {
    transition: transform 0.25s ease;
    color: var(--primary);
    font-size: 1.1rem;
}

.ttk-item[open] .ttk-summary i.bi-chevron-down {
    transform: rotate(180deg);
}

.ttk-content {
    padding: 0 24px 24px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    border-top: 1px solid var(--border-color);
    padding-top: 18px;
}

.ttk-content p {
    margin-bottom: 12px;
}

.ttk-content ul {
    padding-left: 20px;
    margin-bottom: 12px;
}

.ttk-content li {
    margin-bottom: 8px;
}

/* Quality Checklist (Do's & Don'ts) */
.quality-checklist-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

@media (max-width: 860px) {
    .quality-checklist-grid {
        grid-template-columns: 1fr;
    }
}

.quality-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 22px;
    padding: 28px;
    box-shadow: var(--shadow-sm);
}

.quality-card.dos {
    border-top: 4px solid var(--emerald);
}

.quality-card.donts {
    border-top: 4px solid var(--accent);
}

.quality-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
}

.quality-header h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
}

.quality-points-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.quality-point {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--text-secondary);
}

.quality-point i {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.quality-card.dos .quality-point i { color: var(--emerald); }
.quality-card.donts .quality-point i { color: var(--accent); }

.quality-point strong {
    color: var(--text-main);
}

/* Bento Use Cases Grid */
.bento-usecases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 992px) {
    .bento-usecases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .bento-usecases-grid {
        grid-template-columns: 1fr;
    }
}

.bento-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 26px 22px;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
}

.bento-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.bento-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.bento-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-highlight);
}

.bento-tag {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    background: var(--bg-subtle);
    padding: 4px 10px;
    border-radius: 8px;
}

.bento-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 10px;
}

.bento-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Specs Table Wrap */
.specs-table-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 22px;
    overflow-x: auto;
    box-shadow: var(--shadow-sm);
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.92rem;
}

.specs-table th {
    background: var(--bg-subtle);
    color: var(--text-main);
    font-weight: 800;
    padding: 16px 22px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.specs-table td {
    padding: 16px 22px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    line-height: 1.5;
}

.specs-table tr:last-child td {
    border-bottom: none;
}

.specs-table tr:hover td {
    background: var(--bg-subtle);
}

.specs-table td strong {
    color: var(--text-main);
    font-weight: 700;
}

/* Comparison Matrix Table */
.comparison-matrix-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 22px;
    overflow-x: auto;
    box-shadow: var(--shadow-md);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    font-size: 0.9rem;
}

.comparison-table th,
.comparison-table td {
    padding: 16px 18px;
    border-bottom: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
}

.comparison-table th:last-child,
.comparison-table td:last-child {
    border-right: none;
}

.comparison-table th {
    background: var(--bg-subtle);
    font-weight: 700;
    color: var(--text-main);
}

.comparison-table th.col-highlight,
.comparison-table td.col-highlight {
    background: var(--primary-soft);
    border-left: 2px solid var(--primary);
    border-right: 2px solid var(--primary);
    font-weight: 700;
    color: var(--primary);
}

.comparison-table tr:first-child th.col-highlight {
    border-top: 2px solid var(--primary);
}

.comparison-table tr:last-child td.col-highlight {
    border-bottom: 2px solid var(--primary);
}

.badge-winner {
    background: var(--primary);
    color: #ffffff;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
    display: inline-block;
    margin-top: 4px;
}

.text-success { color: var(--emerald) !important; font-size: 1.15rem; }
.text-danger { color: #ef4444 !important; font-size: 1.15rem; }

/* FAQ Accordion */
/* Modern FAQ Accordion */
.vfaq-accordion {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.vfaq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.vfaq-item:hover {
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.08);
    transform: translateY(-1px);
}

.vfaq-item[open] {
    border-color: var(--primary);
    box-shadow: 0 8px 26px rgba(99, 102, 241, 0.12);
    background: var(--bg-card);
}

.vfaq-summary {
    padding: 18px 22px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    user-select: none;
    list-style: none !important;
    transition: background 0.2s ease;
}

.vfaq-summary::-webkit-details-marker,
.vfaq-summary::marker,
.vfaq-item summary::-webkit-details-marker,
.vfaq-item summary::marker {
    display: none !important;
    content: "" !important;
}

.vfaq-question-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
    flex: 1;
}

.vfaq-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 800;
    flex-shrink: 0;
    letter-spacing: -0.02em;
    transition: all 0.25s ease;
}

.vfaq-item[open] .vfaq-badge {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 2px 8px var(--primary-glow);
}

.vfaq-q-text {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.4;
}

.vfaq-icon-pill {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.vfaq-item[open] .vfaq-icon-pill {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--primary);
    color: var(--primary);
    transform: rotate(180deg);
}

.vfaq-answer {
    padding: 0 24px 22px 68px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.72;
    border-top: none;
}

.vfaq-answer p {
    margin-bottom: 10px;
}

.vfaq-answer p:last-child {
    margin-bottom: 0;
}

@media (max-width: 640px) {
    .vfaq-summary {
        padding: 16px;
    }
    .vfaq-answer {
        padding: 0 16px 18px 16px;
    }
    .vfaq-badge {
        width: 28px;
        height: 28px;
        font-size: 0.74rem;
    }
    .vfaq-q-text {
        font-size: 0.95rem;
    }
}


/* Lateral Linking Architecture Ribbon */
.vlateral-section {
    background: var(--bg-subtle);
    padding: 44px 0;
    border-top: 1px solid var(--border-color);
}

.vlateral-header {
    text-align: center;
    margin-bottom: 24px;
}

.vlateral-header h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 6px;
}

.vlateral-header p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

.vlateral-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

@media (max-width: 992px) {
    .vlateral-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 580px) {
    .vlateral-grid {
        grid-template-columns: 1fr;
    }
}

.vlateral-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px 18px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.2s ease;
}

.vlateral-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.vlateral-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.vlateral-info {
    display: flex;
    flex-direction: column;
}

.vlateral-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-main);
}

.vlateral-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Hero Benefit Tags */
.hero-benefit-tags {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 16px auto 24px;
    flex-wrap: wrap;
}

.hbenefit-tag {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-main);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: var(--shadow-sm);
}

.hbenefit-tag i {
    color: var(--primary);
    font-size: 0.95rem;
}

/* ==========================================================================
   OUTSTANDING, EYE-CATCHING HERO SUITE (STUDIO & CINEMA EDITIONS)
   ========================================================================== */

/* 1. Universal Ambient Aurora Mesh Backdrops */
.hero-banner {
    position: relative;
    overflow: hidden;
}

.hero-aurora-glow,
.video-hero-aurora {
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 1200px;
    max-width: 100vw;
    height: 540px;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    filter: blur(80px);
    opacity: 0.75;
}

:root[data-theme="dark"] .hero-aurora-glow,
:root[data-theme="dark"] .video-hero-aurora {
    opacity: 0.55;
    filter: blur(95px);
}

.aurora-orb {
    position: absolute;
    border-radius: 50%;
    mix-blend-mode: multiply;
}

:root[data-theme="dark"] .aurora-orb {
    mix-blend-mode: screen;
}

.aurora-orb.orb-1 {
    top: 10%;
    left: 15%;
    width: 480px;
    height: 380px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.45) 0%, transparent 70%);
    animation: orbDrift1 14s ease-in-out infinite alternate;
}

.aurora-orb.orb-2 {
    top: 20%;
    right: 15%;
    width: 420px;
    height: 360px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.40) 0%, transparent 70%);
    animation: orbDrift2 18s ease-in-out infinite alternate;
}

.aurora-orb.orb-3 {
    bottom: 5%;
    left: 45%;
    width: 450px;
    height: 320px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.30) 0%, transparent 70%);
    animation: orbDrift3 12s ease-in-out infinite alternate;
}

@keyframes orbDrift1 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, 30px) scale(1.1); }
    100% { transform: translate(-30px, 20px) scale(0.95); }
}

@keyframes orbDrift2 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-45px, 35px) scale(1.08); }
    100% { transform: translate(25px, -20px) scale(0.92); }
}

@keyframes orbDrift3 {
    0% { transform: translate(0, 0) scale(0.95); }
    50% { transform: translate(30px, -25px) scale(1.12); }
    100% { transform: translate(-40px, 15px) scale(1); }
}

/* 2. Elevated Hero Grid Container */
.hero-grid {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(139, 92, 246, 0.25);
    box-shadow: 0 24px 70px -15px rgba(109, 40, 217, 0.16),
                0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

:root[data-theme="dark"] .hero-grid {
    background: rgba(15, 23, 42, 0.88);
    border-color: rgba(139, 92, 246, 0.35);
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.85),
                0 0 0 1px rgba(255, 255, 255, 0.08) inset,
                0 0 30px rgba(124, 58, 237, 0.12);
}

/* 3. Animated Shimmering Gradient Headline */
.gradient-text-animated {
    background: linear-gradient(135deg, #7c3aed 0%, #2563eb 30%, #06b6d4 60%, #ec4899 90%, #7c3aed 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShine 7s linear infinite;
    display: inline-block;
}

.gradient-text-cinema {
    background: linear-gradient(135deg, #8b5cf6 0%, #38bdf8 35%, #ec4899 70%, #f59e0b 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShine 7s linear infinite;
    display: inline-block;
}

@keyframes gradientShine {
    to { background-position: 200% center; }
}

/* 4. Creator Social Proof Strip */
.hero-social-proof-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 18px 0 24px;
    padding: 10px 16px;
    background: rgba(248, 250, 252, 0.85);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 99px;
    width: fit-content;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

:root[data-theme="dark"] .hero-social-proof-bar {
    background: rgba(15, 23, 42, 0.7);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.hero-social-proof-bar.cinema-proof {
    margin: 0 auto 24px;
}

.avatar-stack {
    display: flex;
    align-items: center;
}

.avatar-stack img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffffff;
    margin-left: -9px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
    transition: transform 0.2s ease;
}

:root[data-theme="dark"] .avatar-stack img {
    border-color: #0f172a;
}

.avatar-stack img:first-child {
    margin-left: 0;
}

.avatar-stack img:hover {
    transform: translateY(-2px) scale(1.15);
    z-index: 5;
}

.social-proof-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stars-rating {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    color: #f59e0b;
}

.rating-num {
    font-size: 11.5px;
    font-weight: 800;
    color: var(--text-main);
    margin-left: 4px;
}

.proof-tagline {
    font-size: 11.5px;
    color: var(--text-secondary);
    line-height: 1.2;
}

.proof-tagline strong {
    color: var(--text-main);
}

/* 5. Studio Frame & Showcase Enhancements */
.hero-studio-frame {
    position: relative;
    border: 1px solid rgba(139, 92, 246, 0.35);
    box-shadow: 0 20px 50px -10px rgba(109, 40, 217, 0.18),
                0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    overflow: hidden;
}

:root[data-theme="dark"] .hero-studio-frame {
    border-color: rgba(139, 92, 246, 0.45);
    box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.7),
                0 0 24px rgba(124, 58, 237, 0.16);
}

.hud-mesh-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 800;
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 3px 10px;
    border-radius: 99px;
    letter-spacing: 0.05em;
}

.mesh-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: livePulse 1.6s infinite;
}

/* Enhanced Laser Line */
.hero-laser-line {
    background: linear-gradient(180deg, #06b6d4, #ffffff, #a855f7);
    box-shadow: 0 0 14px #06b6d4, 0 0 24px rgba(168, 85, 247, 0.6);
}

.hero-laser-knob {
    background: #ffffff;
    border: 2px solid #7c3aed;
    color: #7c3aed;
    box-shadow: 0 0 16px rgba(124, 58, 237, 0.45);
}

/* 6. Video Face Swap Hero Cinema Showcase Component */
.video-hero-workspace {
    position: relative;
    padding-top: 24px;
}

.cinema-stage-card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.94) 0%, rgba(30, 27, 75, 0.92) 100%);
    border: 1px solid rgba(139, 92, 246, 0.35);
    border-radius: 28px;
    padding: 28px;
    margin: 28px 0 44px;
    box-shadow: 0 24px 70px -15px rgba(0, 0, 0, 0.8),
                0 0 35px rgba(124, 58, 237, 0.18);
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 28px;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.cinema-stage-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.18) 0%, transparent 70%);
    pointer-events: none;
}

@media (max-width: 992px) {
    .cinema-stage-card {
        grid-template-columns: 1fr;
    }
}

.cinema-player-box {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cinema-player-box video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cinema-live-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 99px;
}

.cinema-compare-btn {
    position: absolute;
    bottom: 14px;
    left: 14px;
    z-index: 4;
    background: rgba(124, 58, 237, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 99px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    user-select: none;
}

.cinema-compare-btn:hover {
    background: #7c3aed;
    transform: scale(1.04);
}

.cinema-scene-picker {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.scene-picker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.scene-picker-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 15px;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.scene-grid-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.scene-card-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.scene-card-item:hover,
.scene-card-item.active {
    background: rgba(124, 58, 237, 0.22);
    border-color: rgba(167, 139, 250, 0.6);
    transform: translateX(4px);
}

.scene-card-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.scene-thumb-wrap {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.scene-thumb-wrap video,
.scene-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scene-card-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.scene-card-name {
    font-size: 13.5px;
    font-weight: 700;
    color: #ffffff;
}

.scene-card-specs {
    font-size: 11px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-scene-load {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.18s ease;
}

.scene-card-item:hover .btn-scene-load,
.scene-card-item.active .btn-scene-load {
    background: #7c3aed;
    border-color: #8b5cf6;
    color: #ffffff;
}

/* Creative Compact Director Studio Header for Video Page */
.video-breadcrumb {
    margin-bottom: 10px;
}

.video-studio-hero-compact {
    text-align: center;
    max-width: 860px;
    margin: 0 auto 24px;
    position: relative;
    z-index: 2;
}

.hero-badge-strip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 12px;
}

.rec-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #ef4444;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 11px;
    border-radius: 99px;
    letter-spacing: 0.04em;
}

.rec-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 8px #ef4444;
    animation: recBlink 1.2s infinite;
}

@keyframes recBlink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.85); }
}

.cinema-spec-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 4px 10px;
    border-radius: 99px;
}

.cinema-spec-pill i {
    color: var(--primary);
}

.cinema-spec-pill.free {
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.08);
}

.cinema-spec-pill.free i {
    color: #10b981;
}

.cinema-spec-pill.speed {
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.3);
    background: rgba(245, 158, 11, 0.08);
}

.cinema-spec-pill.speed i {
    color: #f59e0b;
}

.video-hero-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--text-main);
    margin: 0 0 10px;
}

.cinema-glow-gradient {
    background: linear-gradient(135deg, #8b5cf6 0%, #38bdf8 35%, #ec4899 70%, #f59e0b 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShine 6s linear infinite;
    display: inline-block;
}

.video-hero-subtitle {
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--text-secondary);
    max-width: 660px;
    margin: 0 auto 18px;
}

.video-hero-subtitle strong {
    color: var(--text-main);
}

/* Quick Scene & Mode Ticker Bar */
.hero-quick-preset-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 6px 12px 6px 16px;
    border-radius: 99px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
    flex-wrap: wrap;
}

:root[data-theme="dark"] .hero-quick-preset-bar {
    background: rgba(15, 23, 42, 0.75);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.quick-preset-lbl {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    display: flex;
    align-items: center;
    gap: 5px;
}

.quick-scene-scroll {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.quick-scene-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    padding: 5px 12px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.18s ease;
}

.quick-scene-pill:hover,
.quick-scene-pill.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--primary-glow);
}

.qscene-icon {
    font-size: 13px;
}

.mode-toggle-inline {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    padding: 3px;
    border-radius: 99px;
}

.mode-pill-mini {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 99px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.18s ease;
}

.mode-pill-mini.active {
    background: var(--primary);
    color: #ffffff;
}

.mode-pill-mini:hover:not(.active) {
    color: var(--text-main);
}

.badge-mini-hot {
    font-size: 9px;
    font-weight: 800;
    background: #ef4444;
    color: #ffffff;
    padding: 1px 5px;
    border-radius: 99px;
}

/* ==========================================================================
   MULTIPLE FACE SWAP STUDIO STYLES (multi_app.css & multi-face components)
   ========================================================================== */

.multi-studio-section {
    position: relative;
    padding: 24px 0 60px;
    background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.08) 0%, transparent 60%);
}

.multi-studio-grid {
    display: grid;
    grid-template-columns: minmax(360px, 1.2fr) minmax(320px, 0.8fr);
    gap: 24px;
    align-items: start;
}

@media (max-width: 992px) {
    .multi-studio-grid {
        grid-template-columns: 1fr;
    }
}

/* Studio Canvas Stage Card */
.multi-stage-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl, 24px);
    padding: 22px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

:root[data-theme="dark"] .multi-stage-card {
    background: rgba(15, 23, 42, 0.85);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

.multi-stage-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}

.stage-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stage-icon-badge {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.stage-title {
    font-size: 16px;
    font-weight: 800;
    margin: 0;
    color: var(--text-main);
}

.stage-subtitle {
    font-size: 12px;
    color: var(--text-muted);
}

.stage-actions-bar {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-action-outline-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    line-height: 1;
    color: var(--text-main);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    white-space: nowrap;
    text-decoration: none;
    user-select: none;
}

.btn-action-outline-sm:hover {
    background: var(--bg-subtle);
    border-color: rgba(99, 102, 241, 0.4);
    color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.12);
}

.btn-action-outline-sm:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.btn-action-outline-sm i {
    font-size: 14px;
    line-height: 1;
    display: inline-block;
    transition: transform 0.25s ease;
}

.btn-action-outline-sm:hover i.bi-arrow-counterclockwise {
    transform: rotate(-180deg);
}

.btn-action-outline-sm:hover i.bi-arrow-left-right {
    transform: scale(1.15);
}

/* Distinct visual accent for 1-Click Mutual Swap button */
#btn-mutual-quick-swap {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(239, 68, 68, 0.05));
    border-color: rgba(245, 158, 11, 0.35);
    color: #b45309;
}

#btn-mutual-quick-swap:hover {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(239, 68, 68, 0.10));
    border-color: #f59e0b;
    color: #92400e;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.22);
}

:root[data-theme="dark"] .btn-action-outline-sm {
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

:root[data-theme="dark"] .btn-action-outline-sm:hover {
    background: rgba(51, 65, 85, 0.95);
    border-color: rgba(129, 140, 248, 0.5);
    color: #818cf8;
    box-shadow: 0 4px 14px rgba(129, 140, 248, 0.25);
}

:root[data-theme="dark"] #btn-mutual-quick-swap {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.4);
    color: #fbbf24;
}

:root[data-theme="dark"] #btn-mutual-quick-swap:hover {
    background: rgba(245, 158, 11, 0.22);
    border-color: #f59e0b;
    color: #fef3c7;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
}

/* Canvas & Dropzone Stage */
.multi-viewport-area {
    position: relative;
    width: 100%;
    min-height: 440px;
    max-height: 620px;
    border-radius: 18px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.multi-dropzone-view {
    width: 100%;
    height: 100%;
    min-height: 440px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px;
    border: 2px dashed rgba(99, 102, 241, 0.35);
    border-radius: 18px;
    background: rgba(99, 102, 241, 0.02);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.multi-dropzone-view:hover,
.multi-dropzone-view.drag-active {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.06);
    transform: scale(0.995);
}

.drop-icon-sphere {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(168, 85, 247, 0.15));
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 16px;
    animation: floatUpDown 3s ease-in-out infinite;
}

@keyframes floatUpDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.drop-primary-txt {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 6px;
}

.drop-secondary-txt {
    font-size: 13px;
    color: var(--text-muted);
    max-width: 380px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.drop-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 99px;
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    color: #fff;
    font-weight: 700;
    font-size: 13.5px;
    box-shadow: 0 4px 14px var(--primary-glow);
}

/* Canvas Wrap & Interactive Image Overlays */
.multi-canvas-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 440px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    overflow: hidden;
}

.multi-rendered-img {
    max-width: 100%;
    max-height: 600px;
    object-fit: contain;
    display: block;
    user-select: none;
}

.multi-face-overlay-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* On-Canvas Bounding Box Pins */
.face-pin-box {
    position: absolute;
    border: 2px solid #6366f1;
    border-radius: 10px;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.4), inset 0 0 12px rgba(99, 102, 241, 0.25);
    pointer-events: auto;
    cursor: pointer;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    animation: pulseBorder 2.5s infinite;
}

@keyframes pulseBorder {
    0%, 100% { box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.4), inset 0 0 8px rgba(99, 102, 241, 0.2); }
    50% { box-shadow: 0 0 0 5px rgba(99, 102, 241, 0.6), inset 0 0 16px rgba(99, 102, 241, 0.4); }
}

.face-pin-box:hover,
.face-pin-box.selected {
    border-color: #facc15;
    box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.6), inset 0 0 20px rgba(250, 204, 21, 0.35);
    z-index: 20;
    transform: scale(1.02);
}

.face-pin-box.inactive {
    border-color: rgba(148, 163, 184, 0.6);
    box-shadow: none;
    opacity: 0.6;
}

.face-pin-badge {
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    padding: 2px 8px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.face-pin-box.selected .face-pin-badge {
    background: #facc15;
    color: #0f172a;
    border-color: #facc15;
}

.face-pin-box.inactive .face-pin-badge {
    background: #475569;
    color: #cbd5e1;
}

.face-action-pill {
    font-size: 9.5px;
    opacity: 0.85;
    font-weight: 700;
}

/* Preset Picker Bar in Stage Footer */
.multi-stage-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 10px;
}

.preset-picker-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.preset-buttons-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.multi-preset-chip {
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s ease;
}

.multi-preset-chip:hover,
.multi-preset-chip.active {
    background: var(--primary-soft);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
}

/* Right Control Panel (Face Slots Drawer) */
.multi-controls-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl, 24px);
    padding: 22px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

:root[data-theme="dark"] .multi-controls-card {
    background: rgba(15, 23, 42, 0.85);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 14px;
}

.drawer-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.drawer-title-row h3 {
    font-size: 16px;
    font-weight: 800;
    margin: 0;
    color: var(--text-main);
}

.drawer-count-badge {
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 99px;
}

/* Mode Switch Tabs */
.multi-mode-tabs-container {
    display: flex;
    background: var(--bg-subtle);
    padding: 4px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    gap: 4px;
}

.multi-mode-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    border: none;
    background: transparent;
    border-radius: 9px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.18s ease;
}

.multi-mode-tab.active {
    background: var(--bg-card);
    color: var(--text-main);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

:root[data-theme="dark"] .multi-mode-tab.active {
    background: rgba(30, 41, 59, 0.9);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Drawer Slots Scroll Area */
.drawer-slots-scroll {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 480px;
    overflow-y: auto;
    padding-right: 4px;
}

.drawer-slots-scroll::-webkit-scrollbar {
    width: 5px;
}
.drawer-slots-scroll::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 99px;
}

/* Face Slot Card */
.face-slot-card {
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 14px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.face-slot-card:hover {
    border-color: rgba(99, 102, 241, 0.4);
    background: rgba(99, 102, 241, 0.02);
}

.face-slot-card.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-soft);
    background: rgba(99, 102, 241, 0.03);
}

.face-slot-card.disabled-slot {
    opacity: 0.6;
    background: transparent;
}

.slot-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.slot-identity-tag {
    display: flex;
    align-items: center;
    gap: 6px;
}

.badge-num {
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 6px;
}

.badge-gender-age {
    font-size: 11.5px;
    color: var(--text-muted);
    font-weight: 600;
}

.toggle-keep-swap {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-secondary);
}

.slot-card-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.face-thumb-col {
    flex: 1;
    display: flex;
    justify-content: center;
}

.thumb-frame {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.thumb-frame img {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
}

.original-frame img {
    border-color: #3b82f6;
}

.replacement-frame img {
    border-color: #10b981;
}

.thumb-caption {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--text-muted);
    max-width: 90px;
    text-align: center;
}

.kept-frame {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: rgba(100, 116, 139, 0.15);
    border: 2px dashed rgba(100, 116, 139, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.kept-badge-inner {
    font-size: 9.5px;
    font-weight: 800;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.2;
}

.swap-direction-icon {
    font-size: 18px;
    color: var(--primary);
}

/* Slot Action Area */
.slot-card-actions {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--border-color);
}

.btn-slot-upload {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.15s ease;
    margin-bottom: 8px;
}

.btn-slot-upload:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.quick-avatar-chips {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
}

.avatar-mini-chip {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    padding: 0;
    background: transparent;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.avatar-mini-chip:hover {
    transform: scale(1.15);
    border-color: var(--primary);
}

.avatar-mini-chip img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.field-micro-label {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 4px;
    display: block;
}

.form-select-sm {
    width: 100%;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-main);
    font-size: 12px;
    font-weight: 600;
}

/* Advanced Accordion */
.multi-accordion {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-subtle);
    padding: 10px 14px;
}

.multi-accordion summary {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.multi-accordion summary::-webkit-details-marker {
    display: none;
}

.multi-accordion-body {
    padding-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 12px;
}

.opt-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Primary Generation Action */
.btn-multi-primary {
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #9333ea 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(99, 102, 241, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn-multi-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(99, 102, 241, 0.55);
}

.btn-multi-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

.action-sub-hint {
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    margin: 4px 0 0;
}

/* Result Stage & Comparison Slider */
.multi-result-container {
    margin-top: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl, 24px);
    padding: 28px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.1);
}

:root[data-theme="dark"] .multi-result-container {
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(255, 255, 255, 0.15);
}

.result-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.result-title-group h3 {
    font-size: 20px;
    font-weight: 800;
    margin: 0;
    color: var(--text-main);
}

.result-title-group p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 2px 0 0;
}

.result-actions-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-result-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 99px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    font-weight: 800;
    font-size: 13.5px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

.btn-result-download:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.55);
}

/* Compare Canvas Viewport */
.compare-stage-viewport {
    position: relative;
    width: 100%;
    min-height: 480px;
    max-height: 650px;
    background: #000;
    border-radius: 18px;
    overflow: hidden;
    user-select: none;
}

.compare-img-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.compare-divider-bar {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: #ffffff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
    pointer-events: none;
}

.compare-handle-knob {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    cursor: ew-resize;
    z-index: 30;
}

.compare-badge-original,
.compare-badge-swapped {
    position: absolute;
    bottom: 16px;
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    pointer-events: none;
}

.compare-badge-original { left: 16px; }
.compare-badge-swapped { right: 16px; background: rgba(16, 185, 129, 0.85); }

/* Technical Stats Bar */
.result-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--border-color);
}

@media (max-width: 640px) {
    .result-stats-row {
        grid-template-columns: 1fr;
    }
}

.result-stat-pill {
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    border-radius: 12px;
    text-align: center;
}

.stat-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 2px;
}

.stat-value {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-main);
}

/* Toast Floating Notifications */
.toast-container-fixed {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.multi-toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 12px;
    background: #0f172a;
    color: #fff;
    font-size: 13.5px;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.multi-toast.toast-success { border-left: 4px solid #10b981; }
.multi-toast.toast-warning { border-left: 4px solid #f59e0b; }
.multi-toast.toast-error { border-left: 4px solid #ef4444; }
.multi-toast.toast-info { border-left: 4px solid #6366f1; }

.multi-toast.fade-out {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.35s ease;
}

/* ==========================================================================
   CONTENT SECTIONS & VISUAL SHOWCASE STYLING (Multi-Face & Cluster Pages)
   ========================================================================== */

/* 1. Universal Content Section Containers */
.content-section {
    padding: 72px 0;
    position: relative;
    border-top: 1px solid var(--border-color);
}

.content-section.bg-subtle-band {
    background: var(--bg-subtle);
}

:root[data-theme="dark"] .content-section.bg-subtle-band {
    background: rgba(15, 23, 42, 0.45);
}

.section-title-wrap {
    max-width: 840px;
    margin: 0 auto 48px;
    text-align: center;
}

.badge-sub-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 99px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 12px;
    border: 1px solid var(--border-highlight);
}

.section-h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.25;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

@media (max-width: 768px) {
    .section-h2 { font-size: 25px; }
}

.section-lead-p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 720px;
    margin: 0 auto;
}

/* 2. Step Cards (How It Works) */
.steps-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    position: relative;
}

@media (max-width: 900px) {
    .steps-grid-3 {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.step-card-modern {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 32px 28px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.step-card-modern:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.12);
}

:root[data-theme="dark"] .step-card-modern {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
}

:root[data-theme="dark"] .step-card-modern:hover {
    border-color: rgba(129, 140, 248, 0.5);
    box-shadow: 0 20px 50px rgba(99, 102, 241, 0.25);
}

.step-number-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 32px;
    font-weight: 900;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--primary);
    opacity: 0.25;
    line-height: 1;
}

.step-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(168, 85, 247, 0.15));
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
}

.step-h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 12px;
    line-height: 1.3;
}

.step-desc {
    font-size: 14.5px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* 3. The 4 Creative Modes Showcase (Visual Cards) */
.modes-quad-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

@media (max-width: 900px) {
    .modes-quad-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.mode-quad-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s ease;
    overflow: hidden;
}

.mode-quad-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.45);
    box-shadow: 0 20px 45px rgba(99, 102, 241, 0.1);
}

:root[data-theme="dark"] .mode-quad-card {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
}

.mode-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}

.mode-badge-pill {
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 11.5px;
    font-weight: 800;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(168, 85, 247, 0.15));
    border: 1px solid rgba(99, 102, 241, 0.35);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.mode-visual-banner {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 18px;
    height: 180px;
    background: #0f172a;
}

.mode-visual-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.mode-quad-card:hover .mode-visual-banner img {
    transform: scale(1.03);
}

.mode-visual-overlay-tag {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 99px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.mode-quad-card h4 {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 10px;
}

.mode-card-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 18px;
    flex-grow: 1;
}

.mode-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
}

.mode-tag-list span {
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-secondary);
}

/* 4. Specifications & Competitor Comparison Table */
.specs-table-wrapper,
.specs-table-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    overflow-x: auto;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.05);
}

:root[data-theme="dark"] .specs-table-wrapper,
:root[data-theme="dark"] .specs-table-wrap {
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 680px;
    font-size: 14px;
}

.specs-table th {
    background: var(--bg-subtle);
    color: var(--text-main);
    font-weight: 800;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.05em;
}

.specs-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.specs-table tr:last-child td {
    border-bottom: none;
}

.specs-table .highlight-col {
    background: rgba(99, 102, 241, 0.06);
    font-weight: 700;
    color: var(--text-main);
    border-left: 2px solid rgba(99, 102, 241, 0.35);
    border-right: 2px solid rgba(99, 102, 241, 0.35);
}

:root[data-theme="dark"] .specs-table .highlight-col {
    background: rgba(99, 102, 241, 0.12);
    border-left-color: rgba(129, 140, 248, 0.4);
    border-right-color: rgba(129, 140, 248, 0.4);
}

.badge-metric-win {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #10b981;
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 99px;
}

/* 5. Neural Vision Deep Dive Cards (Challenges & Solutions) */
.challenges-duo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

@media (max-width: 900px) {
    .challenges-duo-grid {
        grid-template-columns: 1fr;
    }
}

.challenge-deep-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 26px;
    display: flex;
    gap: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

.challenge-deep-card:hover {
    transform: translateY(-3px);
    border-color: rgba(99, 102, 241, 0.35);
}

:root[data-theme="dark"] .challenge-deep-card {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(255, 255, 255, 0.08);
}

.challenge-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px var(--primary-glow);
}

.challenge-text h3 {
    font-size: 17px;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 8px;
}

.challenge-text p {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 12px;
}

.solution-pill-tag {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 12.5px;
    color: var(--text-main);
    line-height: 1.5;
}

:root[data-theme="dark"] .solution-pill-tag {
    background: rgba(16, 185, 129, 0.15);
}

/* 6. Do's and Don'ts Best Practices Cards */
.dos-donts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

@media (max-width: 900px) {
    .dos-donts-grid {
        grid-template-columns: 1fr;
    }
}

.dos-column, .donts-column {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.04);
}

.dos-column {
    border: 1px solid rgba(16, 185, 129, 0.3);
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.03) 0%, var(--bg-card) 100%);
}

.donts-column {
    border: 1px solid rgba(239, 68, 68, 0.3);
    background: linear-gradient(180deg, rgba(239, 68, 68, 0.03) 0%, var(--bg-card) 100%);
}

:root[data-theme="dark"] .dos-column {
    background: rgba(6, 78, 59, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
}

:root[data-theme="dark"] .donts-column {
    background: rgba(127, 29, 29, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
}

.col-header-dos {
    font-size: 18px;
    font-weight: 800;
    color: #10b981;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(16, 185, 129, 0.2);
}

.col-header-donts {
    font-size: 18px;
    font-weight: 800;
    color: #ef4444;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(239, 68, 68, 0.2);
}

.guideline-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.guideline-list li {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

/* 7. Security & Ephemeral Privacy Banner */
.security-banner-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 32px;
    display: flex;
    align-items: center;
    gap: 28px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.04);
}

@media (max-width: 768px) {
    .security-banner-card {
        flex-direction: column;
        text-align: center;
    }
}

.shield-badge-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

.security-text-col h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 8px;
}

.security-text-col p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 16px;
}

.security-points-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.security-points-row span {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* 8. Modern FAQ Accordion */
.faq-accordion-wrap {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.faq-item:hover {
    border-color: rgba(99, 102, 241, 0.35);
}

:root[data-theme="dark"] .faq-item {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(255, 255, 255, 0.08);
}

.faq-question {
    padding: 18px 22px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-chevron {
    color: var(--text-muted);
    transition: transform 0.22s ease;
    font-size: 14px;
}

.faq-item[open] .faq-chevron {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-answer {
    padding: 0 22px 20px;
    font-size: 14.5px;
    color: var(--text-secondary);
    line-height: 1.65;
}

.faq-answer p {
    margin: 0;
}

/* 9. Hub Tools Navigation Grid */
.hub-tools-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 992px) {
    .hub-tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .hub-tools-grid {
        grid-template-columns: 1fr;
    }
}

.hub-tool-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    transition: all 0.22s ease;
    display: flex;
    flex-direction: column;
}

.hub-tool-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 16px 36px rgba(99, 102, 241, 0.12);
}

:root[data-theme="dark"] .hub-tool-card {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(255, 255, 255, 0.08);
}

.hub-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--primary-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 16px;
}

.hub-tool-card h4 {
    font-size: 17px;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 8px;
}

.hub-tool-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0 0 16px;
    flex-grow: 1;
}

.hub-link-cta {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Hub Grid & Security Badges Aliases */
.topical-hub-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 900px) {
    .topical-hub-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .topical-hub-grid {
        grid-template-columns: 1fr;
    }
}

.security-badges-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.security-badges-row span {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-subtle);
    padding: 6px 14px;
    border-radius: 99px;
    border: 1px solid var(--border-color);
}

/* ==========================================================================
   GIF Face Swap Studio & Meme Workspace Styles
   ========================================================================== */
.video-dropzone img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 16px;
    display: block;
}

.preset-video-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.face-chips-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.face-chip-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 11px 5px 6px;
    border-radius: 99px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.face-chip-btn:hover {
    border-color: var(--primary);
    transform: translateY(-1px);
}

.face-chip-btn.active {
    background: var(--primary-soft);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
}

.face-chip-img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.gif-mode-segmented {
    display: inline-flex;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 3px;
    gap: 3px;
}

.gif-mode-pill {
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.74rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 9px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.gif-mode-pill:hover:not(.active) {
    color: var(--text-main);
    background: var(--bg-subtle);
}

.gif-mode-pill.active {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 2px 8px var(--primary-glow);
}

.gif-split-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
    height: 100%;
    padding: 10px;
    align-items: center;
}

.gif-split-pane {
    position: relative;
    height: 100%;
    border-radius: 14px;
    overflow: hidden;
    background: #050811;
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gif-split-pane img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.gif-split-label {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 99px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    background: rgba(15, 23, 42, 0.85);
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
}

.gif-split-label.swapped {
    background: rgba(109, 40, 217, 0.88);
    color: #ffffff;
}

.gif-stats-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    align-items: center;
    justify-content: space-between;
}

.gif-stats-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.gif-stat-pill {
    font-size: 0.74rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.gif-stat-pill.emerald {
    background: rgba(16, 185, 129, 0.14);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.3);
}

.gif-stat-pill.discord {
    background: rgba(88, 101, 242, 0.18);
    color: #a5b4fc;
    border-color: rgba(88, 101, 242, 0.35);
}

.drawer-group {
    margin-bottom: 18px;
}

.drawer-title {
    font-weight: 800;
    font-size: 1rem;
    color: var(--text-main);
}

.action-footer {
    margin-top: 16px;
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-indicator-text {
    font-weight: 700;
    letter-spacing: 0.04em;
}

.presets-nav-hints {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-brand-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Trusted Logos Grid & Cards */
.trusted-logos-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    margin-top: 28px;
}

@media (max-width: 1024px) {
    .trusted-logos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .trusted-logos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.trusted-badge-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 18px 14px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: all 0.25s ease;
}

.trusted-badge-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.trusted-badge-card i {
    font-size: 1.8rem;
    margin-bottom: 4px;
}

.trusted-badge-card strong {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
}

.trusted-badge-card span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Pick Your Swap Mode Format Tags */
.mode-format-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0 14px;
}

.mode-tag {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.mode-tag:hover {
    color: var(--text-main);
    border-color: var(--primary-light);
}

.mode-tag.active {
    background: rgba(99, 102, 241, 0.18);
    border-color: var(--primary);
    color: var(--primary-light);
}

/* ==========================================================================
   Multi-Actor Video Face Swap Studio & Section Utilities (v7.8)
   ========================================================================== */
.vsection {
    padding: 64px 0;
}

.vsection-alt {
    background: var(--bg-subtle);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.vsection-header {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 42px;
}

.vsection-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    padding: 6px 14px;
    border-radius: 99px;
    margin-bottom: 14px;
}

.vsection-title {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.25;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

.vsection-lead {
    font-size: 1.02rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0 auto;
}

.vspecs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}

.vspec-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 26px 24px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.vspec-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-3px);
}

.vspec-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.12);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 16px;
}

.vspec-card h3 {
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 10px;
}

.vspec-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0;
}

.vsteps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.vstep-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.12);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 14px;
}

.vtable-wrap {
    overflow-x: auto;
    border-radius: 18px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.05);
}

.vcomp-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
    font-size: 0.92rem;
}

.vcomp-table th,
.vcomp-table td {
    padding: 15px 18px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.vcomp-table th {
    background: var(--bg-subtle);
    font-weight: 800;
    color: var(--text-main);
}

.vcomp-table .highlight-col {
    background: rgba(99, 102, 241, 0.08);
    color: var(--text-main);
}

.vfaq-list {
    max-width: 880px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.vfaq-body {
    padding-top: 12px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.68;
}

/* Multi-Video Drawer & Overlay Utilities */
.loading-overlay-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    z-index: 30;
    color: #ffffff;
}

.spinner-ring {
    width: 42px;
    height: 42px;
    border: 3px solid rgba(255, 255, 255, 0.25);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spinRing 0.85s linear infinite;
}

@keyframes spinRing {
    to { transform: rotate(360deg); }
}

.loader-txt {
    font-size: 0.9rem;
    font-weight: 600;
    color: #f8fafc;
    margin: 0;
}

.empty-drawer-placeholder {
    padding: 28px 18px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.face-num {
    font-weight: 800;
    font-size: 0.72rem;
}

.mutual-selector-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.custom-upload-wrap {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
}

.multi-action-area {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.slider-blend-wrap {
    width: 100%;
}

.form-range {
    width: 100%;
    accent-color: var(--primary);
    cursor: pointer;
}

.badge-success-glow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.74rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 99px;
    background: rgba(16, 185, 129, 0.14);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.results-card {
    border-radius: 20px;
}

.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    z-index: 998;
    display: none;
}

.drawer-backdrop.show {
    display: block;
}

/* Flex & Spacing Micro-Utilities */
.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: 8px; }
.fw-bold { font-weight: 700; }
.text-center { text-align: center; }
.text-xs { font-size: 0.78rem; }
.text-main { color: var(--text-main); }
.text-muted { color: var(--text-muted); }
.text-warning { color: #f59e0b; }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-2 { padding-top: 8px; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 18px; }
.mb-5 { margin-bottom: 28px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }

/* ============================================================================
   MEME FACE SWAP & LIVE CAPTION STUDIO STYLES
   ============================================================================ */

/* 1. Target Meme Template Stage & Face Overlay Layer */
.meme-stage-box {
    position: relative;
    width: 100%;
    min-height: 210px;
    max-height: 295px;
    border-radius: 16px;
    border: 1.5px dashed var(--border-color);
    background: var(--bg-soft);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.meme-stage-box.drag-over {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

.meme-stage-canvas-inner {
    position: relative;
    width: 100%;
    height: 100%;
    max-height: 285px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f172a;
}

.meme-stage-canvas-inner img {
    width: 100%;
    max-height: 280px;
    object-fit: contain;
    display: block;
}

.meme-face-overlay-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 4;
}

.meme-face-overlay-layer .face-bbox-marker {
    pointer-events: auto;
}

.meme-stage-loader {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 10;
}

/* 2. Character Face Slots Drawer & Count Pill */
.cast-count-pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 9px;
    margin-left: 6px;
    border-radius: 99px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 800;
}

.meme-faces-drawer-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 235px;
    overflow-y: auto;
    padding-right: 4px;
}

.meme-mutual-banner,
.meme-clone-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--primary-soft);
    border: 1px solid rgba(99, 102, 241, 0.25);
    color: var(--text-main);
    font-size: 0.82rem;
    line-height: 1.45;
}

.meme-mutual-banner i,
.meme-clone-banner i {
    font-size: 1.2rem;
    color: var(--primary);
    flex-shrink: 0;
}

.meme-slot-card {
    background: var(--bg-soft);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 10px 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.meme-slot-card.active {
    border-color: var(--primary);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.12);
}

.meme-slot-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.meme-slot-identity {
    display: flex;
    align-items: center;
    gap: 9px;
}

.meme-slot-num {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.74rem;
    font-weight: 800;
    flex-shrink: 0;
}

.meme-slot-thumb {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    object-fit: cover;
    border: 1.5px solid var(--border-color);
    flex-shrink: 0;
}

.meme-slot-meta {
    display: flex;
    flex-direction: column;
}

.meme-slot-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-main);
}

.meme-slot-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.meme-slot-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.meme-slot-Assigned-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 3px 8px 3px 4px;
    border-radius: 99px;
}

.meme-slot-source-img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.meme-slot-source-lbl {
    font-size: 0.73rem;
    font-weight: 700;
    color: var(--emerald);
    max-width: 85px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.meme-slot-clear {
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.72rem;
    padding: 2px;
    display: inline-flex;
    align-items: center;
}

.meme-slot-clear:hover {
    color: #ef4444;
}

.meme-slot-chips-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 6px;
    border-top: 1px dashed var(--border-color);
}

.meme-quick-faces {
    display: flex;
    align-items: center;
    gap: 6px;
}

.meme-mini-chip {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    padding: 0;
    border: 2px solid var(--border-color);
    background: transparent;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.meme-mini-chip:hover {
    transform: scale(1.1);
    border-color: var(--primary);
}

.meme-mini-chip.active {
    border-color: var(--emerald);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.28);
}

.meme-mini-chip img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.meme-slot-upload-btns {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 3. Built-In Live Meme Caption & Typography Studio */
.meme-caption-studio-box {
    background: var(--bg-soft);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 12px 14px;
}

.meme-text-inputs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

@media (max-width: 640px) {
    .meme-text-inputs-grid {
        grid-template-columns: 1fr;
    }
}

.meme-input-field-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.meme-input-field-wrap label {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.meme-caption-input {
    width: 100%;
    padding: 8px 11px;
    border-radius: 10px;
    border: 1.5px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-main);
    font-size: 0.84rem;
    font-weight: 700;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.meme-caption-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.meme-typography-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 8px;
    border-top: 1px dashed var(--border-color);
}

.meme-typo-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.typo-lbl {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.meme-color-swatches {
    display: flex;
    align-items: center;
    gap: 6px;
}

.meme-color-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid rgba(15, 23, 42, 0.25);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.meme-color-dot:hover {
    transform: scale(1.12);
}

.meme-color-dot.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 2.5px var(--primary-glow);
    transform: scale(1.12);
}

.meme-size-group {
    flex: 1;
    min-width: 170px;
    justify-content: flex-end;
}

.meme-range-slider {
    width: 75px;
    accent-color: var(--primary);
    cursor: pointer;
}

.meme-caps-check {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--text-main);
    cursor: pointer;
    user-select: none;
    padding: 3px 7px;
    border-radius: 6px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

/* 4. Right Column: Live HTML5 Meme Compositor Canvas & GIF Caption Overlay */
.meme-output-viewport {
    min-height: 410px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0b0f19;
    position: relative;
}

.meme-single-output-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.meme-live-canvas {
    max-width: 100%;
    max-height: 470px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 8px;
}

.meme-live-gif-caption {
    position: absolute;
    left: 16px;
    right: 16px;
    text-align: center;
    font-family: 'Impact', 'Anton', 'Arial Black', sans-serif;
    font-size: 1.75rem;
    font-weight: 900;
    line-height: 1.15;
    color: #ffffff;
    text-shadow:
        -2px -2px 0 #000,
         2px -2px 0 #000,
        -2px  2px 0 #000,
         2px  2px 0 #000,
         0px  3px 6px rgba(0,0,0,0.75);
    pointer-events: none;
    z-index: 6;
    word-wrap: break-word;
}

.meme-live-gif-caption.top {
    top: 14px;
}

.meme-live-gif-caption.bottom {
    bottom: 14px;
}

.meme-export-toolbar {
    flex-wrap: wrap;
    gap: 10px;
}

.meme-export-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.btn-copy-discord {
    background: rgba(88, 101, 242, 0.14) !important;
    color: #5865F2 !important;
    border: 1px solid rgba(88, 101, 242, 0.35) !important;
    font-weight: 700 !important;
}

.btn-copy-discord:hover {
    background: #5865F2 !important;
    color: #ffffff !important;
}




/* =============================================================================
   GLOBAL MASTER ABOVE-THE-FOLD VIEWPORT OPTIMIZATIONS (PC & MOBILE)
   Ensures Header + Tool Dropzones + Actions + Preview Canvas fit Above-The-Fold
   ============================================================================= */

/* 1. Global Desktop Compact Hero Workspace (min-width: 992px) */
@media (min-width: 992px) {
    .video-hero-workspace,
    .multi-studio-section,
    .hero-banner {
        padding-top: 10px !important;
        padding-bottom: 16px !important;
    }
    .video-breadcrumb,
    .breadcrumb-trail {
        margin-bottom: 4px !important;
        font-size: 0.72rem !important;
    }
    .hero-badge-strip {
        margin-bottom: 4px !important;
        gap: 6px !important;
    }
    .cinema-spec-pill,
    .rec-live-badge {
        font-size: 0.66rem !important;
        padding: 2px 8px !important;
    }
    .video-hero-title,
    .hero-grid h1 {
        font-size: clamp(1.2rem, 2.2vw, 1.55rem) !important;
        line-height: 1.16 !important;
        margin-bottom: 3px !important;
    }
    .video-hero-subtitle,
    .hero-subtitle {
        font-size: 0.82rem !important;
        line-height: 1.35 !important;
        max-width: 860px !important;
        margin: 0 auto 6px !important;
    }
    .hero-quick-preset-bar {
        margin-top: 4px !important;
        padding: 4px 12px !important;
    }
    .quick-preset-lbl {
        font-size: 0.7rem !important;
    }
    .quick-scene-pill {
        padding: 3px 9px !important;
        font-size: 0.72rem !important;
    }
    .qscene-avatar {
        width: 18px !important;
        height: 18px !important;
    }

    /* Grids & Cards */
    .video-workspace-grid,
    .multi-studio-grid,
    .cinema-studio-grid {
        display: grid !important;
        grid-template-columns: 1fr 1.05fr !important;
        gap: 14px !important;
        margin-top: 8px !important;
        margin-bottom: 8px !important;
        align-items: stretch !important;
    }
    .video-controls-box,
    .controls-card,
    .results-card,
    .multi-stage-card,
    .cinema-glass-card {
        padding: 12px 14px !important;
        border-radius: 14px !important;
    }
    .panel-header-badge {
        font-size: 0.7rem !important;
        margin-bottom: 6px !important;
        padding-bottom: 4px !important;
    }
    .upload-step-header {
        margin-bottom: 3px !important;
    }
    .upload-step-label {
        font-size: 0.68rem !important;
    }
    .meme-stage-box,
    .upload-empty,
    .ingest-card {
        padding: 6px 8px !important;
        border-radius: 8px !important;
    }
    .ingest-thumb-wrap {
        height: 72px !important;
    }
    .macos-window-frame,
    .macos-preview-viewport {
        border-radius: 12px !important;
    }
    .macos-titlebar,
    .macos-viewport-header {
        padding: 4px 10px !important;
        font-size: 0.7rem !important;
    }
    .celeb-interactive-slider,
    .head-slider-container {
        height: 310px !important;
        border-radius: 10px !important;
    }
    .btn-cinema-swap,
    .btn-action-primary {
        padding: 8px 14px !important;
        font-size: 0.85rem !important;
        border-radius: 8px !important;
    }
    .btn-action-secondary {
        padding: 8px 12px !important;
        font-size: 0.8rem !important;
        border-radius: 8px !important;
    }
}

/* 2. Global Mobile Above-The-Fold Layout (max-width: 991px) */
@media (max-width: 991px) {
    .video-hero-workspace,
    .multi-studio-section,
    .hero-banner {
        padding-top: 6px !important;
        padding-bottom: 10px !important;
    }
    .video-breadcrumb,
    .breadcrumb-trail {
        font-size: 0.66rem !important;
        margin-bottom: 2px !important;
        white-space: nowrap !important;
        overflow-x: auto !important;
    }
    .hero-badge-strip {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        gap: 4px !important;
        margin-bottom: 3px !important;
        padding-bottom: 2px !important;
        justify-content: flex-start !important;
    }
    .video-hero-title,
    .hero-grid h1 {
        font-size: 1.15rem !important;
        line-height: 1.18 !important;
        margin: 0 0 2px !important;
    }
    .video-hero-subtitle,
    .hero-subtitle {
        font-size: 0.72rem !important;
        line-height: 1.25 !important;
        margin: 0 auto 4px !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }
    .hero-quick-preset-bar {
        margin-top: 2px !important;
        padding: 3px 8px !important;
        border-radius: 16px !important;
    }
    .quick-preset-lbl {
        font-size: 0.65rem !important;
    }
    .quick-scene-pill {
        padding: 2px 7px !important;
        font-size: 0.68rem !important;
    }
    .qscene-avatar {
        width: 16px !important;
        height: 16px !important;
    }

    /* Mobile Workspace Grid */
    .video-workspace-grid,
    .multi-studio-grid,
    .cinema-studio-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 6px !important;
        margin-top: 6px !important;
        margin-bottom: 6px !important;
    }
    .video-controls-box,
    .controls-card {
        padding: 8px 10px !important;
        border-radius: 12px !important;
    }
    .upload-empty,
    .meme-stage-box {
        height: 54px !important;
        padding: 4px !important;
    }
    .upload-icon-ring {
        width: 22px !important;
        height: 22px !important;
        font-size: 0.7rem !important;
    }
    .upload-title {
        font-size: 0.62rem !important;
    }
    .upload-sub {
        display: none !important;
    }
    .celeb-interactive-slider,
    .head-slider-container {
        height: 205px !important;
        border-radius: 8px !important;
    }
    .btn-cinema-swap,
    .btn-action-primary {
        padding: 7px 12px !important;
        font-size: 0.8rem !important;
        border-radius: 8px !important;
    }
    .btn-action-secondary {
        padding: 7px 10px !important;
        font-size: 0.76rem !important;
        border-radius: 8px !important;
    }
}


/* =============================================================================
   POST-TOOL SPECIFICATION & TRUST BADGE STRIP COMPONENT
   Rendered prominently right below the interactive workspace tool on all pages
   ============================================================================= */
.post-tool-badge-strip {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px auto 14px;
    padding: 8px 18px;
    background: #ffffff;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 99px;
    width: fit-content;
    max-width: 100%;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
    position: relative;
    z-index: 2;
}

:root[data-theme="dark"] .post-tool-badge-strip {
    background: rgba(15, 23, 42, 0.85);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.post-tool-badge-strip .hero-badge-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

@media (max-width: 768px) {
    .post-tool-badge-strip {
        border-radius: 14px;
        padding: 6px 10px;
        margin: 12px auto 8px;
        width: 100%;
        overflow-x: auto;
        justify-content: flex-start;
    }
    .post-tool-badge-strip .hero-badge-strip {
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 6px;
        white-space: nowrap;
    }
}


/* =============================================================================
   MASTER 100% MOBILE RESPONSIVENESS MODULE
   Guarantees zero horizontal overflow, flawless single-column card stacking,
   touch-friendly table scrolling, bounded KaTeX equations, and crisp typography
   across ALL mobile devices (320px, 360px, 375px, 390px, 414px, 430px up to 768px)
   ============================================================================= */

/* Universal mobile viewport boundaries */
html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100% !important;
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
    -webkit-text-size-adjust: 100%;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: border-box;
}

/* Universal media and background glow safety */
img, video, canvas, iframe, svg {
    max-width: 100% !important;
    height: auto;
}

.aurora-orb, .orb-1, .orb-2, .orb-3, .hero-aurora-glow, .video-hero-aurora {
    max-width: 100vw !important;
    overflow: hidden !important;
}

/* All table scrolling wrappers across templates */
.vtable-wrap,
.vtable-scroll-wrap,
.spec-table-wrap,
.table-responsive {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    display: block !important;
    position: relative !important;
    margin: 20px 0 !important;
}

/* Data / Comparison tables */
.vcomp-table,
.semantic-spec-table {
    width: 100% !important;
    min-width: 520px !important;
    border-collapse: collapse !important;
}

/* KaTeX and formula containers */
.formula-box,
.vmath-eq,
.katex-display,
.katex {
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
}

/* Preformatted code blocks */
pre, code {
    max-width: 100% !important;
    overflow-x: auto !important;
    word-break: break-word !important;
}

/* Master Mobile Media Query: Tablet & Mobile (<= 768px) */
@media (max-width: 768px) {
    /* Section & Container Padding */
    .vsection,
    .deep-dive-section {
        padding: 32px 0 !important;
    }
    .vcontainer,
    .container {
        padding-left: 16px !important;
        padding-right: 16px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Section Typography */
    .vtitle,
    .section-title,
    .vsection-title {
        font-size: clamp(1.22rem, 4.8vw, 1.55rem) !important;
        line-height: 1.25 !important;
        word-break: break-word !important;
        margin-bottom: 8px !important;
    }
    .vlead,
    .section-lead,
    .vsection-lead {
        font-size: 0.88rem !important;
        line-height: 1.5 !important;
        margin-bottom: 18px !important;
    }
    .veyebrow,
    .section-eyebrow {
        font-size: 0.74rem !important;
        letter-spacing: 0.05em !important;
    }
    
    /* BLUF Key Takeaways Box */
    .vbluf-box {
        padding: 14px 16px !important;
        border-radius: 0 12px 12px 0 !important;
        margin: 16px 0 20px !important;
        box-sizing: border-box !important;
    }
    .vbluf-title {
        font-size: 0.95rem !important;
        margin-bottom: 6px !important;
    }
    .vbluf-text {
        font-size: 0.84rem !important;
        line-height: 1.55 !important;
    }
    
    /* Deep Content Grids -> Strict Single-Column Stacking */
    .vpassage-grid,
    .vcite-grid,
    .vcard-grid,
    .vcard-grid-2,
    .vcard-grid-3,
    .vcard-grid-4,
    .vhub-grid,
    .vgrid-2,
    .vgrid-3,
    .vgrid-4,
    .use-cases-grid,
    .advantages-grid-6,
    .testimonials-grid,
    .more-tools-grid,
    .kg-pillars-row,
    .pipeline-steps-grid,
    .steps-grid-3,
    .steps-grid-4,
    .modes-quad-grid,
    .challenges-duo-grid,
    .dos-donts-grid,
    .visual-equation-card,
    .photo-qds-grid,
    .bento-usecases-grid,
    .vlateral-grid,
    .duration-stack-grid,
    .quality-checklist-grid,
    .results-actions-grid,
    .celeb-dual-inputs,
    .head-dual-inputs,
    .slot-upload-btn-row,
    .trivia-options,
    .engine-cards-grid,
    .sbs-viewport {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }
    
    /* Card Padding & Word Breaking */
    .vpassage-card,
    .vcite-card,
    .vcard,
    .vstep-card,
    .vstep-box {
        padding: 16px !important;
        word-break: break-word !important;
        box-sizing: border-box !important;
        width: 100% !important;
    }
    .vpassage-title {
        font-size: 1.02rem !important;
    }
    .vpassage-desc {
        font-size: 0.85rem !important;
        line-height: 1.5 !important;
    }
    .vcite-title {
        font-size: 0.92rem !important;
    }
    .vcite-meta,
    .vcite-doi {
        font-size: 0.78rem !important;
        word-break: break-all !important;
    }
    
    /* Comparison / Specification Data Tables */
    .vcomp-table {
        min-width: 520px !important;
        font-size: 0.82rem !important;
    }
    .vcomp-table th,
    .vcomp-table td {
        padding: 9px 12px !important;
    }
    
    /* FAQ Accordions */
    .vfaq-list {
        gap: 10px !important;
        width: 100% !important;
    }
    .vfaq-item {
        border-radius: 12px !important;
    }
    .vfaq-question,
    .vfaq-trigger,
    .vfaq-item summary {
        padding: 13px 16px !important;
        font-size: 0.9rem !important;
        min-height: 44px !important; /* Touch target minimum */
        box-sizing: border-box !important;
        display: flex !important;
        align-items: center !important;
    }
    .vfaq-answer,
    .vfaq-content,
    .vfaq-item > div {
        padding: 0 16px 14px !important;
        font-size: 0.85rem !important;
        line-height: 1.55 !important;
    }
    
    /* Post-tool Specification Badges */
    .post-tool-badge-strip {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        justify-content: flex-start !important;
        padding: 6px 10px !important;
        border-radius: 14px !important;
        margin: 12px auto 8px !important;
    }
    .post-tool-badge-strip .hero-badge-strip {
        flex-wrap: nowrap !important;
        white-space: nowrap !important;
        gap: 6px !important;
    }
    
    /* Quick Presets Bar */
    .hero-quick-preset-bar {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        flex-wrap: nowrap !important;
        padding-bottom: 4px !important;
    }
    
    /* Footer Multi-Column to Single Column */
    .footer-grid-4,
    .footer-top-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
}

/* Compact Mobile Breakpoint: Narrow Phones (<= 480px, down to 320px) */
@media (max-width: 480px) {
    .vcontainer,
    .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    
    .vtitle,
    .section-title,
    .vsection-title {
        font-size: 1.22rem !important;
    }
    
    .vpassage-card,
    .vcite-card {
        padding: 14px !important;
    }
    
    .vbluf-box {
        padding: 12px 14px !important;
    }
    
    .vcomp-table {
        min-width: 480px !important;
        font-size: 0.78rem !important;
    }
    .vcomp-table th,
    .vcomp-table td {
        padding: 8px 10px !important;
    }
}
