/* css/style.css - Hyperdrive AI Master Design System */
@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 {
    --bg-color: #07070b;
    --bg-secondary: #0d0d14;
    --surface-card: rgba(17, 17, 26, 0.75);
    --surface-card-hover: rgba(25, 25, 40, 0.9);

    --border-color: rgba(168, 85, 247, 0.2);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(192, 132, 252, 0.45);

    --accent-purple: #c084fc;
    --primary-purple: #a855f7;
    --dark-purple: #7928ca;
    --deep-purple: #581c87;

    --color: #9ca3af;
    --color-light: #f4f4f5;
    --color-white: #ffffff;
    --btn-hover-color: rgba(168, 85, 247, 0.15);
}

* {
    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.3) 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(circle at 50% 0%, rgba(121, 40, 202, 0.18) 0%, transparent 65%),
        radial-gradient(circle at 90% 20%, rgba(168, 85, 247, 0.08) 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 40%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

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

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

a:hover {
    color: var(--accent-purple);
}

/* 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 (FIX BUTTON COLLAPSE)
   ============================================================== */
.loader {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-block;
    border: 2.5px solid rgba(255, 255, 255, 0.2);
    border-top-color: #ffffff;
    box-sizing: border-box;
    animation: hyperdriveSpin 0.75s linear infinite;
    vertical-align: middle;
}

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

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

/* ==============================================================
   Buttons & Pills
   ============================================================== */
.btn-full {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    /* Prevents height collapse during loading spinner */
    padding: 10px 22px;
    background: linear-gradient(135deg, var(--dark-purple) 0%, var(--primary-purple) 100%);
    color: #fff !important;
    border-radius: 40px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 4px 18px rgba(121, 40, 202, 0.45);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-full:hover {
    filter: brightness(1.15);
    box-shadow: 0 6px 26px rgba(168, 85, 247, 0.65);
    transform: translateY(-1px);
}

.btn-border {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    /* Prevents height collapse during loading spinner */
    padding: 10px 22px;
    border: 1px solid var(--border-color) !important;
    background: rgba(168, 85, 247, 0.06);
    backdrop-filter: blur(8px);
    color: var(--color-white) !important;
    border-radius: 40px;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-border:hover {
    background: var(--btn-hover-color);
    border-color: var(--border-hover) !important;
    color: var(--accent-purple) !important;
}

.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: all 0.2s ease;
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: #ef4444 !important;
    color: #fff;
}

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

.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: all 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;
}

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

/* ==============================================================
   True-Centered 3-Column Floating Navigation Header
   ============================================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    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(13, 13, 20, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 6px 14px 6px 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7), 0 0 1px rgba(168, 85, 247, 0.4);
}

.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: 8px;
}

.hyperdrive-logo-text {
    font-weight: 800;
    font-size: 17px;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #ffffff 40%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hyperdrive-logo-pill {
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    background: linear-gradient(135deg, var(--dark-purple), var(--primary-purple));
    color: #fff;
    border-radius: 4px;
}

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);
}

nav ul a:hover {
    color: #fff;
}

#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;
}

.nav-login-link:hover {
    color: var(--accent-purple);
    background: rgba(168, 85, 247, 0.12);
}

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

.profile-pic:hover {
    border-color: var(--accent-purple);
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.35);
}

#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, 18, 26, 0.96);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
    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: 6px;
    font-size: 13px;
    color: var(--color-light);
}

.profile-btn:hover {
    background: var(--btn-hover-color);
    color: var(--accent-purple);
}

/* ==============================================================
   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: rgba(14, 14, 22, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 38px 32px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 1px rgba(168, 85, 247, 0.4);
    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.5);
    border: 1px solid var(--border-subtle);
    color: #fff;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-card input:focus {
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.25);
}

#login-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 42px;
    background: #ffffff;
    color: #111;
    border-radius: 10px;
    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(--accent-purple);
    text-decoration: underline;
}

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

.auth-card .links a {
    color: var(--accent-purple);
    text-decoration: underline;
}

.error-message,
.success-message {
    font-size: 13px;
    padding: 10px 14px;
    border-radius: 8px;
    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(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 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%, #c084fc 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(--accent-purple);
    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%, #c084fc 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 {
    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;
}

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

/* .hero-ambient-flow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1400px;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    pointer-events: none;
    opacity: 0.25;
    mix-blend-mode: screen;
    z-index: 1;
    mask-image: radial-gradient(ellipse at center top, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center top, black 40%, transparent 80%);
} */

.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: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.35);
    border-radius: 30px;
    color: var(--accent-purple);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

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

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

