/* ═══════════════════════════════════════════════════════════════
   KNOW YOUR BODY — Premium Design System
   ═══════════════════════════════════════════════════════════════ */

:root {
    --bg-primary: #0b0f19;
    --bg-secondary: #111827;
    --bg-card: #1a1f35;
    --bg-card-hover: #1f2645;
    --accent: #22d3ee;
    --accent-dim: #0e7490;
    --accent-glow: rgba(34, 211, 238, 0.15);
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border: rgba(148, 163, 184, 0.1);
    --border-accent: rgba(34, 211, 238, 0.25);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --glass: rgba(17, 24, 39, 0.7);
    --glass-border: rgba(148, 163, 184, 0.08);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Reset & Base ──────────────────────────────────────────── */

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

html {
    scroll-behavior: smooth;
}

html, body {
    font-family: var(--font);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Landing page: no scroll. Subpages: scroll. */
body:not(.subpage) {
    height: 100vh;
    overflow: hidden;
}

body.subpage {
    overflow-y: auto;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: #67e8f9; }

::selection { background: rgba(34, 211, 238, 0.3); }

/* ─── Header / Nav ──────────────────────────────────────────── */

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 40px;
    background: linear-gradient(180deg, var(--bg-primary) 0%, transparent 100%);
    position: relative;
    z-index: 100;
}

.company-name {
    flex-shrink: 0;
}

.company-name a {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    line-height: 1;
}

.know, .logo-know {
    font-family: 'Impact', 'Arial Black', sans-serif;
    font-size: 22px;
    letter-spacing: 4px;
    color: white;
    text-shadow: 0 0 20px rgba(34, 211, 238, 0.3);
}

.your-body, .logo-your-body {
    font-family: 'Impact', 'Arial Black', sans-serif;
    font-size: 22px;
    letter-spacing: 4px;
    color: white;
    text-shadow: 0 0 20px rgba(34, 211, 238, 0.3);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.nav-menu li {
    position: relative;
}

.nav-menu > ul > li > a {
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    display: block;
    text-decoration: none;
}

.nav-menu > ul > li > a:hover,
.nav-menu .dropdown:hover > a {
    color: var(--accent);
    background: var(--accent-glow);
}

/* Dropdown menus */
.nav-menu .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-secondary);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px;
    padding-top: 16px;
    min-width: 220px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    list-style: none;
    margin: 0;
}

.nav-menu .dropdown:hover .dropdown-menu,
.dropdown.active .dropdown-menu {
    display: block;
}

.nav-menu .dropdown-menu li {
    padding: 0;
    border: none;
    margin: 0;
}

.nav-menu .dropdown-menu a {
    color: var(--text-secondary);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    display: block;
    transition: all var(--transition);
    text-decoration: none;
}

.nav-menu .dropdown-menu a:hover {
    color: var(--accent);
    background: var(--accent-glow);
}

/* The Google widget must remain in the layout for the engine to function,
   but we hide it visually with clip + zero-opacity (display:none breaks it). */
#google_translate_element {
    position: fixed !important;
    bottom: 0;
    right: 0;
    width: 0;
    height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    clip: rect(0, 0, 0, 0);
}

/* Suppress every piece of UI Google injects on top of our page. */
.goog-te-banner-frame,
iframe.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
iframe.skiptranslate,
.VIpgJd-ZVi9od-ORHb-OEVmcd,
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf,
.VIpgJd-ZVi9od-aZ2wEe { display: none !important; visibility: hidden !important; }
.goog-tooltip,
.goog-tooltip:hover,
.goog-tooltip-arrow { display: none !important; }
.goog-text-highlight { background: transparent !important; box-shadow: none !important; }

/* Google forces `body { top: 40px }` to make room for its banner. Override. */
html, body { top: 0 !important; position: static !important; }
body.goog-te-spinner-pos { background-color: transparent !important; }

.lang-picker {
    display: inline-block;
    margin-left: 12px;
    position: relative;
}

.lang-picker::after {
    content: '';
    position: absolute;
    right: 14px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-right: 1.5px solid var(--text-muted);
    border-bottom: 1.5px solid var(--text-muted);
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
    transition: border-color var(--transition);
}

.lang-picker:hover::after { border-color: var(--accent); }

.lang-picker select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    background: linear-gradient(180deg, rgba(20, 26, 44, 0.9), rgba(15, 21, 35, 0.9));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 8px 34px 8px 16px;
    cursor: pointer;
    transition: all var(--transition);
}

.lang-picker select:hover {
    border-color: rgba(34, 211, 238, 0.4);
    color: var(--text-primary);
    box-shadow: 0 4px 16px rgba(34, 211, 238, 0.12);
}

.lang-picker select:focus {
    outline: none;
    border-color: var(--accent);
    color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.18);
}

/* Native <option> styling is intentionally limited by the browser; we
   apply what we can so the open dropdown reads as part of our theme. */
.lang-picker select option {
    background: #141a2c;
    color: var(--text-primary);
    padding: 8px 12px;
    font-size: 13px;
    border-radius: 8px;
}

.lang-picker select option:checked {
    background: linear-gradient(135deg, var(--accent), #818cf8);
    color: #0b0f19;
    font-weight: 600;
}

/* ─── Landing Page ──────────────────────────────────────────── */

.content {
    display: flex;
    height: calc(100vh - 70px);
}

.left-container {
    width: 42%;
    padding: 40px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-glow);
    border: 1px solid var(--border-accent);
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 24px;
    width: fit-content;
}

.slogan {
    font-size: clamp(40px, 5vw, 72px);
    font-weight: 800;
    line-height: 1.05;
    margin: 0 0 20px;
    color: var(--text-primary);
    letter-spacing: -1px;
}

.slogan-accent {
    background: linear-gradient(135deg, var(--accent), #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.slogan-description {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0 0 32px;
    max-width: 460px;
    font-weight: 400;
}

.hero-features {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.hero-feature-icon {
    color: var(--accent);
    font-size: 10px;
}

.right-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Start Button */
.start-button {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 28px 64px;
    background: linear-gradient(135deg, var(--accent), #818cf8);
    color: var(--bg-primary);
    border: none;
    border-radius: var(--radius-lg);
    font-family: var(--font);
    font-size: 28px;
    font-weight: 800;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 8px 40px rgba(34, 211, 238, 0.35);
    letter-spacing: 0.5px;
}

.start-button:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 48px rgba(34, 211, 238, 0.5);
}

.start-button:active {
    transform: translateY(0) scale(0.98);
}

.start-button-arrow {
    font-size: 32px;
    transition: transform var(--transition);
}

.start-button:hover .start-button-arrow {
    transform: translateX(6px);
}

/* ─── 3D Viewer ─────────────────────────────────────────────── */

#threejs-container {
    position: relative;
    width: 100%;
    height: 100%;
}

#loadingSpinner {
    border: 4px solid var(--border);
    border-top: 4px solid var(--accent);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    animation: spin 0.8s linear infinite;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    display: none;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Hide ugly scrollbar on left panel */
#leftContainer {
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.15) transparent;
}

