/* ==========================================================================
   Zyx Learning — Refined Duolingo-Inspired Design System
   - Strictly Original Zyx Blue (#007bff / #0056b3) & Gold (#ffc107 / #e0a800)
   - Thin 1px stroke (#e2e8f0) on header, sidebar, cards & buttons
   - Translucent frosted header on scroll
   - Sentence case typography, zero line-wrap bugs, large image cards, minimal copy
   ========================================================================== */

:root {
    --duo-blue: #007bff;
    --duo-blue-lip: #0056b3;
    --zyx-blue: #007bff;
    --zyx-blue-lip: #0056b3;
    --duo-gold: #ffc107;
    --duo-gold-lip: #d9a404;
    --duo-navy: #004080;
    --duo-charcoal: #1e293b;
    --duo-muted: #64748b;
    --duo-border: #e2e8f0;
    --duo-surface: #f8fafc;
    --duo-active-bg: #eef5ff;
    --duo-active-border: #b8d8ff;
    --zyx-stroke: 1px;
}

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

html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #ffffff;
    color: var(--duo-charcoal);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, p, span, strong, small, a, label, button, input, select, textarea {
    overflow-wrap: break-word;
    word-break: break-word;
}

.footer {
    display: none !important;
}

/* ==========================================================================
   1. TACTILE BUTTONS (1px Stroke + 2px Tactile Lip, Sentence Case, No Wrap)
   ========================================================================== */
.duo-btn,
.btn-tactile,
.zyx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 46px;
    padding: 0 1.35rem;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-transform: none;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    border: var(--zyx-stroke) solid transparent;
    box-sizing: border-box;
    user-select: none;
    transition: transform 0.1s ease, box-shadow 0.1s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.duo-btn-sm,
.zyx-btn-sm {
    min-height: 38px;
    padding: 0 0.95rem;
    border-radius: 10px;
    font-size: 0.84rem;
}

/* Primary Zyx Blue Button */
.duo-btn-blue,
.duo-btn-green,
.btn-tactile-blue,
.btn-tactile-green,
.zyx-btn-primary,
.zyx-btn-blue {
    background-color: var(--zyx-blue);
    border-color: var(--zyx-blue-lip);
    color: #ffffff;
    box-shadow: 0 2px 0 var(--zyx-blue-lip);
}
.duo-btn-blue:hover,
.duo-btn-green:hover,
.zyx-btn-blue:hover {
    background-color: #0069d9;
}
.duo-btn-blue:active,
.duo-btn-green:active,
.zyx-btn-blue:active {
    transform: translateY(1px);
    box-shadow: 0 1px 0 var(--zyx-blue-lip);
}

/* Gold Accent Button */
.duo-btn-gold,
.btn-tactile-gold,
.zyx-btn-gold {
    background-color: var(--duo-gold);
    border-color: var(--duo-gold-lip);
    color: #1e293b;
    box-shadow: 0 2px 0 var(--duo-gold-lip);
}
.duo-btn-gold:hover,
.zyx-btn-gold:hover {
    background-color: #ffca2c;
}
.duo-btn-gold:active,
.zyx-btn-gold:active {
    transform: translateY(1px);
    box-shadow: 0 1px 0 var(--duo-gold-lip);
}

/* Clean 1px Outline Button */
.duo-btn-outline,
.btn-tactile-white,
.zyx-btn-outline {
    background-color: #ffffff;
    color: var(--zyx-blue);
    border: var(--zyx-stroke) solid var(--duo-border);
    box-shadow: 0 2px 0 var(--duo-border);
}
.duo-btn-outline:hover,
.zyx-btn-outline:hover {
    background-color: var(--duo-surface);
    border-color: #cbd5e1;
}
.duo-btn-outline:active,
.zyx-btn-outline:active {
    transform: translateY(1px);
    box-shadow: 0 1px 0 var(--duo-border);
}

/* ==========================================================================
   2. NAVIGATION: TRANSLUCENT TOP HEADER vs. COLLAPSIBLE SIDEBAR + TAB BAR
   ========================================================================== */
.duo-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}
.duo-brand-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    transform-origin: 50% 50%;
    animation: zyxWindmillSpin 12s linear infinite;
    display: inline-block;
    will-change: transform;
}
@keyframes zyxWindmillSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(-360deg);
    }
}
.duo-brand-word {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--zyx-blue);
    letter-spacing: -0.03em;
    line-height: 1;
}

/* A. Standalone Main Header (iOS Safe Area Responsive, Translucent on Scroll) */
.duo-landing-header {
    position: sticky;
    top: 0;
    z-index: 1400;
    min-height: 72px;
    padding-top: calc(max(env(safe-area-inset-top, 0px), 16px) + 8px);
    padding-bottom: 12px;
    padding-left: max(env(safe-area-inset-left, 0px), 1.25rem);
    padding-right: max(env(safe-area-inset-right, 0px), 1.25rem);
    box-sizing: border-box;
    background: #ffffff;
    border-bottom: var(--zyx-stroke) solid var(--duo-border);
    display: flex;
    align-items: center;
    transition: background-color 0.2s ease, backdrop-filter 0.2s ease, box-shadow 0.2s ease;
}
.duo-landing-header.scrolled {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}
.duo-landing-header-inner {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.duo-landing-nav {
    display: none;
    align-items: center;
    gap: 0.35rem;
}
.duo-landing-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.85rem;
    border-radius: 10px;
    background: transparent;
    border: none;
    text-decoration: none;
    color: var(--duo-charcoal);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    transition: color 0.14s ease, background-color 0.14s ease;
}
.duo-landing-nav-link:hover,
.duo-landing-nav-link.active {
    color: var(--zyx-blue);
    background-color: var(--duo-active-bg);
}

