 /* --- CORE STYLES & VARIABLES --- */
        :root {
            /* Default (Dark Mode) */
            --bg-dark: #09090b;
            --card-bg: #18181b;
            --border-color: #27272a;
            --primary-glow: rgba(255, 255, 255, 0.1);
            --text-main: #ffffff;
            --text-muted: #a1a1aa;
            --logo-invert: 1;
            /* Invert black logo to white */
        }

        /* Light Mode Overrides */
        [data-theme="light"] {
            --bg-dark: #f3f4f6;
            /* Light Grey Background */
            --card-bg: #ffffff;
            /* White Cards */
            --border-color: #e5e7eb;
            /* Light Grey Borders */
            --primary-glow: rgba(0, 0, 0, 0.1);
            /* Dark Shadow */
            --text-main: #111827;
            /* Dark Text */
            --text-muted: #4b5563;
            /* Grey Text */
            --logo-invert: 0;
            /* Keep logo black */
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
            scroll-padding-top: 100px;
        }

        /* LENIS SMOOTH SCROLL CSS */
        html.lenis,
        html.lenis body {
            height: auto;
        }

        .lenis.lenis-smooth {
            scroll-behavior: auto !important;
        }

        .lenis.lenis-smooth [data-lenis-prevent] {
            overscroll-behavior: contain;
        }

        .lenis.lenis-stopped {
            overflow: hidden;
        }

        .lenis.lenis-scrolling iframe {
            pointer-events: none;
        }

        body {
            background-color: var(--bg-dark);
            color: var(--text-main);
            font-family: 'Poppins', sans-serif;
            overflow-x: hidden;
            line-height: 1.6;
            transition: background-color 0.3s ease, color 0.3s ease;
        }

        /* --- LOADER --- */
        .loader {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100vh;
            background-color: #000;
            z-index: 9999;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }

        .zoom-loader {
            font-family: 'Orbitron', sans-serif;
            font-size: clamp(3rem, 10vw, 6rem);
            font-weight: 900;
            letter-spacing: 10px;
            color: transparent;
            -webkit-text-stroke: 1px rgba(255, 255, 255, 0.8);
        }

        .scramble {
            font-family: 'Orbitron', sans-serif;
            font-size: clamp(1rem, 3vw, 1.5rem);
            letter-spacing: 2px;
            margin-top: 10px;
            color: var(--text-muted);
            text-align: center;
            padding: 0 10px;
        }

        .loading-bar-container {
            width: 200px;
            height: 2px;
            background: #333;
            margin-top: 30px;
            position: relative;
            overflow: hidden;
        }

        .loading-bar {
            position: absolute;
            left: 0;
            top: 0;
            height: 100%;
            width: 0%;
            background: #fff;
            animation: loadProgress 4s ease-in-out forwards;
        }

        @keyframes loadProgress {
            to {
                width: 100%;
            }
        }

        /* --- NAVBAR --- */
        .nav-bar {
            position: fixed;
            top: 0;
            width: 100%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1.5rem 5%;
            z-index: 100;
            background: rgba(9, 9, 11, 0.85);
            /* Default Dark */
            backdrop-filter: blur(12px);
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            transition: background-color 0.3s;
        }

        /* Light mode navbar adjustment */
        [data-theme="light"] .nav-bar {
            background: rgba(255, 255, 255, 0.85);
            border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        }

        .logo img {
            height: 40px;
            width: 40px;
            filter: invert(var(--logo-invert));
            /* Swaps logo color based on theme */
            transition: filter 0.3s;
        }

        .nav-links {
            display: flex;
            gap: 2.5rem;
            list-style: none;
        }

        .nav-links a {
            text-decoration: none;
            color: var(--text-muted);
            font-size: 0.9rem;
            text-transform: uppercase;
            letter-spacing: 1px;
            transition: color 0.3s;
        }

        .nav-links a:hover {
            color: var(--text-main);
        }

        .nav-right {
            display: flex;
            align-items: center;
            gap: 20px;
        }

        /* THEME TOGGLE BUTTON */
        #theme-toggle {
            background: none;
            border: none;
            color: var(--text-main);
            font-size: 1.2rem;
            cursor: pointer;
            transition: transform 0.3s;
        }

        #theme-toggle:hover {
            transform: rotate(15deg);
        }

        .btn-join {
            padding: 10px 25px;
            background: var(--text-main);
            color: var(--bg-dark);
            font-weight: 600;
            text-decoration: none;
            border-radius: 4px;
            transition: transform 0.2s;
        }

        .btn-join:hover {
            transform: scale(1.05);
        }

        /* --- CANVAS --- */
        .canvas-container {
            position: relative;
            width: 100%;
            height: 500vh;
            background: #000;
        }

        .canvas-sticky {
            position: sticky;
            top: 0;
            left: 0;
            width: 100%;
            height: 100vh;
            overflow: hidden;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        canvas {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: cover;
            position: absolute;
            top: 0;
            left: 0;
            z-index: 1;
        }

        /* --- CANVAS OVERLAYS --- */
        .canvas-text-overlay {
            position: absolute;
            z-index: 10;
            font-family: 'Orbitron', sans-serif;
            font-size: clamp(2.5rem, 6vw, 6rem);
            font-weight: 900;
            color: #fff;
            text-shadow: 0 0 30px rgba(0, 0, 0, 0.9);
            opacity: 0;
            pointer-events: none;
            text-align: center;
            width: 100%;
            filter: blur(10px);
            transform: translateY(20px);
        }

        #overlay-1,
        #overlay-2 {
            position: absolute;
            filter: blur(10px);
        }

        #overlay-3 {
            position: absolute;
            filter: blur(0px);
        }

        /* --- HERO --- */
        .hero {
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            padding: 0 20px;
            position: relative;
            background: var(--bg-dark);
            z-index: 20;
            transition: background-color 0.3s;
        }

        .hero h1 {
            font-family: 'Orbitron', sans-serif;
            font-size: clamp(3.5rem, 12vw, 8rem);
            font-weight: 900;
            line-height: 1;
            margin-bottom: 1rem;
            /* Gradient Text */
            background: linear-gradient(to bottom, var(--text-main), var(--text-muted));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .hero h6 {
            font-size: 1rem;
            letter-spacing: 5px;
            text-transform: uppercase;
            color: var(--text-muted);
            margin-bottom: 2rem;
        }

        .hero p {
            max-width: 600px;
            font-size: 1.1rem;
            color: var(--text-muted);
            line-height: 1.6;
            margin-bottom: 3rem;
        }

        .btn-hero {
            display: inline-block;
            padding: 15px 40px;
            border: 1px solid var(--border-color);
            color: var(--text-main);
            text-decoration: none;
            font-size: 1rem;
            letter-spacing: 2px;
            transition: all 0.3s;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 4px;
        }

        /* Light mode button fix */
        [data-theme="light"] .btn-hero {
            background: rgba(0, 0, 0, 0.05);
            border: 1px solid #ccc;
        }

        .btn-hero:hover {
            background: var(--text-main);
            color: var(--bg-dark);
            box-shadow: 0 0 20px var(--primary-glow);
        }

        /* --- ZOOM EFFECTS --- */
        .zoom-section {
            height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            background: #000;
            overflow: hidden;
            position: relative;
        }

        .zoom-text-out {
            font-family: 'Orbitron', sans-serif;
            font-size: 5vw;
            font-weight: 900;
            color: #fff;
            text-align: center;
            white-space: nowrap;
        }

        .zoom-text-in {
            font-family: 'Orbitron', sans-serif;
            font-size: 5vw;
            font-weight: 900;
            color: transparent;
            -webkit-text-stroke: 2px #fff;
            text-align: center;
            white-space: nowrap;
            opacity: 0.5;
        }

        /* --- LAYOUTS --- */
        .centered-layout {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 2rem;
            max-width: 1200px;
            margin: 0 auto;
            width: 100%;
        }

        /* --- CARD STYLING --- */
        .card {
            background: var(--card-bg);
            border: 1px solid var(--border-color);
            padding: 2.5rem;
            border-radius: 12px;
            transition: all 0.3s ease;
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            position: relative;
            flex: 1 1 300px;
            max-width: 400px;
            min-width: 280px;
        }

        .card:hover {
            transform: translateY(-5px);
            border-color: var(--text-muted);
            box-shadow: 0 10px 30px var(--primary-glow);
        }

        .card h4 {
            font-family: "Orbitron";
            font-size: 1.25rem;
            margin-bottom: 1rem;
            color: var(--text-main);
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .card h4 i {
            color: var(--text-muted);
            font-size: 1.1rem;
        }

        .card p,
        .card ul li {
            color: var(--text-muted);
            line-height: 1.6;
            font-size: 0.95rem;
            text-align: left;
            list-style: none;
        }

        .card ul {
            padding: 0;
        }

        .card ul li {
            margin-bottom: 8px;
        }

        .card button {
            margin-top: 20px;
            width: 100%;
            padding: 12px;
            background: transparent;
            border: 1px solid var(--text-muted);
            color: var(--text-main);
            cursor: pointer;
            transition: 0.3s;
            font-family: 'Orbitron';
            text-transform: uppercase;
        }

        .card button:hover {
            background: var(--text-main);
            color: var(--bg-dark);
        }

        /* --- MISSION SECTION --- */
        .mission-container {
            max-width: 1000px;
            margin: 0 auto;
            text-align: center;
        }

        .mission-text-box {
            margin-bottom: 3rem;
        }

        .icon-row {
            display: flex;
            justify-content: center;
            gap: 2rem;
            flex-wrap: wrap;
        }

        .process-step {
            text-align: center;
            padding: 2rem;
            border: 1px solid var(--border-color);
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.02);
            width: 200px;
        }

        [data-theme="light"] .process-step {
            background: rgba(0, 0, 0, 0.02);
        }

        .process-step:hover h5 {
            color: var(--text-main);
        }

        /* --- PROCESS STEPS --- */
        .steps-container {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 2rem;
        }

        .step-card {
            background: var(--card-bg);
            padding: 2rem;
            border: 1px solid var(--border-color);
            border-radius: 12px;
            text-align: center;
            flex: 1 1 250px;
            max-width: 350px;
        }

        .step-card h1 {
            font-family: 'Orbitron';
            font-size: 3rem;
            color: var(--text-muted);
            margin-bottom: 0.5rem;
        }

        .step-card:hover h1 {
            color: var(--text-main);
            transition: 0.3s;
        }

        /* --- TESTIMONIALS --- */
        .testimonial-text {
            font-style: italic;
            color: var(--text-muted);
        }

        .testimonial-author {
            margin-top: 1rem;
            font-weight: bold;
            color: var(--text-main);
            font-family: 'Orbitron';
        }

        /* --- FAQ SECTION --- */
        .faq-grid {
            max-width: 800px;
            margin: 0 auto;
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .faq-item {
            background: var(--card-bg);
            padding: 1.5rem;
            border-radius: 8px;
            border: 1px solid var(--border-color);
        }

        .faq-item h5 {
            color: var(--text-main);
            margin-bottom: 0.5rem;
            font-size: 1.1rem;
        }

        .faq-item p {
            font-size: 0.9rem;
            color: var(--text-muted);
        }

        /* --- RESOURCE LIBRARY --- */
        .resource-library {
            background: #0c0c0e;
            /* Keeping this dark for style, or change to var */
            background: var(--card-bg);
            /* Adjusted to follow theme */
            text-align: center;
            border-top: 1px solid var(--border-color);
        }

        .resource-library p {
            color: var(--text-muted);
            margin-bottom: 2rem;
        }

        .btns {
            display: flex;
            justify-content: center;
            gap: 1rem;
            flex-wrap: wrap;
        }

        .btns a {
            padding: 12px 25px;
            border: 1px solid var(--border-color);
            border-radius: 50px;
            color: var(--text-muted);
            text-decoration: none;
            font-weight: 500;
            transition: all 0.3s ease;
            background: var(--bg-dark);
            font-size: 0.9rem;
        }

        .btns a:hover {
            border-color: var(--text-main);
            color: var(--text-main);
            box-shadow: 0 0 15px var(--primary-glow);
            transform: scale(1.05);
        }

        /* --- EMERGENCY SECTION --- */
        .emergency {
            text-align: center;
            border-top: 1px solid var(--border-color);
        }

        .emergency-box {
            max-width: 800px;
            margin: 0 auto;
            border: 1px solid #7f1d1d;
            background: rgba(127, 29, 29, 0.05);
            padding: 3rem;
            border-radius: 12px;
            box-shadow: 0 0 20px rgba(127, 29, 29, 0.1);
        }

        .emergency h2 {
            color: #f87171;
        }

        .emergency p {
            color: var(--text-muted);
            margin-bottom: 2rem;
        }

        .emergency ul {
            list-style: none;
            padding: 0;
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .emergency ul li {
            font-size: 1.1rem;
            color: var(--text-main);
            font-weight: 600;
            letter-spacing: 1px;
        }

        /* --- FOOTER --- */
        footer {
            background: var(--card-bg);
            padding: 4rem 5% 2rem;
            border-top: 1px solid var(--border-color);
        }

        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 3rem;
            max-width: 1200px;
            margin: 0 auto;
        }

        .footer-col h3 {
            font-family: 'Orbitron';
            font-size: 1.2rem;
            margin-bottom: 1.5rem;
            color: var(--text-main);
        }

        .footer-col p {
            color: var(--text-muted);
            font-size: 0.9rem;
            margin-bottom: 1rem;
        }

        .footer-col ul {
            list-style: none;
        }

        .footer-col ul li {
            margin-bottom: 10px;
        }

        .footer-col ul li a {
            color: var(--text-muted);
            text-decoration: none;
            transition: 0.3s;
        }

        .footer-col ul li a:hover {
            color: var(--text-main);
            padding-left: 5px;
        }

        .social-links {
            display: flex;
            gap: 1rem;
            margin-top: 1rem;
        }

        .social-links a {
            color: var(--text-main);
            background: var(--border-color);
            width: 35px;
            height: 35px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            transition: 0.3s;
        }

        .social-links a:hover {
            background: var(--text-main);
            color: var(--bg-dark);
        }

        .footer-bottom {
            text-align: center;
            margin-top: 4rem;
            padding-top: 2rem;
            border-top: 1px solid var(--border-color);
            color: var(--text-muted);
            font-size: 0.8rem;
        }

        /* --- SECTION SPACING --- */
        section {
            padding: 6rem 5%;
        }

        section h2 {
            margin-bottom: 3rem;
            text-align: center;
            color: var(--text-main);
            font-family: 'Orbitron';
            font-size: 2.5rem;
        }

        @media (max-width: 768px) {
            .nav-links {
                display: none;
            }

            .hero h1 {
                font-size: 3rem;
            }

            section {
                padding: 4rem 5%;
            }

            .icon-row {
                flex-direction: column;
                align-items: center;
            }

            .process-step {
                width: 100%;
            }
        }


/* =============================================
   SETU FEATURE STYLES
   Quiz · Dashboard · Phantom Session
   ============================================= */

/* --- SETU ACCENT COLORS --- */
:root {
    --setu-teal: #14b8a6;
    --setu-teal-soft: rgba(20, 184, 166, 0.12);
    --setu-blue: #3b82f6;
    --setu-blue-soft: rgba(59, 130, 246, 0.12);
    --setu-green: #22c55e;
    --setu-amber: #f59e0b;
    --setu-red: #ef4444;
}


/* =============================================
   QUIZ SECTION (index.html)
   ============================================= */

.quiz-section {
    padding: 6rem 5%;
    text-align: center;
    background: var(--bg-dark);
    position: relative;
}

.quiz-intro {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.quiz-container {
    max-width: 720px;
    margin: 0 auto;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 3rem 2.5rem;
    position: relative;
    min-height: 380px;
}

/* Quiz Start Screen */
.quiz-start {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.quiz-start-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--setu-teal-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--setu-teal);
    margin-bottom: 0.5rem;
}

.quiz-start h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: var(--text-main);
}

.quiz-start p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.quiz-begin-btn {
    margin-top: 1rem;
    padding: 14px 40px;
    background: var(--setu-teal);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.quiz-begin-btn:hover {
    background: #0d9488;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(20, 184, 166, 0.3);
}

/* Quiz Active */
.quiz-progress {
    width: 100%;
    height: 4px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.quiz-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--setu-teal), var(--setu-blue));
    border-radius: 4px;
    transition: width 0.5s ease;
    width: 0%;
}

