/* ==============================================================
   YouTube Dubbing Master Design System (css/style.css)
   Ultra-Glassmorphic Obsidian, Dual-Chroma Violet/Pink & Specular Glass
   ============================================================== */
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@200;300;400;500;600;700;800&family=Geist+Mono:wght@400;500;600&display=swap');

:root {
    /* Cosmic Obsidian Base */
    --bg-color: #08060e;
    --bg-secondary: #0e0c18;
    --surface-card: radial-gradient(130% 130% at 50% 0%, rgba(30, 26, 48, 0.84) 0%, rgba(14, 12, 24, 0.95) 100%);
    --surface-card-hover: radial-gradient(130% 130% at 50% 0%, rgba(42, 36, 66, 0.92) 0%, rgba(18, 15, 30, 0.98) 100%);

    /* Hairline & Specular Borders */
    --border-color: rgba(255, 255, 255, 0.12);
    --border-subtle: rgba(255, 255, 255, 0.07);
    --border-hover: rgba(236, 72, 153, 0.45);
    --card-specular: inset 0 1px 1px rgba(255, 255, 255, 0.18);

    /* Extension Palette Accents */
    --accent-purple: #c084fc;
    --primary-purple: #a855f7;
    --dark-purple: #9333ea;
    --deep-purple: #7928ca;
    --youtube-dubbing-pink: #ec4899;
    --youtube-dubbing-pink-light: #f0abfc;
    --youtube-dubbing-rose: #db2777;
    --youtube-dubbing-emerald: #10b981;

    /* Typographic Tones */
    --color: #a1a1aa;
    --color-light: #f4f4f5;
    --color-white: #ffffff;
    --btn-hover-color: rgba(236, 72, 153, 0.12);

    /* Gradients */
    --brand-gradient: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    --btn-gradient: linear-gradient(135deg, #9333ea 0%, #a855f7 50%, #db2777 100%);
}

* {
    box-sizing: border-box;
    font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    scrollbar-width: thin;
    scrollbar-color: rgba(168, 85, 247, 0.35) var(--bg-color);
    -webkit-tap-highlight-color: transparent !important;
}

html {
    background-color: var(--bg-color);
    color: var(--color);
    scroll-behavior: smooth;
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    background-image:
        radial-gradient(120% 80% at 50% 0%, rgba(147, 51, 234, 0.18) 0%, transparent 60%),
        radial-gradient(100% 60% at 85% 15%, rgba(236, 72, 153, 0.12) 0%, transparent 55%),
        radial-gradient(80% 50% at 10% 40%, rgba(88, 28, 135, 0.12) 0%, transparent 50%);
    background-repeat: no-repeat;
    color: var(--color);
    overflow-x: hidden;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.hidden {
    display: none !important;
}

.noselect {
    user-select: none;
}

/* ==============================================================
      Typography & Global Headings
      ============================================================== */
h1,
h2,
h3,
h4 {
    color: var(--color-white);
    font-weight: 700;
    letter-spacing: -0.025em;
    margin: 0;
}

h1 {
    font-size: 54px;
    line-height: 1.08;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #ffffff 30%, #f0abfc 75%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 38px;
    line-height: 1.2;
}

p {
    line-height: 1.65;
    font-weight: 300;
    margin: 0;
}

a {
    text-decoration: none;
    color: var(--color-light);
    transition: color 0.2s ease;
}

a:hover {
    color: var(--youtube-dubbing-pink-light);
}

/* Eliminate browser button flicker */
button,
.tab-btn,
.demo-switcher div,
.faq-question,
.btn-full,
.btn-border,
.profile-btn {
    outline: none !important;
    border: none;
    background: transparent;
    font: inherit;
    cursor: pointer;
}

button:focus,
button:focus-visible,
button:active,
.tab-btn:focus,
.tab-btn:focus-visible,
.tab-btn:active,
.demo-switcher div:focus,
.demo-switcher div:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

/* ==============================================================
      Loaders & Spinners
      ============================================================== */
.loader {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-block;
    border: 2.5px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--youtube-dubbing-pink-light);
    box-sizing: border-box;
    animation: youtubeDubbingSpin 0.75s linear infinite;
    vertical-align: middle;
}

@keyframes youtubeDubbingSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ==============================================================
      Buttons & Pills (Stationary Hover - No Up/Down Movement)
      ============================================================== */
.btn-full {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 24px;
    background: var(--btn-gradient);
    color: #ffffff !important;
    border-radius: 40px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 6px 20px -2px rgba(168, 85, 247, 0.5), var(--card-specular);
    transition: box-shadow 0.25s ease, filter 0.25s ease, border-color 0.25s ease;
    white-space: nowrap;
    overflow: hidden;
}

/* Moving Specular Sheen Sweep on Hover */
.btn-full::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.32), transparent);
    transform: translateX(-150%) skewX(-20deg);
    pointer-events: none;
}

.btn-full:hover {
    filter: brightness(1.12);
    box-shadow: 0 8px 28px -2px rgba(236, 72, 153, 0.65), inset 0 1px 1px rgba(255, 255, 255, 0.45);
    border-color: rgba(255, 255, 255, 0.4) !important;
}

.btn-full:hover::after {
    animation: youtube-dubbing-shimmer-sweep 1.6s ease-in-out;
    animation-delay: -0.5s;
}

@keyframes youtube-dubbing-shimmer-sweep {
    0% {
        transform: translateX(-150%) skewX(-20deg);
    }

    100% {
        transform: translateX(250%) skewX(-20deg);
    }
}

.btn-border {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 24px;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--color-white) !important;
    border-radius: 40px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.btn-border:hover {
    background: rgba(236, 72, 153, 0.12);
    border-color: rgba(236, 72, 153, 0.45) !important;
    color: var(--youtube-dubbing-pink-light) !important;
    box-shadow: 0 0 16px rgba(236, 72, 153, 0.25);
}

.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.4) !important;
    color: #fca5a5;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 500;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: #ef4444 !important;
    color: #ffffff;
    box-shadow: 0 0 14px rgba(239, 68, 68, 0.3);
}

.btn-danger:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: var(--border-subtle) !important;
    color: var(--color);
    box-shadow: none;
}

.btn-danger-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    width: 100%;
    padding: 10px 22px;
    background: rgba(239, 68, 68, 0.16);
    border: 1px solid rgba(239, 68, 68, 0.5) !important;
    color: #fca5a5 !important;
    border-radius: 40px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

#delete-btn {
    max-width: 240px;
}

.btn-danger-pill:hover {
    background: rgba(239, 68, 68, 0.3);
    border-color: #ef4444 !important;
    color: #ffffff !important;
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.4);
}

.btn-danger-pill:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
}