#leftContainer::-webkit-scrollbar {
    width: 4px;
}

#leftContainer::-webkit-scrollbar-track {
    background: transparent;
}

#leftContainer::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.2);
    border-radius: 4px;
}

#leftContainer::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.35);
}

/* Hide scrollbar on overlay */
.results-overlay {
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.15) transparent;
}

.results-overlay::-webkit-scrollbar {
    width: 4px;
}

.results-overlay::-webkit-scrollbar-track {
    background: transparent;
}

.results-overlay::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.2);
    border-radius: 4px;
}

/* ─── AI Question Step Indicator & Mini Spinner ────────────── */

.question-step-indicator {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent);
    margin-bottom: 8px;
    opacity: 0.8;
}

.mini-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    flex-shrink: 0;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

/* ─── Instructions & Questionnaire ──────────────────────────── */

.instructions {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
}

#leftContainer h2 {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 16px;
}

#leftContainer p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Done button */
.done-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px !important;
    background: linear-gradient(135deg, var(--accent), #818cf8) !important;
    color: var(--bg-primary) !important;
    border: none;
    border-radius: var(--radius) !important;
    font-family: var(--font) !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 4px 24px rgba(34, 211, 238, 0.3);
    margin-top: 24px !important;
    width: auto !important;
    height: auto !important;
}

.done-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(34, 211, 238, 0.4);
    background: linear-gradient(135deg, var(--accent), #818cf8) !important;
}

/* ─── Selected-parts chips & active left panel ─────────────── */

/* When the left panel is "active" (after Start), give it Apple-like
   rounded corners, a soft surface and a small floating shadow. */
.left-container.left-panel-active {
    width: 28vw;
    min-width: 280px;
    margin: 16px 0 16px 16px;
    padding: 28px 26px;
    background: linear-gradient(180deg, #141a2c 0%, #0f1523 100%);
    border: 1px solid var(--border);
    border-radius: 28px;
    color: var(--text-primary);
    overflow-y: auto;
    justify-content: flex-start !important;
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}

.left-container.left-panel-active .instructions {
    font-size: 22px;
    line-height: 1.3;
    margin: 0 0 22px;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.parts-section {
    background: rgba(34, 211, 238, 0.04);
    border: 1px solid rgba(34, 211, 238, 0.15);
    border-radius: 18px;
    padding: 16px 16px 14px;
    margin-bottom: 22px;
}

.parts-label {
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 1.6px;
    color: var(--accent) !important;
    margin: 0 0 12px !important;
    line-height: 1 !important;
}

.parts-empty {
    font-size: 13px !important;
    color: var(--text-muted) !important;
    margin: 0 !important;
    font-style: italic;
}

.parts-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.part-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.18), rgba(129, 140, 248, 0.12));
    border: 1px solid rgba(34, 211, 238, 0.35);
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
    letter-spacing: 0.1px;
    box-shadow: 0 2px 8px rgba(34, 211, 238, 0.12);
    animation: chipIn 0.18s ease-out;
}

@keyframes chipIn {
    from { opacity: 0; transform: scale(0.85); }
    to { opacity: 1; transform: scale(1); }
}

/* Question buttons */
.question-button {
    padding: 10px 20px;
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    margin: 4px;
}

.question-button:hover {
    border-color: var(--accent);
    background: var(--accent-glow);
    color: var(--accent);
}

/* Next button */
.next-button {
    display: inline-flex;
    align-items: center;
    padding: 12px 32px;
    background: linear-gradient(135deg, var(--accent), #818cf8);
    color: var(--bg-primary);
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 4px 16px rgba(34, 211, 238, 0.25);
    margin-top: 16px;
}

.next-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(34, 211, 238, 0.35);
}

/* Custom symptom input */
.custom-symptom-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 14px;
    transition: border-color var(--transition);
    margin: 12px 0;
}

.custom-symptom-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.custom-symptom-input::placeholder {
    color: var(--text-muted);
}

.char-count {
    font-size: 12px;
    color: var(--text-muted);
    text-align: right;
    margin-top: -8px;
    margin-bottom: 8px;
}

/* ─── Results Overlay ───────────────────────────────────────── */

.results-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(5, 8, 15, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    padding: 60px 24px;
    opacity: 0;
}

.results-overlay.visible {
    opacity: 1;
    animation: overlayFadeIn 0.35s ease-out forwards;
}

@keyframes overlayFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Loading State */
.overlay-loading {
    text-align: center;
    animation: fadeInUp 0.5s ease-out;
    margin-top: 30vh;
}

.overlay-spinner {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 32px;
}

.spinner-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid transparent;
}

.spinner-ring:nth-child(1) {
    border-top-color: var(--accent);
    animation: spin 1s linear infinite;
}

.spinner-ring:nth-child(2) {
    inset: 8px;
    border-right-color: #818cf8;
    animation: spin 1.5s linear infinite reverse;
}

.spinner-ring:nth-child(3) {
    inset: 16px;
    border-bottom-color: var(--accent);
    animation: spin 2s linear infinite;
}

.overlay-loading-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 12px;
}

.overlay-loading-text {
    font-size: 15px;
    color: var(--text-secondary);
    max-width: 360px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Results Content */
.overlay-content {
    width: 100%;
    max-width: 720px;
    position: relative;
    animation: fadeInUp 0.5s ease-out;
}

.overlay-close {
    position: fixed;
    top: 20px;
    right: 28px;
    background: rgba(148, 163, 184, 0.1);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    z-index: 10;
}

.overlay-close:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.overlay-header {
    text-align: center;
    margin-bottom: 32px;
}

.overlay-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 8px;
    letter-spacing: -0.5px;
}

.overlay-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* Urgency */
.overlay-urgency {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 28px;
    animation: pulseGlow 2s ease-in-out infinite;
}