.quiz-counter {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 2rem;
    letter-spacing: 1px;
    font-family: 'Orbitron', sans-serif;
}

.quiz-card-inner {
    text-align: left;
}

.quiz-scenario-box {
    background: var(--setu-teal-soft);
    border: 1px solid rgba(20, 184, 166, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.quiz-scenario-box i {
    font-size: 1.3rem;
    color: var(--setu-teal);
    margin-top: 2px;
    flex-shrink: 0;
}

.quiz-scenario-box p {
    color: var(--text-main);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

.quiz-question-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    text-align: left;
}

.quiz-options-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.quiz-option-btn {
    display: block;
    width: 100%;
    padding: 1rem 1.25rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-muted);
    font-size: 0.95rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    line-height: 1.5;
}

.quiz-option-btn:hover {
    border-color: var(--setu-teal);
    color: var(--text-main);
    background: var(--setu-teal-soft);
}

.quiz-option-btn.selected {
    border-color: var(--setu-teal);
    background: var(--setu-teal-soft);
    color: var(--text-main);
    box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.3);
}

/* Quiz Nav Buttons */
.quiz-nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    gap: 1rem;
}

.quiz-nav-btn {
    padding: 10px 24px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    gap: 6px;
}

.quiz-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.quiz-nav-btn:not(:disabled):hover {
    border-color: var(--text-muted);
    color: var(--text-main);
}

.quiz-nav-primary {
    background: var(--setu-teal);
    border-color: var(--setu-teal);
    color: #fff;
}

.quiz-nav-primary:not(:disabled):hover {
    background: #0d9488;
    border-color: #0d9488;
    color: #fff;
    box-shadow: 0 4px 15px rgba(20, 184, 166, 0.3);
}

/* Quiz Complete */
.quiz-complete {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
}

.quiz-result-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--setu-teal-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--setu-teal);
    animation: quizPulse 2s ease infinite;
}

@keyframes quizPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.3); }
    50% { box-shadow: 0 0 0 15px rgba(20, 184, 166, 0); }
}

.quiz-complete h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: var(--text-main);
}

.quiz-result-status {
    font-size: 1.1rem;
    color: var(--setu-teal);
    font-weight: 600;
}

.quiz-result-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 400px;
    line-height: 1.6;
}

.quiz-dashboard-btn {
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 35px;
    background: var(--setu-teal);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.quiz-dashboard-btn:hover {
    background: #0d9488;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(20, 184, 166, 0.3);
}


/* ── Quiz Alias Input ─────────────────── */
.quiz-alias-input {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 1.25rem 0 1.5rem;
    text-align: left;
}

.quiz-alias-input label {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

.quiz-alias-input input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.quiz-alias-input input:focus {
    border-color: var(--setu-teal);
}

.quiz-alias-input input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.quiz-alias-note {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.35);
    display: flex;
    align-items: center;
    gap: 5px;
}

.quiz-alias-note i {
    color: var(--setu-green);
    font-size: 0.85rem;
}


/* ── AI Analyzing Screen ─────────────── */
.quiz-analyzing {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 2rem;
    min-height: 400px;
}

.quiz-ai-spinner {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.quiz-ai-spinner i {
    font-size: 2rem;
    color: var(--setu-teal);
    z-index: 2;
}

.quiz-ai-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid rgba(20, 184, 166, 0.12);
    border-top-color: var(--setu-teal);
    animation: quizAiSpin 1.2s linear infinite;
}

@keyframes quizAiSpin {
    to { transform: rotate(360deg); }
}

.quiz-analyzing h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.quiz-ai-subtext {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.4);
    max-width: 400px;
    margin-bottom: 2rem;
}

.quiz-ai-steps {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: left;
}

.quiz-ai-step {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.2);
    transition: all 0.5s ease;
}

.quiz-ai-step i {
    font-size: 1.1rem;
    opacity: 0.3;
    transition: all 0.5s ease;
}

.quiz-ai-step.active {
    color: var(--setu-teal);
}

.quiz-ai-step.active i {
    opacity: 1;
    color: var(--setu-teal);
}