/* Hover Sub-Tab Dropdowns */
.duo-nav-dropdown {
    position: relative;
}
.duo-dropdown-panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 295px;
    max-width: calc(100vw - 2rem);
    background: #ffffff;
    border: var(--zyx-stroke) solid var(--duo-border);
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    padding: 0.45rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
    z-index: 1500;
}
.duo-nav-dropdown:hover .duo-dropdown-panel,
.duo-nav-dropdown:focus-within .duo-dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.duo-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.55rem 0.7rem;
    border-radius: 10px;
    text-decoration: none;
    color: var(--duo-charcoal);
    transition: background-color 0.12s ease;
    min-width: 0;
}
.duo-dropdown-item > div {
    min-width: 0;
    flex: 1 1 auto;
}
.duo-dropdown-item:hover {
    background-color: var(--duo-surface);
}
.duo-drop-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--duo-active-bg);
    color: var(--zyx-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.duo-dropdown-item strong {
    display: block;
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--duo-charcoal);
    white-space: normal;
    word-break: break-word;
    line-height: 1.3;
}
.duo-dropdown-item small {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--duo-muted);
    white-space: normal;
    word-break: break-word;
    line-height: 1.35;
}

.duo-landing-right {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}
.duo-mobile-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: var(--zyx-stroke) solid var(--duo-border);
    border-radius: 10px;
    background: #ffffff;
    color: var(--duo-charcoal);
    cursor: pointer;
    flex-shrink: 0;
}
@media (min-width: 920px) {
    .duo-landing-nav { display: flex; }
    .duo-landing-header .duo-mobile-menu-btn { display: none; }
}

/* User Chip & Tier Badge (Single Line, Never Wraps) */
.duo-user-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.32rem 0.65rem;
    border-radius: 10px;
    border: var(--zyx-stroke) solid var(--duo-border);
    background: #ffffff;
    color: var(--duo-charcoal);
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}
.duo-user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: var(--duo-active-bg);
    color: var(--zyx-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.duo-tier-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    background: var(--duo-active-bg);
    color: var(--zyx-blue);
}
.duo-tier-pill.premium {
    background: #fff8db;
    color: #9a6b00;
    border: 1px solid #fde08d;
}

/* B. Collapsible Left Sidebar (Only on Student Workspace Pages) */
.duo-sidebar {
    display: none;
}

/* C. Current Tab Title Header (On Dashboard & Workspace Tabs + iOS Safe Area Responsive) */
.duo-tab-header {
    position: sticky;
    top: 0;
    z-index: 1250;
    min-height: 66px;
    padding-top: calc(max(env(safe-area-inset-top, 0px), 14px) + 6px);
    padding-bottom: 10px;
    padding-left: max(env(safe-area-inset-left, 0px), 1.15rem);
    padding-right: max(env(safe-area-inset-right, 0px), 1.15rem);
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: var(--zyx-stroke) solid var(--duo-border);
    display: flex;
    align-items: center;
}
.duo-tab-header-inner {
    width: 100%;
    max-width: 1020px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.duo-tab-header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}