/* ==============================================================
      True-Centered 3-Column Floating Navigation Header
      ============================================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100vw;
    padding: 16px 24px;
    z-index: 1000;
    pointer-events: none;
}

.nav-cont {
    max-width: 1200px;
    margin: 0 auto;
    pointer-events: auto;
}

nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    background: rgba(14, 12, 24, 0.88);
    backdrop-filter: blur(28px) saturate(190%);
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 6px 10px 6px 20px;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.8), var(--card-specular);
}

.nav-left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.nav-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 38px;
}

#icon {
    display: flex;
    align-items: center;
    gap: 9px;
}

.youtube-dubbing-logo-text {
    font-weight: 800;
    font-size: 17px;
    letter-spacing: 0.4px;
    background: linear-gradient(135deg, #ffffff 40%, #f0abfc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
}

.youtube-dubbing-logo-text.mobile {
    display: none;
}

.ext-btn.mobile {
    display: none;
}

@media (max-width: 600px) {
    .youtube-dubbing-logo-text.desktop {
        display: none;
    }

    .youtube-dubbing-logo-text.mobile {
        display: block;
    }

    .ext-btn.desktop {
        display: none;
    }

    .ext-btn.mobile {
        display: inline-block;
    }
}

.youtube-dubbing-logo-pill {
    font-size: 9px;
    font-weight: 800;
    padding: 2px 7px;
    background: var(--brand-gradient);
    color: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(236, 72, 153, 0.4);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 28px;
    margin: 0;
    padding: 0;
}

nav ul a {
    font-size: 12.5px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--color);

    display: flex;
    flex-direction: column;
    justify-content: center;
}

nav ul a:hover {
    color: var(--youtube-dubbing-pink-light);
}

#guest-nav,
#user-nav {
    display: none !important;
}

html:not(.logged-in) #guest-nav {
    display: flex !important;
    align-items: center;
    gap: 12px;
}

html.logged-in #guest-nav {
    display: none !important;
}

html.logged-in #user-nav {
    display: flex !important;
    align-items: center;
}

.nav-login-link {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #d4d4d8;
    padding: 7px 14px;
    border-radius: 20px;
    transition: all 0.2s ease;
    white-space: nowrap;
    margin-left: 8px;
}

.nav-login-link:hover {
    color: var(--youtube-dubbing-pink-light);
    background: rgba(236, 72, 153, 0.12);
}

.profile-pic {
    width: 36px;
    height: 36px;
    background: rgba(28, 24, 46, 0.9);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--card-specular);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.profile-pic:hover {
    border-color: var(--youtube-dubbing-pink);
    box-shadow: 0 0 14px rgba(236, 72, 153, 0.45);
}

#profile-initial {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

#profile-popup {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 230px;
    background: rgba(18, 15, 28, 0.96);
    backdrop-filter: blur(28px) saturate(190%);
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), var(--card-specular);
    transition: all 0.25s ease;
    z-index: 1002;
}

[data-open="false"] #profile-popup {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.96) translateY(-6px);
}

[data-open="true"] #profile-popup {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1) translateY(0);
}

.profile-info {
    padding: 14px;
    border-bottom: 1px solid var(--border-subtle);
}

#profile-name {
    color: var(--color-white);
    font-size: 13.5px;
    font-weight: 600;
}

#profile-email {
    color: var(--color);
    font-size: 12px;
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-btns {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.profile-btn {
    text-align: left;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 13px;
    color: var(--color-light);
    transition: background 0.15s ease, color 0.15s ease;
}

.profile-btn:hover {
    background: rgba(168, 85, 247, 0.15);
    color: var(--youtube-dubbing-pink-light);
}

/* ==============================================================
      Authentication Pages Layout (.main-auth, .auth-card)
      ============================================================== */
.main-auth {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 135px 24px 60px;
    width: 100%;
}

.auth-card {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    background: var(--surface-card);
    backdrop-filter: blur(28px) saturate(190%);
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 38px 32px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    box-shadow: 0 28px 60px -10px rgba(0, 0, 0, 0.8), var(--card-specular);
    text-align: center;
}

.auth-card h1 {
    font-size: 26px;
    color: var(--color-white);
    background: none;
    -webkit-text-fill-color: initial;
    margin: 0;
}

.auth-card p {
    font-size: 13.5px;
    color: var(--color);
    margin: 0;
    line-height: 1.5;
}

.auth-card .form-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 6px;
    width: 100%;
}

.auth-card #confirm-btn {
    margin-top: 12px;
}

.auth-card input {
    width: 100%;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid var(--border-subtle);
    color: #fff;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-card input:focus {
    border-color: var(--youtube-dubbing-pink);
    box-shadow: 0 0 0 2px rgba(236, 72, 153, 0.25);
}

#login-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 42px;
    background: #ffffff;
    color: #111;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 600;
    margin-top: 4px;
    transition: background 0.2s;
}

#login-google:hover {
    background: #ebebeb;
}

.login-or {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #52525b;
    font-size: 11px;
    text-transform: uppercase;
    margin: 6px 0;
}

.login-or hr {
    flex: 1;
    height: 1px;
    background: var(--border-subtle);
    border: none;
}

.terms-notice {
    font-size: 11.5px !important;
    color: #71717a !important;
    line-height: 1.5;
    margin: 8px 0 !important;
}

.terms-notice a {
    color: var(--youtube-dubbing-pink-light);
    text-decoration: underline;
}

.auth-card .links {
    font-size: 12.5px;
    color: var(--color);
    margin-top: 2px;
}

.auth-card .links a {
    color: var(--youtube-dubbing-pink-light);
    text-decoration: underline;
}

.error-message,
.success-message {
    font-size: 13px;
    padding: 10px 14px;
    border-radius: 10px;
    text-align: center;
}

.error-message {
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
}

.success-message {
    color: #86efac;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
}

/* ==============================================================
      Static Legal/Reading Pages (.static-content)
      ============================================================== */
.static-content {
    max-width: 860px;
    margin: 0 auto;
    padding: 140px 24px 80px;
    width: 100%;
    flex: 1;
}

.static-content h1 {
    font-size: 44px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #ffffff 40%, #f0abfc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.static-content h2 {
    font-size: 22px;
    margin: 36px 0 14px;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 10px;
    color: #fff;
}

.static-content p {
    font-size: 15px;
    color: var(--color);
    line-height: 1.7;
    margin-bottom: 16px;
}

.static-content a {
    color: var(--youtube-dubbing-pink-light);
    text-decoration: underline;
}

/* ==============================================================
      404 Error Page (.error-container)
      ============================================================== */
.error-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex: 1;
    padding: 140px 24px 80px;
    width: 100%;
}

.error-code {
    font-size: 140px;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, #ffffff 30%, #f0abfc 75%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

.error-message-text {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    margin: 16px 0 8px;
}

/* ==============================================================
      Hero Section & Landing Elements
      ============================================================== */
.hero-section {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 145px 32px 90px;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 60px;
    min-height: 85vh;
    position: relative;
    overflow: hidden;
}

/* Hero Flowing Canvas Layer */
.hero-flow-canvas {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    max-width: 100vw;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.25;
    mix-blend-mode: screen;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 22px;
    z-index: 2;
}

.hero-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 5px 14px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2) 0%, rgba(236, 72, 153, 0.2) 100%);
    border: 1px solid rgba(236, 72, 153, 0.35);
    border-radius: 30px;
    color: var(--youtube-dubbing-pink-light);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    box-shadow: 0 2px 10px rgba(236, 72, 153, 0.2);
}