/* ── AI Analysis Card (in result) ──────── */
.quiz-ai-analysis {
    width: 100%;
    max-width: 520px;
    margin: 1.5rem auto;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    text-align: left;
}

.quiz-ai-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.08), rgba(59, 130, 246, 0.06));
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--setu-teal);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quiz-ai-header i {
    font-size: 1rem;
}

.quiz-ai-body {
    padding: 1.25rem;
}

.quiz-ai-issue {
    margin-bottom: 1rem;
}

.quiz-ai-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 1px;
}

.quiz-ai-issue h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    color: #fff;
    margin-top: 0.25rem;
}

.quiz-ai-explanation {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.quiz-ai-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.quiz-ai-tag {
    padding: 4px 12px;
    font-size: 0.7rem;
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    border-radius: 20px;
    border: 1px solid rgba(59, 130, 246, 0.15);
}


/* ── Matched Counselor Card (in result) ── */
.quiz-matched-counselor {
    width: 100%;
    max-width: 520px;
    margin: 0 auto 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.25rem;
    text-align: left;
}

.quiz-match-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: #f59e0b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.quiz-match-badge i {
    font-size: 0.95rem;
}

.quiz-match-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.quiz-match-avatar {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.2), rgba(59, 130, 246, 0.15));
    color: var(--setu-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    flex-shrink: 0;
}

.quiz-match-details h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    color: #fff;
}

.quiz-match-details p {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 0.5rem;
}

.quiz-match-specialties {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.quiz-match-chip {
    padding: 3px 10px;
    font-size: 0.65rem;
    background: rgba(20, 184, 166, 0.1);
    color: var(--setu-teal);
    border-radius: 12px;
    border: 1px solid rgba(20, 184, 166, 0.15);
}

.quiz-match-reason {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.5;
    font-style: italic;
    padding-left: 0.75rem;
    border-left: 2px solid rgba(20, 184, 166, 0.2);
}


/* ── Dashboard AI tag ─────────────────── */
.dash-ai-tag {
    color: var(--setu-teal) !important;
}

.dash-ai-tag i {
    color: var(--setu-teal);
}


/* =============================================
   DASHBOARD PAGE (dashboard.html)
   ============================================= */

#dashboard-page {
    min-height: 100vh;
    background: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Poppins', sans-serif;
}

/* Dashboard Top Bar */
.dash-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: 64px;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    backdrop-filter: blur(12px);
}

.dash-topbar-left,
.dash-topbar-right,
.dash-topbar-center {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dash-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-main);
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
}

.dash-brand-icon {
    width: 32px;
    height: 32px;
    background: var(--setu-teal);
    color: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 900;
}

.dash-nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 6px 14px;
    border-radius: 6px;
    transition: all 0.2s;
}

.dash-nav-link:hover,
.dash-nav-link.active {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .dash-nav-link:hover,
[data-theme="light"] .dash-nav-link.active {
    background: rgba(0, 0, 0, 0.05);
}

.dash-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 1.1rem;
}

.dash-icon-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}

.dash-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--setu-teal-soft);
    color: var(--setu-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

/* Dashboard Layout */
.dash-layout {
    display: flex;
    padding-top: 64px;
    min-height: 100vh;
}

.dash-sidebar {
    width: 240px;
    background: var(--card-bg);
    border-right: 1px solid var(--border-color);
    padding: 2rem 1.25rem;
    position: fixed;
    top: 64px;
    bottom: 0;
    overflow-y: auto;
}

.dash-sidebar-section {
    margin-bottom: 2rem;
}

.dash-sidebar-section h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 1rem;
    padding: 0 0.75rem;
}

.dash-sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0.75rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: all 0.2s;
    margin-bottom: 2px;
}

.dash-sidebar-link:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.04);
}

[data-theme="light"] .dash-sidebar-link:hover {
    background: rgba(0, 0, 0, 0.04);
}

.dash-sidebar-link.active {
    color: var(--setu-teal);
    background: var(--setu-teal-soft);
}

.dash-sidebar-link i {
    font-size: 1.1rem;
}

/* Dashboard Main Content */
.dash-main {
    flex: 1;
    margin-left: 240px;
    padding: 2rem 2.5rem 4rem;
    max-width: 1100px;
}

/* Welcome */
.dash-welcome {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.dash-welcome h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.6rem;
    margin-bottom: 0.3rem;
}

.dash-welcome p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.dash-date {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-family: 'Orbitron', sans-serif;
    white-space: nowrap;
}

/* Status Card */
.dash-status-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.dash-status-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--setu-teal), var(--setu-blue));
}

.dash-status-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.dash-status-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    background: var(--setu-teal-soft);
    color: var(--setu-teal);
}

.dash-status-header h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.dash-status-label {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-main);
    margin-top: 2px;
}

/* Meter */
.dash-status-meter {
    margin-bottom: 1.5rem;
}

.dash-meter-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.dash-meter-bar {
    height: 8px;
    background: var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.dash-meter-fill {
    height: 100%;
    border-radius: 8px;
    transition: width 1s ease, background 0.5s ease;
    width: 0%;
    background: var(--setu-teal);
}

.dash-meter-fill.low { background: var(--setu-green); width: 25%; }
.dash-meter-fill.moderate { background: var(--setu-amber); width: 50%; }
.dash-meter-fill.high { background: #f97316; width: 75%; }
.dash-meter-fill.critical { background: var(--setu-red); width: 95%; }

.dash-status-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.dash-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.dash-meta-item i {
    color: var(--setu-teal);
}

.dash-status-footer {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.dash-retake-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--setu-teal);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.dash-retake-btn:hover {
    color: #0d9488;
}

/* Dashboard Grid */
.dash-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dash-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.75rem;
}

.dash-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.dash-card-header h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-main);
}

.dash-card-header h3 i {
    color: var(--setu-teal);
}

.dash-badge {
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 20px;
    background: var(--setu-teal-soft);
    color: var(--setu-teal);
    font-weight: 500;
}

/* Tasks */
.dash-tasks-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
}

.dash-task-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: all 0.2s;
    cursor: pointer;
}

.dash-task-item:hover {
    border-color: var(--setu-teal);
}

.dash-task-checkbox {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s;
    font-size: 0.7rem;
    color: transparent;
}

.dash-task-item.done .dash-task-checkbox {
    background: var(--setu-teal);
    border-color: var(--setu-teal);
    color: #fff;
}

.dash-task-text {
    flex: 1;
    font-size: 0.9rem;
    color: var(--text-main);
}

.dash-task-item.done .dash-task-text {
    text-decoration: line-through;
    color: var(--text-muted);
}

.dash-task-tag {
    font-size: 0.65rem;
    padding: 3px 8px;
    border-radius: 12px;
    background: var(--setu-blue-soft);
    color: var(--setu-blue);
    white-space: nowrap;
}

/* Session Card */
.dash-session-card {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.dash-session-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dash-session-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--setu-teal-soft);
    color: var(--setu-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.dash-session-info h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    color: var(--text-main);
}

.dash-session-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.dash-session-detail {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dash-session-time,
.dash-session-privacy {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.dash-session-time i { color: var(--setu-blue); }
.dash-session-privacy i { color: var(--setu-green); }

.dash-session-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.dash-join-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--setu-teal);
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.dash-join-btn:hover {
    background: #0d9488;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(20, 184, 166, 0.3);
}

.dash-session-wait {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px dashed var(--border-color);
}

[data-theme="light"] .dash-session-wait {
    background: rgba(0, 0, 0, 0.02);
}

.dash-simulate-btn {
    padding: 8px 16px;
    background: transparent;
    border: 1px dashed var(--setu-amber);
    color: var(--setu-amber);
    border-radius: 8px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Poppins', sans-serif;
}

.dash-simulate-btn:hover {
    background: rgba(245, 158, 11, 0.1);
}

/* Insights */
.dash-insights-card {
    margin-bottom: 2rem;
}

.dash-insights-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.dash-insight-item {
    text-align: center;
}

.dash-insight-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}

.dash-insight-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.dash-insight-bar {
    height: 4px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.dash-insight-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--setu-teal), var(--setu-blue));
    border-radius: 4px;
    transition: width 1s ease;
    width: 0%;
}

/* Quick Actions */
.dash-quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.dash-quick-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 1.5rem 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.dash-quick-btn i {
    font-size: 1.5rem;
    color: var(--setu-teal);
}

.dash-quick-btn:hover {
    border-color: var(--setu-teal);
    color: var(--text-main);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Dashboard Responsive */
@media (max-width: 1024px) {
    .dash-sidebar { display: none; }
    .dash-main { margin-left: 0; }
}

@media (max-width: 768px) {
    .dash-grid-2 { grid-template-columns: 1fr; }
    .dash-insights-grid { grid-template-columns: repeat(2, 1fr); }
    .dash-quick-actions { grid-template-columns: repeat(2, 1fr); }
    .dash-main { padding: 1.5rem; }
    .dash-topbar-center { display: none; }
    .dash-welcome { flex-direction: column; gap: 0.5rem; }
}


/* =============================================
   PHANTOM SESSION PAGE (session.html)
   ============================================= */

.session-body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    height: 100vh;
}

#session-page {
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: #0a0a0f;
    color: #fff;
    font-family: 'Poppins', sans-serif;
}

/* Session Top Bar */
.sess-topbar {
    height: 52px;
    background: rgba(10, 10, 15, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    flex-shrink: 0;
    z-index: 10;
}

.sess-topbar-left,
.sess-topbar-center,
.sess-topbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sess-brand {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--setu-teal);
}

.sess-divider {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
}

.sess-title {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.sess-secure-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 20px;
    font-size: 0.7rem;
    color: #22c55e;
}

.sess-timer {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 2px;
}

.sess-end-btn {
    padding: 6px 16px;
    background: #ef4444;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    font-family: 'Poppins', sans-serif;
}

.sess-end-btn:hover {
    background: #dc2626;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

/* Session Layout */
.sess-layout {
    flex: 1;
    display: flex;
    overflow: hidden;
}

/* Video Area */
.sess-video-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    background: #0a0a0f;
}

/* Counselor Video */
.sess-counselor-video {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a, #1e1b4b, #0f172a);
    margin: 12px;
    border-radius: 16px;
    overflow: hidden;
}

.sess-counselor-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    z-index: 2;
}

