/* =============================================
   Congress Suite — World-Class Design System
   Cinematic · Immersive · Premium
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

/* ═══ Design Tokens ═══ */
:root {
    --bg-0: #030712;
    --bg-1: #070b16;
    --bg-2: #0c1220;
    --bg-3: #111827;
    --bg-4: #1a2333;
    --bg-card: rgba(15, 23, 42, 0.55);
    --bg-card-hover: rgba(23, 33, 54, 0.75);
    --bg-glass: rgba(12, 18, 32, 0.6);
    --bg-glass-strong: rgba(12, 18, 32, 0.88);
    --bg-input: rgba(15, 23, 42, 0.45);
    --bg-sidebar: rgba(6, 10, 18, 0.95);

    --accent: #00e8b8;
    --accent-rgb: 0, 232, 184;
    --accent-dim: rgba(0, 232, 184, 0.1);
    --accent-mid: rgba(0, 232, 184, 0.2);
    --accent-glow: rgba(0, 232, 184, 0.35);
    --purple: #818cf8;
    --purple-dim: rgba(129, 140, 248, 0.12);
    --coral: #f87171;
    --coral-dim: rgba(248, 113, 113, 0.12);
    --amber: #fbbf24;
    --amber-dim: rgba(251, 191, 36, 0.12);
    --blue: #60a5fa;
    --blue-dim: rgba(96, 165, 250, 0.12);

    --text-0: #ffffff;
    --text-1: #f1f5f9;
    --text-2: #94a3b8;
    --text-3: #64748b;
    --text-4: #475569;
    --text-5: #334155;

    --border-0: rgba(148, 163, 184, 0.06);
    --border-1: rgba(148, 163, 184, 0.1);
    --border-2: rgba(148, 163, 184, 0.16);
    --border-accent: rgba(0, 232, 184, 0.2);
    --border-focus: rgba(0, 232, 184, 0.5);

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 16px 64px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(0, 232, 184, 0.12);
    --shadow-glow-md: 0 0 50px rgba(0, 232, 184, 0.2);
    --shadow-glow-lg: 0 4px 60px rgba(0, 232, 184, 0.3);

    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-2xl: 28px;
    --radius-full: 9999px;

    --font-display: 'Outfit', sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

    --sidebar-w: 270px;
    --header-h: 60px;
}

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

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-1);
    background: var(--bg-0);
    line-height: 1.6;
    overflow: hidden;
    height: 100vh;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
    color: inherit;
}

input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    outline: none;
}

a {
    color: var(--accent);
    text-decoration: none;
}

::-webkit-scrollbar {
    width: 5px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--text-5);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-4);
}

.hidden {
    display: none !important;
}

/* =============================================
   SPLASH / LOADING SCREEN
   ============================================= */
.splash-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-0);
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.splash-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.splash-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.splash-bg::before {
    content: '';
    position: absolute;
    width: 800px;
    height: 800px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: conic-gradient(from 0deg, transparent, var(--accent), transparent, var(--purple), transparent);
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.25;
    animation: splashRotate 6s linear infinite;
}

@keyframes splashRotate {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.splash-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.splash-logo {
    width: 240px;
    height: auto;
    margin: 0 auto 32px;
    border-radius: 20px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.15);
    padding: 16px 24px;
    animation: splashLogoIn 1s var(--ease-spring) both;
}

.splash-logo img {
    width: 100%;
    height: auto;
    display: block;
}

@keyframes splashLogoIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }

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

@keyframes splashLogoIn {
    from {
        opacity: 0;
        transform: scale(0.5) rotate(-10deg);
    }

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

/* removed old svg style */

.splash-title {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--text-0), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    animation: splashTextIn 0.8s var(--ease-out) 0.3s both;
}

.splash-subtitle {
    font-size: 15px;
    color: var(--text-3);
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    animation: splashTextIn 0.8s var(--ease-out) 0.5s both;
}

@keyframes splashTextIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

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

.splash-loader {
    margin-top: 48px;
    animation: splashTextIn 0.8s var(--ease-out) 0.7s both;
}

.splash-bar {
    width: 200px;
    height: 3px;
    background: var(--bg-3);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto 16px;
}

.splash-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--purple));
    border-radius: 2px;
    transition: width 0.3s ease;
}