.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: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.28) 0%, transparent 70%);
    filter: blur(50px);
    z-index: -1;
    pointer-events: none;
}

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

/* Master Card Container */
.hyperdrive-panel {
    width: 100%;
    background: rgba(14, 14, 22, 0.95);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(168, 85, 247, 0.28);
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 1px rgba(168, 85, 247, 0.5);
    color: #f1f1f1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

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

.hyperdrive-brand {
    display: flex;
    align-items: center;
    gap: 7px;
}

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

.hyperdrive-badge {
    font-size: 8.5px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 2px 5px;
    background: linear-gradient(135deg, #7928ca 0%, #a855f7 100%);
    color: #fff;
    border-radius: 4px;
}

.hyperdrive-icon-btn {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: #a1a1aa;
    font-size: 14px;
    line-height: 1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Panel Body */
.hyperdrive-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
}

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

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

.hyperdrive-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(121, 40, 202, 0.2));
    border: 1px solid rgba(192, 132, 252, 0.45);
    border-radius: 7px;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.3);
    pointer-events: none;
}

.hyperdrive-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;
}

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

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

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

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

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

.hyperdrive-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: 7px;
    font-size: 10.5px;
    text-align: center;
    font-weight: 500;
}

.hyperdrive-chip.active {
    background: rgba(168, 85, 247, 0.22);
    color: #f3e8ff;
    border-color: rgba(192, 132, 252, 0.5);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.25);
    font-weight: 600;
}

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

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

.hyperdrive-slider-container {
    width: 100%;
}

.hyperdrive-range-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 3px;
    outline: none;
}

.hyperdrive-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 13px;
    height: 13px;
    background: linear-gradient(135deg, #c084fc 0%, #9333ea 100%);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 2px 8px rgba(147, 51, 234, 0.6);
}

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

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

.hyperdrive-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;
}

.hyperdrive-pill-btn.active {
    background: rgba(168, 85, 247, 0.2);
    border-color: rgba(192, 132, 252, 0.5);
    color: #f3e8ff;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.25);
}

/* Playback Runner Status Box */
.hyperdrive-status-box {
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(168, 85, 247, 0.32);
    border-radius: 11px;
    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: #c084fc;
}

.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: #c084fc;
    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;
}

.status-quick-btn.active {
    background: rgba(168, 85, 247, 0.15);
    border-color: rgba(192, 132, 252, 0.35);
    color: #e9d5ff;
}

.lang-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #a855f7;
}

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

.hyperdrive-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;
}

.hyperdrive-mini-btn.active-state {
    background: rgba(168, 85, 247, 0.28);
    border-color: rgba(192, 132, 252, 0.55);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.35);
}

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