.sess-counselor-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--setu-teal), var(--setu-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
}

.sess-counselor-info {
    text-align: center;
}

.sess-counselor-info h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.sess-counselor-info p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.sess-connecting {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.sess-connecting p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
}

.sess-connecting-dots {
    display: flex;
    gap: 6px;
}

.sess-connecting-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--setu-teal);
    animation: sessDot 1.4s infinite ease-in-out;
}

.sess-connecting-dots span:nth-child(2) { animation-delay: 0.2s; }
.sess-connecting-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes sessDot {
    0%, 80%, 100% { opacity: 0.2; transform: scale(0.8); }
    40% { opacity: 1; transform: scale(1.2); }
}

/* Counselor Overlay (when "connected") */
.sess-counselor-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 5;
}

.sess-counselor-name-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    border-radius: 8px;
    font-size: 0.8rem;
    color: #fff;
}

.sess-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    animation: sessLive 2s infinite;
}

@keyframes sessLive {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Simulated Video (animated gradient) */
.sess-simulated-video {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1e3a5f, #2d1b69, #1a4a5a, #1e3a5f);
    background-size: 400% 400%;
    animation: sessVideoGradient 8s ease infinite;
    border-radius: 16px;
    z-index: 1;
}

@keyframes sessVideoGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Self View PIP */
.sess-self-view {
    position: absolute;
    bottom: 80px;
    right: 24px;
    width: 180px;
    height: 135px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: #111;
    z-index: 20;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.sess-self-view video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
}

.sess-self-label {
    position: absolute;
    bottom: 6px;
    left: 8px;
    font-size: 0.7rem;
    background: rgba(0, 0, 0, 0.6);
    padding: 2px 8px;
    border-radius: 4px;
    color: #fff;
}

.sess-self-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.3);
    background: #1a1a2e;
}

.sess-self-fallback.hidden {
    display: none;
}

/* Controls */
.sess-controls {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    z-index: 25;
}

.sess-ctrl-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    border-radius: 12px;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Poppins', sans-serif;
}

.sess-ctrl-btn i {
    font-size: 1.2rem;
}

.sess-ctrl-btn span {
    font-size: 0.65rem;
    opacity: 0.7;
}

.sess-ctrl-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.sess-ctrl-btn.active {
    background: var(--setu-teal);
}

.sess-ctrl-btn.muted {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.sess-ctrl-danger {
    background: #ef4444 !important;
}

.sess-ctrl-danger:hover {
    background: #dc2626 !important;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

/* Chat Sidebar */
.sess-chat-sidebar {
    width: 340px;
    background: rgba(15, 15, 25, 0.95);
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.sess-chat-section {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.sess-chat-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sess-chat-header i {
    color: var(--setu-teal);
    font-size: 1rem;
}

.sess-chat-header h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 1px;
    color: #fff;
    flex: 1;
}

.sess-chat-badge {
    font-size: 0.6rem;
    padding: 3px 8px;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.15);
    color: var(--setu-blue);
}

.sess-private-badge {
    background: rgba(245, 158, 11, 0.15) !important;
    color: var(--setu-amber) !important;
}

.sess-private-header i {
    color: var(--setu-amber) !important;
}

/* Messages */
.sess-broadcast-messages,
.sess-private-messages {
    flex: 1;
    overflow-y: auto;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
}

.sess-chat-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 100%;
    color: rgba(255, 255, 255, 0.2);
    text-align: center;
}

.sess-chat-empty i {
    font-size: 2rem;
}

.sess-chat-empty p {
    font-size: 0.8rem;
}

.sess-msg {
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.85rem;
    line-height: 1.5;
    max-width: 95%;
    animation: sessMsgIn 0.3s ease;
}

@keyframes sessMsgIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.sess-msg-broadcast {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.15);
    color: rgba(255, 255, 255, 0.9);
    align-self: flex-start;
}

.sess-msg-broadcast .sess-msg-label {
    font-size: 0.65rem;
    color: var(--setu-blue);
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.5px;
}

.sess-msg-private {
    background: rgba(20, 184, 166, 0.1);
    border: 1px solid rgba(20, 184, 166, 0.15);
    color: rgba(255, 255, 255, 0.9);
    align-self: flex-end;
}

.sess-msg-private .sess-msg-label {
    font-size: 0.65rem;
    color: var(--setu-teal);
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
    text-align: right;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.5px;
}

.sess-msg-reply {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.15);
    color: rgba(255, 255, 255, 0.9);
    align-self: flex-start;
}

.sess-msg-reply .sess-msg-label {
    font-size: 0.65rem;
    color: var(--setu-amber);
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.5px;
}

.sess-msg-time {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 4px;
    display: block;
}

/* Chat Divider */
.sess-chat-divider {
    padding: 0 16px;
    flex-shrink: 0;
}

.sess-chat-divider-line {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
}

/* Chat Input */
.sess-chat-input-area {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    flex-shrink: 0;
}

.sess-chat-input {
    flex: 1;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    font-size: 0.85rem;
    outline: none;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.2s;
}

.sess-chat-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.sess-chat-input:focus {
    border-color: var(--setu-teal);
}

.sess-send-btn {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--setu-teal);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.sess-send-btn:hover {
    background: #0d9488;
    box-shadow: 0 4px 15px rgba(20, 184, 166, 0.3);
}

.sess-privacy-notice {
    padding: 6px 16px 12px;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.sess-privacy-notice i {
    color: rgba(245, 158, 11, 0.5);
}

/* Session Ended Overlay */
.sess-ended-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: sessFadeIn 0.5s ease;
}

@keyframes sessFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.sess-ended-card {
    background: rgba(20, 20, 35, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    max-width: 440px;
    width: 90%;
}

.sess-ended-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--setu-teal-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
    color: var(--setu-teal);
}

.sess-ended-card h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.sess-ended-card > p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.sess-ended-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
}

.sess-ended-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sess-ended-stat-val {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--setu-teal);
}

.sess-ended-stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

.sess-ended-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.sess-ended-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--setu-teal);
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.sess-ended-btn-primary:hover {
    background: #0d9488;
    box-shadow: 0 4px 15px rgba(20, 184, 166, 0.3);
}

.sess-ended-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    border-radius: 10px;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.sess-ended-btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

/* ==========================================
   LOBBY / ROLE SELECTION OVERLAY
   ========================================== */
.sess-lobby {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: linear-gradient(135deg, #09090b 0%, #0c1222 50%, #09090b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.sess-lobby-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 2.5rem;
    width: 100%;
    max-width: 520px;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.sess-lobby-brand {
    text-align: center;
    margin-bottom: 2rem;
}

.sess-lobby-brand .sess-lobby-icon {
    display: inline-flex;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, #14b8a6, #3b82f6);
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.6rem;
    font-weight: 900;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.sess-lobby-brand h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: #fff;
    margin: 0 0 0.25rem;
}

.sess-lobby-brand p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
}

.sess-lobby-step h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    color: #fff;
    text-align: center;
    margin-bottom: 0.25rem;
}

.sess-lobby-desc {
    font-size: 0.82rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 1.5rem;
}

/* ── Role Selection Grid ────────────── */
.sess-role-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.sess-role-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.75rem 1rem;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
}

.sess-role-btn:hover {
    border-color: var(--setu-teal);
    background: rgba(20, 184, 166, 0.06);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(20, 184, 166, 0.15);
}

.sess-role-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--setu-teal);
    margin: 0 auto 0.75rem;
}

.sess-role-btn h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.82rem;
    color: #fff;
    margin-bottom: 0.25rem;
}

.sess-role-btn p {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ── Code Display ────────────────────── */
.sess-code-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin: 1.25rem 0 1rem;
    padding: 1rem 1.5rem;
    background: rgba(20, 184, 166, 0.08);
    border: 1px dashed rgba(20, 184, 166, 0.3);
    border-radius: 14px;
}

.sess-code-display span {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--setu-teal);
    letter-spacing: 3px;
}

.sess-code-copy {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.sess-code-copy:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* ── Lobby Status / Connecting ────────── */
.sess-lobby-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1rem;
}

/* ── Lobby Input ─────────────────────── */
.sess-lobby-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
    margin-bottom: 0.75rem;
    box-sizing: border-box;
}

.sess-lobby-input:focus {
    border-color: var(--setu-teal);
}

.sess-lobby-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* ── Lobby Students List ─────────────── */
.sess-lobby-students {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 120px;
    overflow-y: auto;
    margin-bottom: 1rem;
}

.sess-lobby-student-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.7);
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
}

.sess-lobby-student-item i {
    color: var(--setu-teal);
    font-size: 1rem;
}

/* ── Lobby Buttons ───────────────────── */
.sess-lobby-start-btn,
.sess-lobby-join-btn {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.sess-lobby-start-btn {
    background: linear-gradient(135deg, #14b8a6, #0d9488);
    color: #fff;
}

.sess-lobby-start-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(20, 184, 166, 0.35);
}

.sess-lobby-start-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.sess-lobby-join-btn {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
}

.sess-lobby-join-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.35);
}

.sess-lobby-join-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ── Role Tag in Topbar ──────────────── */
.sess-role-tag {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 1px;
}

/* ==========================================
   MENTOR GRID (Counselor sees student videos)
   ========================================== */
.sess-mentor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
    width: 100%;
    height: 100%;
    padding: 1rem;
    box-sizing: border-box;
    overflow-y: auto;
    align-content: start;
}

.sess-mentor-video-card {
    position: relative;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 16/10;
    min-height: 160px;
}

.sess-mentor-video-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sess-mentor-label {
    position: absolute;
    bottom: 8px;
    left: 8px;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 6px;
    font-size: 0.72rem;
    color: #fff;
    font-weight: 500;
    backdrop-filter: blur(6px);
}

.sess-mentor-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.2);
    font-size: 2.5rem;
    background: rgba(255, 255, 255, 0.02);
}

.sess-mentor-empty {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
    text-align: center;
    padding: 3rem;
}

.sess-mentor-empty i {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.12);
}

/* ==========================================
   STUDENT TABS (Counselor private chat selector)
   ========================================== */
.sess-student-tabs {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    overflow-x: auto;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sess-student-tab {
    position: relative;
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.sess-student-tab:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
}

.sess-student-tab.active {
    background: rgba(20, 184, 166, 0.12);
    border-color: var(--setu-teal);
    color: var(--setu-teal);
}

.sess-unread-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f43f5e;
}