.splash-status {
    font-size: 12px;
    color: var(--text-4);
    letter-spacing: 0.05em;
}

/* =============================================
   DASHBOARD (Home / Landing Page)
   ============================================= */
.dashboard {
    display: none;
    height: 100vh;
    overflow-y: auto;
    background: var(--bg-0);
    position: relative;
}

.dashboard.active {
    display: block;
}

/* Dashboard background */
.dash-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.dash-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.2;
}

.dash-orb-1 {
    width: 700px;
    height: 700px;
    background: var(--accent);
    top: -300px;
    right: -200px;
    animation: orbDrift 25s ease-in-out infinite;
}

.dash-orb-2 {
    width: 500px;
    height: 500px;
    background: var(--purple);
    bottom: -200px;
    left: -100px;
    animation: orbDrift 20s ease-in-out infinite reverse;
}

.dash-orb-3 {
    width: 350px;
    height: 350px;
    background: var(--coral);
    top: 40%;
    left: 60%;
    animation: orbDrift 22s ease-in-out infinite 5s;
    opacity: 0.1;
}

@keyframes orbDrift {

    0%,
    100% {
        transform: translate(0, 0);
    }

    33% {
        transform: translate(40px, -50px);
    }

    66% {
        transform: translate(-30px, 30px);
    }
}

.dash-grid {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.03) 1px, transparent 1px);
    background-size: 80px 80px;
}

/* Dashboard Header & Logo */
.dash-brand-area {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s var(--ease-out) 0.2s both;
}

.dash-brand-logo {
    height: 48px;
    width: auto;
    background: white;
    padding: 6px 16px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Dashboard Stats Row */
.dash-stats-row {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
}

.dash-stat-card {
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 16px;
    padding: 16px 24px;
    min-width: 180px;
    text-align: center;
    transition: all 0.3s;
}

.dash-stat-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: 0 4px 20px rgba(0, 232, 184, 0.15);
}

.stat-value {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    color: var(--text-0);
    line-height: 1.2;
}

.stat-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-4);
    font-weight: 600;
}

/* Dashboard Status Ticker */
.dash-ticker-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 36px;
    background: rgba(6, 10, 18, 0.9);
    border-top: 1px solid var(--border-1);
    display: flex;
    align-items: center;
    z-index: 100;
    overflow: hidden;
}

.ticker-label {
    background: var(--accent);
    color: var(--bg-0);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 0 16px;
    height: 100%;
    display: flex;
    align-items: center;
    letter-spacing: 0.05em;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.5);
}

.ticker-content {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: tickerScroll 30s linear infinite;
    padding-left: 100%;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 40px;
    color: var(--text-3);
    font-size: 12px;
    font-weight: 500;
}

.ticker-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    display: inline-block;
}

@keyframes tickerScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Sidebar Brand Update */
.sidebar-brand {
    padding: 24px 22px;
    border-bottom: 1px solid var(--border-0);
}

.brand-logo-img {
    height: 28px;
    width: auto;
    background: white;
    padding: 4px 10px;
    border-radius: 6px;
    margin-right: 0;
    display: block;
}

/* Dashboard Hero */
.dash-hero {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 100px 40px 60px;
}

.dash-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--accent-dim);
    border: 1px solid rgba(0, 232, 184, 0.15);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.04em;
    margin-bottom: 24px;
}

.dash-hero-badge .pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse 2s ease infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 var(--accent-glow);
    }

    50% {
        opacity: 0.6;
        box-shadow: 0 0 0 8px transparent;
    }
}

/* Dashboard Header & Logo */
.dash-brand-area {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s var(--ease-out) 0.2s both;
}

.dash-brand-logo {
    height: 48px;
    width: auto;
    background: white;
    padding: 6px 16px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.dash-hero h1 {
    font-family: var(--font-display);
    font-size: 52px;
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 16px;
    margin-top: 12px;
}

/* Dashboard Stats Row */
.dash-stats-row {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
}

.dash-stat-card {
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 16px;
    padding: 16px 24px;
    min-width: 180px;
    text-align: center;
    transition: all 0.3s;
}

.dash-stat-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: 0 4px 20px rgba(0, 232, 184, 0.15);
}

