/* ============================================
   STAGED — Unified Design System (v2)
   Paper / Ink / Tomato — flat, no gradients
   ============================================ */

/* ----- Fonts: Hero (Light 300 / Regular 400 / Bold 700) ----- */
@font-face {
    font-family: "Hero";
    src: url("/static/fonts/Hero-Light.otf") format("opentype");
    font-weight: 300;
    font-display: swap;
}
@font-face {
    font-family: "Hero";
    src: url("/static/fonts/Hero-Regular.otf") format("opentype");
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: "Hero";
    src: url("/static/fonts/Hero-Bold.otf") format("opentype");
    font-weight: 700;
    font-display: swap;
}

/* ----- CSS Variables ----- */
:root {
    /* v2 core palette (matches the marketing site) */
    --paper: #FAF4F2;
    --paper-2: #F0E8E5;
    --ink: #000000;
    --ink-warm: #3D3B38;
    --ink-soft: #404040;
    --ink-muted: #8A8079;
    --ink-faint: #C8BFB8;
    --tomato: #C81809;
    --tomato-hover: #A31407;
    --indigo: #4D55E1;
    --teal: #119DA4;

    /* semantic tokens — light (default): ink on paper, near-monochrome */
    --color-bg: var(--paper);
    --color-bg-alt: #FFFFFF;
    --color-surface: #FFFFFF;
    --color-surface-hover: var(--paper-2);
    --color-border: #F0E9E5;
    --color-text: #1A1816;
    --color-text-muted: var(--ink-soft);
    --color-text-dim: var(--ink-muted);

    /* primary = ink: dark buttons, dark active states, ink links */
    --color-primary: #1A1816;
    --color-primary-hover: #3D3B38;
    --on-primary: #FAF4F2;
    --color-secondary: var(--teal);
    --color-accent: var(--tomato);
    --color-danger: var(--tomato);

    /* legacy gradient names — now flat solids (no gradients anywhere) */
    --gradient-primary: #1A1816;
    --gradient-warm: #1A1816;
    --gradient-glow: transparent;

    /* functional glass (frosted nav/topbar only) */
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(0, 0, 0, 0.06);
    --glass-blur: blur(12px);
    --shadow-vibrant: 0 12px 32px -16px rgba(0, 0, 0, 0.14);

    /* tints */
    --tint-primary: rgba(26, 24, 22, 0.07);
    --tint-danger: rgba(200, 24, 9, 0.10);

    /* layered card shadows — soft, modern elevation */
    --shadow-sm: 0 1px 2px rgba(26, 24, 22, 0.04), 0 4px 12px rgba(26, 24, 22, 0.06);
    --shadow-md: 0 2px 4px rgba(26, 24, 22, 0.05), 0 12px 28px rgba(26, 24, 22, 0.10);
}

[data-theme="dark"] {
    /* soft charcoal + hairlines: gentle dark, cards defined by subtle borders */
    --color-bg: #1A1918;
    --color-bg-alt: #232120;
    --color-surface: #232120;
    --color-surface-hover: #2C2A28;
    --color-border: rgba(255, 255, 255, 0.09);
    --color-text: #EFEAE5;
    --color-text-muted: #C7C1BA;
    --color-text-dim: #9B958E;

    /* inverted: paper buttons on charcoal */
    --color-primary: #EFEAE5;
    --color-primary-hover: #DCD5CE;
    --on-primary: #1A1918;
    --color-danger: #F0503A;
    --gradient-primary: #EFEAE5;
    --gradient-warm: #EFEAE5;

    --glass-bg: rgba(35, 33, 32, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --shadow-vibrant: 0 12px 32px -16px rgba(0, 0, 0, 0.6);

    --tint-primary: rgba(239, 234, 229, 0.10);
    --tint-danger: rgba(240, 80, 58, 0.16);

    /* hairline ring baked into the shadow layers so every card gets a border for free */
    --shadow-sm: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 0 0 1px rgba(255, 255, 255, 0.10), 0 2px 4px rgba(0, 0, 0, 0.25), 0 12px 28px rgba(0, 0, 0, 0.3);
}

* {
    --font-sans: 'Hero', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Hero', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --section-padding: 120px;
    --container-width: 1200px;

    /* Effects — one radius scale, used everywhere (bento) */
    --radius: 16px;       /* cards, sections, inputs, menus */
    --radius-sm: 12px;    /* small inner elements (nav items, icon tiles) */
    --radius-lg: 16px;    /* alias — kept for legacy references */
    --radius-pill: 999px; /* buttons, badges, tags */
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.08);
    --shadow-glow: none;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ----- Reset & Base ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ----- Modern scrollbars: thin, rounded, track-less, fade in on hover ----- */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(26, 24, 22, 0.22) transparent;
}
[data-theme="dark"] * {
    scrollbar-color: rgba(247, 242, 239, 0.22) transparent;
}
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track,
::-webkit-scrollbar-corner {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(26, 24, 22, 0.18);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(26, 24, 22, 0.35);
    border: 2px solid transparent;
    background-clip: padding-box;
}
[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: rgba(247, 242, 239, 0.18);
    border: 2px solid transparent;
    background-clip: padding-box;
}
[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: rgba(247, 242, 239, 0.35);
    border: 2px solid transparent;
    background-clip: padding-box;
}
::-webkit-scrollbar-button { display: none; }