/* ==========================================
   BROADCAST INPUT AREA (Counselor-only)
   ========================================== */
.sess-broadcast-input-area {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sess-broadcast-input-area .sess-chat-input {
    flex: 1;
}

.sess-broadcast-send {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: none;
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.sess-broadcast-send:hover {
    background: rgba(59, 130, 246, 0.25);
}

/* Session Responsive — Tablets */
@media (max-width: 900px) {
    .sess-layout {
        flex-direction: column;
    }
    .sess-chat-sidebar {
        width: 100%;
        height: 40vh;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }
    .sess-video-area {
        flex: 1;
        min-height: 0;
    }
    .sess-self-view {
        width: 120px;
        height: 90px;
        bottom: 80px;
        right: 16px;
    }
    .sess-controls {
        gap: 8px;
        padding: 8px 14px;
        bottom: 10px;
    }
    .sess-ctrl-btn {
        padding: 8px 12px;
    }
    .sess-ctrl-btn span {
        display: none;
    }
    .sess-topbar-center {
        display: none;
    }
    .sess-topbar {
        padding: 0 0.75rem;
        height: 46px;
    }
    .sess-lobby-card {
        padding: 1.5rem;
        max-width: 100%;
    }
    .sess-role-grid {
        grid-template-columns: 1fr;
    }
    .sess-mentor-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        padding: 0.5rem;
    }
    .sess-ended-card {
        padding: 2rem 1.5rem;
    }
    .sess-ended-stats {
        gap: 1.5rem;
    }
    .sess-ended-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    .sess-counselor-video {
        margin: 6px;
        border-radius: 12px;
    }
}

/* Session Responsive — Phones */
@media (max-width: 480px) {
    #session-page {
        height: 100dvh; /* dynamic viewport height for mobile browsers */
    }
    .sess-topbar {
        padding: 0 0.5rem;
        height: 42px;
    }
    .sess-brand {
        font-size: 0.75rem;
    }
    .sess-divider {
        display: none;
    }
    .sess-title {
        font-size: 0.72rem;
    }
    .sess-timer {
        font-size: 0.72rem;
        letter-spacing: 1px;
    }
    .sess-end-btn {
        padding: 5px 10px;
        font-size: 0.7rem;
    }
    .sess-end-btn span {
        display: none;
    }
    .sess-secure-badge {
        display: none;
    }
    .sess-topbar-center {
        display: none;
    }
    .sess-layout {
        flex-direction: column;
    }
    .sess-chat-sidebar {
        width: 100%;
        height: 35vh;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }
    .sess-self-view {
        width: 100px;
        height: 75px;
        bottom: 70px;
        right: 10px;
        border-radius: 10px;
    }
    .sess-controls {
        gap: 6px;
        padding: 6px 10px;
        bottom: 8px;
        border-radius: 12px;
    }
    .sess-ctrl-btn {
        padding: 8px 10px;
        border-radius: 10px;
    }
    .sess-ctrl-btn i {
        font-size: 1rem;
    }
    .sess-ctrl-btn span {
        display: none;
    }
    .sess-counselor-video {
        margin: 4px;
        border-radius: 10px;
    }
    .sess-counselor-placeholder i {
        font-size: 2.5rem;
    }
    .sess-counselor-placeholder p {
        font-size: 0.8rem;
    }
    .sess-lobby {
        padding: 1rem;
    }
    .sess-lobby-card {
        padding: 1.25rem;
        border-radius: 16px;
        max-width: 100%;
    }
    .sess-lobby-brand h2 {
        font-size: 1rem;
    }
    .sess-lobby-brand p {
        font-size: 0.75rem;
    }
    .sess-lobby-code {
        font-size: 1rem;
        letter-spacing: 2px;
        padding: 10px 16px;
    }
    .sess-lobby-section h3 {
        font-size: 0.8rem;
    }
    .sess-lobby-start-btn,
    .sess-lobby-join-btn {
        padding: 10px 18px;
        font-size: 0.82rem;
    }
    .sess-role-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    .sess-chat-header {
        padding: 10px 12px;
    }
    .sess-chat-header h4 {
        font-size: 0.65rem;
    }
    .sess-chat-input {
        font-size: 0.8rem;
        padding: 8px 10px;
    }
    .sess-chat-send {
        width: 34px;
        height: 34px;
    }
    .sess-mentor-grid {
        grid-template-columns: 1fr;
        padding: 0.5rem;
        gap: 0.5rem;
    }
    .sess-student-tabs {
        gap: 0.4rem;
        padding: 0.4rem 0.5rem;
    }
    .sess-student-tab {
        padding: 5px 10px;
        font-size: 0.68rem;
    }
    .sess-ended-card {
        padding: 1.5rem 1.25rem;
        border-radius: 16px;
    }
    .sess-ended-card h2 {
        font-size: 1.1rem;
    }
    .sess-ended-card > p {
        font-size: 0.8rem;
    }
    .sess-ended-icon {
        width: 56px;
        height: 56px;
        font-size: 1.4rem;
    }
    .sess-ended-stats {
        gap: 1.5rem;
    }
    .sess-ended-stat-val {
        font-size: 1rem;
    }
    .sess-ended-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    .sess-ended-btn-primary,
    .sess-ended-btn-secondary {
        padding: 10px 18px;
        font-size: 0.82rem;
        justify-content: center;
    }
}


/* =============================================
   CUSTOM SCROLLBARS (themed globally)
   ============================================= */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--setu-teal, #14b8a6), var(--setu-blue, #3b82f6));
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #2dd4bf, #60a5fa);
    border: 2px solid transparent;
    background-clip: padding-box;
}
::-webkit-scrollbar-corner {
    background: transparent;
}
/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #14b8a6 rgba(255,255,255,0.03);
}
[data-theme="light"] ::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.04);
}
[data-theme="light"] * {
    scrollbar-color: #14b8a6 rgba(0,0,0,0.04);
}

/* =============================================
   DASHBOARD ANALYTICS
   ============================================= */
.dash-analytics {
    padding: 0.5rem 0;
}
.dash-section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.dash-section-title i {
    color: var(--setu-teal, #14b8a6);
    font-size: 1.3rem;
}
[data-theme="light"] .dash-section-title {
    color: #111;
}

/* Entrance animation keyframes */
@keyframes dashFadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes dashCountUp {
    from { opacity: 0; transform: scale(0.6); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes dashPulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(20,184,166,0); }
    50%      { box-shadow: 0 0 20px 2px rgba(20,184,166,0.12); }
}

/* Chart Grid */
.dash-chart-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
    margin-bottom: 1.75rem;
}
.dash-chart-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 1.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
    opacity: 0;
    transform: translateY(24px);
}
.dash-visible .dash-chart-card {
    animation: dashFadeUp 0.6s cubic-bezier(0.22,1,0.36,1) both;
}
.dash-visible .dash-chart-card:nth-child(1) { animation-delay: 0.1s; }
.dash-visible .dash-chart-card:nth-child(2) { animation-delay: 0.25s; }
.dash-chart-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(20,184,166,0.1);
}
[data-theme="light"] .dash-chart-card {
    background: #fff;
    border-color: #e5e7eb;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.dash-chart-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #fff;
    margin-bottom: 0.3rem;
}
[data-theme="light"] .dash-chart-title {
    color: #111;
}
.dash-chart-desc {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.4);
    margin-bottom: 1rem;
}
[data-theme="light"] .dash-chart-desc {
    color: #64748b;
}

/* Donut Chart */
.dash-donut-wrap {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.dash-donut-container {
    position: relative;
    width: 180px;
    height: 180px;
    flex-shrink: 0;
}
#dash-donut-chart {
    width: 180px;
    height: 180px;
    display: block;
}
.dash-donut-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
}
.dash-donut-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--setu-teal, #14b8a6);
    display: block;
    max-width: 100px;
    line-height: 1.2;
}
.dash-donut-label {
    font-size: 0.68rem;
    color: rgba(255,255,255,0.4);
    display: block;
    margin-top: 2px;
}
[data-theme="light"] .dash-donut-label {
    color: #94a3b8;
}

/* Chart Legend */
.dash-chart-legend {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}
.dash-legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
    opacity: 0;
    transform: translateY(24px);
}
.dash-visible .dash-legend-item {
    animation: dashFadeUp 0.4s cubic-bezier(0.22,1,0.36,1) both;
}
.dash-visible .dash-legend-item:nth-child(1) { animation-delay: 0.3s; }
.dash-visible .dash-legend-item:nth-child(2) { animation-delay: 0.45s; }
.dash-visible .dash-legend-item:nth-child(3) { animation-delay: 0.6s; }
.dash-visible .dash-legend-item:nth-child(4) { animation-delay: 0.75s; }
[data-theme="light"] .dash-legend-item {
    color: #475569;
}
.dash-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.dash-legend-text {
    flex: 1;
}
.dash-legend-pct {
    font-weight: 600;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    color: var(--setu-teal, #14b8a6);
}

/* Bar Chart */
.dash-bar-chart {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.dash-bar-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.dash-bar-label {
    width: 110px;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.6);
    text-align: right;
    flex-shrink: 0;
}
[data-theme="light"] .dash-bar-label {
    color: #64748b;
}
.dash-bar-track {
    flex: 1;
    height: 14px;
    background: rgba(255,255,255,0.06);
    border-radius: 7px;
    overflow: hidden;
}
[data-theme="light"] .dash-bar-track {
    background: #f1f5f9;
}
.dash-bar-fill {
    height: 100%;
    border-radius: 7px;
    min-width: 0;
}
.dash-bar-value {
    font-size: 0.8rem;
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
    color: #fff;
    width: 24px;
    text-align: center;
}
[data-theme="light"] .dash-bar-value {
    color: #111;
}

/* Risk Gauge — SVG semicircle speedometer */
.dash-gauge-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.25rem;
}
.dash-gauge-svg {
    width: 220px;
    height: 140px;
    display: block;
}
.dash-gauge-bg-path {
    stroke: rgba(255,255,255,0.08);
}
[data-theme="light"] .dash-gauge-bg-path {
    stroke: #e5e7eb;
}
.dash-gauge-fill-path {
    transition: stroke-dasharray 1.4s cubic-bezier(0.22,1,0.36,1), stroke 0.6s ease;
    filter: drop-shadow(0 0 6px currentColor);
}
.dash-gauge-tick {
    font-size: 9px;
    fill: rgba(255,255,255,0.35);
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
}
[data-theme="light"] .dash-gauge-tick {
    fill: #94a3b8;
}
.dash-gauge-center {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
}
.dash-gauge-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    display: block;
    line-height: 1.2;
}
.dash-gauge-sub {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.4);
    display: block;
    margin-top: 2px;
}
[data-theme="light"] .dash-gauge-sub {
    color: #94a3b8;
}