.overlay-urgency.emergency {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.overlay-urgency.urgent {
    background: rgba(251, 191, 36, 0.12);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.urgency-icon {
    font-weight: 900;
    font-size: 18px;
}

/* Condition Cards */
.overlay-cards-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.overlay-card {
    background: rgba(26, 31, 53, 0.8);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all 0.3s ease;
    animation: cardSlideIn 0.5s ease-out backwards;
}

.overlay-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(34, 211, 238, 0.08);
}

.overlay-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.overlay-card-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
}

.overlay-badge {
    padding: 5px 14px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    white-space: nowrap;
}

.overlay-badge.high { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.overlay-badge.medium { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }
.overlay-badge.low { background: rgba(34, 197, 94, 0.15); color: #4ade80; }

.overlay-card-desc {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0 0 18px;
}

.overlay-card-details {
    display: flex;
    flex-direction: column;
    gap: 14px;
    border-top: 1px solid var(--border);
    padding-top: 18px;
}

.overlay-detail-item {
    font-size: 14px;
    line-height: 1.6;
}

.overlay-detail-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    margin-bottom: 4px;
}

.overlay-detail-item p {
    margin: 0;
    color: var(--text-secondary);
}

/* Advice & Disclaimer */
.overlay-advice {
    background: rgba(34, 211, 238, 0.06);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius);
    padding: 20px 24px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.overlay-advice strong {
    color: var(--accent);
}

.overlay-disclaimer {
    background: rgba(148, 163, 184, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
    font-size: 12px;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.overlay-disclaimer strong {
    color: var(--text-secondary);
}

/* Actions */
.overlay-actions {
    text-align: center;
    padding-bottom: 20px;
}

.overlay-restart-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--accent), #818cf8);
    color: var(--bg-primary);
    border: none;
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 4px 24px rgba(34, 211, 238, 0.3);
}

.overlay-restart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(34, 211, 238, 0.4);
}

/* Error */
.overlay-error-container {
    text-align: center;
    max-width: 420px;
    margin: 0 auto;
}

.overlay-error-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.12);
    border: 2px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
    font-size: 28px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.overlay-error-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 12px;
}

.overlay-error-msg {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0 0 28px;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes cardSlideIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 transparent; }
    50% { box-shadow: 0 0 20px rgba(239, 68, 68, 0.1); }
}

/* ─── Settings Gear (FAB bottom-left) ──────────────────────── */

.settings-fab {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 998;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(17, 24, 39, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    padding: 0;
}

.settings-fab:hover {
    color: var(--accent);
    border-color: var(--border-accent);
    transform: rotate(45deg);
    box-shadow: 0 4px 24px rgba(34, 211, 238, 0.18);
}

.settings-modal {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(5, 8, 15, 0.7);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 24px;
    animation: disclaimerFadeIn 0.25s ease-out;
}

.settings-modal.open {
    display: flex;
}

.settings-card {
    background: linear-gradient(180deg, #141a2b 0%, #0f1523 100%);
    border: 1px solid rgba(34, 211, 238, 0.18);
    border-radius: 18px;
    padding: 22px 22px 18px;
    max-width: 360px;
    width: 100%;
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.55),
        0 0 80px rgba(34, 211, 238, 0.06);
    animation: disclaimerCardIn 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.settings-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.2px;
}

.settings-close {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: all var(--transition);
}

.settings-close:hover {
    color: var(--text-primary);
    border-color: var(--border);
    background: rgba(148, 163, 184, 0.05);
}

.settings-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.settings-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition);
}

.settings-link svg {
    flex-shrink: 0;
    color: var(--text-muted);
    transition: color var(--transition);
}

.settings-link:hover {
    background: rgba(34, 211, 238, 0.06);
    color: var(--text-primary);
}

.settings-link:hover svg {
    color: var(--accent);
}

@media (max-width: 500px) {
    .settings-fab { bottom: 16px; left: 16px; width: 38px; height: 38px; }
}

/* ─── Account Prompt Modal ─────────────────────────────────── */

.account-prompt-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(5, 8, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 24px;
    animation: disclaimerFadeIn 0.3s ease-out;
}

.account-prompt-card {
    position: relative;
    background: linear-gradient(180deg, #141a2b 0%, #0f1523 100%);
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 20px;
    padding: 40px 36px 32px;
    max-width: 440px;
    width: 100%;
    text-align: center;
    box-shadow:
        0 32px 80px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.03) inset,
        0 0 120px rgba(34, 211, 238, 0.08);
    animation: disclaimerCardIn 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.account-prompt-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.6;
}

.account-prompt-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.18), rgba(129, 140, 248, 0.12));
    border: 1px solid rgba(34, 211, 238, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin: 0 auto 20px;
    box-shadow: 0 8px 32px rgba(34, 211, 238, 0.15);
}

.account-prompt-card h2 {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 10px;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.account-prompt-card p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0 0 28px;
}

.account-prompt-card p strong { color: var(--text-primary); font-weight: 600; }

.account-prompt-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.account-prompt-primary {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--accent), #818cf8);
    color: #0b0f19;
    border: none;
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 4px 24px rgba(34, 211, 238, 0.25);
}

.account-prompt-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(34, 211, 238, 0.45);
}

.account-prompt-secondary {
    width: 100%;
    padding: 13px;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

.account-prompt-secondary:hover {
    background: rgba(148, 163, 184, 0.05);
    color: var(--text-primary);
    border-color: rgba(148, 163, 184, 0.25);
}

@media (max-width: 500px) {
    .account-prompt-card { padding: 32px 24px 24px; }
    .account-prompt-card h2 { font-size: 20px; }
}

/* ─── Footer (NOT fixed — just at the bottom) ───────────────── */

.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 12px 24px;
    text-align: center;
    position: absolute;
    bottom: 0;
    width: 100%;
}

.footer-inner { max-width: 800px; margin: 0 auto; }

.footer-links { margin-bottom: 4px; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 12px; font-weight: 500; }
.footer-links a:hover { color: var(--accent); }
.footer-sep { color: var(--text-muted); margin: 0 8px; font-size: 12px; }

.footer-disclaimer {
    color: var(--text-muted);
    font-size: 11px;
    margin: 0;
    opacity: 0.7;
}

/* ─── Chatbot ───────────────────────────────────────────────── */

#chatbot-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
}

#open-chatbot {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--accent), #818cf8);
    color: var(--bg-primary);
    border: none;
    padding: 12px 20px;
    border-radius: 100px;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 4px 20px rgba(34, 211, 238, 0.3);
}

#open-chatbot:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(34, 211, 238, 0.4);
}