html { scroll-behavior: smooth; }

html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    position: relative !important;
}

body {
    font-family: var(--font-sans);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    width: 100% !important;
}

/* flat, clean background — no texture overlay */

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    box-sizing: border-box;
}

/* Hero weight discipline: Bold for headings/actions, Regular for body, Light for captions */
h1, h2, h3, h4, h5, h6, strong, b { font-weight: 700; }
.nav-section-title, .ws-small-label, .stat-label,
.note-time, .section-tag, small { font-weight: 300; letter-spacing: 0.08em; }

a { color: var(--color-primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--color-primary-hover); }

img { max-width: 100%; display: block; }

/* ----- Typography ----- */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-primary);
    margin-bottom: 16px;
    padding: 6px 16px;
    border: 1px solid rgba(26, 24, 22, 0.3);
    border-radius: var(--radius-pill);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ----- Buttons (ghost pills — same style as "Be first to know" on the main page) ----- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 26px;
    border: 1.5px solid currentColor;
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--color-text);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    box-shadow: none;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    transition: transform 0.12s ease, background-color 0.15s ease, color 0.15s ease;
}
/* Unified interaction: hover = soft tint wash, press = gentle scale */
.btn:hover {
    background: var(--tint-primary);
    color: var(--color-text);
}
.btn:active { transform: scale(0.97); }
.btn:focus { outline: none; }
.btn:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Filled — primary action keeps the same shape, solid ink */
.btn-primary {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--on-primary);
}
.btn-primary:hover {
    background: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
    color: var(--on-primary);
}

/* Filled accent — brand red for highlighted actions */
.btn-accent {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #FFFFFF;
}
.btn-accent:hover {
    background: var(--tomato-hover);
    border-color: var(--tomato-hover);
    color: #FFFFFF;
}

/* Ghost — the exact "Be first to know" look */
.btn-outline {
    background: transparent;
    color: var(--color-text);
}
.btn-outline:hover { color: var(--color-text); }

/* Ghost, muted — tertiary actions */
.btn-glass {
    background: transparent;
    color: var(--color-text-dim);
}
.btn-glass:hover { color: var(--color-text); }

/* Ghost, danger — destructive actions */
.btn-drop {
    background: transparent;
    color: var(--color-danger);
}
.btn-drop:hover { background: var(--tint-danger); color: var(--color-danger); }

.btn-lg { padding: 16px 32px; font-size: 0.9rem; }
.btn-sm { padding: 9px 18px; font-size: 0.78rem; }

/* ----- Navbar ----- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.nav-toggle {
    z-index: 1001; /* Ensure it's above the links menu */
}

.navbar.scrolled {
    padding: 12px 0;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon { font-size: 1.6rem; }

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 16px;
    list-style: none;
}

.nav-action-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
    list-style: none !important;
}