.duo-current-tab-title {
    margin: 0;
    font-size: 1.18rem;
    font-weight: 800;
    color: var(--duo-charcoal);
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.duo-tab-header-right {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
}
.duo-hide-sm {
    display: none;
}
@media (min-width: 640px) {
    .duo-hide-sm { display: inline; }
}

@media (min-width: 900px) {
    .duo-tab-header .duo-mobile-menu-btn {
        display: none;
    }
    /* Offset body ONLY when .duo-sidebar is present on the page */
    body:has(.duo-sidebar) {
        padding-left: 248px;
        transition: padding-left 0.2s ease;
    }
    body.zyx-sidebar-collapsed:has(.duo-sidebar) {
        padding-left: 76px;
    }
    .duo-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 248px;
        background: #ffffff;
        border-right: var(--zyx-stroke) solid var(--duo-border);
        padding: 1.15rem 0.85rem;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        z-index: 1300;
        overflow-y: auto;
        overflow-x: hidden;
        transition: width 0.2s ease, padding 0.2s ease;
    }
    .duo-sidebar.collapsed {
        width: 76px;
        padding: 1.15rem 0.5rem;
    }
    .duo-sidebar.collapsed .duo-sidebar-label {
        display: none !important;
    }
    .duo-sidebar-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 0.35rem 1rem;
    }
    .duo-sidebar.collapsed .duo-sidebar-top {
        flex-direction: column;
        gap: 0.65rem;
        padding: 0 0 0.9rem;
    }
    .duo-sidebar-brand {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        text-decoration: none;
        white-space: nowrap;
    }
    .duo-sidebar-collapse-btn {
        width: 28px;
        height: 28px;
        border-radius: 8px;
        border: var(--zyx-stroke) solid var(--duo-border);
        background: #ffffff;
        color: var(--duo-muted);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        flex-shrink: 0;
        transition: transform 0.2s ease, background-color 0.14s ease;
    }
    .duo-sidebar-collapse-btn:hover {
        background: var(--duo-surface);
        color: var(--duo-charcoal);
    }
    .duo-sidebar.collapsed .duo-sidebar-collapse-btn svg {
        transform: rotate(180deg);
    }

    /* Compact User Chip inside Sidebar (Fixed Layout, Never Wraps Awkwardly) */
    .duo-sidebar-user {
        display: flex;
        align-items: center;
        gap: 0.6rem;
        padding: 0.5rem 0.6rem;
        margin-bottom: 0.75rem;
        border: var(--zyx-stroke) solid var(--duo-border);
        border-radius: 12px;
        text-decoration: none;
        color: var(--duo-charcoal);
        background: #ffffff;
        min-width: 0;
    }
    .duo-sidebar.collapsed .duo-sidebar-user {
        justify-content: center;
        padding: 0.45rem;
    }
    .duo-sidebar-avatar {
        width: 32px;
        height: 32px;
        border-radius: 8px;
        background: var(--duo-active-bg);
        color: var(--zyx-blue);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
    .duo-sidebar-user-meta {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.4rem;
        flex: 1;
        min-width: 0;
    }
    .duo-sidebar-user-meta strong {
        font-size: 0.84rem;
        font-weight: 700;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .duo-sidebar-nav {
        display: flex;
        flex-direction: column;
        gap: 0.2rem;
    }
    .duo-side-item {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        height: 44px;
        padding: 0 0.7rem;
        border-radius: 10px;
        border: var(--zyx-stroke) solid transparent;
        text-decoration: none;
        color: var(--duo-muted);
        font-size: 0.86rem;
        font-weight: 700;
        white-space: nowrap;
        transition: background-color 0.14s ease, color 0.14s ease;
    }
    .duo-sidebar.collapsed .duo-side-item {
        justify-content: center;
        padding: 0;
    }
    .duo-side-item:hover {
        background-color: var(--duo-surface);
        color: var(--duo-charcoal);
    }
    .duo-side-item.active {
        background-color: var(--duo-active-bg);
        border-color: var(--duo-active-border);
        color: var(--zyx-blue);
    }
    .duo-side-icon {
        width: 30px;
        height: 30px;
        border-radius: 8px;
        background: var(--duo-surface);
        color: var(--zyx-blue);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
    .duo-side-item.active .duo-side-icon {
        background: #ffffff;
    }
    .duo-side-badge {
        margin-left: auto;
        font-size: 0.68rem;
        font-weight: 700;
        padding: 0.1rem 0.42rem;
        border-radius: 6px;
        background: var(--duo-surface);
        color: var(--duo-muted);
        border: 1px solid var(--duo-border);
        white-space: nowrap;
        flex-shrink: 0;
    }
    .duo-side-badge.unlocked {
        background: #fff8db;
        color: #9a6b00;
        border-color: #fde08d;
    }

    .duo-sidebar-promo {
        margin-top: auto;
        padding: 0.9rem;
        border: var(--zyx-stroke) solid var(--duo-border);
        border-radius: 12px;
        text-align: center;
        background: #ffffff;
    }
    .duo-sidebar-promo strong {
        display: block;
        font-size: 0.88rem;
        font-weight: 800;
        color: var(--duo-charcoal);
        margin-bottom: 0.2rem;
    }
    .duo-sidebar-promo p {
        margin: 0 0 0.65rem;
        font-size: 0.76rem;
        color: var(--duo-muted);
        line-height: 1.35;
    }
}

/* ==========================================================================
   3. LANDING PAGE SECTIONS (Frameless 3D Hero, Minimal Copy, Large Image Cards)
   ========================================================================== */
.duo-landing-main {
    background-color: #ffffff;
    overflow-x: hidden;
}

/* Hero Section — Frameless Floating 3D Molecule Left + Clean Copy Right */
.duo-hero {
    max-width: 980px;
    margin: 0 auto;
    padding: 3rem 1.5rem 3.5rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.25rem;
    align-items: center;
    justify-items: center;
}
@media (min-width: 860px) {
    .duo-hero {
        grid-template-columns: 440px 1fr;
        gap: 3.5rem;
        padding: 4rem 1.5rem 4.5rem;
    }
}

.duo-hero-stage {
    width: 100%;
    max-width: 440px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.duo-hero-3d-box {
    width: 100%;
    height: 350px;
    background: transparent;
    border: none;
    box-shadow: none;
    position: relative;
}
.duo-hero-3d-box model-viewer {
    width: 100%;
    height: 100%;
    background: transparent;
    --poster-color: transparent;
}
.duo-hero-switcher {
    display: flex;
    gap: 0.4rem;
    margin-top: 0.35rem;
    flex-wrap: wrap;
    justify-content: center;
}
.duo-switch-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.38rem 0.75rem;
    border-radius: 10px;
    border: var(--zyx-stroke) solid var(--duo-border);
    background: #ffffff;
    color: var(--duo-muted);
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.14s ease;
}
.duo-switch-pill.active {
    background: var(--duo-active-bg);
    border-color: var(--duo-active-border);
    color: var(--zyx-blue);
}

.duo-hero-copy {
    max-width: 440px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.duo-hero-title {
    margin: 0 0 1.75rem;
    font-size: clamp(1.85rem, 3.3vw, 2.2rem);
    line-height: 1.25;
    font-weight: 800;
    color: var(--duo-charcoal);
    letter-spacing: -0.02em;
}
.duo-hero-actions {
    width: 100%;
    max-width: 310px;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}
.duo-hero-actions .duo-btn {
    width: 100%;
}

/* Alternating 2-Column Feature Rows */
.duo-feature-row {
    max-width: 960px;
    margin: 0 auto;
    padding: 3.75rem 1.5rem;
    border-top: var(--zyx-stroke) solid var(--duo-border);
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.25rem;
    align-items: center;
}
@media (min-width: 860px) {
    .duo-feature-row {
        grid-template-columns: 1fr 1fr;
        gap: 4.5rem;
        padding: 4.5rem 1.5rem;
    }
    .duo-feature-row.reverse .duo-feature-text {
        order: 2;
    }
    .duo-feature-row.reverse .duo-feature-art {
        order: 1;
    }
}

.duo-feature-text {
    max-width: 420px;
    margin: 0 auto;
}
.duo-feature-heading {
    margin: 0 0 0.85rem;
    font-size: clamp(1.85rem, 3.5vw, 2.4rem);
    line-height: 1.15;
    font-weight: 800;
    color: var(--zyx-blue);
    letter-spacing: -0.02em;
}
.duo-feature-copy {
    margin: 0;
    font-size: 1rem;
    line-height: 1.55;
    color: var(--duo-muted);
    font-weight: 600;
}

.duo-feature-art {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    background: #ffffff;
    border: var(--zyx-stroke) solid var(--duo-border);
    border-radius: 20px;
    padding: 1.25rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.85rem;
}
.duo-feature-art img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: 14px;
    border: var(--zyx-stroke) solid var(--duo-border);
}
.duo-art-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem;
}
.duo-mini-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.65rem;
    border-radius: 8px;
    border: var(--zyx-stroke) solid var(--duo-border);
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--duo-muted);
    background: #ffffff;
    white-space: nowrap;
}