#open-chatbot svg { flex-shrink: 0; }

#chatbot-window {
    display: flex;
    flex-direction: column;
    width: 360px;
    height: 480px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    position: fixed;
    bottom: 80px;
    right: 24px;
    z-index: 1001;
    overflow: hidden;
}

#chatbot-header {
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 15px;
    border-bottom: 1px solid var(--border);
}

#close-chatbot {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    padding: 0 4px;
    transition: color var(--transition);
}

#close-chatbot:hover { color: var(--text-primary); }

#chatbot-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary);
}

.chat-message {
    margin-bottom: 10px;
    padding: 10px 14px;
    border-radius: var(--radius);
    max-width: 85%;
    word-wrap: break-word;
    font-size: 13px;
    line-height: 1.5;
}

.chat-user {
    background: linear-gradient(135deg, var(--accent), #818cf8);
    color: var(--bg-primary);
    margin-left: auto;
    font-weight: 500;
}

.chat-assistant {
    background: var(--bg-card);
    color: var(--text-secondary);
}

.typing-indicator { color: var(--text-muted); font-style: italic; }

#chatbot-input-container {
    display: flex;
    border-top: 1px solid var(--border);
    background: var(--bg-card);
}

#chatbot-input {
    flex: 1;
    border: none;
    padding: 14px 16px;
    font-size: 14px;
    font-family: var(--font);
    background: transparent;
    color: var(--text-primary);
}

#chatbot-input::placeholder { color: var(--text-muted); }
#chatbot-input:focus { outline: none; }

#send-chatbot {
    border: none;
    padding: 14px 18px;
    background: transparent;
    color: var(--accent);
    cursor: pointer;
    transition: color var(--transition);
    display: flex;
    align-items: center;
}

#send-chatbot:hover { color: #67e8f9; }

/* ─── Subpage: Hero ─────────────────────────────────────────── */

.page-hero {
    text-align: center;
    padding: 80px 24px 60px;
    background: linear-gradient(180deg, rgba(34, 211, 238, 0.08) 0%, transparent 100%);
    border-bottom: 1px solid var(--border);
}

.page-hero h1 {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    margin: 0 0 12px;
    letter-spacing: -0.5px;
}

.page-hero p {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

.page-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

/* ─── Cards ─────────────────────────────────────────────────── */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 32px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: all var(--transition);
}

.card:hover {
    transform: translateY(-3px);
    border-color: var(--border-accent);
    box-shadow: 0 8px 32px rgba(34, 211, 238, 0.08);
}

.card-icon { font-size: 32px; margin-bottom: 14px; display: block; }

.card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 10px;
}

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

/* ─── Team Grid ─────────────────────────────────────────────── */

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 32px;
}

.team-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    transition: all var(--transition);
}

.team-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-accent);
}

.team-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #818cf8);
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--bg-primary);
}

.team-card h3 { font-size: 16px; font-weight: 600; margin: 0 0 4px; }
.team-card .team-role { color: var(--accent); font-size: 13px; font-weight: 600; margin: 0 0 6px; }
.team-card .team-major { color: var(--text-muted); font-size: 12px; margin: 0; }

/* ─── Content Sections ──────────────────────────────────────── */

.content-section { margin-bottom: 40px; }
.content-section h2 { font-size: 24px; font-weight: 700; margin: 0 0 12px; }
.content-section p { font-size: 15px; line-height: 1.7; color: var(--text-secondary); }

.highlight-box {
    background: var(--bg-card);
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 20px 24px;
    margin: 24px 0;
}

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

/* ─── CTA Button ────────────────────────────────────────────── */

.cta-button {
    display: inline-flex;
    align-items: center;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--accent), #818cf8);
    color: var(--bg-primary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 15px;
    font-weight: 600;
    margin-top: 20px;
    transition: all var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(34, 211, 238, 0.25);
}

.cta-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(34, 211, 238, 0.35);
    color: var(--bg-primary);
}

/* ─── Contact Form ──────────────────────────────────────────── */

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    margin-top: 32px;
}

.styled-form label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.styled-form input,
.styled-form textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 15px;
    font-family: var(--font);
    margin-bottom: 18px;
    transition: border-color var(--transition);
}

.styled-form input:focus,
.styled-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.styled-form input::placeholder,
.styled-form textarea::placeholder { color: var(--text-muted); }

.styled-form textarea { resize: vertical; min-height: 120px; }

.contact-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
}

.contact-info-card h3 { font-size: 18px; font-weight: 600; margin: 0 0 20px; }

.contact-item { margin-bottom: 18px; }
.contact-item strong { display: block; color: var(--accent); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; font-weight: 700; }
.contact-item p { margin: 0; font-size: 14px; color: var(--text-secondary); }

/* ─── Partners ──────────────────────────────────────────────── */

.partner-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 12px;
    transition: border-color var(--transition);
}

.partner-card:hover { border-color: var(--border-accent); }

.partner-logo {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--accent), #818cf8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--bg-primary);
    flex-shrink: 0;
}

.partner-info h3 { font-size: 16px; font-weight: 600; margin: 0 0 4px; }
.partner-info p { font-size: 14px; color: var(--text-muted); margin: 0; line-height: 1.5; }

/* ─── About Page (redesigned) ──────────────────────────────── */

.about-page { max-width: 1080px; margin: 0 auto; padding: 0 24px 96px; }

.about-hero {
    text-align: center;
    padding: 96px 0 56px;
}

.about-eyebrow,
.section-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(34, 211, 238, 0.06);
    border: 1px solid rgba(34, 211, 238, 0.18);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 22px;
}

.section-eyebrow.centered { display: inline-block; }

.about-title {
    font-size: clamp(40px, 6vw, 68px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -1.5px;
    margin: 0 0 22px;
    color: var(--text-primary);
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent), #818cf8 70%, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-lede {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 32px;
}

.about-cta-row {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.about-cta-primary {
    display: inline-flex;
    align-items: center;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--accent), #818cf8);
    color: #0b0f19;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all var(--transition);
    box-shadow: 0 8px 28px rgba(34, 211, 238, 0.28);
}

.about-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(34, 211, 238, 0.42);
    color: #0b0f19;
}

.about-cta-secondary {
    display: inline-flex;
    align-items: center;
    padding: 14px 22px;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 999px;
    transition: all var(--transition);
}

.about-cta-secondary:hover {
    color: var(--text-primary);
    background: rgba(148, 163, 184, 0.06);
}