.nav-links a:not(.btn) {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

/* ---- Notifications ---- */
.nav-notifications-dropdown { position: relative !important; list-style: none; margin-right: 4px; }
.nav-icon-btn {
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 1.1rem;
    padding: 8px;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}
.nav-icon-btn:hover {
    color: var(--color-primary);
    transform: translateY(-1px);
}
.nav-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 10px;
    height: 10px;
    background: var(--color-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-primary);
    font-size: 0; /* Hide number for cleaner dots */
    border: 1px solid var(--color-bg);
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(26, 24, 22, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(26, 24, 22, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(26, 24, 22, 0); }
}

.notifications-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: transparent;
}
.mark-all-read {
    color: var(--color-primary);
    font-weight: 500;
    text-decoration: none;
}
.notifications-list {
    max-height: 360px;
    overflow-y: auto;
}
.notification-item {
    display: flex;
    gap: 14px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-border);
    text-decoration: none !important;
    color: var(--color-text) !important;
    transition: all 0.2s ease;
}
.notification-item:hover { 
    background: rgba(26, 24, 22, 0.08);
    padding-left: 24px; /* subtle slide effect */
}
.note-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.9rem;
}
.type-dm { background: rgba(26, 24, 22, 0.12); color: var(--indigo); }
.type-waitlist { background: rgba(180, 83, 9, 0.12); color: #B45309; }
.type-session { background: rgba(17, 157, 164, 0.12); color: var(--teal); }
.note-content { flex: 1; min-width: 0; }
.note-title { font-weight: 700; font-size: 0.85rem; margin-bottom: 2px; }
.note-text { font-size: 0.75rem; color: var(--color-text-dim); }
.note-time { font-size: 0.65rem; color: var(--color-border); margin-top: 4px; }
.note-empty { padding: 32px 16px; text-align: center; color: var(--color-text-dim); font-size: 0.85rem; }
.notifications-footer {
    padding: 10px;
    text-align: center;
    background: var(--color-bg-alt);
    border-top: 1px solid var(--color-border);
}
.notifications-footer a {
    font-size: 0.75rem;
    color: var(--color-text-dim);
    font-weight: 600;
    text-decoration: none;
}

@media (max-width: 768px) {
    .notifications-menu { position: fixed; top: 70px; left: 10px; right: 10px; width: auto; }
}

.nav-links a:not(.btn):hover { color: var(--color-primary); background: rgba(0, 0, 0, 0.03); }

.nav-user {
    color: var(--color-primary) !important;
    background: none; border: none; cursor: pointer;
    font-size: 0.95rem; font-weight: 500;
    padding: 8px 14px; border-radius: var(--radius-sm);
    display: flex; align-items: center; gap: 6px;
    transition: var(--transition); font-family: inherit;
}
.nav-user:hover { background: rgba(26, 24, 22,0.07); }

/* Profile Dropdown */
.nav-profile-dropdown { position: relative; }
.nav-profile-menu {
    position: absolute; top: calc(100% + 8px); right: 0;
    min-width: 200px; background: var(--color-surface);
    border: 1px solid var(--color-border); border-radius: var(--radius);
    padding: 8px; box-shadow: 0 16px 40px rgba(0,0,0,0.12);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s; z-index: 2000;
}
.nav-profile-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-menu-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; border-radius: var(--radius-sm);
    color: var(--color-text-muted); font-size: 0.9rem;
    font-weight: 500; text-decoration: none; transition: var(--transition);
}
.nav-menu-item:hover { background: var(--color-border); color: var(--color-text); }
.nav-menu-item i { width: 16px; text-align: center; color: var(--color-text-dim); }
.nav-menu-danger { color: var(--color-danger) !important; }
.nav-menu-danger:hover { background: rgba(26, 24, 22,0.08) !important; }
.nav-menu-danger i { color: var(--color-danger) !important; }
.nav-menu-divider { height: 1px; background: var(--color-border); margin: 6px 8px; }

/* ---- Fixed Notifications Alignment ---- */
/* Moving this after .nav-profile-menu to ensure it wins the cascade */
.nav-links .notifications-menu {
    width: 320px;
    padding: 0 !important;
    overflow: hidden;
    right: auto !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(-8px) !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.nav-links .notifications-menu::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
    background: var(--gradient-primary);
}

.nav-links .notifications-menu.open {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(-50%) translateY(0) !important;
}


.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: var(--transition);
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); background: var(--color-primary); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); background: var(--color-primary); }

/* ----- Hero (Experimental Shards) ----- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--color-bg-alt); /* Theme aware */
}

/* Ensure shards have a dark base only in dark mode or for the mask effect */
.hero-shards {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: #000; /* Images need a dark base for 'difference' blend */
}

[data-theme="light"] .hero-shards {
    background: var(--color-bg);
}

.shard {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%);
    animation: shardStep 12s infinite;
}

/* Experimental Shark Angle Masks */
.shard:nth-child(1) { 
    clip-path: polygon(0 0, 40% 0, 15% 100%, 0% 100%);
    animation-delay: 0s;
}
.shard:nth-child(2) { 
    clip-path: polygon(30% 0, 70% 0, 45% 100%, 5% 100%);
    animation-delay: 4s;
}
.shard:nth-child(3) { 
    clip-path: polygon(60% 0, 100% 0, 75% 100%, 35% 100%);
    animation-delay: 8s;
}

@keyframes shardStep {
    0%, 33.33% { opacity: 0; transform: scale(1.1) rotate(2deg); }
    5%, 28% { opacity: 1; transform: scale(1) rotate(0deg); }
    33.34%, 100% { opacity: 0; }
}

.hero-content {
    position: relative;
    text-align: center;
    padding: 100px 24px;
    max-width: 900px;
    z-index: 3;
    mix-blend-mode: difference;
    color: #fff;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.5));
}

/* Unified Light Hero - No more 'patches' */
[data-theme="light"] .hero-content {
    mix-blend-mode: normal;
    background: transparent;
    backdrop-filter: none;
    padding: 100px 24px;
    border: none;
    color: var(--color-text);
}

[data-theme="light"] .hero-title {
    color: var(--color-text);
}

[data-theme="light"] .hero-subtitle {
    color: var(--color-text-muted);
}