/* Clean Section Container */
.duo-clean-section {
    max-width: 1020px;
    margin: 0 auto;
    padding: 3.75rem 1.5rem;
    border-top: var(--zyx-stroke) solid var(--duo-border);
}
.duo-section-header {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 2.25rem;
}
.duo-section-kicker {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    border-radius: 8px;
    background: var(--duo-active-bg);
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--zyx-blue);
    margin-bottom: 0.5rem;
}
.duo-section-title {
    margin: 0 0 0.45rem;
    font-size: clamp(1.65rem, 3.2vw, 2.15rem);
    font-weight: 800;
    color: var(--duo-charcoal);
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.duo-section-sub {
    margin: 0;
    font-size: 0.96rem;
    color: var(--duo-muted);
    font-weight: 600;
    line-height: 1.5;
}

/* Cards Grids & Large-Image Visual Cards (Store, Team, Careers) */
.duo-cards-grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
@media (min-width: 760px) {
    .duo-cards-grid-2 {
        grid-template-columns: 1fr 1fr;
    }
}
.duo-cards-grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
@media (min-width: 860px) {
    .duo-cards-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}
.duo-cards-grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1.25rem;
}
@media (min-width: 480px) and (max-width: 768px) {
    .duo-cards-grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}
@media (max-width: 479px) {
    .duo-cards-grid-4 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .duo-cards-grid-4.metrics-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.65rem;
    }
}
@media (max-width: 340px) {
    .duo-cards-grid-4.metrics-grid {
        grid-template-columns: 1fr;
    }
}
.duo-card {
    background: #ffffff;
    border: var(--zyx-stroke) solid var(--duo-border);
    border-radius: 16px;
    padding: 1.35rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.9rem;
    transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}
.duo-card:hover {
    transform: translateY(-2px);
    border-color: var(--duo-active-border);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}
.duo-card.highlight-gold {
    border-color: var(--duo-gold);
}

/* School Lab Programs & Bulk Licenses Card (High Visual Hierarchy) */
.duo-program-card {
    background: #ffffff;
    border: var(--zyx-stroke) solid var(--duo-border);
    border-radius: 18px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.25rem;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.duo-program-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}
.duo-program-card.highlight-blue {
    border: 1.5px solid var(--zyx-blue);
    background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 100%);
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.08);
}
.duo-program-head {
    display: flex;
    flex-direction: column;
}
.duo-program-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}
.duo-program-badge {
    display: inline-block;
    padding: 0.22rem 0.6rem;
    border-radius: 6px;
    background: var(--duo-surface);
    border: 1px solid var(--duo-border);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #475569;
}
.duo-program-card.highlight-blue .duo-program-badge {
    background: #e0efff;
    border-color: #b8d8ff;
    color: var(--zyx-blue);
}
.duo-program-title {
    margin: 0 0 0.65rem;
    font-size: 1.22rem;
    font-weight: 800;
    color: var(--duo-charcoal);
    line-height: 1.25;
}
.duo-program-price-wrap {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
    white-space: nowrap;
}
.duo-program-price {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--zyx-blue);
    letter-spacing: -0.02em;
    white-space: nowrap;
}
.duo-program-period {
    font-size: 0.88rem;
    font-weight: 700;
    color: #64748b;
    white-space: nowrap;
}
.duo-program-desc {
    margin: 0;
    font-size: 0.88rem;
    color: #475569;
    line-height: 1.5;
}
.duo-program-cta {
    width: 100%;
    min-height: 44px;
    justify-content: center;
}

/* Visual Image Card (Big Image Space + Minimal Text) */
.duo-img-card {
    background: #ffffff;
    border: var(--zyx-stroke) solid var(--duo-border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}
.duo-img-card:hover {
    transform: translateY(-2px);
    border-color: var(--duo-active-border);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}
.duo-card-media {
    width: 100%;
    height: 190px;
    background: var(--duo-surface);
    border-bottom: var(--zyx-stroke) solid var(--duo-border);
    position: relative;
    overflow: hidden;
}
.duo-card-media.portrait {
    height: 250px;
    background: var(--duo-surface);
    position: relative;
    overflow: hidden;
}
.duo-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.25s ease;
}
.duo-card-media.portrait .duo-card-img {
    object-position: top center;
}
.duo-img-card:hover .duo-card-img {
    transform: scale(1.03);
}
@media (max-width: 480px) {
    .duo-card-media.portrait {
        height: 280px;
    }
}
.duo-card-floating-badge {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--duo-border);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--zyx-blue);
    white-space: nowrap;
}
.duo-card-body {
    padding: 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    gap: 0.75rem;
}
.duo-card-body h3 {
    margin: 0 0 0.2rem;
    font-size: 1rem;
    font-weight: 800;
    color: var(--duo-charcoal);
    line-height: 1.3;
}
.duo-card-body p {
    margin: 0;
    font-size: 0.84rem;
    color: var(--duo-muted);
    line-height: 1.4;
}
.duo-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: 0.65rem;
    border-top: var(--zyx-stroke) solid var(--duo-border);
}