/* Scroll-down arrow under the hero */
.scroll-cue {
    display: flex;
    justify-content: center;
    margin-top: 56px;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.scroll-cue.is-hidden {
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
}

.scroll-cue button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(34, 211, 238, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.25);
    color: var(--accent);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scrollBounce 2s ease-in-out infinite;
    transition: all var(--transition);
}

.scroll-cue button:hover {
    background: rgba(34, 211, 238, 0.18);
    border-color: rgba(34, 211, 238, 0.5);
    box-shadow: 0 8px 24px rgba(34, 211, 238, 0.25);
    transform: scale(1.08);
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* Stats row */
.about-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    padding: 28px 32px;
    margin: 8px auto 80px;
    background: linear-gradient(180deg, #141a2c, #0f1523);
    border: 1px solid var(--border);
    border-radius: 28px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
    flex-wrap: wrap;
}

.stat-item { text-align: center; min-width: 120px; }

.stat-number {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(135deg, var(--accent), #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-label {
    font-size: 12.5px;
    color: var(--text-muted);
    margin-top: 8px;
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 36px;
    background: var(--border);
}

/* Story section */
.about-story {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
    align-items: center;
    margin-bottom: 96px;
}

.story-text h2 {
    font-size: clamp(28px, 3.4vw, 40px);
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 18px;
    letter-spacing: -0.6px;
    color: var(--text-primary);
}

.story-text p {
    font-size: 16px;
    line-height: 1.75;
    color: var(--text-secondary);
    margin: 0 0 16px;
}

.story-visual {
    display: flex;
    justify-content: center;
}

.story-visual-card {
    position: relative;
    width: 100%;
    max-width: 360px;
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(129, 140, 248, 0.08));
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 32px;
    padding: 18px;
    box-shadow: 0 24px 64px rgba(34, 211, 238, 0.12), 0 0 80px rgba(129, 140, 248, 0.08) inset;
    overflow: hidden;
}

.story-visual-card::after {
    content: '';
    position: absolute;
    top: -40%;
    left: -40%;
    width: 180%;
    height: 80%;
    background: radial-gradient(closest-side, rgba(34, 211, 238, 0.18), transparent 70%);
    pointer-events: none;
}

.visual-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 14px rgba(34, 211, 238, 0.6);
}

.visual-dot:nth-child(1) { top: 22%; left: 28%; animation: floatA 4s ease-in-out infinite; }
.visual-dot:nth-child(2) { top: 58%; left: 70%; animation: floatA 5s ease-in-out infinite 0.6s; }
.visual-dot:nth-child(3) { top: 76%; left: 30%; animation: floatA 4.5s ease-in-out infinite 1.2s; }

@keyframes floatA {
    0%, 100% { transform: translateY(0); opacity: 0.85; }
    50% { transform: translateY(-8px); opacity: 1; }
}

.visual-figure {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.visual-figure svg { width: 55%; height: 55%; opacity: 0.95; }

/* Pillars */
.about-pillars { text-align: center; margin-bottom: 88px; }

.section-title {
    font-size: clamp(28px, 3.4vw, 38px);
    font-weight: 800;
    margin: 0 0 36px;
    letter-spacing: -0.6px;
    color: var(--text-primary);
}

.section-title.centered { text-align: center; }

.pillar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    text-align: left;
}

.pillar {
    background: linear-gradient(180deg, #141a2c, #0f1523);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 28px;
    transition: all var(--transition);
}

.pillar:hover {
    transform: translateY(-3px);
    border-color: rgba(34, 211, 238, 0.3);
    box-shadow: 0 16px 36px rgba(34, 211, 238, 0.1);
}

.pillar-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(34, 211, 238, 0.12);
    border: 1px solid rgba(34, 211, 238, 0.25);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.pillar h3 {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--text-primary);
}

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

/* CTA card */
.about-cta-card {
    border-radius: 32px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.45), rgba(129, 140, 248, 0.3));
}

.cta-card-inner {
    background: radial-gradient(120% 120% at 50% 0%, rgba(34, 211, 238, 0.12) 0%, #111827 60%);
    border-radius: 31px;
    padding: 56px 32px;
    text-align: center;
}

.cta-card-inner h2 {
    font-size: clamp(26px, 3.2vw, 36px);
    font-weight: 800;
    margin: 0 0 12px;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.cta-card-inner p {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0 0 24px;
    line-height: 1.6;
}

@media (max-width: 820px) {
    .about-hero { padding: 64px 0 40px; }
    .about-stats { gap: 18px; padding: 22px; }
    .stat-divider { display: none; }
    .about-story {
        grid-template-columns: 1fr;
        gap: 32px;
        margin-bottom: 64px;
    }
    .about-pillars { margin-bottom: 56px; }
    .cta-card-inner { padding: 40px 22px; }
}

@media (max-width: 500px) {
    .about-page { padding: 0 16px 64px; }
    .about-title { letter-spacing: -1px; }
    .stat-number { font-size: 28px; }
    .stat-item { min-width: 100px; }
}

/* ─── Shared subpage redesign components ───────────────────── */

.modern-page { max-width: 1080px; margin: 0 auto; padding: 0 24px 96px; }

.modern-hero {
    text-align: center;
    padding: 88px 0 56px;
}

.modern-hero h1 {
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -1px;
    margin: 0 0 18px;
    color: var(--text-primary);
}

.modern-hero h1 .gradient-text { background: linear-gradient(135deg, var(--accent), #818cf8 70%, #c084fc); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.modern-hero .lede {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin-bottom: 72px;
}

/* For exactly 4 cards: 2x2 fixed layout (no orphan card on its own row). */
.feature-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 880px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 720px) {
    .feature-grid.cols-2 { grid-template-columns: 1fr; }
}

.feature-card {
    background: linear-gradient(180deg, #141a2c, #0f1523);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 28px;
    transition: all var(--transition);
}

.feature-card:hover {
    transform: translateY(-3px);
    border-color: rgba(34, 211, 238, 0.3);
    box-shadow: 0 16px 36px rgba(34, 211, 238, 0.1);
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(34, 211, 238, 0.12);
    border: 1px solid rgba(34, 211, 238, 0.25);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--text-primary);
}

.feature-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.65;
    color: var(--text-secondary);
}

/* Step list (numbered cards) */
.step-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin-bottom: 56px;
    counter-reset: step;
}

.step-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 880px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 720px) {
    .step-grid.cols-2 { grid-template-columns: 1fr; }
}