/* Mobile Polish for Hero Shards */
@media (max-width: 768px) {
    .shard:nth-child(1) { clip-path: polygon(0 0, 100% 0, 0 30%, 0 0); }
    .shard:nth-child(2) { clip-path: polygon(0 30%, 100% 10%, 100% 60%, 0 80%); }
    .shard:nth-child(3) { clip-path: polygon(0 80%, 100% 50%, 100% 100%, 0 100%); }
    
    .hero-content {
        padding: 60px 20px;
        width: 100%;
    }
    
    .hero-title {
        font-size: clamp(2.2rem, 12vw, 3.5rem) !important;
        letter-spacing: -1px;
    }
}

.hero-badge {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 2px;
    color: var(--color-primary);
    margin-bottom: 24px;
    padding: 8px 20px;
    border: 1px solid rgba(26, 24, 22, 0.25);
    border-radius: var(--radius-pill);
    background: rgba(26, 24, 22, 0.05);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 12vw, 10rem); /* Massive editorial scale */
    font-weight: 800;
    line-height: 0.95; /* Tighter leading for 2-line look */
    margin-bottom: 32px;
    letter-spacing: -3px;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 0 40px 0;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 32px;
}

.stat { text-align: center; }
.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.stat-label {
    font-size: 0.8rem;
    color: var(--color-text-dim);
    text-transform: uppercase;
    letter-spacing: 2px;
}
.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--color-border);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--color-text-dim);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: var(--color-primary);
    animation: scrollPulse 2s infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ----- Sections ----- */
.section { padding: var(--section-padding) 0; }

.section-about { background: var(--color-bg); }
.section-categories { background: var(--color-bg-alt); }
.section-events { background: var(--color-bg); }
.section-location { background: var(--color-bg-alt); }

/* ----- About ----- */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.about-lead {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--color-text);
}

.about-text p {
    color: var(--color-text-muted);
    margin-bottom: 32px;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    border-radius: var(--radius);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
}

.about-feature i {
    font-size: 1.2rem;
    color: var(--color-primary);
    margin-top: 2px;
}

.about-feature strong {
    display: block;
    margin-bottom: 4px;
    color: var(--color-text);
}

.about-feature span {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.about-image-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
}

.about-image-placeholder {
    aspect-ratio: 4/5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: var(--gradient-glow);
}

.about-image-placeholder i {
    font-size: 4rem;
    color: var(--color-primary);
    opacity: 0.6;
}

.about-image-placeholder span {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--color-text-muted);
    font-style: italic;
}

/* ----- Mobile Polish ----- */
@media (max-width: 768px) {
    .about-image { display: none !important; }
    .about-grid { grid-template-columns: 1fr; }
    .section-about { padding: 60px 0; }
}

/* ----- Categories ----- */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* Force all categories in one line on desktop */
    gap: 24px;
    align-items: stretch;
}

@media (max-width: 1200px) {
    .categories-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
}

.category-card {
    position: relative;
    padding: 48px 32px;
    text-align: center;
    border-radius: var(--radius);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    backdrop-filter: var(--glass-blur);
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    text-decoration: none;
    animation: fadeInUp 0.8s ease calc(var(--delay) * 0.1s) both;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 8px 8px 0px rgba(26, 24, 22, 0.03); /* subtle offset shadow */
    height: 100%;
}

.category-card:hover {
    transform: translate(-8px, -8px);
    border-color: var(--color-primary);
    box-shadow: 20px 20px 40px -10px rgba(0, 0, 0, 0.2);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-warm);
    transform: scaleX(0);
    transition: var(--transition);
}

.category-card:hover {
    transform: translate(-4px, -4px);
    border-color: var(--color-primary);
    box-shadow: 12px 12px 0px rgba(0, 0, 0, 0.15);
}

.category-card:hover::before { transform: scaleX(1); }

.category-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background: rgba(26, 24, 22, 0.1);
    font-size: 1.5rem;
    color: var(--color-primary);
    transition: var(--transition);
}

.category-card:hover .category-icon {
    background: rgba(26, 24, 22, 0.2);
    transform: scale(1.05);
}

.category-name {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-text);
}

.category-desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 32px;
    line-height: 1.6;
    flex-grow: 1;
    word-break: break-word; /* Fix long unbroken strings */
    overflow-wrap: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 4; /* Limit to 4 lines for perfect rhythm */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-link {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

.category-link i { transition: var(--transition); }
.category-card:hover .category-link i { transform: translateX(4px); }

/* ----- Events ----- */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.event-card {
    display: flex;
    gap: 20px;
    padding: 24px;
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    transition: var(--transition);
}

.event-card:hover {
    border-color: rgba(26, 24, 22, 0.2);
    transform: translateY(-3px);
}

.event-date-badge {
    flex-shrink: 0;
    width: 60px;
    text-align: center;
    padding: 12px 0;
    border-radius: var(--radius);
    background: rgba(26, 24, 22, 0.1);
    border: 1px solid rgba(26, 24, 22, 0.2);
}

.event-month {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-primary);
}