.stat-value {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    color: var(--text-0);
    line-height: 1.2;
}

.stat-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-4);
    font-weight: 600;
}

/* Dashboard Status Ticker */
.dash-ticker-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 36px;
    background: rgba(6, 10, 18, 0.9);
    border-top: 1px solid var(--border-1);
    display: flex;
    align-items: center;
    z-index: 100;
    overflow: hidden;
}

.ticker-label {
    background: var(--accent);
    color: var(--bg-0);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 0 16px;
    height: 100%;
    display: flex;
    align-items: center;
    letter-spacing: 0.05em;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.5);
}

.ticker-content {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: tickerScroll 30s linear infinite;
    padding-left: 100%;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 40px;
    color: var(--text-3);
    font-size: 12px;
    font-weight: 500;
}

.ticker-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    display: inline-block;
}

@keyframes tickerScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Sidebar Brand Update */
.sidebar-brand {
    padding: 24px 22px;
    border-bottom: 1px solid var(--border-0);
}

.brand-logo-img {
    height: 28px;
    width: auto;
    background: white;
    padding: 4px 10px;
    border-radius: 6px;
    margin-right: 0;
    display: block;
}

.brand-text-col {
    display: flex;
    flex-direction: column;
    margin-left: 12px;
}


.dash-hero h1 .gradient-text {
    background: linear-gradient(135deg, var(--accent), var(--purple), var(--accent));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% center
    }

    50% {
        background-position: 100% center
    }

    100% {
        background-position: 0% center
    }
}

.dash-hero p {
    font-size: 17px;
    color: var(--text-3);
    max-width: 520px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.dash-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--accent), #00c9a7);
    color: var(--bg-0);
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-glow-lg);
    transition: all 0.3s var(--ease-smooth);
    letter-spacing: -0.01em;
}

.dash-hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 40px rgba(var(--accent-rgb), 0.4);
}

.dash-hero-cta svg {
    width: 18px;
    height: 18px;
}

/* Dashboard Tools Grid */
.dash-section {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px 80px;
}

.dash-section-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-4);
    margin-bottom: 24px;
    padding-left: 4px;
}

.dash-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.tool-card {
    position: relative;
    padding: 28px;
    background: rgba(17, 24, 39, 0.85);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: all 0.4s var(--ease-smooth);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.tool-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    padding: 1px;
    background: linear-gradient(135deg, transparent 40%, rgba(var(--accent-rgb), 0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s;
}

.tool-card:hover {
    border-color: rgba(0, 232, 184, 0.35);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), var(--shadow-glow-md), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    background: rgba(23, 33, 54, 0.95);
}

.tool-card:hover::before {
    opacity: 1;
}

.tool-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    font-size: 22px;
}

.tool-card-icon.ci {
    background: var(--accent-dim);
    color: var(--accent);
}

.tool-card-icon.vs {
    background: var(--coral-dim);
    color: var(--coral);
}

.tool-card-icon.sum {
    background: var(--blue-dim);
    color: var(--blue);
}

.tool-card-icon.qa {
    background: var(--purple-dim);
    color: var(--purple);
}

.tool-card-icon.info {
    background: var(--amber-dim);
    color: var(--amber);
}

.tool-card-icon.quiz {
    background: rgba(34, 211, 238, 0.12);
    color: #22d3ee;
}

.tool-card-icon.chat {
    background: rgba(167, 139, 250, 0.12);
    color: #a78bfa;
}

.tool-card-icon.sess {
    background: rgba(251, 146, 60, 0.12);
    color: #fb923c;
}

.tool-card h3 {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.tool-card p {
    font-size: 13px;
    color: var(--text-3);
    line-height: 1.55;
    margin-bottom: 16px;
}

.tool-card-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tool-tag {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    background: var(--bg-3);
    color: var(--text-3);
}

.tool-tag.ai {
    background: var(--purple-dim);
    color: var(--purple);
}

/* Dashboard Footer */
.dash-footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px;
    border-top: 1px solid var(--border-0);
}

.dash-footer p {
    font-size: 12px;
    color: var(--text-5);
}

/* =============================================
   APP LAYOUT (Hidden initially, shown on Enter)
   ============================================= */
.app-layout {
    display: none;
    height: 100vh;
    overflow: hidden;
}