/* Gauge stats row */
.dash-gauge-stats-row {
    display: flex;
    gap: 0.75rem;
    width: 100%;
    margin-top: 0.25rem;
}
.dash-gauge-stat-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem 0.85rem;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
    opacity: 0;
    transform: translateY(24px);
}
.dash-visible .dash-gauge-stat-item {
    animation: dashFadeUp 0.5s cubic-bezier(0.22,1,0.36,1) both;
}
.dash-visible .dash-gauge-stat-item:nth-child(1) { animation-delay: 0.4s; }
.dash-visible .dash-gauge-stat-item:nth-child(2) { animation-delay: 0.55s; }
.dash-visible .dash-gauge-stat-item:nth-child(3) { animation-delay: 0.7s; }
[data-theme="light"] .dash-gauge-stat-item {
    background: #f8fafc;
    border-color: #e5e7eb;
}
.dash-gauge-stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.dash-gauge-stat-num {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    display: block;
    line-height: 1.2;
    opacity: 0;
    transform: scale(0.6);
}
.dash-visible .dash-gauge-stat-num {
    animation: dashCountUp 0.6s cubic-bezier(0.22,1,0.36,1) both;
}
[data-theme="light"] .dash-gauge-stat-num {
    color: #111;
}
.dash-gauge-stat-label {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.4);
    display: block;
}
[data-theme="light"] .dash-gauge-stat-label {
    color: #94a3b8;
}

/* AI Summary */
.dash-ai-summary {
    background: linear-gradient(135deg, rgba(20,184,166,0.06), rgba(59,130,246,0.06));
    border: 1px solid rgba(20,184,166,0.15);
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}
.dash-ai-summary h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--setu-teal, #14b8a6);
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.dash-ai-summary-text {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}
[data-theme="light"] .dash-ai-summary-text {
    color: #475569;
}
.dash-ai-indicators {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.dash-ai-indicator-chip {
    padding: 0.35rem 0.75rem;
    background: rgba(20,184,166,0.1);
    border: 1px solid rgba(20,184,166,0.2);
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--setu-teal, #14b8a6);
    font-weight: 500;
    opacity: 0;
    transform: translateY(24px);
}
.dash-visible .dash-ai-indicator-chip {
    animation: dashFadeUp 0.5s cubic-bezier(0.22,1,0.36,1) both;
}
.dash-visible .dash-ai-indicator-chip:nth-child(1) { animation-delay: 0.2s; }
.dash-visible .dash-ai-indicator-chip:nth-child(2) { animation-delay: 0.35s; }
.dash-visible .dash-ai-indicator-chip:nth-child(3) { animation-delay: 0.5s; }
.dash-visible .dash-ai-indicator-chip:nth-child(4) { animation-delay: 0.65s; }

/* Counselor Change Section */
.dash-counselor-change {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    margin-top: 1.25rem;
    opacity: 0;
    transform: translateY(24px);
}
.dash-visible .dash-counselor-change {
    animation: dashFadeUp 0.5s cubic-bezier(0.22,1,0.36,1) 0.6s both;
}
[data-theme="light"] .dash-counselor-change {
    background: #fff;
    border-color: #e5e7eb;
}
.dash-counselor-change p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}
[data-theme="light"] .dash-counselor-change p {
    color: #64748b;
}
.dash-counselor-change strong {
    color: var(--setu-teal, #14b8a6);
    font-weight: 600;
}
.dash-change-counselor-btn {
    padding: 0.55rem 1.1rem;
    background: linear-gradient(135deg, var(--setu-teal, #14b8a6), var(--setu-blue, #3b82f6));
    border: none;
    border-radius: 10px;
    color: #fff;
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}
.dash-change-counselor-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(20,184,166,0.3);
}

/* ── Resources Grid ─────────────────────── */
.dash-resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
}
.dash-resource-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem 1.35rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    opacity: 0;
    transform: translateY(24px);
}
.dash-res-visible .dash-resource-item {
    animation: dashFadeUp 0.5s cubic-bezier(0.22,1,0.36,1) both;
}
.dash-res-visible .dash-resource-item:nth-child(1) { animation-delay: 0.1s; }
.dash-res-visible .dash-resource-item:nth-child(2) { animation-delay: 0.2s; }
.dash-res-visible .dash-resource-item:nth-child(3) { animation-delay: 0.3s; }
.dash-res-visible .dash-resource-item:nth-child(4) { animation-delay: 0.4s; }
.dash-resource-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(20,184,166,0.12);
    border-color: rgba(20,184,166,0.35);
}
[data-theme="light"] .dash-resource-item {
    background: #fff;
    border-color: #e5e7eb;
}
.dash-resource-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.dash-resource-text {
    flex: 1;
    min-width: 0;
}
.dash-resource-item h5 {
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.2rem;
}
[data-theme="light"] .dash-resource-item h5 {
    color: #111;
}
.dash-resource-item p {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.45);
    line-height: 1.4;
}
[data-theme="light"] .dash-resource-item p {
    color: #94a3b8;
}

/* ── Counselor Change Modal ─────────────── */
.dash-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.dash-modal {
    background: #18181b;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    max-width: 560px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 1.75rem;
    box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}