.event-day {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--color-text);
    line-height: 1.2;
}

.event-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-text);
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.event-meta i {
    color: var(--color-primary);
    margin-right: 4px;
}

.event-desc {
    font-size: 0.9rem;
    color: var(--color-text-dim);
    margin-bottom: 10px;
}

.event-category-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    background: rgba(26, 24, 22, 0.1);
    color: var(--color-primary);
    border: 1px solid rgba(26, 24, 22, 0.2);
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px;
    color: var(--color-text-muted);
}

.empty-state i {
    font-size: 2.5rem;
    color: var(--color-text-dim);
    margin-bottom: 16px;
}

/* ----- Location ----- */
.location-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: start;
}

.location-card {
    padding: 32px;
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    margin-bottom: 24px;
}

.location-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--color-text);
}

.location-card h3 i {
    color: var(--color-primary);
    margin-right: 8px;
}

.location-address {
    font-size: 1rem;
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: 20px;
}

.location-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.location-detail {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.location-detail i {
    color: var(--color-primary);
    font-size: 1.1rem;
    margin-top: 3px;
}

.location-detail strong { display: block; color: var(--color-text); }
.location-detail span { font-size: 0.9rem; color: var(--color-text-muted); }

.location-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-card);
}

/* ----- CTA ----- */
.section-cta {
    padding: 80px 0;
    background: var(--color-bg);
}

.cta-card {
    text-align: center;
    padding: 80px 40px;
    border-radius: var(--radius-lg);
    background: var(--gradient-glow);
    border: 1px solid rgba(26, 24, 22, 0.2);
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: transparent;
    animation: ctaGlow 8s infinite;
}

@keyframes ctaGlow {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(5%, 5%); }
}

/* ----- Experimental Auth Styles ----- */
/* Auth page: one unified base background */
.experimental-auth {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: var(--color-bg);
}

[data-theme="dark"] .experimental-auth {
    background: #080810;
}

.auth-split {
    display: flex;
    width: 100%;
    min-height: 100vh;
    position: relative;
}

/* The left visual panel IS the gradient shape — clipped diagonally */
.auth-visual {
    flex: 0 0 48%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    /* Light mode: soft pastel gradient matching what we already see */
    background: var(--paper-2);
    /* Diagonal right edge — clips cleanly into the form side */
    clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
}

[data-theme="dark"] .auth-visual {
    background: #1C1815;
}

@media (max-width: 991px) {
    .auth-visual { display: none; }
}

/* Trapezoid is now just a subtle extra shimmer — optional */
.auth-trapezoid {
    position: absolute;
    inset: 0;
    background: transparent;
    pointer-events: none;
}

[data-theme="dark"] .auth-trapezoid {
    background: transparent;
}

.auth-visual-content {
    position: relative;
    z-index: 2;
    text-align: left;
    /* Light mode: frosted white card so dark text is readable */
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 40px;
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.6);
    max-width: 420px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.auth-visual-content h2 {
    color: #1a1a2e;
    text-shadow: none;
}

[data-theme="dark"] .auth-visual-content {
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: none;
}

[data-theme="dark"] .auth-visual-content h2 {
    color: #fff;
}

.auth-visual-para {
    color: #3a3a5c;
}

[data-theme="dark"] .auth-visual-para {
    color: rgba(255, 255, 255, 0.82);
}

/* Keep .auth-visual-content p as fallback */
.auth-visual-content p {
    color: #3a3a5c;
}

[data-theme="dark"] .auth-visual-content p {
    color: rgba(255, 255, 255, 0.82);
}

.auth-form-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: transparent;
}

[data-theme="light"] .auth-form-side {
    background: transparent;
}

[data-theme="light"] .glass-card {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(0, 0, 0, 0.07);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.07);
}

.glass-card {
    background: var(--color-surface);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    padding: 48px;
    border-radius: var(--radius);
    max-width: 500px;
    width: 100%;
    box-shadow: var(--shadow-vibrant);
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 24px 0;
    color: var(--color-text-dim);
    font-size: 0.8rem;
    letter-spacing: 2px;
}

.auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--color-border);
}

.auth-divider span {
    padding: 0 10px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-text);
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    color: var(--color-text);
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(157, 80, 255, 0.1);
}

.auth-footer {
    margin-top: 32px;
    text-align: center;
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.cta-card p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.cta-card .btn { position: relative; }

/* ----- Footer ----- */
.footer {
    padding: 80px 0 32px;
    background: var(--color-bg-alt);
    border-top: 1px solid var(--color-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
    width: 100%;
}

.footer-brand .logo-text { color: var(--color-text); }
.footer-tagline {
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.footer-links h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-text);
    margin-bottom: 20px;
}

.footer-links a {
    display: block;
    padding: 6px 0;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}
.footer-links a:hover { color: var(--color-primary); }

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-text-dim);
}