.app-layout.active {
    display: flex;
}

/* ═══ Background ═══ */
.bg-effects {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.18;
    animation: orbDrift 25s ease-in-out infinite;
}

.bg-orb-1 {
    width: 600px;
    height: 600px;
    background: var(--accent);
    top: -200px;
    right: -200px;
}

.bg-orb-2 {
    width: 450px;
    height: 450px;
    background: var(--purple);
    bottom: -150px;
    left: -100px;
    animation-delay: -8s;
}

.bg-grid {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image: linear-gradient(rgba(148, 163, 184, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 163, 184, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* ═══ Sidebar ═══ */
.sidebar {
    position: relative;
    z-index: 10;
    width: var(--sidebar-w);
    min-width: var(--sidebar-w);
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg-sidebar);
    backdrop-filter: blur(24px) saturate(180%);
    border-right: 1px solid var(--border-0);
}

.sidebar-brand {
    padding: 20px 22px;
    border-bottom: 1px solid var(--border-0);
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.brand-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--accent), var(--purple));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.2);
}

.brand-icon svg {
    width: 18px;
    height: 18px;
    color: white;
}

.brand-text h1 {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-0);
}

.brand-text span {
    font-size: 10px;
    color: var(--text-4);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Congress selector */
.congress-selector {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-0);
}

.congress-dropdown {
    position: relative;
}

.congress-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-1);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.25s;
}

.congress-trigger:hover {
    border-color: var(--border-accent);
}

.congress-name {
    flex: 1;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
}

.congress-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    background: var(--accent-dim);
    color: var(--accent);
}

.congress-chevron {
    width: 14px;
    height: 14px;
    color: var(--text-4);
    transition: transform 0.25s;
}

.congress-dropdown.open .congress-chevron {
    transform: rotate(180deg);
}

.congress-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--bg-glass-strong);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-2);
    border-radius: var(--radius-md);
    padding: 4px;
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all 0.2s;
}

.congress-dropdown.open .congress-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.congress-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    transition: background 0.15s;
}

.congress-option:hover {
    background: var(--accent-dim);
}

.congress-option.active {
    background: var(--accent-dim);
    color: var(--accent);
}

/* Navigation */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 14px 10px;
}

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

.nav-group-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-5);
    padding: 6px 14px;
    margin-bottom: 2px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 450;
    color: var(--text-3);
    transition: all 0.2s;
    position: relative;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 3px;
    background: var(--accent);
    border-radius: 0 2px 2px 0;
    transform: scaleY(0);
    transition: transform 0.25s var(--ease-spring);
}

.nav-item:hover {
    background: rgba(148, 163, 184, 0.05);
    color: var(--text-2);
}

.nav-item.active {
    background: var(--accent-dim);
    color: var(--accent);
    font-weight: 600;
}

.nav-item.active::before {
    transform: scaleY(1);
}

.nav-item svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    opacity: 0.65;
}

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

/* Sidebar footer */
.sidebar-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--border-0);
}

.sidebar-version {
    font-size: 11px;
    color: var(--text-5);
    display: flex;
    align-items: center;
    gap: 6px;
}

.version-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse 2s ease infinite;
}

/* ═══ Main Content ═══ */
.main-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.app-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 32px;
    height: var(--header-h);
    min-height: var(--header-h);
    border-bottom: 1px solid var(--border-0);
    background: rgba(3, 7, 18, 0.5);
    backdrop-filter: blur(12px);
}

.header-info {
    flex: 1;
}

.header-title {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.header-desc {
    font-size: 12px;
    color: var(--text-4);
    margin-top: 1px;
}

.header-actions {
    display: flex;
    gap: 8px;
}

.header-back-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-3);
    border: 1px solid var(--border-1);
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

.header-back-btn:hover {
    color: var(--accent);
    border-color: var(--border-accent);
    background: var(--accent-dim);
}

.header-back-btn svg {
    width: 14px;
    height: 14px;
}

.content-container {
    flex: 1;
    overflow-y: auto;
    padding: 28px 32px;
}

.content-section {
    display: none;
    animation: sectionIn 0.45s var(--ease-out);
}

.content-section.active {
    display: block;
}