.hero-pill-dot {
    width: 6px;
    height: 6px;
    background: var(--youtube-dubbing-pink);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--youtube-dubbing-pink);
}

.hero-subtitle {
    font-size: 18px;
    color: #a1a1aa;
    max-width: 580px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    /* Strict viewport containment on mobile */
    html,
    body {
        overflow-x: hidden;
        max-width: 100vw;
        width: 100%;
    }

    header {
        padding: 12px 16px;
    }

    nav ul {
        display: none;
    }

    .hero-section {
        padding: 120px 20px 60px;
        /* Symmetrical 20px padding on left AND right */
        gap: 36px;
        width: 100%;
        box-sizing: border-box;
    }

    .hero-content {
        width: 100%;
        min-width: 0;
        /* Allows flex/text children to shrink properly */
    }

    /* Headline wraps and scales dynamically */
    h1 {
        font-size: 36px;
        white-space: normal !important;
        word-break: break-word;
        line-height: 1.15;
    }

    .hero-subtitle {
        font-size: 15px;
        width: 100%;
        max-width: 100%;
        /* Prevents text container from exceeding screen */
    }

    .hero-flow-canvas {
        width: 100% !important;
        left: 0 !important;
        transform: none !important;
    }

    .free-banner {
        flex-direction: column;
        align-items: flex-start;
    }
}

.hero-btn-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
    flex-wrap: wrap;
}

/* ==============================================================
      Hero Mockup Architecture (1:1 Extension Parity)
      ============================================================== */
.hero-mockup-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 5;
    width: 100%;
}

.hero-mockup-wrapper::before {
    content: "";
    position: absolute;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.22) 0%, rgba(168, 85, 247, 0.2) 50%, transparent 70%);
    filter: blur(50px);
    z-index: -1;
    pointer-events: none;
}

.youtube-dubbing-mockup-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 100%;
    max-width: 360px;
}

/* Master Card Container */
.youtube-dubbing-panel {
    width: 100%;
    background: radial-gradient(130% 130% at 50% 0%, rgba(30, 26, 48, 0.88) 0%, rgba(14, 12, 24, 0.95) 100%);
    backdrop-filter: blur(28px) saturate(190%);
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 24px;
    box-shadow: 0 28px 60px -10px rgba(0, 0, 0, 0.8), var(--card-specular);
    color: #f1f1f1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Header */
.youtube-dubbing-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.youtube-dubbing-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.youtube-dubbing-title {
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.4px;
    background: linear-gradient(135deg, #ffffff 40%, #f0abfc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.youtube-dubbing-badge {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 2px 6px;
    background: var(--brand-gradient);
    color: #fff;
    border-radius: 4px;
}

.youtube-dubbing-icon-btn {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    color: #a1a1aa;
    font-size: 14px;
    line-height: 1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.15s, color 0.15s;
}

.youtube-dubbing-icon-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

/* Panel Body */
.youtube-dubbing-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
}

/* 3-Tab Master Mode Switcher */
.youtube-dubbing-relative-wrapper {
    position: relative;
    width: 100%;
}

.youtube-dubbing-mode-switcher {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 3px;
    gap: 2px;
}

.youtube-dubbing-mode-glider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: calc(33.333% - 2px);
    height: calc(100% - 6px);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.35), rgba(236, 72, 153, 0.2));
    border: 1px solid rgba(240, 171, 252, 0.45);
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.3);
    pointer-events: none;
}

.youtube-dubbing-mode-tab {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 6px 0;
    font-size: 11px;
    font-weight: 500;
    color: #a1a1aa;
    background: transparent;
    border: none;
    cursor: default;
}

.youtube-dubbing-mode-tab.active {
    color: #ffffff;
    font-weight: 600;
}

.mode-icon {
    stroke: currentColor;
    flex-shrink: 0;
}

/* Focus & Slider */
.youtube-dubbing-mode-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.youtube-dubbing-section-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #9ca3af;
}

.youtube-dubbing-preset-group {
    display: flex;
    gap: 5px;
}

.youtube-dubbing-chip {
    flex: 1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #a1a1aa;
    padding: 6px 2px;
    border-radius: 8px;
    font-size: 10.5px;
    text-align: center;
    font-weight: 500;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.youtube-dubbing-chip.active {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.25) 0%, rgba(236, 72, 153, 0.2) 100%);
    color: #fdf4ff;
    border-color: rgba(236, 72, 153, 0.45);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.25);
    font-weight: 600;
}

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

.youtube-dubbing-slider-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10.5px;
}

.youtube-dubbing-slider-container {
    width: 100%;
}

.youtube-dubbing-range-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    outline: none;
}

.youtube-dubbing-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    background: #ffffff;
    border-radius: 50%;
    border: 2px solid var(--primary-purple);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.8), 0 2px 5px rgba(0, 0, 0, 0.4);
    transition: box-shadow 0.15s ease;
}

.youtube-dubbing-range-slider::-webkit-slider-thumb:hover {
    box-shadow: 0 0 14px rgba(236, 72, 153, 0.95);
}

/* Captions & Translation Toggle Switches */
.youtube-dubbing-captions-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.youtube-dubbing-toggle-switches-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.youtube-dubbing-pill-btn {
    padding: 6px 0;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #a1a1aa;
    transition: all 0.2s ease;
}

.youtube-dubbing-pill-btn.active {
    background: rgba(236, 72, 153, 0.2);
    border-color: rgba(236, 72, 153, 0.45);
    color: #fdf4ff;
    box-shadow: 0 0 10px rgba(236, 72, 153, 0.25);
}

/* Playback Runner Status Box */
.youtube-dubbing-status-box {
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(168, 85, 247, 0.32);
    border-radius: 12px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.status-indicator {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.status-indicator-left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-title-text {
    font-size: 11px;
    font-weight: 700;
    color: var(--youtube-dubbing-pink-light);
}

.status-timer-badge {
    font-size: 10px;
    font-weight: 600;
    color: #a1a1aa;
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 7px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-family: "Geist Mono", monospace;
}

.status-sequence-info {
    font-size: 10.5px;
    color: #d4d4d8;
    line-height: 1.4;
}

.status-cut-label {
    color: var(--youtube-dubbing-pink-light);
    font-size: 10px;
    font-weight: 500;
}

.status-quick-controls-row {
    display: flex;
    gap: 6px;
}

.status-quick-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    padding: 4px 6px;
    border-radius: 6px;
    font-size: 10px;
    color: #a1a1aa;
    transition: all 0.15s ease;
}

.status-quick-btn.active {
    background: rgba(168, 85, 247, 0.18);
    border-color: rgba(240, 171, 252, 0.35);
    color: #fdf4ff;
}

.lang-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--youtube-dubbing-emerald);
    box-shadow: 0 0 6px var(--youtube-dubbing-emerald);
}