/* ----- Auth Pages ----- */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 60px;
    background: var(--color-bg);
}

.auth-card {
    width: 100%;
    max-width: 460px;
    padding: 48px;
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-card);
}

.auth-card h1 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin-bottom: 8px;
    text-align: center;
}

.auth-subtitle {
    text-align: center;
    color: var(--color-text-muted);
    margin-bottom: 32px;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--color-text-muted);
}

.form-input,
.auth-card input[type="text"],
.auth-card input[type="email"],
.auth-card input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-input:focus,
.auth-card input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(26, 24, 22, 0.1);
}

.auth-card .btn-primary {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
    padding: 14px;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.auth-footer a { font-weight: 600; }

.form-errors {
    padding: 12px 16px;
    border-radius: var(--radius);
    background: var(--tint-danger);
    border: 1px solid rgba(200, 24, 9, 0.3);
    color: var(--color-text);
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.form-errors ul { list-style: none; }

/* ----- Contact Page ----- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-info-card {
    padding: 32px;
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
}

.contact-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--color-border);
}
.contact-item:last-child { border-bottom: none; }
.contact-item i { color: var(--color-primary); font-size: 1.2rem; margin-top: 3px; }
.contact-item strong { display: block; margin-bottom: 4px; }
.contact-item span { font-size: 0.9rem; color: var(--color-text-muted); }

.contact-form {
    padding: 32px;
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
}

.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    resize: vertical;
    min-height: 150px;
    transition: var(--transition);
}

.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(26, 24, 22, 0.1);
}

/* ----- Flash toasts: bottom-center, auto-dismissing ----- */
.messages-container {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    pointer-events: none;
}

.message {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 16px 13px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 400;
    background: var(--color-surface);
    color: var(--color-text);
    box-shadow: var(--shadow-md);
    animation: toastIn 0.25s ease;
    transition: opacity 0.4s ease, transform 0.4s ease;
    max-width: min(90vw, 560px);
}
.message-icon { font-size: 1.1rem; flex-shrink: 0; color: var(--teal); }
.message-error .message-icon { color: var(--color-danger); }
.message-info .message-icon, .message-debug .message-icon, .message-warning .message-icon { color: var(--color-text-dim); }
.message-hide { opacity: 0; transform: translateY(8px); }

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

.message-close {
    background: none;
    border: none;
    color: var(--color-text-dim);
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.7;
    padding: 0 0 0 4px;
    font-family: var(--font-sans);
}
.message-close:hover { opacity: 1; }

/* ----- Animations ----- */
.animate-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-in.visible {
    opacity: 1;
    transform: translateY(0);
}

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

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

/* ----- Responsive ----- */
@media (max-width: 1024px) {
    :root { --section-padding: 80px; }
    .navbar { 
        padding: 10px 0 !important; 
        height: 60px !important;
        display: flex !important;
        align-items: center !important;
    }

    .nav-container {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 0 20px;
    }

    .nav-toggle { 
        display: flex; 
        padding: 5px;
        order: 2;
    }
    
    .ws-mobile-toggle, .ws-sidebar-backdrop { display: none !important; }
    
    .nav-logo { 
        order: 1;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin: 0 !important;
    }

    .nav-links {
        display: flex; /* Hide logic handled by Transform */
        overflow-y: auto !important;
        padding-bottom: 120px !important; /* Space for the bottom links to be seen clearly */
    }

    .nav-action-row {
        display: flex !important;
        flex-direction: row !important;
        gap: 12px;
        align-items: center;
        margin: 10px 0;
        width: fit-content;
    }

    .nav-mobile-header {
        font-size: 0.7rem;
        font-weight: 800;
        text-transform: uppercase;
        color: var(--color-primary);
        letter-spacing: 2px;
        margin: 20px 0 8px 0;
        padding-bottom: 4px;
        border-bottom: 1px solid rgba(26, 24, 22, 0.1);
        opacity: 0.9;
    }

    .nav-links li:first-child .nav-mobile-header { margin-top: 0; }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        flex-direction: column;
        background: var(--color-bg-alt);
        padding: 80px 24px 24px;
        border-left: 1px solid var(--color-border);
        transition: var(--transition);
        transform: translateX(100%);
        gap: 4px;
        z-index: 2000;
        box-shadow: -10px 0 30px rgba(0,0,0,0.3);
    }

    .nav-links.active { transform: translateX(0); }

    .nav-links a {
        font-size: 1rem;
        padding: 12px 16px;
    }

    .about-grid,
    .location-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-brand { 
        margin-bottom: 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .footer-links { 
        margin-bottom: 10px;
    }

    .events-grid { grid-template-columns: 1fr; }
    .categories-grid { grid-template-columns: repeat(2, 1fr); }

    .hero-stats { flex-wrap: wrap; gap: 20px; }
    .stat-divider { display: none; }

    .auth-card { padding: 32px 24px; }
}

@media (max-width: 480px) {
    .categories-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}

/* Organizer/Admin section labels match all other section labels */
.ws-org-tag { color: var(--color-text-muted) !important; }
.ws-admin-tag { color: var(--color-text-muted) !important; }

/* ----- Workstation Layout (Dashboard Evolution) ----- */
:root {
    --ws-sidebar-width: 280px;
    --ws-sidebar-collapsed: 80px;
    --ws-padding: 40px;
    --ws-gap: 32px;
    --ws-card-bg: var(--color-surface);
}

.workstation-container {
    display: flex;
    min-height: 100vh;
    background: var(--color-bg);
    transition: var(--transition);
}

.workstation-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--ws-sidebar-width);
    background: transparent;
    border-right: none;
    display: flex;
    flex-direction: column;
    z-index: 1001;
    padding: 20px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
    overflow: hidden;
}