@keyframes sectionIn {
    from {
        opacity: 0;
        transform: translateY(12px)
    }

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

/* ═══ Shared Components ═══ */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-1);
    border-radius: var(--radius-xl);
    padding: 24px;
    transition: all 0.25s;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    transition: all 0.25s;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #00c9a7);
    color: var(--bg-0);
    font-weight: 700;
    box-shadow: 0 2px 16px rgba(var(--accent-rgb), 0.25);
}

.btn-primary:hover {
    box-shadow: var(--shadow-glow-lg);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--bg-input);
    border: 1px solid var(--border-1);
    color: var(--text-2);
}

.btn-secondary:hover {
    border-color: var(--border-accent);
    color: var(--text-1);
}

.btn-ghost {
    color: var(--text-3);
    padding: 6px 10px;
}

.btn-ghost:hover {
    color: var(--accent);
    background: var(--accent-dim);
}

/* Forms */
.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-3);
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

.form-select,
.form-input,
.form-textarea {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-1);
    border-radius: var(--radius-md);
    color: var(--text-1);
    font-size: 13px;
    transition: all 0.2s;
    outline: none;
}

.form-select:focus,
.form-input:focus,
.form-textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}

.form-select option {
    background: var(--bg-3);
}

/* Complexity */
.complexity-selector {
    display: flex;
    gap: 6px;
}

.complexity-btn {
    flex: 1;
    padding: 10px 8px;
    text-align: center;
    border: 1px solid var(--border-1);
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-4);
    cursor: pointer;
    transition: all 0.2s;
}

.complexity-btn:hover {
    border-color: var(--border-accent);
    color: var(--text-3);
}

.complexity-btn.active {
    border-color: var(--accent);
    background: var(--accent-dim);
    color: var(--accent);
}

.complexity-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-right: 6px;
}

.complexity-btn[data-level="basic"] .complexity-dot {
    background: var(--accent);
}

.complexity-btn[data-level="standard"] .complexity-dot {
    background: var(--amber);
}

.complexity-btn[data-level="advanced"] .complexity-dot {
    background: var(--coral);
}

/* Multi-select */
.multi-select {
    position: relative;
}

.multi-select-trigger {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    min-height: 40px;
    padding: 6px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-1);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
}

.multi-select-trigger:hover {
    border-color: var(--border-accent);
}

.multi-select.open .multi-select-trigger {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}

.select-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    background: var(--accent-dim);
    color: var(--accent);
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
}

.select-tag .remove-tag {
    cursor: pointer;
    opacity: 0.7;
    font-size: 12px;
}

.select-tag .remove-tag:hover {
    opacity: 1;
}

.select-placeholder {
    color: var(--text-5);
    font-size: 13px;
}

.multi-select-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    max-height: 200px;
    overflow-y: auto;
    background: var(--bg-glass-strong);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-2);
    border-radius: var(--radius-md);
    padding: 4px;
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all 0.2s;
}

.multi-select.open .multi-select-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.multi-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    cursor: pointer;
    transition: background 0.1s;
}

.multi-option:hover {
    background: rgba(148, 163, 184, 0.06);
}

.multi-option.selected {
    color: var(--accent);
}

.multi-option .check-icon {
    width: 16px;
    height: 16px;
    opacity: 0;
}

.multi-option.selected .check-icon {
    opacity: 1;
}

/* Section grid */
.section-grid,
.versus-layout,
.qa-layout,
.infographics-layout,
.quiz-layout,
.summary-layout {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 24px;
    min-height: 480px;
}

/* ═══ Progress Tracker ═══ */
.progress-tracker {
    margin-top: 18px;
}

.progress-steps {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    border-radius: var(--radius-md);
    font-size: 13px;
    color: var(--text-5);
    transition: all 0.2s;
}

.progress-step.active {
    color: var(--accent);
    background: var(--accent-dim);
}

.progress-step.done {
    color: var(--text-3);
}

.step-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--border-1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 700;
    transition: all 0.2s;
}

.progress-step.active .step-icon {
    border-color: var(--accent);
    background: var(--accent-dim);
    color: var(--accent);
}

.progress-step.done .step-icon {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--bg-0);
}