.duo-check-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.55rem;
}
.duo-check-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--duo-charcoal);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f1f5f9;
}
.duo-check-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* Horizontal Outreach Timeline + Image Bento Grid */
.duo-timeline-track {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.65rem;
    margin-bottom: 1.25rem;
    scrollbar-width: thin;
    scroll-snap-type: x mandatory;
    align-items: stretch;
}
.duo-timeline-pill {
    flex: 0 0 240px;
    scroll-snap-align: start;
    text-align: left;
    background: #ffffff;
    border: var(--zyx-stroke) solid var(--duo-border);
    border-radius: 14px;
    padding: 0.85rem 1rem;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.14s ease;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.4rem;
}
.duo-timeline-pill.active {
    background: var(--duo-active-bg);
    border-color: var(--zyx-blue);
    box-shadow: 0 4px 14px rgba(0, 123, 255, 0.12);
}
.duo-timeline-pill-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.35rem;
    width: 100%;
}
.duo-timeline-pill-phase {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--zyx-blue);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}
.duo-timeline-pill-count {
    font-size: 0.68rem;
    font-weight: 700;
    color: #475569;
    background: #f1f5f9;
    padding: 0.15rem 0.45rem;
    border-radius: 6px;
    white-space: nowrap;
}
.duo-timeline-pill.active .duo-timeline-pill-count {
    background: #e0efff;
    color: var(--zyx-blue);
}
.duo-timeline-pill-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--duo-charcoal);
    line-height: 1.3;
    min-height: 2.3em;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.duo-timeline-pill-loc {
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--duo-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}
@media (max-width: 480px) {
    .duo-timeline-pill {
        flex: 0 0 215px;
        padding: 0.75rem 0.85rem;
    }
}

.duo-bento-stage {
    background: #ffffff;
    border: var(--zyx-stroke) solid var(--duo-border);
    border-radius: 18px;
    padding: 1.5rem;
    box-sizing: border-box;
}
@media (max-width: 640px) {
    .duo-bento-stage {
        padding: 1rem 0.9rem;
        border-radius: 16px;
    }
}
.duo-bento-stage-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}
.duo-bento-headline-col {
    flex: 1 1 320px;
    min-width: 0;
}
.duo-bento-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}
.duo-bento-loc-tag {
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
    overflow-wrap: anywhere;
}
.duo-bento-headline,
.duo-bento-title {
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--duo-charcoal);
    letter-spacing: -0.02em;
    line-height: 1.25;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.duo-bento-sub {
    margin: 0;
    font-size: 0.92rem;
    color: #475569;
    line-height: 1.45;
    max-width: 620px;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.duo-bento-quote-box {
    flex: 0 1 320px;
    max-width: 320px;
    border: var(--zyx-stroke) solid var(--duo-border);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    background: var(--duo-surface);
    box-sizing: border-box;
}
.duo-bento-quote-text {
    margin: 0 0 0.35rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--duo-charcoal);
    line-height: 1.45;
    font-style: italic;
    overflow-wrap: anywhere;
}
.duo-bento-quote-author {
    font-weight: 700;
    color: var(--zyx-blue);
    font-size: 0.78rem;
    display: block;
    overflow-wrap: anywhere;
}
.duo-outreach-foot-cta {
    text-align: center;
    margin-top: 1.75rem;
}
@media (max-width: 640px) {
    .duo-bento-stage {
        padding: 0.95rem 0.85rem;
        border-radius: 16px;
    }
    .duo-bento-stage-head {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.65rem;
        margin-bottom: 0.75rem;
    }
    .duo-bento-headline-col {
        flex: 0 0 auto !important;
        width: 100% !important;
        min-height: 0 !important;
    }
    .duo-bento-meta-row {
        gap: 0.4rem;
        margin-bottom: 0.25rem;
    }
    .duo-bento-loc-tag {
        font-size: 0.75rem;
    }
    .duo-bento-title {
        font-size: 1.15rem;
        margin: 0 0 0.25rem;
        line-height: 1.25;
    }
    .duo-bento-sub {
        font-size: 0.84rem;
        line-height: 1.4;
        margin: 0;
    }
    .duo-bento-quote-box {
        flex: 0 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
        min-height: 0 !important;
        padding: 0.65rem 0.85rem;
        border-radius: 10px;
        box-sizing: border-box;
    }
    .duo-bento-quote-text {
        font-size: 0.8rem;
        line-height: 1.4;
        margin-bottom: 0.25rem;
    }
    .duo-bento-quote-author {
        font-size: 0.75rem;
    }
}