.status-controls {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr 28px;
    gap: 4px;
    margin-top: 2px;
}

.youtube-dubbing-mini-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: #e4e4e7;
    padding: 5px 0;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 500;
    text-align: center;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.youtube-dubbing-mini-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.youtube-dubbing-mini-btn.active-state {
    background: rgba(236, 72, 153, 0.28);
    border-color: rgba(240, 171, 252, 0.55);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 0 10px rgba(236, 72, 153, 0.35);
}

.youtube-dubbing-mini-btn.stop {
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.25);
}

.youtube-dubbing-mini-btn.stop:hover {
    background: rgba(239, 68, 68, 0.25);
    color: #ffffff;
}

/* Floating Subtitle HUD Overlay (In-Video Conveyor) */
.youtube-dubbing-hero-hud {
    width: 100%;
    background: rgba(14, 12, 24, 0.94);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 14px;
    padding: 10px 14px 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), var(--card-specular);
    position: relative;
}

.sub-drag-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 6px;
}

.sub-drag-grip {
    width: 32px;
    height: 3px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.18);
}

.sub-resize-corner {
    position: absolute;
    top: 7px;
    right: 8px;
    cursor: default;
}

.sub-stream {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sub-line {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    font-size: 11.5px;
    line-height: 1.45;
}

.sub-line.prev {
    color: #71717a;
    font-size: 11px;
}

.sub-line.curr {
    color: #ffffff;
    font-weight: 500;
}

.sub-timestamp {
    font-size: 9.5px;
    color: var(--youtube-dubbing-pink-light);
    font-family: "Geist Mono", monospace;
    flex-shrink: 0;
}

/* ==============================================================
      Demo Section
      ============================================================== */
.sect2 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.demo-title {
    text-align: center;
    max-width: 640px;
    margin-bottom: 28px;
}

.demo-title h2 {
    font-size: 40px;
    margin-bottom: 12px;
}

.demo-text {
    font-size: 16px;
    color: var(--color);
}

.demo-switcher-cont {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 40px;
    padding: 4px;
    margin-bottom: 32px;
    box-shadow: var(--card-specular);
}

.demo-switcher {
    display: flex;
    gap: 6px;
}

.demo-switcher div {
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 500;
    color: var(--color);
    border-radius: 30px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.demo-switcher .active {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.25) 0%, rgba(236, 72, 153, 0.2) 100%);
    color: #fff;
    border: 1px solid rgba(236, 72, 153, 0.4);
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.25);
}

.video-cont {
    position: relative;
    width: 100%;
    max-width: 920px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(168, 85, 247, 0.2);
    border-radius: 24px;
    overflow: hidden;
}

.video-frame {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    overflow: hidden;
}

.video-frame iframe,
.video-frame div[id^="player"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-cont .cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    cursor: pointer;
    z-index: 10;
    border-radius: 24px;
}

.video-cont .cover .player {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: rgba(168, 85, 247, 0.35);
    border: 1px solid rgba(236, 72, 153, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 28px rgba(168, 85, 247, 0.5);
    transition: background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.video-cont .cover:hover .player {
    background: rgba(236, 72, 153, 0.55);
    border-color: #ffffff;
    box-shadow: 0 0 36px rgba(236, 72, 153, 0.7);
}

.yt-cookie-notice {
    background: rgba(10, 10, 15, 0.9);
    border: 1px solid var(--border-color);
    padding: 12px 18px;
    border-radius: 14px;
    font-size: 13px;
    color: #d4d4d8;
    max-width: 80%;
    text-align: center;
}

/* ==============================================================
      Cyber-Aerospace Bento Features Grid
      ============================================================== */
.features-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 24px 120px;
    width: 100%;
}

.section-header-centered {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 56px;
}

.section-header-centered h2 {
    font-size: 40px;
    margin-bottom: 12px;
}

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

.feature-card {
    background: var(--surface-card);
    backdrop-filter: blur(28px) saturate(190%);
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 34px 32px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.7), var(--card-specular);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

/* Subtle Glowing Corner Flare */
.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(236, 72, 153, 0.5), transparent);
}

.feature-card-glow {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.18) 0%, transparent 70%);
    pointer-events: none;
    border-radius: 50%;
}

.feature-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.8), 0 0 24px rgba(236, 72, 153, 0.2);
}

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

.feature-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(168, 85, 247, 0.12);
    border: 1px solid rgba(168, 85, 247, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--youtube-dubbing-pink-light);
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.25);
}

.feature-spec-pill {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--youtube-dubbing-pink-light);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15) 0%, rgba(236, 72, 153, 0.15) 100%);
    border: 1px solid rgba(236, 72, 153, 0.3);
    padding: 4px 10px;
    border-radius: 20px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.feature-card p {
    color: #a1a1aa;
    font-size: 14.5px;
    line-height: 1.65;
    font-weight: 400;
}

/* ==============================================================
      Pricing Section
      ============================================================== */
.sect3 {
    max-width: 1240px;
    margin: 0 auto;
    padding: 80px 24px 100px;
    width: 100%;
}

.free-banner-wrapper {
    margin-bottom: 40px;
    width: 100%;
}

.free-banner {
    background: var(--surface-card);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid var(--border-color);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), var(--card-specular);
    border-radius: 20px;
    padding: 18px 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.free-banner-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 1;
}

.free-pill {
    padding: 5px 12px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2) 0%, rgba(236, 72, 153, 0.2) 100%);
    border: 1px solid rgba(236, 72, 153, 0.4);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    color: var(--youtube-dubbing-pink-light);
    text-transform: uppercase;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

.free-banner-title {
    color: #fff;
    font-weight: 700;
    font-size: 15px;
}

.free-banner-desc {
    color: var(--color);
    font-size: 13px;
    margin-top: 2px;
}

.price-cont {
    width: 100%;
}

.price-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.sub-plan-cont-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
}

.sub-plan-cont {
    background: var(--surface-card);
    backdrop-filter: blur(28px) saturate(190%);
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 24px 50px -10px rgba(0, 0, 0, 0.8), var(--card-specular);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.sub-plan-cont:hover {
    border-color: var(--border-hover);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.9), 0 0 24px rgba(236, 72, 153, 0.22);
}

.price-header-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 8px;
}

.plan-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.16) 0%, rgba(236, 72, 153, 0.14) 100%);
    border: 1px solid rgba(236, 72, 153, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--saturn-pink-light);
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.25);
    flex-shrink: 0;
}

.plan-title-group {
    display: flex;
    flex-direction: column;
}

.plan-card-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 160px;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.plan-card-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    mask-image: linear-gradient(to bottom, black 35%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 35%, transparent 100%);
    opacity: 0.85;
}