.step-spinner {
    width: 22px;
    height: 22px;
    border: 2px solid var(--accent-dim);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.progress-bar-container {
    margin-top: 12px;
    height: 3px;
    background: var(--bg-3);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--purple));
    border-radius: 2px;
    width: 0%;
    transition: width 0.5s ease;
}

/* ═══ File Cards ═══ */
.file-viewer {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.file-viewer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.file-viewer-title {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
}

.file-count {
    font-size: 11px;
    color: var(--text-4);
    background: var(--bg-3);
    padding: 2px 10px;
    border-radius: var(--radius-full);
    font-weight: 600;
}

.file-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-1);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s var(--ease-smooth);
}

.file-card:hover {
    border-color: var(--border-accent);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.file-icon-wrapper {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.file-icon-wrapper.pdf {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

.file-icon-wrapper.mp4 {
    background: rgba(139, 92, 246, 0.12);
    color: #8b5cf6;
}

.file-icon-wrapper.doc {
    background: rgba(59, 130, 246, 0.12);
    color: #3b82f6;
}

.file-icon-wrapper.html {
    background: rgba(251, 146, 60, 0.12);
    color: #fb923c;
}

.file-info {
    flex: 1;
    min-width: 0;
}

.file-name {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-desc {
    font-size: 11px;
    color: var(--text-4);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
}

.file-meta {
    display: flex;
    gap: 8px;
}

.file-size,
.file-type-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    background: var(--bg-3);
    color: var(--text-4);
}

.file-download-btn {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-4);
    flex-shrink: 0;
    transition: all 0.2s;
}

.file-download-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-dim);
}

/* ═══ Empty State ═══ */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 28px;
    text-align: center;
    min-height: 360px;
}

.empty-state svg {
    color: var(--text-5);
    margin-bottom: 16px;
    opacity: 0.4;
}

.empty-state h3 {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    color: var(--text-2);
    margin-bottom: 6px;
}

.empty-state p {
    font-size: 13px;
    color: var(--text-5);
    max-width: 300px;
}

/* ═══ Versus ═══ */
.vs-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--coral), #ff8e53);
    color: white;
    font-weight: 800;
    font-size: 13px;
    margin: 14px auto;
    box-shadow: 0 0 20px rgba(248, 113, 113, 0.3);
}

.vs-all-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-1);
    border-radius: var(--radius-md);
    font-size: 13px;
    color: var(--text-3);
    cursor: pointer;
    transition: all 0.2s;
}

.vs-all-toggle:hover {
    border-color: var(--border-accent);
}

.vs-all-toggle.active {
    border-color: var(--coral);
    background: var(--coral-dim);
    color: var(--coral);
}

.vs-toggle-switch {
    width: 36px;
    height: 20px;
    background: var(--bg-3);
    border-radius: 10px;
    position: relative;
    transition: background 0.2s;
}

.vs-toggle-switch::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--text-5);
    top: 2px;
    left: 2px;
    transition: all 0.2s;
}

.vs-all-toggle.active .vs-toggle-switch {
    background: var(--coral-dim);
}

.vs-all-toggle.active .vs-toggle-switch::after {
    background: var(--coral);
    transform: translateX(16px);
}

/* AI Response */
.ai-response {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-1);
    border-radius: var(--radius-xl);
    line-height: 1.8;
    font-size: 14px;
}

.ai-response h1,
.ai-response h2,
.ai-response h3 {
    font-family: var(--font-display);
    color: var(--text-0);
    margin-top: 18px;
    margin-bottom: 10px;
}

.ai-response h2 {
    font-size: 17px;
    border-bottom: 1px solid var(--border-0);
    padding-bottom: 8px;
}

.ai-response h3 {
    font-size: 15px;
    color: var(--accent);
}

.ai-response p {
    color: var(--text-2);
    margin-bottom: 10px;
}

.ai-response strong {
    color: var(--text-0);
}

.ai-response ul,
.ai-response ol {
    padding-left: 20px;
    margin-bottom: 10px;
    color: var(--text-2);
}

.ai-response li {
    margin-bottom: 4px;
}

.ai-response table {
    width: 100%;
    border-collapse: collapse;
    margin: 14px 0;
}

.ai-response th {
    text-align: left;
    padding: 10px;
    border-bottom: 2px solid var(--border-2);
    font-weight: 600;
    color: var(--accent);
    font-size: 12px;
}