.step-card {
    position: relative;
    background: linear-gradient(180deg, #141a2c, #0f1523);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 32px 28px 28px;
    transition: all var(--transition);
}

.step-card:hover {
    transform: translateY(-3px);
    border-color: rgba(34, 211, 238, 0.3);
}

.step-card::before {
    counter-increment: step;
    content: counter(step, decimal-leading-zero);
    display: block;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--accent);
    margin-bottom: 14px;
    background: linear-gradient(135deg, var(--accent), #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.step-card h3 { font-size: 18px; font-weight: 700; margin: 0 0 8px; color: var(--text-primary); }
.step-card p { margin: 0; font-size: 14px; line-height: 1.65; color: var(--text-secondary); }

/* Team grid (redesigned) */
.team-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.team-card-modern {
    text-align: center;
    background: linear-gradient(180deg, #141a2c, #0f1523);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 36px 24px 28px;
    transition: all var(--transition);
}

.team-card-modern:hover {
    transform: translateY(-4px);
    border-color: rgba(34, 211, 238, 0.3);
    box-shadow: 0 16px 36px rgba(34, 211, 238, 0.12);
}

.team-avatar-modern {
    width: 84px;
    height: 84px;
    border-radius: 28px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--accent), #818cf8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 28px;
    color: #0b0f19;
    box-shadow: 0 12px 32px rgba(34, 211, 238, 0.25);
}

.team-card-modern h3 { font-size: 17px; font-weight: 700; margin: 0 0 4px; color: var(--text-primary); }
.team-card-modern .role { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.4px; color: var(--accent); margin: 0 0 8px; }
.team-card-modern .bio { font-size: 13px; line-height: 1.6; color: var(--text-secondary); margin: 0; }

/* Highlight callout */
.callout {
    background: linear-gradient(180deg, rgba(34, 211, 238, 0.06), rgba(129, 140, 248, 0.04));
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 22px;
    padding: 26px 28px;
    margin: 0 0 56px;
}

.callout p { margin: 0; font-size: 15px; line-height: 1.7; color: var(--text-secondary); }
.callout strong { color: var(--text-primary); }

/* Section title (centered, repeatable) */
.modern-section-title {
    text-align: center;
    font-size: clamp(26px, 3.4vw, 38px);
    font-weight: 800;
    margin: 0 0 32px;
    letter-spacing: -0.6px;
    color: var(--text-primary);
}

/* Big mission row (image-text alternation) */
.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 64px;
}

.feature-row.reverse { grid-template-columns: 1fr 1fr; direction: rtl; }
.feature-row.reverse > * { direction: ltr; }

.feature-row h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; margin: 0 0 14px; color: var(--text-primary); letter-spacing: -0.4px; }
.feature-row p { font-size: 16px; line-height: 1.75; color: var(--text-secondary); margin: 0 0 12px; }

.feature-visual {
    aspect-ratio: 4/3;
    border-radius: 24px;
    background: radial-gradient(120% 120% at 30% 20%, rgba(34, 211, 238, 0.15) 0%, #111827 60%);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.feature-visual svg { width: 35%; height: auto; opacity: 0.9; }

/* Contact form (redesigned) */
.contact-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 32px;
    align-items: start;
    margin-bottom: 56px;
}

.contact-form-card,
.contact-info-modern {
    background: linear-gradient(180deg, #141a2c, #0f1523);
    border: 1px solid var(--border);
    border-radius: 26px;
    padding: 32px;
}

.contact-form-card label { display: block; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.contact-form-card input,
.contact-form-card textarea {
    width: 100%;
    background: rgba(11, 15, 25, 0.7);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 14px;
    margin-bottom: 16px;
    transition: all var(--transition);
}

.contact-form-card input:focus,
.contact-form-card textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15);
}

.contact-form-card textarea { resize: vertical; min-height: 120px; }

.contact-submit {
    width: 100%;
    padding: 14px 16px;
    background: linear-gradient(135deg, var(--accent), #818cf8);
    color: #0b0f19;
    border: none;
    border-radius: 12px;
    font-family: var(--font);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 8px 24px rgba(34, 211, 238, 0.25);
}

.contact-submit:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(34, 211, 238, 0.4); }

.contact-info-modern h3 { font-size: 17px; font-weight: 700; margin: 0 0 18px; color: var(--text-primary); }
.contact-info-row { display: flex; align-items: flex-start; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.contact-info-row:last-child { border-bottom: none; }
.contact-info-row .icon-bubble {
    flex-shrink: 0;
    width: 34px; height: 34px;
    border-radius: 11px;
    background: rgba(34, 211, 238, 0.12);
    border: 1px solid rgba(34, 211, 238, 0.25);
    color: var(--accent);
    display: flex; align-items: center; justify-content: center;
}
.contact-info-row .label { font-size: 11px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--text-muted); margin: 0 0 4px; }
.contact-info-row .value { font-size: 14px; color: var(--text-primary); line-height: 1.5; margin: 0; }

@media (max-width: 820px) {
    .feature-row,
    .feature-row.reverse { grid-template-columns: 1fr; gap: 24px; direction: ltr; }
    .contact-layout { grid-template-columns: 1fr; }
    .modern-hero { padding: 56px 0 36px; }
}

@media (max-width: 500px) {
    .modern-page { padding: 0 16px 64px; }
    .feature-card, .step-card, .team-card-modern { padding: 22px; }
    .contact-form-card, .contact-info-modern { padding: 24px; }
}

/* ─── Subpage Footer ────────────────────────────────────────── */

.subpage-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 24px;
    text-align: center;
}

.subpage-footer .footer-links { margin-bottom: 6px; }
.subpage-footer .footer-links a { color: var(--text-muted); text-decoration: none; font-size: 12px; font-weight: 500; }
.subpage-footer .footer-links a:hover { color: var(--accent); }
.subpage-footer p { color: var(--text-muted); font-size: 12px; margin: 4px 0 0; opacity: 0.6; }

/* ─── Legal Pages ───────────────────────────────────────────── */

.legal-page {
    max-width: 760px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

.legal-page h1 { font-size: 32px; font-weight: 800; margin-bottom: 8px; }
.legal-date { color: var(--text-muted); font-size: 13px; margin-bottom: 40px; }
.legal-page h2 { font-size: 20px; font-weight: 600; margin-top: 32px; color: var(--text-primary); }
.legal-page h3 { font-size: 16px; font-weight: 600; margin-top: 20px; }
.legal-page p, .legal-page li { font-size: 14px; line-height: 1.8; color: var(--text-secondary); }
.legal-page a { color: var(--accent); }
.legal-page ul { padding-left: 20px; }

.medical-disclaimer-section {
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius);
    padding: 24px;
    margin: 24px 0;
}