.sub-plan {
    position: relative;
    z-index: 2;
    padding: 30px 24px 28px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.popular-cont {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand-gradient);
    color: #fff;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 14px rgba(236, 72, 153, 0.5);
    z-index: 10;
}

.price-title {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
}

.price-title-sub {
    font-size: 13.5px;
    color: var(--youtube-dubbing-pink-light);
    margin-top: 4px;
    font-weight: 600;
}

.tot-hours {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    margin: 18px 0 6px;
}

.price-desc-cont {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 24px 0;
    flex: 1;
}

.price-desc-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    color: #e4e4e7;
}

.price-desc-item.item-not-included {
    color: #52525b;
}

.txt-highlight {
    font-weight: 700;
    color: var(--youtube-dubbing-pink-light);
}

.price-price {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
}

.price-price .mo {
    font-size: 14px;
    color: var(--color);
    font-weight: 400;
}

.pricing-disclaimer-note {
    max-width: 860px;
    margin: 32px auto 0;
    padding: 14px 20px;
    background: rgba(236, 72, 153, 0.05);
    border: 1px dashed rgba(236, 72, 153, 0.3);
    border-radius: 14px;
    text-align: center;
}

.pricing-disclaimer-note p {
    font-size: 13.5px;
    color: var(--color);
    line-height: 1.5;
}

.pricing-disclaimer-note strong {
    color: #f4f4f5;
}

.asterisk-star {
    color: var(--youtube-dubbing-pink);
    font-weight: 700;
    font-size: 16px;
    vertical-align: middle;
}

/* ==============================================================
      FAQ & Footer
      ============================================================== */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.faq-item {
    background: var(--surface-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--card-specular);
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 18px 22px;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-white);
    text-align: left;
    transition: background-color 0.2s ease;
}

.faq-question:hover {
    background: rgba(236, 72, 153, 0.06);
}

.faq-item.active .faq-question:hover {
    background: none !important;
}

.faq-arrow {
    color: var(--youtube-dubbing-pink);
    font-size: 20px;
    line-height: 1;
    transition: transform 0.25s ease;
}

.faq-item.active .faq-arrow {
    transform: rotate(90deg);
}

.faq-answer-content {
    display: none;
    padding: 0 22px 18px;
    font-size: 14px;
    color: #a1a1aa;
    line-height: 1.6;
}

.faq-item.active .faq-answer-content {
    display: block;
}

footer {
    margin-top: auto;
    padding: 40px 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
    border-top: 1px solid var(--border-subtle);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

footer a {
    color: #71717a;
    transition: color 0.2s ease;
}

footer a:hover {
    color: var(--youtube-dubbing-pink-light);
}

@media (max-width: 650px) {
    footer {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    footer a {
        display: flex;
        justify-content: center;
    }
}

/* ==============================================================
      DASHBOARD WORKSPACE (COMPLETE ARCHITECTURE)
      ============================================================== */
body[page="dashboard"] {
    height: 100vh;
    overflow: hidden;
}

.dashboard-cont {
    height: 100vh;
    padding-top: 80px;
    display: flex;
    flex-direction: column;
    background: var(--bg-color);
}

.dashboard-cont main {
    display: flex;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

aside {
    width: 250px;
    flex-shrink: 0;
    height: 100%;
    background: radial-gradient(130% 130% at 50% 0%, var(--bg-color) 0%, rgba(26, 22, 42, 0.95) 100%);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 20px 14px;
}

.aside-body {
    flex: 1;
    overflow-y: auto;
}

.aside-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.aside-footer {
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
}

.tab-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--color);
    border: 1px solid transparent !important;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    text-align: left;
}

.tab-btn svg {
    stroke: var(--color);
    flex-shrink: 0;
    transition: stroke 0.2s ease;
}

.tab-btn:hover {
    background: rgba(236, 72, 153, 0.1);
    color: #fff;
}

.tab-btn:hover svg {
    stroke: var(--youtube-dubbing-pink-light);
}

.tab-btn.active {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.22) 0%, rgba(236, 72, 153, 0.15) 100%);
    color: #fff;
    border: 1px solid rgba(236, 72, 153, 0.35) !important;
    box-shadow: 0 4px 14px rgba(168, 85, 247, 0.25);
}

.tab-btn.active svg {
    stroke: var(--youtube-dubbing-pink-light);
}

.dashboard-main-view {
    flex: 1;
    height: 100%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    background: #08060e;
}

.dash-header {
    padding: 28px 40px;
    border-bottom: 1px solid var(--border-subtle);
}

.dash-header h1 {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 30%, #f0abfc 80%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dash-body {
    padding: 36px 40px 80px;
    display: flex;
    flex-direction: column;
    max-width: 960px;
    width: 100%;
}

.dashboard-tab-content {
    display: none !important;
}

.dashboard-tab-content.active {
    display: flex !important;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

.widget {
    background: var(--surface-card);
    backdrop-filter: blur(28px) saturate(190%);
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.7), var(--card-specular);
}

.widget h3 {
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.plan-details {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.progress-bar-container {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
    margin: 14px 0 10px;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 8px;
    background: var(--brand-gradient);
    box-shadow: 0 0 12px rgba(236, 72, 153, 0.6);
    transition: width 0.4s ease;
}

.usage-subtext {
    font-size: 13px;
    color: var(--color);
}

.usage-chart-container {
    display: flex;
    align-items: flex-end;
    height: 140px;
    width: 100%;
    gap: 3px;
    padding-bottom: 4px;
    margin-top: 14px;
}

.chart-bar {
    flex: 1;
    height: 100%;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: bottom;
    border-radius: 3px 3px 0 0;
    transition: opacity 0.2s, filter 0.2s;
    cursor: pointer;
}

.chart-bar:hover {
    opacity: 1 !important;
    filter: brightness(1.35) drop-shadow(0 0 8px rgba(236, 72, 153, 0.6));
}

.chart-tooltip {
    position: fixed;
    background: rgba(18, 15, 28, 0.96);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    pointer-events: none;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.15s ease;
    transform: translateY(-100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), var(--card-specular);
}

.chart-tooltip.visible {
    opacity: 1;
}

.settings-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.settings-list li {
    border-bottom: 1px solid var(--border-subtle);
}

.settings-list li:last-child {
    border-bottom: none;
}

.settings-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 4px;
    font-size: 14px;
    color: #e4e4e7;
    transition: color 0.2s ease;
}

.settings-list a:hover {
    color: var(--youtube-dubbing-pink-light);
}

.danger-zone {
    border-color: rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.04);
}

.danger-zone h3 {
    border-color: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.cancel-update-cont {
    display: flex;
    gap: 14px;
    margin-top: 20px;
}

/* Modals */
.subscribe-to-plan-bg,
.upgrade-downgrade-bg,
.cancel-subscription-bg,
.plan-success-bg,
.cookie-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 4, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.cookie-modal,
.upg-downg-canc-cont {
    background: radial-gradient(130% 130% at 50% 0%, rgba(30, 26, 48, 0.95) 0%, rgba(14, 12, 24, 0.98) 100%);
    backdrop-filter: blur(28px) saturate(190%);
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 28px;
    max-width: 520px;
    width: 90%;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), var(--card-specular);
    position: relative;
}