.ai-response td {
    padding: 10px;
    border-bottom: 1px solid var(--border-0);
    font-size: 13px;
    color: var(--text-2);
}

.ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--purple);
    background: var(--purple-dim);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    margin-bottom: 14px;
}

.ai-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--purple);
    animation: pulse 1.5s ease infinite;
}

.typing-dots {
    display: flex;
    gap: 5px;
    padding: 14px;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-5);
    animation: typingBounce 1.2s ease-in-out infinite;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.15s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes typingBounce {

    0%,
    60%,
    100% {
        transform: translateY(0)
    }

    30% {
        transform: translateY(-6px)
    }
}

/* ═══ Infographics ═══ */
.study-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.study-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-1);
    border-radius: var(--radius-xl);
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.study-card:hover {
    border-color: var(--accent);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-glow);
    transform: translateX(4px);
}

.study-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--accent-dim), var(--purple-dim));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 20px;
}

.study-info {
    flex: 1;
}

.study-name {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 2px;
}

.study-desc {
    font-size: 11px;
    color: var(--text-4);
}

.study-arrow {
    width: 18px;
    height: 18px;
    color: var(--text-5);
    flex-shrink: 0;
    transition: all 0.3s;
}

.study-card:hover .study-arrow {
    color: var(--accent);
    transform: translateX(4px);
}

/* ═══ Quiz ═══ */
.quiz-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.quiz-question-num {
    font-size: 11px;
    color: var(--text-5);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.quiz-timer {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-2);
    font-family: var(--font-mono);
}

.quiz-timer svg {
    color: var(--amber);
}

.quiz-progress-bar {
    height: 3px;
    background: var(--bg-3);
    border-radius: 2px;
    margin-bottom: 24px;
    overflow: hidden;
}

.quiz-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--purple));
    border-radius: 2px;
    transition: width 0.3s;
}

.quiz-question-text {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 700;
    line-height: 1.45;
    margin-bottom: 24px;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quiz-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border: 1px solid var(--border-1);
    border-radius: var(--radius-lg);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.25s;
}

.quiz-option:hover {
    border-color: var(--border-accent);
    background: rgba(var(--accent-rgb), 0.04);
}

.quiz-option.selected {
    border-color: var(--accent);
    background: var(--accent-dim);
}

.quiz-option.correct {
    border-color: var(--accent);
    background: rgba(var(--accent-rgb), 0.1);
    color: var(--accent);
}

.quiz-option.wrong {
    border-color: var(--coral);
    background: var(--coral-dim);
    color: var(--coral);
}

.option-letter {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--border-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 11px;
    flex-shrink: 0;
    transition: all 0.2s;
}

.quiz-option.selected .option-letter {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--bg-0);
}

.quiz-option.correct .option-letter {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--bg-0);
}

.quiz-option.wrong .option-letter {
    border-color: var(--coral);
    background: var(--coral);
    color: white;
}

.quiz-results {
    text-align: center;
    padding: 32px;
}

.score-ring {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    position: relative;
}

.score-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.score-ring circle {
    fill: none;
    stroke-width: 6;
}

.score-ring .bg {
    stroke: var(--bg-3);
}

.score-ring .fill {
    stroke: var(--accent);
    stroke-dasharray: 339.292;
    stroke-dashoffset: 339.292;
    stroke-linecap: round;
    transition: stroke-dashoffset 1.5s var(--ease-smooth);
}

.score-value {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
    color: var(--accent);
}

/* ═══ Chatbot ═══ */
.chatbot-embed-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - var(--header-h) - 56px);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border-1);
    background: var(--bg-card);
}

.chatbot-status-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: var(--bg-glass);
    border-bottom: 1px solid var(--border-0);
    font-size: 12px;
    color: var(--text-3);
}

.status-indicator {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--text-5);
    flex-shrink: 0;
}

.status-indicator.connected {
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent-glow);
}

.status-indicator.checking {
    background: var(--amber);
    animation: blink 1s infinite;
}

.status-indicator.disconnected {
    background: var(--coral);
}

@keyframes blink {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: 0.3
    }
}

.chatbot-iframe {
    flex: 1;
    width: 100%;
    border: none;
    background: var(--bg-0);
}