[data-theme="light"] .dash-modal {
    background: #fff;
    border-color: #e5e7eb;
    box-shadow: 0 24px 64px rgba(0,0,0,0.15);
}
.dash-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}
.dash-modal-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
}
[data-theme="light"] .dash-modal-header h2 {
    color: #111;
}
.dash-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    background: transparent;
    color: rgba(255,255,255,0.5);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.dash-modal-close:hover {
    background: rgba(255,255,255,0.05);
}
[data-theme="light"] .dash-modal-close {
    border-color: #e5e7eb;
    color: #64748b;
}
.dash-modal-desc {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 1.25rem;
}
[data-theme="light"] .dash-modal-desc {
    color: #64748b;
}
.dash-modal-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.dash-modal-counselor {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    background: rgba(255,255,255,0.02);
    transition: border-color 0.25s, background 0.25s;
}
.dash-modal-counselor:hover {
    border-color: rgba(20,184,166,0.3);
    background: rgba(20,184,166,0.04);
}
.dash-modal-counselor.current {
    border-color: rgba(20,184,166,0.4);
    background: rgba(20,184,166,0.06);
}
.dash-modal-counselor.relevant {
    border-left: 3px solid var(--setu-teal, #14b8a6);
}
[data-theme="light"] .dash-modal-counselor {
    background: #f8fafc;
    border-color: #e5e7eb;
}
.dash-modal-counselor-avatar {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(20,184,166,0.15), rgba(59,130,246,0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}
.dash-modal-counselor-info {
    flex: 1;
    min-width: 0;
}
.dash-modal-counselor-info h4 {
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.2rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}
[data-theme="light"] .dash-modal-counselor-info h4 {
    color: #111;
}
.dash-modal-counselor-info p {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
    margin-bottom: 0.3rem;
}
[data-theme="light"] .dash-modal-counselor-info p {
    color: #94a3b8;
}
.dash-modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}
.dash-modal-tags span {
    padding: 0.15rem 0.5rem;
    font-size: 0.65rem;
    border-radius: 6px;
    background: rgba(20,184,166,0.1);
    color: var(--setu-teal, #14b8a6);
    font-weight: 500;
}
.dash-modal-current-tag {
    padding: 0.1rem 0.4rem;
    background: var(--setu-teal, #14b8a6);
    color: #fff !important;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 600;
}
.dash-modal-match-tag {
    padding: 0.1rem 0.4rem;
    background: rgba(59,130,246,0.15);
    color: var(--setu-blue, #3b82f6) !important;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 600;
}
.dash-modal-select-btn {
    padding: 0.5rem 1rem;
    border: 1px solid rgba(20,184,166,0.3);
    background: transparent;
    border-radius: 10px;
    color: var(--setu-teal, #14b8a6);
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}
.dash-modal-select-btn:hover:not(:disabled) {
    background: var(--setu-teal, #14b8a6);
    color: #fff;
}
.dash-modal-select-btn:disabled {
    opacity: 0.5;
    cursor: default;
}

/* ── Toast Notification ─────────────────── */
.dash-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #18181b;
    border: 1px solid rgba(20,184,166,0.3);
    color: var(--setu-teal, #14b8a6);
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 20000;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
[data-theme="light"] .dash-toast {
    background: #fff;
    border-color: rgba(20,184,166,0.3);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}
.dash-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ── Counselor Book Buttons (index.html) ── */
.counselor-book-btn {
    width: 100%;
    padding: 0.7rem 1rem;
    margin-top: 0.75rem;
    background: linear-gradient(135deg, rgba(20,184,166,0.1), rgba(59,130,246,0.1));
    border: 1px solid rgba(20,184,166,0.25);
    border-radius: 10px;
    color: var(--setu-teal, #14b8a6);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}
.counselor-book-btn:hover {
    background: linear-gradient(135deg, var(--setu-teal, #14b8a6), var(--setu-blue, #3b82f6));
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(20,184,166,0.25);
}
.counselor-book-btn.selected {
    background: linear-gradient(135deg, var(--setu-teal, #14b8a6), var(--setu-blue, #3b82f6));
    color: #fff;
    border-color: transparent;
}
.card.counselor-selected {
    border-color: var(--setu-teal, #14b8a6) !important;
    box-shadow: 0 0 0 2px rgba(20,184,166,0.2), 0 8px 32px rgba(20,184,166,0.1) !important;
}

/* ── Sidebar Active State ───────────────── */
.dash-sidebar-link.active {
    background: linear-gradient(135deg, rgba(20,184,166,0.12), rgba(59,130,246,0.08));
    color: var(--setu-teal, #14b8a6) !important;
    border-right: 3px solid var(--setu-teal, #14b8a6);
}

/* ── Analytics Responsive ───────────────── */
@media (max-width: 768px) {
    .dash-chart-grid {
        grid-template-columns: 1fr;
    }
    .dash-donut-wrap {
        flex-direction: column;
        align-items: center;
    }
    .dash-gauge-stats-row {
        flex-direction: column;
    }
    .dash-counselor-change {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    .dash-resources-grid {
        grid-template-columns: 1fr;
    }
    .dash-modal {
        max-width: 100%;
        border-radius: 16px;
    }
    .dash-modal-counselor {
        flex-direction: column;
        text-align: center;
    }
}


/* =============================================
   SECTION: REPORT & FEEDBACK PAGE
   ============================================= */

/* Report Welcome / Header */
.rpt-welcome {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.rpt-welcome h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-main);
}

.rpt-welcome p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 4px;
}

.rpt-download-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #14b8a6, #0d9488);
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(20, 184, 166, 0.25);
}

.rpt-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(20, 184, 166, 0.35);
}

/* Student Summary Card */
.rpt-summary-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.rpt-summary-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
}

.rpt-avatar-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.15), rgba(20, 184, 166, 0.05));
    border: 2px solid rgba(20, 184, 166, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #14b8a6;
    flex-shrink: 0;
}

.rpt-summary-info h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
}

.rpt-subtitle {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 2px;
}

.rpt-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.rpt-stat-box {
    background: rgba(20, 184, 166, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rpt-stat-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #14b8a6;
}

.rpt-stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Section Description */
.rpt-section-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Session Timeline */
.rpt-timeline {
    position: relative;
    padding-left: 2rem;
}

.rpt-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.rpt-timeline-item {
    position: relative;
    margin-bottom: 1.75rem;
    padding-left: 1.5rem;
}

.rpt-timeline-dot {
    position: absolute;
    left: -2rem;
    top: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #14b8a6;
    border: 3px solid var(--card-bg);
    box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.3);
    z-index: 1;
}

.rpt-timeline-dot.missed {
    background: #ef4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.3);
}

.rpt-timeline-card {
    background: rgba(20, 184, 166, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.2s;
}

.rpt-timeline-card:hover {
    border-color: rgba(20, 184, 166, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.rpt-timeline-card.missed {
    background: rgba(239, 68, 68, 0.03);
}

.rpt-timeline-card.missed:hover {
    border-color: rgba(239, 68, 68, 0.3);
}

.rpt-timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 8px;
}

.rpt-timeline-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-main);
    letter-spacing: 0.5px;
}

.rpt-timeline-date {
    font-size: 0.7rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.rpt-timeline-status {
    font-size: 0.65rem;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 500;
}

.rpt-timeline-status.attended {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.rpt-timeline-status.missed {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.rpt-timeline-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-top: 0.5rem;
}

.rpt-timeline-meta {
    display: flex;
    gap: 1.25rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.rpt-timeline-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.rpt-timeline-meta-item i {
    color: #14b8a6;
    font-size: 0.85rem;
}

/* Empty State */
.rpt-empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.rpt-empty-state i {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    opacity: 0.3;
}

.rpt-empty-state p {
    font-size: 0.85rem;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Attendance Grid */
.rpt-attendance-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.rpt-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.rpt-cal-day {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    transition: all 0.2s;
}

.rpt-cal-day.header {
    border: none;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    opacity: 0.6;
}

.rpt-cal-day.attended {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.3);
    color: #22c55e;
    font-weight: 600;
}

.rpt-cal-day.missed {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.rpt-cal-day.today {
    border-color: #14b8a6;
    box-shadow: 0 0 0 1px rgba(20, 184, 166, 0.3);
}

.rpt-cal-day.empty {
    border: none;
}

.rpt-attendance-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.rpt-attend-stat {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.rpt-attend-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.rpt-attend-num {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    display: block;
}

.rpt-attend-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    display: block;
}

/* Feedback Section */
.rpt-feedback-card {
    margin-bottom: 2rem;
}

.rpt-sub-heading {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    color: var(--text-main);
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}

.rpt-previous-feedback {
    margin-bottom: 1.5rem;
}

/* Individual feedback item */
.rpt-feedback-item {
    background: rgba(20, 184, 166, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
}

.rpt-feedback-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 8px;
}

.rpt-feedback-session-tag {
    font-size: 0.7rem;
    font-weight: 600;
    color: #14b8a6;
}

.rpt-feedback-date {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.rpt-feedback-stars {
    color: #f59e0b;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
}

.rpt-feedback-mood-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.68rem;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(20, 184, 166, 0.08);
    color: #14b8a6;
    margin-bottom: 0.5rem;
}

.rpt-feedback-comment {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
    font-style: italic;
}

.rpt-no-feedback {
    text-align: center;
    padding: 1.5rem;
    color: var(--text-muted);
    font-size: 0.82rem;
    opacity: 0.6;
}

/* Feedback Form */
.rpt-feedback-form {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.rpt-form-group {
    margin-bottom: 1.25rem;
}

.rpt-form-group label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.rpt-select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--card-bg);
    color: var(--text-main);
    font-family: 'Poppins', sans-serif;
    font-size: 0.82rem;
    outline: none;
    transition: border-color 0.2s;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.rpt-select:focus {
    border-color: #14b8a6;
}

.rpt-textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--card-bg);
    color: var(--text-main);
    font-family: 'Poppins', sans-serif;
    font-size: 0.82rem;
    outline: none;
    resize: vertical;
    min-height: 80px;
    transition: border-color 0.2s;
}

.rpt-textarea:focus {
    border-color: #14b8a6;
}

/* Star Rating */
.rpt-star-rating {
    display: flex;
    gap: 6px;
}

.rpt-star {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.6rem;
    color: var(--border-color);
    transition: all 0.2s;
    padding: 2px;
}

.rpt-star:hover,
.rpt-star.active {
    color: #f59e0b;
    transform: scale(1.15);
}

.rpt-star.active i {
    font-weight: bold;
}

/* Mood Options */
.rpt-mood-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.rpt-mood-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Poppins', sans-serif;
    font-size: 0.7rem;
    min-width: 80px;
}

.rpt-mood-btn i {
    font-size: 1.5rem;
}

.rpt-mood-btn:hover {
    border-color: #14b8a6;
    color: #14b8a6;
}

.rpt-mood-btn.active {
    border-color: #14b8a6;
    background: rgba(20, 184, 166, 0.08);
    color: #14b8a6;
}

/* Recommend Options */
.rpt-recommend-options {
    display: flex;
    gap: 10px;
}

.rpt-recommend-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
}

.rpt-recommend-btn:hover {
    border-color: #14b8a6;
    color: #14b8a6;
}

.rpt-recommend-btn.active {
    border-color: #14b8a6;
    background: rgba(20, 184, 166, 0.08);
    color: #14b8a6;
}

/* Submit Button */
.rpt-submit-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #14b8a6, #0d9488);
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(20, 184, 166, 0.25);
    margin-top: 0.5rem;
}

.rpt-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(20, 184, 166, 0.35);
}

/* Feedback Success */
.rpt-feedback-success {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 1rem 1.25rem;
    border-radius: 10px;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #22c55e;
    margin-top: 1rem;
    font-size: 0.85rem;
}

.rpt-feedback-success i {
    font-size: 1.2rem;
}

/* Report Responsive */
@media (max-width: 900px) {
    .rpt-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .rpt-attendance-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .rpt-welcome {
        flex-direction: column;
        align-items: flex-start;
    }
    .rpt-stats-row {
        grid-template-columns: 1fr 1fr;
    }
    .rpt-mood-options {
        flex-direction: column;
    }
    .rpt-mood-btn {
        flex-direction: row;
    }
}

/* =============================================
   AUTH PAGE STYLES
   ============================================= */

/* Auth body override */
.auth-body {
    background: var(--bg-dark);
    margin: 0;
    padding: 0;
}

#auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

#auth-page::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 40%, rgba(20, 184, 166, 0.06) 0%, transparent 50%),
                radial-gradient(circle at 70% 60%, rgba(59, 130, 246, 0.04) 0%, transparent 50%);
    animation: auth-bg-drift 20s ease-in-out infinite alternate;
}

@keyframes auth-bg-drift {
    0%   { transform: translate(0, 0); }
    100% { transform: translate(-5%, 5%); }
}

/* Animated background circles */
.auth-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.auth-bg-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.07;
    filter: blur(80px);
}

.auth-bg-circle.c1 {
    width: 400px;
    height: 400px;
    background: #14b8a6;
    top: -100px;
    left: -100px;
    animation: auth-float1 15s ease-in-out infinite alternate;
}

.auth-bg-circle.c2 {
    width: 300px;
    height: 300px;
    background: #3b82f6;
    bottom: -50px;
    right: -80px;
    animation: auth-float2 18s ease-in-out infinite alternate;
}

.auth-bg-circle.c3 {
    width: 200px;
    height: 200px;
    background: #a855f7;
    top: 40%;
    left: 60%;
    animation: auth-float3 12s ease-in-out infinite alternate;
}

@keyframes auth-float1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(80px, 60px) scale(1.2); }
}
@keyframes auth-float2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-60px, -40px) scale(1.15); }
}
@keyframes auth-float3 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, -30px) scale(0.9); }
}

/* Auth Card Container */
.auth-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 460px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

/* Brand */
.auth-brand {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-brand-icon {
    display: inline-flex;
    width: 56px;
    height: 56px;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(135deg, #14b8a6, #0d9488);
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.auth-brand h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.6rem;
    color: var(--text-main);
}

.auth-brand p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* Tabs */
.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 4px;
}

[data-theme="light"] .auth-tabs {
    background: rgba(0, 0, 0, 0.04);
}

.auth-tab {
    padding: 0.65rem 1rem;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--text-muted);
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-tab.active {
    background: #14b8a6;
    color: #fff;
    box-shadow: 0 2px 8px rgba(20, 184, 166, 0.3);
}

/* Forms */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-form.hidden {
    display: none;
}

/* Form Groups - matches HTML class */
.auth-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.auth-form-group label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.auth-form-group label i {
    font-size: 0.95rem;
    color: var(--setu-teal);
}

.auth-form-group input,
.auth-form-group select,
.auth-form-group textarea {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    transition: border 0.3s, box-shadow 0.3s;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}

[data-theme="light"] .auth-form-group input,
[data-theme="light"] .auth-form-group select,
[data-theme="light"] .auth-form-group textarea {
    background: rgba(0, 0, 0, 0.03);
}

.auth-form-group input:focus,
.auth-form-group select:focus,
.auth-form-group textarea:focus {
    border-color: #14b8a6;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}

.auth-form-group input::placeholder,
.auth-form-group textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.5;
}

/* Role Selection */
.auth-role-select {
    margin-bottom: 0.25rem;
}

.auth-role-select > label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: block;
}