.bg-close-btn,
.close-button {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #a1a1aa;
    font-size: 18px;
    cursor: pointer;
    transition: color 0.15s ease;
}

.bg-close-btn:hover,
.close-button:hover {
    color: #fff;
}

/* Skeletons */
.data-skeleton-cont {
    display: inline-flex;
    width: 100%;
    line-height: 0;
}

.data-skeleton {
    width: 100%;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    display: inline-block;
    animation: pulseSkeleton 1.4s ease-in-out infinite;
}

@keyframes pulseSkeleton {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 0.85;
        background: rgba(236, 72, 153, 0.15);
    }
}

/* ==============================================================
      Modal Pricing & Scroll Container Enhancements
      ============================================================== */
.subscribe-to-plan-bg .scroll-cont {
    width: 100%;
    max-width: 1080px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px 24px;
    margin: 0 auto;
}

.subscribe-to-plan-bg .price-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    width: 100%;
}

.subscribe-to-plan-bg .sub-plan-cont {
    min-height: 540px;
}

/* Close button positioning - Stationary on hover */
.subscribe-to-plan-bg .bg-close-btn {
    position: fixed;
    top: 24px;
    right: 28px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    z-index: 10001;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.subscribe-to-plan-bg .bg-close-btn:hover {
    background: rgba(236, 72, 153, 0.25);
    border-color: rgba(236, 72, 153, 0.6);
    box-shadow: 0 0 14px rgba(236, 72, 153, 0.4);
}

@media (max-width: 1024px) {
    .subscribe-to-plan-bg .price-list {
        grid-template-columns: 1fr;
        max-width: 440px;
        margin: 0 auto;
    }
}

/* ==============================================================
      Responsive Queries
      ============================================================== */
@media (max-width: 1024px) {
    .hero-section {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        min-height: auto !important; /* Allows section to naturally fit both content + card */
        height: auto !important;
        padding: 130px 24px 70px !important;
        gap: 44px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .hero-content {
        width: 100% !important;
        max-width: 600px !important;
        margin: 0 auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        position: relative !important;
        z-index: 2 !important;
    }

    .hero-mockup-wrapper {
        width: 100% !important;
        max-width: 360px !important;
        margin: 0 auto !important;
        position: relative !important;
        z-index: 2 !important; /* Normalized so it never overlays text */
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .features-grid,
    .price-list {
        grid-template-columns: 1fr;
    }

    .dashboard-cont main {
        flex-direction: column;
    }

    aside {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 10px 16px;
    }

    .aside-nav {
        flex-direction: row;
        overflow-x: auto;
    }

    .dash-body {
        padding: 24px 20px;
    }
}

@media (max-width: 970px) {
    nav ul {
        display: none;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 36px;
    }

    header {
        padding: 12px 16px;
    }

    .free-banner {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ==============================================================
      Enhanced Billing & Subscription Card
      ============================================================== */
.billing-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-subtle);
}

.billing-card-header h3 {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    border-bottom: none !important;
}

/* Dynamic Tier Status Badges */
.tier-status-badge {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 4px 12px;
    border-radius: 20px;
}

.tier-status-badge.free {
    color: var(--youtube-dubbing-pink-light);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2) 0%, rgba(236, 72, 153, 0.2) 100%);
    border: 1px solid rgba(236, 72, 153, 0.35);
}

.tier-status-badge.active {
    color: var(--youtube-dubbing-emerald);
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.tier-status-badge.pending {
    color: #fde047;
    background: rgba(234, 179, 8, 0.12);
    border: 1px solid rgba(234, 179, 8, 0.35);
}

/* Plan Hero Information Row */
.plan-hero-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.plan-hero-title {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.plan-hero-sub {
    font-size: 13px;
    color: var(--color);
    margin-top: 4px;
    font-weight: 400;
}

.plan-hero-price {
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    text-align: right;
    white-space: nowrap;
}

.plan-hero-price .mo {
    font-size: 14px;
    color: var(--color);
    font-weight: 400;
}

/* Information & Status Box */
.billing-info-box {
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 22px;
}

.billing-info-box .billing-info {
    font-size: 14px;
    color: #d4d4d8;
    line-height: 1.6;
}

.billing-info-box strong {
    color: #ffffff;
}

/* Free Tier Action Buttons */
.free-tier-actions-cont {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    .plan-hero-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .plan-hero-price {
        text-align: left;
    }

    .free-tier-actions-cont {
        flex-direction: column;
        width: 100%;
    }

    .free-tier-actions-cont .btn-full,
    .free-tier-actions-cont .btn-border {
        width: 100%;
        justify-content: center;
    }
}

/* ==============================================================
      Upgrade/Downgrade Modal Sizing & Symmetric Centering
      ============================================================== */
.upgrade-downgrade-bg .scroll-cont {
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px 24px;
    margin: 0 auto;
}

/* Symmetrically centers whichever 2 cards are active */
.upgrade-downgrade-bg .price-list {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 28px;
    flex-wrap: wrap;
    width: 100%;
}

.upgrade-downgrade-bg .sub-plan-cont-wrapper {
    flex: 0 1 340px;
    width: 100%;
    max-width: 350px;
}

.upgrade-downgrade-bg .sub-plan-cont {
    min-height: 540px;
}

.upgrade-downgrade-bg .bg-close-btn {
    position: fixed;
    top: 24px;
    right: 28px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    z-index: 10001;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.upgrade-downgrade-bg .bg-close-btn:hover {
    background: rgba(236, 72, 153, 0.25);
    border-color: rgba(236, 72, 153, 0.6);
    box-shadow: 0 0 14px rgba(236, 72, 153, 0.4);
}

/* ==============================================================
      Full-Screen Blurred Processing Overlay
      ============================================================== */
.process-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 4, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    z-index: 999999;
    color: #ffffff;
    pointer-events: all;
}

.process-overlay .loader {
    width: 48px;
    height: 48px;
    border-width: 3.5px;
    border-color: rgba(255, 255, 255, 0.15);
    border-top-color: var(--youtube-dubbing-pink-light);
}

.process-overlay-desc {
    font-size: 15px;
    font-weight: 600;
    color: #f4f4f5;
    letter-spacing: 0.3px;
    text-align: center;
}

/* ==============================================================
      Redesigned Account Deletion Modal
      ============================================================== */
.delete-modal-card {
    background: radial-gradient(130% 130% at 50% 0%, rgba(30, 20, 28, 0.98) 0%, rgba(14, 10, 14, 0.98) 100%);
    border: 1px solid rgba(239, 68, 68, 0.45);
    border-radius: 24px;
    padding: 28px;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(239, 68, 68, 0.18), var(--card-specular);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    position: relative;
    animation: modalScaleIn 0.2s ease-out;
}

@keyframes modalScaleIn {
    from {
        opacity: 0;
        transform: scale(0.96);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.delete-modal-header {
    margin-bottom: 20px;
}

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

.delete-danger-badge {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    padding: 3px 10px;
    border-radius: 20px;
}

.delete-modal-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.delete-warning-box {
    display: flex;
    gap: 12px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 12px;
}

.warning-icon-col {
    font-size: 18px;
    flex-shrink: 0;
}

.warning-text-col strong {
    font-size: 13.5px;
    color: #fca5a5;
    display: block;
    margin-bottom: 4px;
}

.warning-text-col p {
    font-size: 13px;
    color: #d4d4d8;
    line-height: 1.5;
    margin: 0;
}

.delete-notice-box {
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 12.5px;
    color: #a1a1aa;
    line-height: 1.5;
}

.delete-notice-box strong {
    color: #ffffff;
}

/* Step 2 Type "delete" styling */
.delete-tag-word {
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    padding: 2px 7px;
    border-radius: 6px;
    font-family: "Geist Mono", monospace;
    font-size: 13px;
}

.delete-text-input {
    width: 100%;
    margin-top: 14px;
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #ffffff;
    padding: 11px 14px;
    border-radius: 12px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.delete-text-input:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.25);
}

.delete-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
}


/* ============================================
   Extension Styles
   ============================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
}

#youtube-dubbing-ext-root {
    z-index: 2147483647;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #f4f4f5;
    user-select: none;

    border-radius: 24px;
    overflow: hidden;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);

    /* GPU Compositing Layer Anchor */
    transform: translate3d(0, 0, 0);
    transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

#youtube-dubbing-ext-root.is-dragging {
    transition: none !important;
}

/* 1. Master Glassmorphic Container */
.youtube-dubbing-ext-card {
    position: relative;
    width: 100%;
    max-width: 360px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 28px 60px -10px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.1), inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.youtube-dubbing-ext-glass-bg {
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: radial-gradient(130% 130% at 50% 0%, rgba(30, 26, 48, 0.86) 0%, rgba(14, 12, 24, 0.94) 100%);
    backdrop-filter: blur(28px) saturate(190%);
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    border: 1px solid rgba(255, 255, 255, 0.13);
    z-index: -1;
    pointer-events: none;
}

/* Sliding Viewport Carousel */
.youtube-dubbing-ext-view-viewport {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.youtube-dubbing-ext-view {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    transition: transform 0.34s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.26s ease;
    will-change: transform, opacity;
}

/* View 1: Main View State */
.youtube-dubbing-ext-view-main {
    position: relative;
    width: 100%;
    padding: 20px;
    transform: translate3d(0, 0, 0);
    opacity: 1;
    pointer-events: auto;
    transition: transform 0.34s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.26s ease;
}

.youtube-dubbing-ext-view-viewport.show-saved .youtube-dubbing-ext-view-main {
    position: absolute;
    top: 0;
    left: 0;
    transform: translate3d(-105%, 0, 0);
    opacity: 0;
    pointer-events: none;
}

/* View 2: Saved Dubbings Slide-in */
.youtube-dubbing-ext-view-saved {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    transform: translate3d(105%, 0, 0);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.34s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.26s ease;
}

.youtube-dubbing-ext-view-viewport.show-saved .youtube-dubbing-ext-view-saved {
    position: relative;
    transform: translate3d(0, 0, 0);
    opacity: 1;
    pointer-events: auto;
}

/* Header & Grab Handle */
.youtube-dubbing-ext-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    padding: 2px 0 6px 0;
}

.youtube-dubbing-ext-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    pointer-events: none;
}

.youtube-dubbing-ext-brand-icon {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.4);
}