.duo-bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 0;
}
@media (max-width: 960px) and (min-width: 581px) {
    .duo-bento-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.85rem;
    }
}
@media (max-width: 580px) {
    .duo-bento-grid {
        grid-template-columns: 1fr;
        gap: 0.65rem;
        margin-top: 0;
    }
}
.duo-bento-tile {
    position: relative;
    background: #ffffff;
    border: var(--zyx-stroke) solid var(--duo-border);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    min-width: 0;
}
.duo-bento-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}
.duo-bento-video-wrap,
.duo-bento-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #0f172a;
}
.duo-bento-video-wrap img,
.duo-bento-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-bottom: var(--zyx-stroke) solid var(--duo-border);
    transition: transform 0.3s ease;
}
.duo-bento-tile:hover .duo-bento-video-wrap img,
.duo-bento-tile:hover .duo-bento-img-wrap img {
    transform: scale(1.04);
}
.duo-bento-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 123, 255, 0.92);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 123, 255, 0.5);
    pointer-events: none;
    transition: transform 0.2s ease, background-color 0.2s ease;
}
.duo-bento-tile:hover .duo-bento-play-btn {
    transform: translate(-50%, -50%) scale(1.12);
    background: #007bff;
}
.duo-bento-video-badge,
.duo-bento-photo-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(15, 23, 42, 0.84);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.22rem 0.5rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    letter-spacing: 0.03em;
    max-width: calc(100% - 16px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
}
.duo-bento-photo-badge {
    bottom: auto;
    top: 8px;
    left: 8px;
    right: auto;
}
.duo-bento-tile-body {
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex: 1 1 auto;
    box-sizing: border-box;
}
.duo-bento-tile strong {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--duo-charcoal);
    line-height: 1.35;
    min-height: 2.4em;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.duo-bento-caption {
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.78rem;
    line-height: 1.4;
    color: var(--duo-muted);
    overflow-wrap: anywhere;
    word-break: break-word;
}
/* Stat Tile - Balanced, Zero-Dead-Space Card */
.duo-bento-tile.stat {
    background: linear-gradient(145deg, #ffffff 0%, #f0f7ff 100%);
    border: 1.5px solid #d0e4ff;
    padding: 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: auto;
}
.duo-bento-stat-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}
.duo-bento-stat-chip {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #007bff;
    background: #e6f2ff;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    white-space: nowrap;
}
.duo-bento-stat-num {
    font-size: 2.15rem;
    font-weight: 900;
    color: #1e293b;
    line-height: 1.1;
    margin: 0.25rem 0 0;
    letter-spacing: -0.02em;
    overflow-wrap: anywhere;
}
.duo-bento-stat-caption {
    font-size: 0.82rem;
    color: #64748b;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}
@media (max-width: 580px) {
    .duo-bento-tile strong {
        min-height: auto;
    }
    .duo-bento-tile.stat {
        padding: 1rem 1.15rem;
        gap: 0.5rem;
    }
    .duo-bento-stat-num {
        font-size: 1.85rem;
    }
}

/* Bottom Closing CTA + Brand Footer */
.duo-bottom-cta {
    max-width: 680px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
    text-align: center;
    border-top: var(--zyx-stroke) solid var(--duo-border);
}
.duo-bottom-cta h2 {
    margin: 0 0 1.4rem;
    font-size: clamp(1.75rem, 3.5vw, 2.3rem);
    color: var(--zyx-blue);
    font-weight: 800;
    line-height: 1.2;
}

.duo-footer {
    background-color: var(--zyx-blue);
    color: #ffffff;
    padding: 3.5rem 1.5rem 3rem;
    border-top: 2px solid var(--duo-gold);
}
.duo-footer-grid {
    max-width: 980px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 2rem;
}
.duo-footer-col h4 {
    margin: 0 0 0.75rem;
    font-size: 0.92rem;
    font-weight: 800;
    color: #ffffff;
}
.duo-footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.45rem;
}
.duo-footer-col a {
    color: rgba(255, 255, 255, 0.84);
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 600;
}
.duo-footer-col a:hover {
    color: #ffffff;
}
.duo-footer-bottom {
    max-width: 980px;
    margin: 2.5rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
}
.duo-footer-socials {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
}
.duo-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    text-decoration: none;
    transition: background-color 0.18s ease, transform 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.duo-social-btn:hover {
    background: #ffffff;
    color: var(--zyx-blue);
    border-color: #ffffff;
    transform: translateY(-2px);
}

/* ==========================================================================
   4. CLEAN ONBOARDING MODAL & MOBILE DRAWER (1px Stroke)
   ========================================================================== */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1900;
    opacity: 0;
    transition: opacity 0.22s ease;
}
.drawer-overlay.show {
    opacity: 1;
}
.drawer-overlay[hidden] {
    display: none;
}
.drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(84vw, 320px);
    background: #ffffff;
    border-right: var(--zyx-stroke) solid var(--duo-border);
    box-shadow: 8px 0 32px rgba(15, 23, 42, 0.12);
    z-index: 2000;
    transform: translateX(-102%);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    overscroll-behavior: contain;
    display: flex;
    flex-direction: column;
    padding-bottom: max(env(safe-area-inset-bottom, 0px), 1rem);
}
.drawer.open {
    transform: translateX(0);
}
.drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: max(env(safe-area-inset-top, 0px), 1rem);
    padding-bottom: 1rem;
    padding-left: 1.15rem;
    padding-right: 1.15rem;
    border-bottom: var(--zyx-stroke) solid var(--duo-border);
    background: #ffffff;
    flex-shrink: 0;
}
.drawer-auth-box {
    margin: 0.85rem 0.85rem 0.4rem;
    padding: 0.85rem;
    border: var(--zyx-stroke) solid var(--duo-border);
    border-radius: 12px;
    background: var(--duo-surface);
}
.drawer-auth-title {
    margin: 0 0 0.6rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--duo-muted);
}
.drawer-auth-actions {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}
.drawer-user-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}
.drawer-body {
    padding: 0.6rem 0.85rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    flex: 1;
}
.drawer-section-label {
    padding: 0.75rem 0.65rem 0.25rem;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--duo-muted);
}
.drawer-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    height: 42px;
    padding: 0 0.65rem;
    border-radius: 10px;
    text-decoration: none;
    color: var(--duo-charcoal);
    font-size: 0.88rem;
    font-weight: 700;
    transition: background-color 0.14s ease, color 0.14s ease;
}
.drawer-item:hover,
.drawer-item.active,
.drawer-item[aria-current="page"] {
    background-color: var(--duo-active-bg);
    color: var(--zyx-blue);
}
.drawer-item-icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: var(--duo-surface);
    color: var(--zyx-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.drawer-item:hover .drawer-item-icon,
.drawer-item.active .drawer-item-icon {
    background: #ffffff;
}
@media (max-width: 640px) {
    #btn-open-login { display: none !important; }
    .duo-landing-header .duo-btn-sm { padding: 0 0.75rem; font-size: 0.82rem; }
}
@media (max-width: 480px) {
    #zyx-nav-guest-actions .duo-btn { display: none !important; }
}

/* ==========================================================================
   4. MODALS & ONBOARDING (Clean Duolingo-grade visual hierarchy & conversion)
   ========================================================================== */
.zyx-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 2200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 1rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
}
.zyx-modal-backdrop[hidden] {
    display: none !important;
}
.zyx-modal-card {
    width: 100%;
    max-width: 500px;
    background: #ffffff;
    border: var(--zyx-stroke) solid var(--duo-border);
    border-radius: 20px;
    padding: 1.5rem 1.6rem 1.85rem;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.16);
    position: relative;
    box-sizing: border-box;
    max-height: min(92vh, 740px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    margin: auto;
    transition: max-width 0.2s ease, padding 0.2s ease;
}
.zyx-modal-card.zyx-modal-choose-mode {
    max-width: 880px;
}
@media (min-width: 768px) {
    .zyx-modal-card.zyx-modal-choose-mode .zyx-tiers-container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        align-items: stretch;
    }
    .zyx-modal-card.zyx-modal-choose-mode .zyx-tier-card {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        margin-bottom: 0;
        padding: 1.25rem 1.15rem;
    }
}
.zyx-modal-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.85rem;
}
.zyx-modal-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--duo-charcoal);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.zyx-brand-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--zyx-blue);
}
.zyx-modal-close {
    position: static;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: var(--zyx-stroke) solid var(--duo-border);
    background: #ffffff;
    color: var(--duo-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.14s ease, color 0.14s ease;
}
.zyx-modal-close:hover {
    background-color: var(--duo-surface);
    color: var(--duo-charcoal);
}

/* Modal Segmented Switcher Tabs */
.zyx-onboard-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.35rem;
    margin-bottom: 1.25rem;
    padding: 0.25rem;
    background: #f1f5f9;
    border-radius: 12px;
}
.zyx-onboard-tab {
    padding: 0.5rem 0.25rem;
    border-radius: 9px;
    border: none;
    background: transparent;
    color: var(--duo-muted);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    white-space: nowrap;
    transition: all 0.15s ease;
}
.zyx-onboard-tab.active {
    background: #ffffff;
    color: var(--zyx-blue);
    font-weight: 800;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}