/* Collapsed Sidebar State */
.workstation-container.collapsed .workstation-sidebar {
    width: var(--ws-sidebar-collapsed);
    padding: 24px 16px;
    overflow-y: auto !important;
    max-height: 100vh;
}

.ws-sidebar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.ws-sidebar-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.sidebar-close-btn {
    display: none;
    background: none;
    border: none;
    color: var(--color-text-dim);
    font-size: 1.2rem;
    cursor: pointer;
}

.workstation-container.collapsed .sidebar-logo .logo-text,
.workstation-container.collapsed .nav-section-title,
.workstation-container.collapsed .nav-item span,
.workstation-container.collapsed .user-info {
    display: none;
}

.workstation-container.collapsed .nav-item {
    justify-content: center;
    padding: 12px;
}

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

/* Fix Branding Overlap: Logo Safety Zone */
.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    padding-left: 8px; /* Safe Zone */
}

.sidebar-toggle-btn {
    background: none;
    border: 1px solid var(--color-border);
    color: var(--color-text-dim);
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.sidebar-toggle-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 0;              /* allow shrinking below content size in flex */
    overflow-y: auto;           /* scroll when nav is taller than the sidebar */
    scrollbar-width: thin;      /* slim native scrollbar (Firefox) */
}

/* Sidebar: scrollbar invisible until hover (overlay feel) */
.sidebar-nav { scrollbar-color: transparent transparent; }
.sidebar-nav:hover { scrollbar-color: rgba(26, 24, 22, 0.22) transparent; }
.sidebar-nav::-webkit-scrollbar { width: 6px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: transparent; border: none; }
.sidebar-nav:hover::-webkit-scrollbar-thumb { background: rgba(26, 24, 22, 0.2); border: none; }
[data-theme="dark"] .sidebar-nav:hover { scrollbar-color: rgba(247, 242, 239, 0.22) transparent; }
[data-theme="dark"] .sidebar-nav:hover::-webkit-scrollbar-thumb { background: rgba(247, 242, 239, 0.2); }

/* Hairline divider opens every section after the first — Linear/Notion pattern */
.nav-section + .nav-section {
    border-top: 1px solid rgba(0, 0, 0, 0.07);
    padding-top: 16px;
}
[data-theme="dark"] .nav-section + .nav-section {
    border-top-color: rgba(255, 255, 255, 0.08);
}

.nav-section-title {
    font-size: 0.72rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: 8px;
    padding-left: 14px;
}

.nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    border-radius: var(--radius-pill);
    color: var(--color-text-muted);
    font-size: 0.92rem;
    font-weight: 400;
    transition: background-color 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

.nav-item i {
    font-size: 1.1rem;
    width: 22px;
    text-align: center;
    opacity: 0.75;
}

.nav-item.active i { opacity: 1; }

.nav-item:hover {
    background: var(--color-surface-hover);
    color: var(--color-text);
}