.medical-disclaimer-section p, .medical-disclaimer-section li { color: var(--text-secondary); }

/* ─── Disclaimer Modal ─────────────────────────────────────── */

.disclaimer-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at center, rgba(13, 18, 32, 0.85) 0%, rgba(5, 8, 15, 0.98) 100%);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    padding: 24px;
    animation: disclaimerFadeIn 0.5s ease-out;
}

@keyframes disclaimerFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

html.disclaimer-accepted .disclaimer-modal { display: none !important; }

.disclaimer-card {
    position: relative;
    background: linear-gradient(180deg, #141a2b 0%, #0f1523 100%);
    border: 1px solid rgba(34, 211, 238, 0.18);
    border-radius: 20px;
    padding: 40px 40px 32px;
    max-width: 540px;
    width: 100%;
    box-shadow:
        0 32px 80px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.03) inset,
        0 0 120px rgba(34, 211, 238, 0.08);
    animation: disclaimerCardIn 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes disclaimerCardIn {
    from { opacity: 0; transform: translateY(24px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.disclaimer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.6;
}

.disclaimer-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.18), rgba(129, 140, 248, 0.12));
    border: 1px solid rgba(34, 211, 238, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--accent);
    margin: 0 auto 22px;
    box-shadow: 0 8px 32px rgba(34, 211, 238, 0.15);
}

.disclaimer-card h2 {
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 8px;
    color: var(--text-primary);
    letter-spacing: -0.4px;
    text-align: center;
}

.disclaimer-subtitle {
    font-size: 11px;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 24px;
    text-align: center;
}

.disclaimer-text {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0 0 22px;
    text-align: center;
}

.disclaimer-text strong { color: var(--text-primary); font-weight: 600; }

.disclaimer-points {
    list-style: none;
    padding: 0;
    margin: 0 0 26px;
}

.disclaimer-points li {
    position: relative;
    padding: 11px 0 11px 36px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    border-bottom: 1px solid rgba(148, 163, 184, 0.06);
}

.disclaimer-points li:last-child { border-bottom: none; }

.disclaimer-points li strong {
    color: var(--text-primary);
    font-weight: 600;
}

.disclaimer-points li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(34, 211, 238, 0.12);
    border: 1px solid rgba(34, 211, 238, 0.3);
}

.disclaimer-points li::after {
    content: '';
    position: absolute;
    left: 9px;
    top: 22px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px rgba(34, 211, 238, 0.6);
}

.disclaimer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    margin: 0 0 22px;
}

.disclaimer-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 22px;
    cursor: pointer;
    padding: 14px;
    border-radius: var(--radius);
    background: rgba(34, 211, 238, 0.04);
    border: 1px solid rgba(34, 211, 238, 0.12);
    transition: all var(--transition);
}

.disclaimer-check:hover {
    background: rgba(34, 211, 238, 0.07);
    border-color: rgba(34, 211, 238, 0.22);
}

.disclaimer-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 1px;
    accent-color: var(--accent);
    flex-shrink: 0;
    cursor: pointer;
}

.disclaimer-check label {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    cursor: pointer;
    user-select: none;
}

.disclaimer-accept-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--accent), #818cf8);
    color: #0b0f19;
    border: none;
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: not-allowed;
    transition: all var(--transition);
    opacity: 0.4;
}

.disclaimer-accept-btn.active {
    opacity: 1;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(34, 211, 238, 0.35);
}

.disclaimer-accept-btn.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(34, 211, 238, 0.5);
}

/* ─── Mobile Menu ──────────────────────────────────────────── */