.zyx-modal-header-block {
    margin-bottom: 1.2rem;
}
.zyx-step-pill {
    display: inline-block;
    padding: 0.22rem 0.6rem;
    border-radius: 6px;
    background: var(--duo-active-bg);
    color: var(--zyx-blue);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.45rem;
}
.zyx-step-pill.gold {
    background: #fff8db;
    color: #9a6b00;
}
.zyx-modal-title {
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--duo-charcoal);
    letter-spacing: -0.02em;
    line-height: 1.25;
}
.zyx-modal-sub {
    margin: 0;
    font-size: 0.88rem;
    color: var(--duo-muted);
    line-height: 1.45;
}

/* Tier Selection Cards (Zero Text Walls, Crisp Hierarchy) */
.zyx-tiers-container {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 0.5rem;
}
.zyx-tier-card {
    border: 1px solid var(--duo-border);
    border-radius: 14px;
    padding: 1.1rem 1.15rem;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    cursor: pointer;
    position: relative;
    box-sizing: border-box;
}
.zyx-tier-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}
.zyx-tier-card.popular {
    border: 1.5px solid var(--zyx-blue);
    background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 100%);
    box-shadow: 0 4px 16px rgba(0, 123, 255, 0.08);
}
.zyx-tier-card.vip {
    border: 1.5px solid #e0a800;
    background: linear-gradient(180deg, #fffdf2 0%, #ffffff 100%);
    box-shadow: 0 4px 16px rgba(217, 155, 0, 0.08);
}
.zyx-tier-popular-badge {
    position: absolute;
    top: -10px;
    right: 14px;
    background: var(--zyx-blue);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.35);
}
.zyx-tier-vip-badge {
    position: absolute;
    top: -10px;
    right: 14px;
    background: var(--duo-gold);
    color: #1e293b;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(217, 155, 0, 0.35);
}
.zyx-tier-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}
.zyx-tier-tag {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 0.15rem;
}
.zyx-tier-tag.blue { color: var(--zyx-blue); }
.zyx-tier-tag.gold { color: #9a6b00; }
.zyx-tier-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--duo-charcoal);
    line-height: 1.2;
}
.zyx-tier-price-pill {
    padding: 0.25rem 0.65rem;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.95rem;
    white-space: nowrap;
    letter-spacing: -0.01em;
}
.zyx-tier-price-pill.free {
    background: #f1f5f9;
    color: #334155;
}
.zyx-tier-price-pill.blue {
    background: var(--zyx-blue);
    color: #ffffff;
}
.zyx-tier-price-pill.gold {
    background: var(--duo-gold);
    color: #1e293b;
}
.zyx-tier-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}
.zyx-tier-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: #475569;
    line-height: 1.35;
}
.zyx-tier-checklist li svg {
    flex-shrink: 0;
    margin-top: 1px;
}
.zyx-tier-btn {
    width: 100%;
    margin-top: 0.35rem;
    justify-content: center;
}