/* Active: tinted pill in ink — black tint on light, white tint on dark */
.nav-item.active {
    background: rgba(0, 0, 0, 0.08);
    color: #1A1816 !important;
    font-weight: 700;
}
.nav-item.active i { color: #1A1816; }
[data-theme="dark"] .nav-item.active {
    background: rgba(255, 255, 255, 0.12);
    color: #F7F2EF !important;
}
[data-theme="dark"] .nav-item.active i { color: #EFEAE5; }

.sidebar-footer {
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-theme-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4px;
}

.ws-small-label {
    font-size: 0.75rem;
    color: var(--color-text-dim);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.sidebar-theme-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    background: none;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.sidebar-theme-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.workstation-container.collapsed .sidebar-theme-row .ws-small-label { display: none; }
.workstation-container.collapsed .sidebar-theme-btn { margin: 0 auto; }

.user-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.sidebar-user-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-settings-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    background: none;
    color: var(--color-text-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    flex-shrink: 0;
    transition: var(--transition);
    font-size: 0.9rem;
}

.sidebar-settings-btn:hover,
.sidebar-settings-btn.active {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(26, 24, 22, 0.07);
}

/* Spin on hover — subtle UX delight */
.sidebar-settings-btn:hover i {
    animation: spinOnce 0.5s ease;
}

@keyframes spinOnce {
    from { transform: rotate(0deg); }
    to { transform: rotate(180deg); }
}

.workstation-container.collapsed .sidebar-user-row .user-info,
.workstation-container.collapsed .sidebar-user-row .user-name,
.workstation-container.collapsed .sidebar-user-row .logout-link { display: none; }

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius); /* Universal Squircle Avatar */
    background: var(--gradient-primary);
    color: var(--on-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.user-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.user-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text);
}

.logout-link {
    font-size: 0.75rem;
    color: var(--color-danger);
}

.workstation-main {
    margin-left: var(--ws-sidebar-width);
    padding: var(--ws-padding);
    width: calc(100% - var(--ws-sidebar-width));
    transition: margin 0.4s cubic-bezier(0.4, 0, 0.2, 1), width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.workstation-container.collapsed .workstation-main {
    margin-left: var(--ws-sidebar-collapsed);
    width: calc(100% - var(--ws-sidebar-collapsed));
}

/* Universal Formatting for Content */
.workstation-content {
    max-width: 1300px;
    margin: 0 auto;
}

.dashboard-section h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.sessions-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Standardized Card size — borderless bento surface */
.session-card {
    padding: 20px;
    display: flex;
    flex-direction: column !important;
    gap: 16px;
    align-items: stretch !important;
    border: none;
    background: var(--ws-card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

@media (min-width: 769px) {
    .session-card {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
    }
}


/* Hide standard navbar in workstation mode */
.workstation-layout .navbar {
    display: none !important;
}

/* Platform pages (dashboard + chat) have no footer */
.workstation-layout .footer { display: none !important; }

/* Hamburger button is desktop-hidden; revealed below 1024px in the mobile block */
.ws-hamburger { display: none; }

/* Mobile: slide-in drawer sidebar + hamburger toggle (≤1024px) */
@media (max-width: 1024px) {
    /* Hide the marketing navbar on platform pages — the hamburger replaces it */
    .workstation-layout .navbar { display: none !important; }

    /* Main content takes the full width and sits below the hamburger */
    .workstation-main {
        margin-left: 0 !important;
        width: 100% !important;
        padding: 72px 16px 40px !important;
    }

    /* Sidebar becomes a slide-in drawer, off-screen by default (solid bg on mobile) */
    .workstation-sidebar {
        transform: translateX(-100%);
        transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
        will-change: transform;
        background: var(--color-bg);
        box-shadow: 0 0 32px rgba(0,0,0,0.18);
        max-width: 320px;
        width: 86vw;
    }
    .workstation-sidebar.is-open {
        transform: translateX(0);
    }

    /* Backdrop sits between content and sidebar when drawer is open */
    .ws-sidebar-backdrop {
        position: fixed; inset: 0;
        background: rgba(0,0,0,0.45);
        backdrop-filter: blur(2px);
        z-index: 1000;          /* sidebar is 1001, so backdrop sits just below */
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.22s ease, visibility 0.22s ease;
    }
    .ws-sidebar-backdrop.is-open {
        opacity: 1;
        visibility: visible;
    }

    /* Hamburger button — fixed top-left, only mobile */
    .ws-hamburger {
        display: flex;
        position: fixed;
        top: 14px;
        left: 14px;
        z-index: 1102;          /* above topbar (1100) so it's always reachable */
        width: 40px;
        height: 40px;
        align-items: center;
        justify-content: center;
        border-radius: 999px;
        border: 1px solid var(--color-border);
        background: var(--color-bg-alt);
        color: var(--color-text);
        cursor: pointer;
        box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    }
    .ws-hamburger:active { transform: scale(0.96); }
    .ws-hamburger i { font-size: 1rem; }

    /* Lock body scroll when drawer is open */
    body.ws-drawer-open { overflow: hidden; }

    /* Reset old dashboard layout hacks */
    .dashboard-sections {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
    }
    .history-card, .status-card {
        width: 100% !important;
        margin-bottom: 20px !important;
    }
}

/* ---- Enrollment ---- */
.enroll-badge-done { display:inline-flex; align-items:center; gap:6px; font-size:0.8rem; font-weight:700; color:var(--teal); background:rgba(17,157,164,0.12); padding:4px 12px; border-radius: var(--radius-pill); margin-left:auto; }


/* ---- Icon spin utility (replaces Font Awesome fa-spin) ---- */
.ti-spin { display: inline-block; animation: tiSpin 1s linear infinite; }
@keyframes tiSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