/* Floating Subtitle HUD Overlay (In-Video Conveyor) */
.hyperdrive-hero-hud {
    width: 100%;
    background: rgba(10, 10, 16, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(168, 85, 247, 0.32);
    border-radius: 12px;
    padding: 10px 14px 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 1px rgba(168, 85, 247, 0.4);
    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: #c084fc;
    font-family: "Geist Mono", monospace;
    flex-shrink: 0;
}

/* .hero-mockup-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 5;
}

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

.hyperdrive-panel {
    width: 100%;
    max-width: 340px;
    background: rgba(14, 14, 22, 0.94);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(168, 85, 247, 0.28);
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 1px rgba(168, 85, 247, 0.4);
    color: #f1f1f1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.hyperdrive-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);
}

.hyperdrive-brand {
    display: flex;
    align-items: center;
    gap: 6px;
}

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

.hyperdrive-badge {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 2px 6px;
    background: linear-gradient(135deg, #7928ca 0%, #a855f7 100%);
    color: #fff;
    border-radius: 4px;
}

.hyperdrive-content {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px;
}

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

.hyperdrive-section-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #9ca3af;
}

.hyperdrive-preset-group {
    display: flex;
    gap: 6px;
}

.hyperdrive-chip {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #a1a1aa;
    padding: 7px 4px;
    border-radius: 8px;
    font-size: 11px;
    text-align: center;
    font-weight: 500;
    transition: all 0.2s ease;
}

.hyperdrive-chip.active {
    background: rgba(168, 85, 247, 0.25);
    color: #f3e8ff;
    border-color: rgba(192, 132, 252, 0.6);
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.3);
}

.hyperdrive-slider-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
}

.hyperdrive-slider-container {
    width: 100%;
    padding: 4px 0;
}

.hyperdrive-range-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 3px;
    outline: none;
}

.hyperdrive-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: linear-gradient(135deg, #c084fc 0%, #9333ea 100%);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 2px 8px rgba(147, 51, 234, 0.6);
}

.hyperdrive-status-box {
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #c084fc;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #c084fc;
    border-radius: 50%;
}

.status-dot.pulsing {
    animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
    0% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(192, 132, 252, 0.7);
    }

    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 6px rgba(192, 132, 252, 0);
    }

    100% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(192, 132, 252, 0);
    }
}

.hyperdrive-mock-hud {
    background: rgba(12, 12, 18, 0.92);
    border: 1px solid rgba(168, 85, 247, 0.35);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 12px;
    color: #f3e8ff;
    line-height: 1.45;
} */

/* ==============================================================
   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;
}

.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: rgba(168, 85, 247, 0.22);
    color: #fff;
    border: 1px solid rgba(192, 132, 252, 0.4);
}

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

.video-frame {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    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: 20px;
}

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

.video-cont .cover:hover .player {
    transform: scale(1.12);
    background: rgba(168, 85, 247, 0.55);
}

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

/* ==============================================================
   Features & Pricing
   ============================================================== */

   /* 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: rgba(13, 13, 20, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(168, 85, 247, 0.22);
    border-radius: 20px;
    padding: 34px 32px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, 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(192, 132, 252, 0.5), transparent);
}

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

.feature-card:hover {
    transform: translateY(-3px);
    border-color: rgba(192, 132, 252, 0.45);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 24px rgba(168, 85, 247, 0.18);
}

.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.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.2);
}

.feature-spec-pill {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--accent-purple);
    background: rgba(168, 85, 247, 0.12);
    border: 1px solid rgba(168, 85, 247, 0.28);
    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;
}

/* .features-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px 100px;
    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);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    background: var(--surface-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
}

.feature-card p {
    color: var(--color);
    font-size: 14.5px;
    line-height: 1.6;
} */

.sect3 {
    max-width: 1240px;
    margin: 0 auto;
    padding: 80px 24px 100px;
    width: 100%;
}

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

.free-banner {
    background: rgba(168, 85, 247, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px 24px;
    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: 4px 10px;
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid rgba(192, 132, 252, 0.4);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-purple);
    text-transform: uppercase;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

.free-banner-title {
    color: #fff;
    font-weight: 600;
    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);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: all 0.25s ease;
}

.sub-plan-cont:hover {
    background: var(--surface-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-3px);
}

.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: linear-gradient(135deg, var(--dark-purple), var(--primary-purple));
    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 12px rgba(168, 85, 247, 0.4);
    z-index: 10;
}

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