/* Modern Form & Field Styles */
.zyx-form-fields {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.zyx-input-group {
    display: flex;
    flex-direction: column;
}
.zyx-field-label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 0.8rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.35rem;
}
.zyx-field-label small {
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 600;
}
.zyx-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.zyx-input-icon {
    position: absolute;
    left: 0.85rem;
    color: #94a3b8;
    font-weight: 700;
    font-size: 0.95rem;
    pointer-events: none;
}
.zyx-input-wrap .zyx-modern-input {
    padding-left: 2rem;
}
.zyx-modern-input {
    width: 100%;
    height: 44px;
    padding: 0 0.95rem;
    border-radius: 10px;
    border: 1px solid var(--duo-border);
    background: #f8fafc;
    font-size: 0.9rem;
    font-family: inherit;
    font-weight: 600;
    color: #1e293b;
    box-sizing: border-box;
    transition: all 0.15s ease;
}
.zyx-modern-input:focus {
    outline: none;
    border-color: var(--zyx-blue);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.12);
}
.zyx-modern-input.zyx-select {
    cursor: pointer;
    appearance: auto;
}
.zyx-field-help {
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 600;
    margin-top: 0.25rem;
}
.zyx-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
}
.zyx-optional-details {
    border-top: 1px dashed var(--duo-border);
    padding-top: 0.65rem;
    margin-top: 0.35rem;
}
.zyx-optional-summary {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--zyx-blue);
    cursor: pointer;
    user-select: none;
    list-style: none;
}
.zyx-optional-summary::-webkit-details-marker {
    display: none;
}
.zyx-optional-summary small {
    font-size: 0.74rem;
    color: var(--duo-muted);
    font-weight: 600;
}
.zyx-btn-submit {
    width: 100%;
    min-height: 48px;
    font-size: 0.95rem;
    font-weight: 800;
    margin-top: 1rem;
    justify-content: center;
}
.zyx-modal-footer-nav {
    margin-top: 1.15rem;
    text-align: center;
    font-size: 0.84rem;
    color: #64748b;
}
.zyx-link-btn {
    border: none;
    background: none;
    color: var(--zyx-blue);
    font-size: 0.84rem;
    font-weight: 800;
    cursor: pointer;
    padding: 0.2rem 0.35rem;
    font-family: inherit;
}
.zyx-link-btn:hover {
    text-decoration: underline;
}

/* Payment Method Cards */
.zyx-payment-methods {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 0.85rem;
}
.zyx-pay-card {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--duo-border);
    border-radius: 12px;
    background: #ffffff;
    cursor: pointer;
    box-sizing: border-box;
    transition: all 0.14s ease;
}
.zyx-pay-card.active {
    border-color: var(--zyx-blue);
    background: var(--duo-active-bg);
}
.zyx-pay-card input[type="radio"] {
    margin-top: 3px;
    accent-color: var(--zyx-blue);
}
.zyx-pay-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.zyx-pay-card strong {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--duo-charcoal);
}
.zyx-pay-card small {
    font-size: 0.76rem;
    color: var(--duo-muted);
}
.zyx-voucher-input-wrap {
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
}
.zyx-form-error {
    color: #dc2626;
    font-size: 0.82rem;
    font-weight: 700;
    margin: 0.45rem 0;
}

@media (max-width: 520px) {
    .zyx-modal-backdrop {
        padding: 0.5rem;
    }
    .zyx-modal-card {
        max-height: min(94vh, 680px);
        padding: 1.15rem 1rem 1.35rem;
        border-radius: 18px;
    }
    .zyx-onboard-tabs {
        margin-top: 0;
        margin-bottom: 1rem;
        gap: 0.25rem;
    }
    .zyx-onboard-tab {
        font-size: 0.74rem;
        padding: 0.45rem 0.2rem;
    }
    .zyx-form-row {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }
}

/* ==========================================================================
   5. INNER TAB OVERRIDES (1px Stroke, Sentence Case, No Legacy Blue Banner)
   ========================================================================== */
.header-container {
    background: #ffffff !important;
    color: var(--duo-charcoal) !important;
    padding: 1.25rem 1.5rem 0.5rem !important;
    border-radius: 0 !important;
    max-width: 960px;
    margin: 0 auto;
    text-align: left !important;
}
.header-container > h1 {
    display: none !important;
}
.header-container.home-header > h1 {
    display: block !important;
    font-size: 0 !important;
    margin: 0 !important;
}
.header-container.home-header > h1 .home-tag {
    display: inline-block;
    font-size: 0.88rem !important;
    font-weight: 700;
    color: var(--duo-muted);
    background: var(--duo-surface);
    border: var(--zyx-stroke) solid var(--duo-border);
    padding: 0.32rem 0.75rem;
    border-radius: 10px;
}

.search-form {
    display: flex;
    gap: 0.55rem;
    max-width: 520px;
    margin: 0 0 0.85rem !important;
}
.search-input {
    flex: 1;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    height: 42px;
    padding: 0 0.9rem !important;
    border-radius: 10px !important;
    border: var(--zyx-stroke) solid var(--duo-border) !important;
    background: var(--duo-surface) !important;
    color: var(--duo-charcoal) !important;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
}
.search-input:focus {
    outline: none;
    border-color: var(--zyx-blue) !important;
    background: #ffffff !important;
}
.search-button {
    margin: 0 !important;
    height: 42px;
    padding: 0 1.15rem !important;
    border-radius: 10px !important;
    border: var(--zyx-stroke) solid var(--zyx-blue-lip) !important;
    background: var(--zyx-blue) !important;
    color: #ffffff !important;
    font-family: inherit;
    font-size: 0.84rem;
    font-weight: 700;
    box-shadow: 0 2px 0 var(--zyx-blue-lip);
    cursor: pointer;
}

.chip-strip {
    justify-content: flex-start !important;
    gap: 0.45rem !important;
    margin: 0.45rem 0 !important;
}
.chip {
    background: #ffffff !important;
    color: var(--duo-muted) !important;
    border: var(--zyx-stroke) solid var(--duo-border) !important;
    border-radius: 10px !important;
    padding: 0.4rem 0.85rem !important;
    font-family: inherit;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    text-transform: none !important;
    white-space: nowrap;
    cursor: pointer;
}
.chip.active,
.chip[aria-pressed="true"],
.chip[aria-selected="true"] {
    background: var(--duo-active-bg) !important;
    border-color: var(--duo-active-border) !important;
    color: var(--zyx-blue) !important;
}

.card,
.details {
    background: #ffffff !important;
    border: var(--zyx-stroke) solid var(--duo-border) !important;
    border-radius: 14px !important;
    box-shadow: none !important;
}
.card:hover {
    border-color: var(--duo-active-border) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05) !important;
}