.mobile-menu-btn {
    display: none;
    width: 44px;
    height: 44px;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    z-index: 1100;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.hamburger {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.mobile-menu-btn.active .hamburger { background: transparent; }
.mobile-menu-btn.active .hamburger::before { top: 0; transform: rotate(45deg); }
.mobile-menu-btn.active .hamburger::after { top: 0; transform: rotate(-45deg); }

.mobile-drawer-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1040;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.mobile-drawer-backdrop.visible { opacity: 1; }

.mobile-drawer {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: min(85vw, 340px);
    height: 100vh;
    height: 100dvh;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border);
    z-index: 1050;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -8px 0 48px rgba(0, 0, 0, 0.6);
}

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

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

.mobile-drawer-header .drawer-logo {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.mobile-drawer-header .drawer-logo span {
    font-family: 'Impact', 'Arial Black', sans-serif;
    font-size: 18px;
    letter-spacing: 3px;
    color: white;
}

.mobile-drawer-close {
    width: 36px;
    height: 36px;
    background: none;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.mobile-drawer-close:hover {
    color: var(--text-primary);
    border-color: var(--text-muted);
}

.mobile-drawer-nav {
    list-style: none;
    padding: 8px 0;
    margin: 0;
}

.mobile-drawer-nav > li { border-bottom: 1px solid var(--border); }

.mobile-drawer-nav > li > a,
.mobile-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    font-family: var(--font);
}

.mobile-drawer-nav > li > a:active,
.mobile-dropdown-toggle:active {
    background: var(--accent-glow);
}

.mobile-chevron {
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg);
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.mobile-dropdown-toggle.active .mobile-chevron { transform: rotate(-135deg); }

.mobile-sub-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(0, 0, 0, 0.2);
}

.mobile-sub-menu.open { max-height: 500px; }

.mobile-sub-menu li a {
    display: block;
    padding: 14px 24px 14px 40px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    transition: all var(--transition);
    border-bottom: 1px solid rgba(148, 163, 184, 0.04);
}

.mobile-sub-menu li a:active {
    color: var(--accent);
    background: var(--accent-glow);
}

.mobile-drawer-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.mobile-drawer-footer p {
    font-size: 11px;
    color: var(--text-muted);
    margin: 0;
    text-align: center;
    opacity: 0.6;
}

/* ─── Responsive: Tablet ───────────────────────────────────── */

@media (max-width: 1024px) {
    .nav-menu > ul > li > a { font-size: 13px; padding: 8px 10px; }
    .left-container { width: 46%; padding: 32px; }
    .start-button { padding: 22px 48px; font-size: 24px; }
    .page-content { padding: 40px 20px 60px; }
    .card-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}

/* ─── Responsive: Mobile ───────────────────────────────────── */

@media (max-width: 768px) {
    /* Header */
    .header {
        padding: 12px 16px;
        position: sticky;
        top: 0;
        background: var(--bg-primary);
        border-bottom: 1px solid var(--border);
    }

    .nav-menu { display: none; }
    .mobile-menu-btn { display: flex; }
    .mobile-drawer-backdrop,
    .mobile-drawer { display: block; }

    /* Landing Page */
    .content {
        flex-direction: column;
        height: auto;
        min-height: calc(100vh - 58px);
    }

    body:not(.subpage) { height: auto; overflow-y: auto; }

    .left-container {
        width: 100% !important;
        padding: 32px 24px 24px !important;
        border-right: none !important;
        background: transparent !important;
        justify-content: flex-start !important;
        min-height: auto !important;
    }

    .hero-badge { font-size: 11px; padding: 5px 14px; margin-bottom: 16px; }

    .slogan {
        font-size: clamp(32px, 9vw, 48px);
        margin-bottom: 14px;
    }

    .slogan-description {
        font-size: 15px;
        margin-bottom: 24px;
        line-height: 1.6;
    }

    .hero-features { gap: 12px; }
    .hero-feature { font-size: 12px; }

    .right-container {
        width: 100%;
        min-height: 50vh;
        padding: 0;
    }

    .start-button {
        padding: 20px 48px;
        font-size: 22px;
        gap: 12px;
    }

    .start-button-arrow { font-size: 26px; }

    /* 3D Viewer */
    #threejs-container { min-height: 50vh; }

    /* Left panel (questionnaire) - mobile overrides for inline styles */
    #leftContainer {
        width: 100% !important;
        padding: 20px !important;
        border-right: none !important;
    }

    .instructions { font-size: 22px !important; }

    .done-button {
        width: 100% !important;
        height: auto !important;
        font-size: 20px !important;
        margin-top: 24px !important;
        padding: 16px 32px !important;
    }

    #leftContainer h2 { font-size: 18px; }

    .question-button {
        width: 100%;
        padding: 14px 20px;
        font-size: 15px;
        margin: 4px 0;
        text-align: left;
    }

    .next-button {
        width: 100%;
        justify-content: center;
        padding: 14px 32px;
        font-size: 16px;
        margin-top: 20px;
    }

    .custom-symptom-input { font-size: 16px; padding: 14px 16px; }

    /* Results Overlay */
    .results-overlay { padding: 20px 12px 40px; }

    .overlay-content { max-width: 100%; }

    .overlay-close {
        position: fixed;
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
        font-size: 20px;
    }

    .overlay-title { font-size: 26px; }

    .overlay-card { padding: 20px; }
    .overlay-card-name { font-size: 18px; }

    .overlay-card-header {
        flex-direction: column;
        gap: 8px;
    }

    .overlay-badge { align-self: flex-start; }

    .overlay-loading { margin-top: 20vh; }
    .overlay-loading-title { font-size: 22px; }

    .overlay-restart-btn {
        width: 100%;
        justify-content: center;
    }

    /* Subpage Hero */
    .page-hero {
        padding: 40px 20px 32px;
    }

    .page-hero h1 { font-size: clamp(26px, 7vw, 36px); }

    .page-hero p {
        font-size: 15px;
        line-height: 1.6;
    }

    /* Subpage Content */
    .page-content {
        padding: 32px 20px 60px;
    }

    .content-section { margin-bottom: 32px; }
    .content-section h2 { font-size: 20px; }
    .content-section p { font-size: 14px; }

    .highlight-box { padding: 16px 20px; }

    /* Grids */
    .card-grid { grid-template-columns: 1fr; gap: 14px; margin-top: 24px; }

    .card {
        padding: 24px;
    }

    .card-icon { font-size: 28px; margin-bottom: 12px; }
    .card h3 { font-size: 17px; }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-top: 24px;
    }

    .team-card { padding: 20px 14px; }
    .team-avatar { width: 56px; height: 56px; font-size: 18px; margin-bottom: 12px; }
    .team-card h3 { font-size: 14px; }
    .team-card .team-role { font-size: 12px; }
    .team-card .team-major { font-size: 11px; }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .styled-form input,
    .styled-form textarea {
        font-size: 16px;
        padding: 14px 16px;
    }

    .contact-info-card { padding: 24px; }

    /* Partners */
    .partner-card {
        flex-direction: column;
        text-align: center;
        padding: 24px 20px;
        gap: 14px;
    }

    .partner-logo { width: 48px; height: 48px; font-size: 18px; }

    /* Legal */
    .legal-page { padding: 32px 20px 60px; }
    .legal-page h1 { font-size: 26px; }
    .legal-page h2 { font-size: 18px; }
    .medical-disclaimer-section { padding: 20px; }

    /* CTA */
    .cta-button {
        width: 100%;
        justify-content: center;
        padding: 16px 32px;
        font-size: 16px;
    }

    /* Footer */
    .site-footer {
        position: relative;
        padding: 16px 20px;
    }

    .subpage-footer { padding: 20px 16px; }

    /* Chatbot */
    #chatbot-container { bottom: 16px; right: 16px; }

    #open-chatbot {
        padding: 10px 16px;
        font-size: 13px;
    }

    #chatbot-window {
        width: calc(100vw - 32px);
        height: 60vh;
        bottom: 70px;
        right: 16px;
        max-height: 480px;
    }

    /* Disclaimer modal */
    .disclaimer-card { padding: 28px 24px; }
    .disclaimer-card h2 { font-size: 20px; }
    .disclaimer-icon { width: 48px; height: 48px; font-size: 20px; }
}

/* ─── Responsive: Small Mobile ─────────────────────────────── */

@media (max-width: 400px) {
    .header { padding: 10px 12px; }

    .company-name a { gap: 0; }
    .know, .logo-know, .your-body, .logo-your-body { font-size: 18px; letter-spacing: 3px; }

    .slogan { font-size: 30px; }
    .slogan-description { font-size: 14px; }

    .left-container { padding: 24px 16px !important; }

    .start-button { padding: 18px 36px; font-size: 20px; }

    .page-hero { padding: 32px 16px 24px; }
    .page-hero h1 { font-size: 24px; }
    .page-hero p { font-size: 14px; }

    .page-content { padding: 24px 16px 48px; }

    .team-grid { grid-template-columns: 1fr; }

    .card { padding: 20px; }

    .disclaimer-card { padding: 24px 18px; }
    .disclaimer-card h2 { font-size: 18px; }

    #chatbot-window {
        width: calc(100vw - 16px);
        right: 8px;
    }
}