.price-title-sub {
    font-size: 13.5px;
    color: var(--accent-purple);
    margin-top: 4px;
    font-weight: 500;
}

.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: 600;
    color: var(--accent-purple);
}

.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: 28px auto 0;
    padding: 14px 20px;
    background: rgba(168, 85, 247, 0.04);
    border: 1px dashed rgba(168, 85, 247, 0.25);
    border-radius: 12px;
    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(--accent-purple);
    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: 12px;
    overflow: hidden;
    transition: all 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;
}

.faq-question:hover {
    background: rgba(168, 85, 247, 0.05);
}

.faq-arrow {
    color: var(--accent-purple);
    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;
}

footer a:hover {
    color: var(--accent-purple);
}

/* ==============================================================
   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: rgba(13, 13, 20, 0.95);
    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: 10px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--color);
    border: 1px solid transparent !important;
    transition: all 0.2s ease;
    text-align: left;
}

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

.tab-btn:hover {
    background: var(--btn-hover-color);
    color: #fff;
}

.tab-btn:hover svg {
    stroke: var(--accent-purple);
}

.tab-btn.active {
    background: rgba(168, 85, 247, 0.2);
    color: #fff;
    border: 1px solid rgba(192, 132, 252, 0.4) !important;
}

.tab-btn.active svg {
    stroke: var(--accent-purple);
}

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

.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 40%, #c084fc 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);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.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: 6px;
    overflow: hidden;
    margin: 14px 0 10px;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 6px;
    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;
    cursor: pointer;
}

.chart-bar:hover {
    opacity: 1 !important;
    filter: brightness(1.25);
}

.chart-tooltip {
    position: fixed;
    background: rgba(18, 18, 26, 0.96);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
    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);
}

.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;
}

.settings-list a:hover {
    color: var(--accent-purple);
}

.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, 5, 8, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.cookie-modal,
.upg-downg-canc-cont {
    background: rgba(15, 15, 23, 0.96);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 28px;
    max-width: 520px;
    width: 90%;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8);
    position: relative;
}

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

.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;
    }
}

/* ==============================================================
   Modal Pricing & Scroll Container Enhancements
   ============================================================== */
   .subscribe-to-plan-bg .scroll-cont {
    width: 100%;
    max-width: 1080px; /* Expands cards to full readable desktop width */
    max-height: 90vh;  /* Enables smooth scrolling on smaller screens */
    overflow-y: auto;
    padding: 40px 24px;
    margin: 0 auto;
}

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

.subscribe-to-plan-bg .sub-plan-cont {
    min-height: 540px; /* Guarantees uniform card heights */
}

/* Close button positioning */
.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: all 0.2s ease;
}

.subscribe-to-plan-bg .bg-close-btn:hover {
    background: rgba(168, 85, 247, 0.25);
    border-color: rgba(192, 132, 252, 0.6);
    transform: scale(1.08);
}

@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 {
        grid-template-columns: 1fr;
        padding-top: 130px;
        gap: 48px;
    }

    .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: 768px) {
    h1 {
        font-size: 40px;
    }

    nav ul {
        display: none;
    }

    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(--accent-purple);
    background: rgba(168, 85, 247, 0.12);
    border: 1px solid rgba(192, 132, 252, 0.35);
}

.tier-status-badge.active {
    color: #86efac;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.35);
}

.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: 12px;
    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: all 0.2s ease;
}

.upgrade-downgrade-bg .bg-close-btn:hover {
    background: rgba(168, 85, 247, 0.25);
    border-color: rgba(192, 132, 252, 0.6);
    transform: scale(1.08);
}


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

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

.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: rgba(17, 13, 20, 0.98);
    border: 1px solid rgba(239, 68, 68, 0.45);
    border-radius: 20px;
    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);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    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: 12px;
    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: 10px;
    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: 10px;
    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);
}