.chatbot-offline {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.offline-content {
    text-align: center;
    max-width: 380px;
}

.offline-content h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    margin: 18px 0 6px;
}

.offline-content>p {
    font-size: 13px;
    color: var(--text-4);
    margin-bottom: 24px;
}

.offline-instructions {
    background: var(--bg-3);
    border: 1px solid var(--border-1);
    border-radius: var(--radius-lg);
    padding: 18px;
    text-align: left;
    margin-bottom: 20px;
}

.offline-instructions h4 {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-3);
    margin-bottom: 10px;
}

.code-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.code-block code {
    display: block;
    padding: 8px 14px;
    background: var(--bg-0);
    color: var(--accent);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 13px;
}

/* ═══ Sessions ═══ */
.sessions-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.session-search {
    flex: 1;
    min-width: 200px;
}

.session-search .form-input {
    padding-left: 38px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 13px center;
}

.day-tabs {
    display: flex;
    gap: 2px;
    background: var(--bg-3);
    padding: 3px;
    border-radius: var(--radius-md);
}

.day-tab {
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-4);
    transition: all 0.2s;
}

.day-tab:hover {
    color: var(--text-3);
}

.day-tab.active {
    background: var(--accent);
    color: var(--bg-0);
}

.session-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.type-tabs {
    display: flex;
    gap: 2px;
    background: var(--bg-3);
    padding: 3px;
    border-radius: var(--radius-md);
}

.type-tab {
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-4);
    transition: all 0.2s;
}

.type-tab:hover {
    color: var(--text-3);
}

.type-tab.active {
    background: var(--coral);
    color: var(--bg-0);
}

/* Posters Coming Soon */
.posters-coming-soon {
    text-align: center;
    padding: 40px 20px;
}

.posters-coming-soon .empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.sessions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 14px;
}

.sessions-count {
    font-size: 12px;
    color: var(--text-4);
    padding: 8px 0;
}

.session-card {
    padding: 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-1);
    border-radius: var(--radius-lg);
    transition: all 0.25s;
}

.session-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.session-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.session-type {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    flex-shrink: 0;
}

.session-type.oral {
    background: var(--accent-dim);
    color: var(--accent);
}

.session-type.education {
    background: var(--purple-dim);
    color: var(--purple);
}

.session-type.named {
    background: var(--amber-dim);
    color: var(--amber);
}

.session-day {
    font-size: 11px;
    color: var(--text-5);
    font-weight: 500;
}

.session-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Summary */
.output-format-group {
    display: flex;
    gap: 6px;
}

.output-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    border: 1px solid var(--border-1);
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-4);
    cursor: pointer;
    transition: all 0.2s;
}

.output-btn:hover {
    border-color: var(--border-accent);
    color: var(--text-3);
}

.output-btn.active {
    border-color: var(--accent);
    background: var(--accent-dim);
    color: var(--accent);
}

/* Checkboxes custom */
input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-2);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    position: relative;
}

input[type="checkbox"]:checked {
    background: var(--accent);
    border-color: var(--accent);
}

input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: -1px;
    left: 2px;
    font-size: 11px;
    color: var(--bg-0);
    font-weight: 700;
}

/* ═══ Toast ═══ */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: var(--bg-glass-strong);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-2);
    border-radius: var(--radius-lg);
    font-size: 13px;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    animation: toastIn 0.4s var(--ease-spring);
}

.toast.hiding {
    animation: toastOut 0.3s ease forwards;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.96)
    }

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

@keyframes toastOut {
    to {
        opacity: 0;
        transform: translateY(8px) scale(0.96)
    }
}

.toast-icon {
    width: 18px;
    height: 18px;
    color: var(--accent);
    flex-shrink: 0;
}

/* ═══ Responsive ═══ */
@media (max-width:1200px) {

    .section-grid,
    .versus-layout,
    .qa-layout,
    .infographics-layout,
    .quiz-layout,
    .summary-layout {
        grid-template-columns: 1fr;
    }

    .dash-hero h1 {
        font-size: 38px;
    }
}

@media (max-width:768px) {
    .sidebar {
        position: fixed;
        z-index: 100;
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .dash-hero {
        padding: 60px 20px 40px;
    }

    .dash-tools-grid {
        grid-template-columns: 1fr;
    }

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