.auth-role-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.auth-role-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem;
    border-radius: 10px;
    border: 2px solid var(--border-color);
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    font-family: 'Poppins', sans-serif;
    color: var(--text-muted);
}

[data-theme="light"] .auth-role-btn {
    background: rgba(0, 0, 0, 0.02);
}

.auth-role-btn:hover {
    border-color: rgba(20, 184, 166, 0.4);
    color: var(--text-main);
}

.auth-role-btn.active {
    border-color: #14b8a6;
    background: rgba(20, 184, 166, 0.08);
    color: #14b8a6;
}

.auth-role-btn i {
    font-size: 1.1rem;
}

/* Student/Counselor specific fields */
.student-field,
.counselor-fields {
    /* Controlled by JS display toggle */
}

.counselor-fields {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Submit Button - matches HTML class */
.auth-submit-btn {
    padding: 0.8rem;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #14b8a6, #0d9488);
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    margin-top: 0.5rem;
}

.auth-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(20, 184, 166, 0.35);
}

.auth-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Error */
.auth-error {
    color: #ef4444;
    font-size: 0.8rem;
    text-align: center;
    padding: 0.5rem;
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.15);
}

/* Footer */
.auth-footer {
    text-align: center;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.auth-footer a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.82rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.3s;
}

.auth-footer a:hover {
    color: var(--setu-teal);
}

.auth-footer a i {
    font-size: 1rem;
}

/* Auth Page Responsive */
@media (max-width: 520px) {
    #auth-page {
        padding: 1rem 0.75rem;
    }
    .auth-card {
        padding: 1.75rem 1.25rem;
        border-radius: 16px;
    }
    .auth-brand h1 {
        font-size: 1.3rem;
    }
    .auth-brand-icon {
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
    }
    .auth-role-btns {
        grid-template-columns: 1fr 1fr;
        gap: 0.4rem;
    }
    .auth-role-btn {
        font-size: 0.78rem;
        padding: 0.55rem;
    }
}

/* =============================================
   NOTIFICATION BADGE
   ============================================= */
.setu-notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
    animation: notif-pop 0.3s ease;
}

@keyframes notif-pop {
    0%   { transform: scale(0); }
    60%  { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.dash-icon-btn {
    position: relative;
}

/* =============================================
   TOAST NOTIFICATIONS
   ============================================= */
.setu-toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 360px;
}

.setu-toast {
    background: var(--card-bg, #1a1a2e);
    border: 1px solid var(--border-color, #2a2a4a);
    border-left: 4px solid #14b8a6;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    animation: toast-slide 0.4s ease;
    cursor: pointer;
    transition: opacity 0.3s;
}

.setu-toast.urgent {
    border-left-color: #ef4444;
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.2);
}

.setu-toast:hover {
    opacity: 0.85;
}

@keyframes toast-slide {
    from { transform: translateX(120%); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
}

.setu-toast-title {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-primary, #eee);
    margin-bottom: 0.2rem;
}

.setu-toast-msg {
    font-size: 0.78rem;
    color: var(--text-secondary, #999);
    line-height: 1.4;
}

/* =============================================
   COUNSELOR DASHBOARD STYLES
   ============================================= */

/* Topic Grid */
.cd-topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
    gap: 1.25rem;
    margin-top: 1rem;
}

.cd-topic-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.25rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cd-topic-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.cd-topic-card.cd-threshold-met {
    border-color: rgba(20, 184, 166, 0.4);
    background: linear-gradient(135deg, var(--bg-secondary), rgba(20, 184, 166, 0.04));
}

.cd-topic-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.cd-topic-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(20, 184, 166, 0.12);
    color: #14b8a6;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.cd-topic-header h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.cd-topic-desc {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Progress Bar */
.cd-topic-progress {
    margin-bottom: 0.75rem;
}

.cd-topic-bar {
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.4rem;
}

.cd-topic-fill {
    height: 100%;
    background: linear-gradient(90deg, #14b8a6, #0d9488);
    border-radius: 4px;
    transition: width 0.6s ease;
}

.cd-threshold-met .cd-topic-fill {
    background: linear-gradient(90deg, #22c55e, #16a34a);
}

.cd-topic-counts {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Badges */
.cd-threshold-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.cd-wait-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    background: rgba(245, 158, 11, 0.08);
    color: #f59e0b;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Schedule Button */
.cd-schedule-btn {
    width: 100%;
    padding: 0.65rem;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #14b8a6, #0d9488);
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cd-schedule-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3);
}

/* Session Items */
.cd-session-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.cd-session-info h4 {
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 0.15rem;
}

.cd-session-info p {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.cd-session-info {
    flex: 1;
    min-width: 150px;
}

.cd-go-live-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    background: #ef4444;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: background 0.3s;
}

.cd-go-live-btn:hover {
    background: #dc2626;
}

.cd-end-live-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    background: #6b7280;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Notification Items */
.cd-notif-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.85rem;
    border-radius: 10px;
    margin-bottom: 0.5rem;
    transition: background 0.3s;
    cursor: pointer;
}

.cd-notif-item:hover {
    background: var(--bg-secondary);
}

.cd-notif-item.unread {
    background: rgba(20, 184, 166, 0.06);
    border-left: 3px solid #14b8a6;
}

.cd-notif-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(20, 184, 166, 0.1);
    color: #14b8a6;
    flex-shrink: 0;
}

.cd-notif-icon.threshold-reached {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.cd-notif-icon.feedback-received {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.cd-notif-content strong {
    font-size: 0.85rem;
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.15rem;
}

.cd-notif-content p {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.cd-notif-time {
    font-size: 0.7rem;
    color: var(--text-secondary);
    opacity: 0.7;
    margin-top: 0.2rem;
    display: block;
}

/* Refresh / Action Buttons */
.cd-refresh-btn {
    padding: 0.4rem 0.6rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.3s, border-color 0.3s;
}

.cd-refresh-btn:hover {
    color: #14b8a6;
    border-color: #14b8a6;
}

.cd-mark-read-btn {
    padding: 0.35rem 0.7rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: transparent;
    color: var(--text-secondary);
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: color 0.3s;
}

.cd-mark-read-btn:hover {
    color: #14b8a6;
}

.cd-loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.ri-spin {
    animation: ri-spin 1s linear infinite;
}

@keyframes ri-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Spin for loading icons (remix icon) */
.cd-notif-bell {
    position: relative;
}

/* Modal styles reuse dash-modal from dashboard */
.dash-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.dash-modal {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.75rem;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
}

.dash-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.dash-modal-header h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dash-modal-close {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.dash-modal-close:hover {
    color: #ef4444;
}

.dash-badge {
    padding: 0.3rem 0.6rem;
    border-radius: 8px;
    background: rgba(20, 184, 166, 0.1);
    color: #14b8a6;
    font-size: 0.78rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    .cd-topics-grid {
        grid-template-columns: 1fr;
    }
    .cd-session-item {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =============================================
   GLOBAL MOBILE RESPONSIVE OVERRIDES
   ============================================= */

/* Tablets */
@media (max-width: 900px) {
    .dash-sidebar {
        display: none;
    }
    .dash-main {
        margin-left: 0 !important;
        padding: 1.5rem 1rem 3rem !important;
        max-width: 100%;
    }
    .dash-topbar {
        padding: 0 1rem;
    }
}

/* Mobile Phones */
@media (max-width: 600px) {
    .dash-topbar-center {
        display: none;
    }
    .dash-topbar {
        padding: 0 0.75rem;
        height: 56px;
    }
    .dash-layout {
        padding-top: 56px;
    }
    .dash-sidebar {
        display: none;
    }
    .dash-main {
        margin-left: 0 !important;
        padding: 1rem 0.75rem 3rem !important;
    }
    .dash-welcome {
        flex-direction: column;
        gap: 0.5rem;
    }
    .dash-welcome h1 {
        font-size: 1.2rem;
    }
    .dash-status-card {
        padding: 1.25rem;
    }
    .dash-status-meta {
        flex-direction: column;
        gap: 0.75rem;
    }
    .rpt-stats-row {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.75rem;
    }
    .rpt-stat-box {
        padding: 1rem;
    }
    .cd-topics-grid {
        grid-template-columns: 1fr !important;
    }
    .dash-grid-2 {
        grid-template-columns: 1fr !important;
    }
    .dash-insights-grid {
        grid-template-columns: 1fr !important;
    }
    .dash-quick-actions {
        grid-template-columns: 1fr 1fr !important;
    }
    .dash-modal {
        width: 95% !important;
        max-width: 100% !important;
        padding: 1.25rem !important;
        border-radius: 14px !important;
    }
    /* Session page mobile — use correct class names */
    .sess-topbar {
        padding: 0 0.5rem;
        height: 42px;
    }
    .sess-layout {
        flex-direction: column;
    }
    .sess-chat-sidebar {
        width: 100% !important;
        max-width: 100% !important;
        height: 35vh;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }
    .sess-video-area {
        width: 100%;
        flex: 1;
        min-height: 0;
    }
    /* Toast mobile */
    .setu-toast-container {
        right: 10px;
        left: 10px;
        max-width: 100%;
    }
    .setu-toast {
        padding: 0.7rem 0.85rem;
    }
}

/* Very small screens */
@media (max-width: 380px) {
    .auth-card {
        padding: 1.25rem 1rem;
    }
    .auth-role-btns {
        grid-template-columns: 1fr;
    }
    .auth-brand h1 {
        font-size: 1.1rem;
    }
    .rpt-stats-row {
        grid-template-columns: 1fr !important;
    }
    .dash-quick-actions {
        grid-template-columns: 1fr !important;
    }
}