.youtube-dubbing-ext-badge-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.youtube-dubbing-ext-quota-pill {
    font-size: 11px;
    font-weight: 600;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2) 0%, rgba(236, 72, 153, 0.2) 100%);
    color: #f0abfc;
    border: 1px solid rgba(236, 72, 153, 0.35);
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.2px;
    pointer-events: none;
}

/* Symmetrical Close Button */
.youtube-dubbing-ext-icon-btn {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9px;
    color: #a1a1aa;
    cursor: initial;
    transition: all 0.15s;
}

/* Featured Saved Dubbing Card */
.youtube-dubbing-ext-featured-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.12) 0%, rgba(16, 185, 129, 0.08) 100%);
    border: 1px solid rgba(168, 85, 247, 0.3);
    padding: 10px 14px;
    border-radius: 14px;
    margin-bottom: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.youtube-dubbing-ext-featured-info {
    display: flex;
    flex-direction: column;
}

.youtube-dubbing-ext-featured-badge {
    font-size: 9px;
    font-weight: 700;
    color: #10b981;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.youtube-dubbing-ext-featured-title {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
}

.youtube-dubbing-ext-featured-meta {
    font-size: 11px;
    color: #a1a1aa;
}

.youtube-dubbing-ext-btn-replay-quick {
    background: #10b981;
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.35);
}

.youtube-dubbing-ext-btn-replay-quick:hover {
    background: #059669;
    transform: scale(1.04);
}

.youtube-dubbing-ext-link-btn {
    background: none;
    border: none;
    color: #c084fc;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    margin-bottom: 12px;
    padding: 2px 0;
    transition: color 0.15s;
}

.youtube-dubbing-ext-link-btn:hover {
    color: #e879f9;
}

/* Form Controls */
.youtube-dubbing-ext-control-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 18px;
}

.youtube-dubbing-ext-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.youtube-dubbing-ext-field label {
    font-size: 11px;
    color: #a1a1aa;
    font-weight: 600;
}

/* Custom Select with Padded Arrow */
.youtube-dubbing-ext-select {
    appearance: none;
    -webkit-appearance: none;
    background-color: rgba(28, 25, 42, 0.85);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 14px) center;
    background-size: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f4f4f5;
    padding: 9px 38px 9px 12px;
    border-radius: 12px;
    font-size: 12px;
    outline: none;
    cursor: initial;
    width: 100%;
    transition: all 0.15s;
}

.youtube-dubbing-ext-select:focus {
    border-color: #a855f7;
    box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.25);
}

.youtube-dubbing-ext-range-row {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #a1a1aa;
    margin-bottom: 4px;
}

.youtube-dubbing-ext-range-val {
    color: #f472b6;
    font-weight: 700;
}

/* Dynamic Gradient Range Slider */
.youtube-dubbing-ext-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    outline: none;
    cursor: initial;
}

.youtube-dubbing-ext-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #a855f7;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.8), 0 2px 5px rgba(0, 0, 0, 0.4);
    transition: transform 0.1s, box-shadow 0.1s;
}

/* Luxury Shimmer Button */
.youtube-dubbing-ext-btn-primary {
    position: relative;
    width: 100%;
    background: linear-gradient(135deg, #9333ea 0%, #a855f7 50%, #db2777 100%);
    color: #ffffff;
    border: none;
    padding: 13px;
    border-radius: 14px;
    cursor: initial;
    overflow: hidden;
    box-shadow: 0 6px 20px -2px rgba(168, 85, 247, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.35);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Moving Specular Sheen (Hover Shimmer) */
.youtube-dubbing-ext-btn-glimmer {
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
    transform: translateX(-150%) skewX(-20deg);
    transition: none;
    pointer-events: none;
}

.youtube-dubbing-ext-btn-text {
    position: relative;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.youtube-dubbing-ext-btn-sub {
    position: relative;
    font-size: 10px;
    font-weight: 500;
    opacity: 0.85;
}

.youtube-dubbing-ext-status-bar {
    margin-top: 12px;
    font-size: 11px;
    color: #a1a1aa;
    text-align: center;
    min-height: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* View 2 Header & Back Button */
.youtube-dubbing-ext-sub-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.youtube-dubbing-ext-btn-back {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f4f4f5;
    border-radius: 10px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.15s;
}

.youtube-dubbing-ext-btn-back:hover {
    background: rgba(255, 255, 255, 0.16);
}

.youtube-dubbing-ext-sub-title {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
}

.youtube-dubbing-ext-saved-full-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 320px;
    overflow-y: auto;
}

/* Floating Active Player Pill */
.youtube-dubbing-ext-pill {
    display: none;
    background: rgba(18, 15, 28, 0.94);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(168, 85, 247, 0.45);
    border-radius: 40px;
    padding: 9px 14px 9px 18px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7), 0 0 24px rgba(168, 85, 247, 0.35);
    align-items: center;
    gap: 14px;
    cursor: grab;
}

.youtube-dubbing-ext-pill:active,
#youtube-dubbing-ext-root.is-dragging .youtube-dubbing-ext-pill {
    cursor: grabbing;
}

.youtube-dubbing-ext-pulse-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 12px #10b981;
    animation: youtube-dubbing-ext-pulse 1.6s infinite ease-in-out;
    pointer-events: none;
}

@keyframes youtube-dubbing-ext-pulse {
    0% {
        transform: scale(0.9);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.25);
        opacity: 1;
    }

    100% {
        transform: scale(0.9);
        opacity: 0.7;
    }
}

.youtube-dubbing-ext-pill-info {
    display: flex;
    flex-direction: column;
    pointer-events: none;
}

.youtube-dubbing-ext-pill-title {
    font-size: 12px;
    font-weight: 700;
    color: #f4f4f5;
    display: flex;
    align-items: center;
    gap: 6px;
}

.youtube-dubbing-ext-pill-sync {
    min-width: 30px;
    font-size: 10px;
    color: #10b981;
    font-weight: 600;
    display: inline-block;
}

.youtube-dubbing-ext-pill-sub {
    font-size: 10px;
    color: #a1a1aa;
}

.youtube-dubbing-ext-btn-stop {
    background: #ef4444;
    color: white;
    border: none;
    padding: 7px 15px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
    box-shadow: 0 2px 10px rgba(239, 68, 68, 0.35);
}

.youtube-dubbing-ext-btn-stop:hover {
    background: #dc2626;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.5);
}

#youtube-dubbing-ext-root.is-playing .youtube-dubbing-ext-card {
    display: none;
}

#youtube-dubbing-ext-root.is-playing .youtube-dubbing-ext-pill {
    display: flex;
}

/* ==============================================================
   Modern Glassmorphic Cookie Consent Banner (Sticky Floating)
   ============================================================== */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 1040px;
    z-index: 99999;
    background: radial-gradient(130% 130% at 50% 0%, rgba(30, 26, 48, 0.94) 0%, rgba(14, 12, 24, 0.98) 100%);
    backdrop-filter: blur(28px) saturate(190%);
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 22px 28px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), var(--card-specular), 0 0 24px rgba(168, 85, 247, 0.18);
    animation: cookieBannerSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cookieBannerSlideUp {
    from {
        opacity: 0;
        transform: translate(-50%, 20px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0) scale(1);
    }
}

.cookie-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.cookie-banner-text {
    flex: 1;
}

.cookie-banner-text h3 {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.cookie-banner-text p {
    font-size: 13.5px;
    color: #a1a1aa;
    line-height: 1.55;
    margin: 0;
}

.cookie-banner-text a {
    color: var(--youtube-dubbing-pink-light);
    text-decoration: underline;
}

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

.cookie-banner-actions .btn-full,
.cookie-banner-actions .btn-border {
    min-height: 38px;
    padding: 8px 18px;
    font-size: 12px;
}

@media (max-width: 900px) {
    .cookie-banner {
        bottom: 16px;
        width: calc(100% - 32px);
        padding: 20px;
    }

    .cookie-banner-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .cookie-banner-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .cookie-banner-actions .btn-full,
    .cookie-banner-actions .btn-border {
        flex: 1;
        justify-content: center;
    }
}

/* ==============================================================
   Redesigned Glassmorphic Cookie Preferences Modal
   ============================================================== */
.cookie-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 4, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
}

.cookie-modal {
    background: radial-gradient(130% 130% at 50% 0%, rgba(32, 26, 52, 0.98) 0%, rgba(14, 12, 24, 0.98) 100%);
    backdrop-filter: blur(32px) saturate(190%);
    -webkit-backdrop-filter: blur(32px) saturate(190%);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 32px 30px;
    max-width: 540px;
    width: 90%;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.9), var(--card-specular), 0 0 30px rgba(168, 85, 247, 0.2);
    position: relative;
    animation: modalZoomIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalZoomIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(8px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

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

.cookie-modal-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.cookie-modal .close-button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #a1a1aa;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.cookie-modal .close-button:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.cookie-modal-intro {
    font-size: 13.5px;
    color: var(--color);
    line-height: 1.5;
    margin-bottom: 20px;
}

.cookie-modal-intro a {
    color: var(--youtube-dubbing-pink-light);
    text-decoration: underline;
}

/* Category Cards */
.cookie-category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 10px;
    transition: border-color 0.2s;
}

.cookie-category:hover {
    border-color: rgba(255, 255, 255, 0.14);
}

.cookie-category-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 3px;
}

.cookie-category-info p {
    font-size: 12px;
    color: #a1a1aa;
    line-height: 1.45;
    margin: 0;
}

/* Modern iOS / Glass Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: background-color 0.25s, border-color 0.25s, box-shadow 0.25s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background-color: #ffffff;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

input:checked+.slider {
    background: var(--brand-gradient);
    border-color: rgba(236, 72, 153, 0.5);
    box-shadow: 0 0 14px rgba(168, 85, 247, 0.45);
}

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

.switch.always-on .slider {
    background: rgba(168, 85, 247, 0.35);
    border-color: rgba(168, 85, 247, 0.5);
    cursor: not-allowed;
    opacity: 0.8;
}

.cookie-modal-footer {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--border-subtle);
}

.cookie-modal-footer .btn-full {
    width: 100%;
}