/* ============================================================
   CLOUDSEC ACADEMY - MAIN STYLESHEET
   Purple/Black Theme + Mobile Optimized
   ============================================================ */

/* ----------------------------------------
   CSS VARIABLES & RESET
   ---------------------------------------- */
:root {
    --primary: #a855f7;
    --primary-dark: #7c3aed;
    --primary-light: #c084fc;
    --secondary: #ec4899;
    --secondary-dark: #db2777;
    --accent: #fbbf24;
    --accent-green: #34d399;
    --bg-dark: #0a0015;
    --bg-card: rgba(10, 10, 30, 0.85);
    --glass-bg: rgba(168, 85, 247, 0.05);
    --glass-border: rgba(168, 85, 247, 0.12);
    --glass-shadow: rgba(168, 85, 247, 0.08);
    --text-primary: #e8d4ff;
    --text-secondary: #a78bbf;
    --text-muted: #6d5a7a;
    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
    --font-text: 'Inter', sans-serif;
    --glass-blur: blur(20px);
    --transition-elastic: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --transition-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    cursor: none;
    min-height: 100vh;
}

/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* Selection */
::selection { background: var(--primary); color: white; }

/* ============================================================
   LOADING / ENTRY SCREEN
   ============================================================ */
#loader {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}
#loader.hidden {
    opacity: 0;
    visibility: hidden;
}
.loader-content {
    text-align: center;
    position: relative;
}
.loader-logo-wrap {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.loader-logo-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid transparent;
    border-top-color: var(--primary);
    border-right-color: var(--secondary);
    border-radius: 50%;
    animation: logoSpin 2s linear infinite;
}
.loader-logo-ring:nth-child(2) {
    width: 85%;
    height: 85%;
    border-top-color: var(--secondary);
    border-right-color: transparent;
    border-bottom-color: var(--primary);
    animation-direction: reverse;
    animation-duration: 1.5s;
}
.loader-logo-ring:nth-child(3) {
    width: 70%;
    height: 70%;
    border-left-color: var(--primary-light);
    border-bottom-color: var(--secondary);
    border-top-color: transparent;
    animation-duration: 3s;
}
.loader-logo {
    width: 120px;
    height: auto;
    position: relative;
    z-index: 2;
    animation: logoFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(168,85,247,0.5));
}
@keyframes logoSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes logoFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-8px) scale(1.03); }
}
.loader-text {
    font-family: var(--font-display);
    font-size: 14px;
    letter-spacing: 6px;
    color: var(--text-secondary);
    margin-bottom: 25px;
    animation: textPulse 1.5s ease-in-out infinite;
}
.loader-bar {
    width: 280px;
    height: 3px;
    background: rgba(168,85,247,0.1);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}
.loader-progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
    animation: loadProgress 2.5s ease-in-out forwards;
}
@keyframes loadProgress {
    0% { width: 0%; }
    30% { width: 35%; }
    70% { width: 70%; }
    100% { width: 100%; }
}
@keyframes textPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
.cursor-glow {
    position: fixed;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168,85,247,0.06), transparent 70%);
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}
.cursor-dot {
    position: fixed;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.15s, height 0.15s, background 0.15s;
}
.cursor-dot.hovering {
    width: 14px;
    height: 14px;
    background: var(--secondary);
}

/* ============================================================
   BACKGROUND CANVAS (Stars)
   ============================================================ */
#bg-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
#navbar {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.4s ease;
}
#navbar.scrolled {
    background: rgba(10, 0, 21, 0.92);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    padding: 8px 0;
}
.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}
.nav-logo-img {
    height: 45px;
    width: auto;
}
.nav-brand {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 3px;
}
.nav-links {
    display: flex;
    gap: 25px;
}
.nav-link {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    letter-spacing: 2px;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s var(--transition-smooth);
}
.nav-link:hover, .nav-link.active { color: var(--primary); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-profile {
    display: flex;
    align-items: center;
    gap: 15px;
}
.xp-display {
    font-family: var(--font-display);
    font-size: 13px;
    color: var(--accent);
}
.xp-display i { margin-right: 5px; }
.profile-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}
.profile-avatar:hover {
    box-shadow: 0 0 12px var(--primary);
    transform: scale(1.1);
}
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}
.nav-hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s;
    border-radius: 1px;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
    display: none;
    min-height: 100vh;
    position: relative;
    z-index: 1;
    padding: 90px 20px 40px;
    max-width: 1400px;
    margin: 0 auto;
}
.section.active {
    display: block;
    animation: sectionFadeIn 0.5s ease;
}
@keyframes sectionFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.section-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 25px 20px;
}
.section-title {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}
.section-title i { margin-right: 10px; }
.section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
}

/* ============================================================
   GLASS PANEL
   ============================================================ */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    transition: all 0.4s var(--transition-smooth);
}
.glass-panel:hover {
    border-color: rgba(168,85,247,0.25);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 20px rgba(168,85,247,0.04);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary, .btn-secondary {
    position: relative;
    padding: 12px 28px;
    border: none;
    border-radius: 10px;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s var(--transition-elastic);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}
.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 20px rgba(168,85,247,0.3);
}
.btn-primary:active { transform: translateY(-1px) scale(0.98); }
.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}
.btn-secondary:hover {
    background: rgba(168,85,247,0.1);
    transform: translateY(-2px);
}
.magnetic-btn {
    transition: transform 0.3s var(--transition-elastic);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
#section-home {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding-top: 70px;
}
.parallax-layer {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
}
.layer-deep { background: radial-gradient(ellipse at 50% 50%, rgba(168,85,247,0.02), transparent 70%); }
.layer-close { background: radial-gradient(ellipse at 30% 70%, rgba(236,72,153,0.02), transparent 60%); }
.floating-shapes { position: absolute; width: 100%; height: 100%; }
.shape {
    position: absolute;
    border: 1px solid rgba(168,85,247,0.06);
    border-radius: 50%;
    animation: floatShape 20s ease-in-out infinite;
}
.hex-1 { width: 400px; height: 400px; top: -100px; right: -100px; border-radius: 30% 70% 70% 30%; }
.hex-2 { width: 300px; height: 300px; bottom: 10%; left: -50px; border-radius: 60% 40% 30% 70%; animation-delay: -5s; }
.hex-3 { width: 200px; height: 200px; top: 20%; left: 20%; border-radius: 40% 60% 70% 30%; animation-delay: -10s; }
.hex-4 { width: 150px; height: 150px; bottom: 30%; right: 10%; border-radius: 50% 50% 30% 70%; animation-delay: -15s; }
@keyframes floatShape {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
    33% { transform: translate(30px, -30px) rotate(120deg) scale(1.1); }
    66% { transform: translate(-20px, 20px) rotate(240deg) scale(0.9); }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
}
.hero-3d-container {
    height: 450px;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-logo-big {
    max-width: 85%;
    max-height: 85%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 40px rgba(168,85,247,0.4));
    animation: heroLogoFloat 4s ease-in-out infinite;
}
@keyframes heroLogoFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.02); }
}
.hero-text {
    padding: 20px;
}
.hero-badge {
    display: inline-block;
    padding: 6px 18px;
    border: 1px solid var(--primary);
    border-radius: 50px;
    font-family: var(--font-display);
    font-size: 11px;
    letter-spacing: 3px;
    color: var(--primary);
    margin-bottom: 15px;
}
.hero-title {
    margin-bottom: 15px;
}
.glitch-text {
    font-family: var(--font-display);
    font-size: 72px;
    font-weight: 900;
    color: var(--primary);
    position: relative;
    display: block;
    line-height: 1;
}
.glitch-text::before, .glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
}
.glitch-text::before {
    color: var(--secondary);
    z-index: -1;
    animation: glitch1 3s infinite linear alternate-reverse;
}
.glitch-text::after {
    color: var(--accent);
    z-index: -2;
    animation: glitch2 2s infinite linear alternate-reverse;
}
@keyframes glitch1 {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}
@keyframes glitch2 {
    0% { transform: translate(0); }
    25% { transform: translate(1px, -1px); }
    50% { transform: translate(-1px, 1px); }
    75% { transform: translate(-1px, -1px); }
    100% { transform: translate(0); }
}
.hero-sub {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 12px;
    display: block;
    margin-top: -5px;
}
.hero-desc {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 25px;
    max-width: 480px;
}
.hero-cta {
    display: flex;
    gap: 15px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}
.hero-stats {
    display: flex;
    gap: 35px;
    flex-wrap: wrap;
}
.stat-item {
    text-align: center;
}
.stat-number {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    display: block;
}
.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 1px;
}
.scroll-indicator {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 2;
}
.mouse {
    width: 24px;
    height: 36px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    margin: 0 auto 8px;
    position: relative;
}
.wheel {
    width: 3px;
    height: 7px;
    background: var(--primary);
    border-radius: 2px;
    position: absolute;
    top: 7px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s ease-in-out infinite;
}
@keyframes scrollWheel {
    0% { transform: translateX(-50%) translateY(0); opacity: 1; }
    100% { transform: translateX(-50%) translateY(14px); opacity: 0; }
}
.scroll-indicator p {
    font-size: 9px;
    letter-spacing: 2px;
    color: var(--text-muted);
}

/* ============================================================
   DASHBOARD
   ============================================================ */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.dashboard-card {
    padding: 22px;
}
.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--glass-border);
}
.card-header i {
    font-size: 20px;
    color: var(--primary);
}
.card-header h3 {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
}
.progress-ring-container {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 18px;
}
.progress-ring { transform: rotate(-90deg); }
.progress-ring-bg {
    fill: none;
    stroke: rgba(168,85,247,0.08);
    stroke-width: 8;
}
.progress-ring-fill {
    fill: none;
    stroke: var(--primary);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 439.82;
    stroke-dashoffset: 439.82;
    transition: stroke-dashoffset 0.8s var(--transition-smooth);
}
.progress-ring-text {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}
.progress-ring-text span {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    display: block;
}
.progress-ring-text small { font-size: 11px; color: var(--text-muted); }
.progress-stats {
    display: flex;
    justify-content: space-around;
}
.p-stat {
    text-align: center;
    font-size: 12px;
    color: var(--text-secondary);
}
.p-stat span {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    display: block;
}
.activity-feed {
    max-height: 250px;
    overflow-y: auto;
}
.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(168,85,247,0.03);
}
.activity-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(168,85,247,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
    font-size: 12px;
}
.activity-text { font-size: 13px; margin-bottom: 2px; }
.activity-time { font-size: 10px; color: var(--text-muted); }
.quick-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.quick-btn {
    padding: 12px;
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    background: rgba(168,85,247,0.02);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s var(--transition-elastic);
    text-align: center;
}
.quick-btn i {
    font-size: 22px;
    display: block;
    margin-bottom: 6px;
    color: var(--primary);
    transition: all 0.3s;
}
.quick-btn span {
    font-family: var(--font-display);
    font-size: 10px;
    letter-spacing: 1px;
}
.quick-btn:hover {
    border-color: var(--primary);
    background: rgba(168,85,247,0.05);
    transform: translateY(-2px) scale(1.02);
}

/* ============================================================
   LABS
   ============================================================ */
.lab-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 15px;
}
.filter-btn {
    padding: 6px 16px;
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-display);
    font-size: 11px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s var(--transition-elastic);
}
.filter-btn:hover, .filter-btn.active {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(168,85,247,0.05);
}
.labs-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
}
.lab-card {
    padding: 22px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--transition-elastic);
}
.lab-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, transparent 50%, rgba(168,85,247,0.02));
    pointer-events: none;
}
.lab-card:hover {
    transform: translateY(-5px) scale(1.01);
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}
.lab-card.completed { border-color: var(--accent-green); }
.lab-card.completed .lab-status {
    background: var(--accent-green);
    color: var(--bg-dark);
}
.lab-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}
.lab-category {
    padding: 3px 10px;
    border-radius: 5px;
    font-family: var(--font-display);
    font-size: 9px;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.lab-category.basics { background: rgba(168,85,247,0.15); color: var(--primary); }
.lab-category.defensive { background: rgba(52,211,153,0.15); color: var(--accent-green); }
.lab-category.offensive { background: rgba(236,72,153,0.15); color: var(--secondary); }
.lab-category.grc { background: rgba(251,191,36,0.15); color: var(--accent); }
.lab-category.linux { background: rgba(251,146,60,0.15); color: #fb923c; }
.lab-category.cloud { background: rgba(129,140,248,0.15); color: #818cf8; }
.lab-status {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(168,85,247,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--text-muted);
    transition: all 0.3s;
}
.lab-card.completed .lab-status {
    background: var(--accent-green);
    color: var(--bg-dark);
}
.lab-card h3 {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}
.lab-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
    min-height: 35px;
}
.lab-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--glass-border);
}
.lab-meta {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: var(--text-muted);
}
.lab-meta i { margin-right: 3px; }
.lab-meta .fa-star { color: var(--accent); }
.lab-meta .fa-bolt { color: var(--primary); }
.lab-xp {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
}

/* ============================================================
   LAB MODAL
   ============================================================ */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(5px);
    z-index: 5000;
    align-items: center;
    justify-content: center;
    padding: 15px;
}
.modal-overlay.active {
    display: flex;
    animation: modalIn 0.3s ease;
}
@keyframes modalIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.modal-container {
    width: 100%;
    max-width: 850px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 30px;
    position: relative;
    border-radius: 16px;
}
.modal-close {
    position: absolute;
    top: 12px; right: 15px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
}
.modal-close:hover {
    background: rgba(255,0,0,0.1);
    border-color: #ff3333;
    color: #ff3333;
}
.modal-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--glass-border);
}
.modal-category-badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 5px;
    font-family: var(--font-display);
    font-size: 11px;
    letter-spacing: 1px;
    margin-bottom: 10px;
}
.modal-header h2 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary);
}
.modal-header p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.5;
}
.modal-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: var(--text-muted);
    flex-wrap: wrap;
}
.modal-body { margin-bottom: 20px; }
.modal-body .lab-step {
    padding: 20px;
    background: rgba(168,85,247,0.02);
    border-radius: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--glass-border);
}
.modal-body .lab-step .step-title {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(168,85,247,0.1);
}
.modal-body .lab-step .step-content {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}
.modal-body .lab-step .step-content code {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(0,0,0,0.4);
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: var(--accent-green);
    font-size: 12px;
    border: 1px solid rgba(52,211,153,0.2);
    margin: 2px 0;
}
.modal-body .lab-step .step-content ul, 
.modal-body .lab-step .step-content ol {
    padding-left: 18px;
    margin: 6px 0;
}
.modal-body .lab-question {
    padding: 20px;
    background: rgba(168,85,247,0.04);
    border-radius: 12px;
    border: 1px solid rgba(168,85,247,0.15);
    margin-top: 15px;
}
.modal-body .lab-question p {
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 12px;
    font-weight: 600;
}
.modal-body .lab-question input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 15px;
    outline: none;
    transition: all 0.3s;
}
.modal-body .lab-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}
.modal-body .lab-option {
    padding: 12px 16px;
    background: rgba(168,85,247,0.02);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
    transition: all 0.3s;
}
.modal-body .lab-option:hover {
    border-color: var(--primary);
    background: rgba(168,85,247,0.05);
    color: var(--text-primary);
}
.modal-body .lab-option.selected {
    border-color: var(--primary);
    background: rgba(168,85,247,0.1);
    color: var(--primary);
}
.modal-body .lab-option.correct {
    border-color: var(--accent-green) !important;
    background: rgba(52,211,153,0.1) !important;
    color: var(--accent-green) !important;
}
.modal-body .lab-option.wrong {
    border-color: #ef4444 !important;
    background: rgba(239,68,68,0.1) !important;
    color: #ef4444 !important;
}
.modal-body .feedback {
    padding: 15px;
    border-radius: 8px;
    margin-top: 12px;
    font-size: 14px;
    display: none;
    line-height: 1.5;
}
.modal-body .feedback.correct {
    display: block;
    background: rgba(52,211,153,0.08);
    border: 1px solid var(--accent-green);
    color: var(--accent-green);
}
.modal-body .feedback.wrong {
    display: block;
    background: rgba(239,68,68,0.08);
    border: 1px solid #ef4444;
    color: #ef6666;
}
.modal-body .hint-box {
    padding: 15px;
    background: rgba(251,191,36,0.05);
    border: 1px solid rgba(251,191,36,0.15);
    border-radius: 8px;
    margin-top: 12px;
    font-size: 14px;
    color: var(--accent);
    display: none;
    line-height: 1.5;
}
.modal-body .hint-box.active { display: block; }
.modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 15px;
    border-top: 1px solid var(--glass-border);
}
.modal-footer .btn-primary, .modal-footer .btn-secondary {
    padding: 10px 24px;
    font-size: 12px;
}

/* ============================================================
   BADGES
   ============================================================ */
.badges-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}
.badge-card {
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s var(--transition-elastic);
    position: relative;
    overflow: hidden;
}
.badge-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(168,85,247,0.02), transparent, rgba(236,72,153,0.02), transparent);
    animation: badgeRotate 10s linear infinite;
    opacity: 0;
    transition: opacity 0.5s;
}
.badge-card:hover::before { opacity: 1; }
@keyframes badgeRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.badge-card:hover {
    transform: translateY(-4px) scale(1.01);
    border-color: var(--primary);
}
.badge-card.earned {
    border-color: var(--accent-green);
    box-shadow: 0 0 15px rgba(52,211,153,0.06);
}
.badge-card.locked { opacity: 0.45; }
.badge-card.locked:hover { opacity: 0.65; }
.badge-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    position: relative;
    transition: all 0.3s;
}
.badge-card.earned .badge-icon {
    background: linear-gradient(135deg, rgba(52,211,153,0.15), rgba(168,85,247,0.1));
    border: 2px solid var(--accent-green);
    color: var(--accent-green);
}
.badge-card.locked .badge-icon {
    background: rgba(168,85,247,0.02);
    border: 2px solid var(--glass-border);
    color: var(--text-muted);
}
.badge-card h3 {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    letter-spacing: 1px;
}
.badge-card.earned h3 { color: var(--accent-green); }
.badge-card.locked h3 { color: var(--text-muted); }
.badge-card p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 8px;
}
.badge-card .badge-xp {
    font-family: var(--font-display);
    font-size: 11px;
    color: var(--accent);
}

/* ============================================================
   COMPLETION MODAL
   ============================================================ */
.completion-container {
    padding: 40px;
    text-align: center;
    max-width: 450px;
    position: relative;
    overflow: visible;
    border-radius: 20px;
}
.completion-particle-burst {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    pointer-events: none;
}
.completion-badge {
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 46px;
    color: white;
    box-shadow: 0 0 25px var(--primary);
    animation: completeBounce 0.8s var(--transition-elastic);
}
@keyframes completeBounce {
    0% { transform: scale(0) rotate(-180deg); opacity: 0; }
    60% { transform: scale(1.15) rotate(10deg); }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}
.completion-title {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 8px;
    letter-spacing: 2px;
}
.completion-lab-name {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}
.completion-stats {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.c-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.c-stat i {
    font-size: 20px;
    color: var(--accent);
}
.c-stat span {
    font-size: 13px;
    color: var(--text-primary);
    font-family: var(--font-display);
}

/* ============================================================
   LAB TERMINAL SECTION (in modal)
   ============================================================ */
.lab-terminal-section {
    margin: 15px 0;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
}
.lab-terminal-header {
    padding: 10px 15px;
    background: rgba(168,85,247,0.08);
    border-bottom: 1px solid var(--glass-border);
    font-family: var(--font-display);
    font-size: 11px;
    letter-spacing: 1px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.lab-terminal-header i { font-size: 14px; }
.terminal-instruction {
    margin-left: auto;
    font-size: 10px;
    color: var(--text-muted);
    font-family: var(--font-body);
    letter-spacing: 0;
}
.lab-terminal {
    background: #0c0c0c;
    font-family: 'Fira Code', 'Courier New', monospace;
    padding: 12px;
    max-height: 250px;
    overflow-y: auto;
    border-bottom: 1px solid #333;
}
.lab-terminal-output {
    color: #00ff00;
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 8px;
    white-space: pre-wrap;
    word-break: break-all;
}
.lab-terminal-output-line {
    margin-bottom: 4px;
    font-size: 12px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-all;
}
.lab-terminal-input-line {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #00ff00;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 12px;
}
.lab-terminal-prompt {
    color: #00ffff;
    user-select: none;
    white-space: nowrap;
    font-size: 12px;
}
.lab-terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #00ff00;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 12px;
    outline: none;
    caret-color: #00ff00;
}
.lab-flag-input {
    padding: 12px 15px;
    background: rgba(168,85,247,0.03);
    border-top: 1px solid var(--glass-border);
}
.lab-flag-input label {
    display: block;
    font-family: var(--font-display);
    font-size: 11px;
    color: var(--accent);
    margin-bottom: 8px;
}
.lab-flag-row {
    display: flex;
    gap: 8px;
}
.lab-flag-row input {
    flex: 1;
    padding: 8px 12px;
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: var(--font-code);
    font-size: 12px;
    outline: none;
}
.lab-flag-row input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(168,85,247,0.1);
}
.lab-flag-input .flag-feedback {
    margin-top: 8px;
    padding: 8px;
    border-radius: 4px;
    font-size: 12px;
    display: none;
}
.lab-flag-input .flag-feedback.correct {
    display: block;
    background: rgba(52,211,153,0.1);
    border: 1px solid var(--accent-green);
    color: var(--accent-green);
}
.lab-flag-input .flag-feedback.wrong {
    display: block;
    background: rgba(239,68,68,0.1);
    border: 1px solid #ef4444;
    color: #ef6666;
}
.terminal-hint {
    margin-top: 10px;
    padding: 10px 12px;
    background: rgba(0,255,0,0.05);
    border: 1px solid rgba(0,255,0,0.15);
    border-radius: 6px;
    font-size: 13px;
    color: var(--accent-green);
}
.terminal-hint i { color: var(--primary); margin-right: 6px; }
.terminal-hint code {
    display: inline-block;
    padding: 1px 6px;
    background: rgba(0,0,0,0.4);
    border-radius: 3px;
    color: #00ff00;
    font-family: var(--font-code);
    font-size: 12px;
}

/* ============================================================
   PATH PROGRESS (DASHBOARD)
   ============================================================ */
#pathProgress {
    grid-column: 1 / -1;
}
.path-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--glass-border);
}
.path-item:last-child { border-bottom: none; }
.path-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.path-item-title {
    font-family: var(--font-display);
    font-size: 13px;
    color: var(--text-primary);
    letter-spacing: 1px;
}
.path-item-title i {
    color: var(--primary);
    margin-right: 8px;
    width: 16px;
}
.path-item-status {
    font-size: 11px;
    color: var(--text-secondary);
}
.path-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(168,85,247,0.08);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}
.path-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 4px;
    transition: width 0.8s var(--transition-smooth);
    font-size: 0;
    position: relative;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.path-continue-btn {
    font-family: var(--font-display);
    font-size: 10px;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: 1px;
    transition: all 0.3s;
}
.path-continue-btn:hover {
    color: var(--secondary);
    gap: 5px;
}

/* ============================================================
   11. KNOWLEDGE QUIZ STYLES
   ============================================================ */
.knowledge-quiz-section {
    border-top: 1px solid var(--glass-border);
    padding: 20px;
}

.knowledge-quiz-section h5 {
    font-family: var(--font-display);
    font-size: 14px;
    color: var(--accent);
    margin-bottom: 15px;
}

.knowledge-question {
    background: rgba(168,85,247,0.03);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 15px;
}

.knowledge-q-text {
    font-size: 13px;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 12px;
    font-weight: 500;
}

.knowledge-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quiz-opt.knowledge-opt {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(168,85,247,0.02);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 13px;
    color: var(--text-secondary);
    font-family: var(--font-body);
    text-align: left;
    width: 100%;
}

.quiz-opt.knowledge-opt:hover {
    border-color: var(--primary);
    background: rgba(168,85,247,0.05);
}

.quiz-opt.knowledge-opt.correct {
    border-color: var(--accent-green) !important;
    background: rgba(52,211,153,0.1) !important;
    color: var(--accent-green) !important;
}

.quiz-opt.knowledge-opt.wrong {
    border-color: #ef4444 !important;
    background: rgba(239,68,68,0.1) !important;
    color: #ef6666 !important;
}

.quiz-opt.knowledge-opt.disabled {
    pointer-events: none;
    opacity: 0.7;
}

.knowledge-feedback {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-top: 10px;
    display: none;
    line-height: 1.6;
}

.knowledge-feedback.correct {
    display: block;
    background: rgba(52,211,153,0.1);
    border: 1px solid var(--accent-green);
    color: var(--accent-green);
}

.knowledge-feedback.wrong {
    display: block;
    background: rgba(239,68,68,0.1);
    border: 1px solid #ef4444;
    color: #ef6666;
}

.knowledge-status {
    text-align: center;
    padding: 12px;
    margin-top: 10px;
    background: rgba(168,85,247,0.08);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    font-family: var(--font-display);
    font-size: 11px;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.knowledge-status.completed {
    border-color: var(--accent-green);
    color: var(--accent-green);
    background: rgba(52,211,153,0.1);
}

/* ============================================================
   12. RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .hero-content { grid-template-columns: 1fr; gap: 30px; }
    .hero-3d-container { height: 280px; }
    .hero-logo-big { max-width: 70%; }
    .glitch-text { font-size: 52px; }
    .hero-sub { font-size: 20px; letter-spacing: 10px; }
    .dashboard-grid { grid-template-columns: 1fr 1fr; }
    .labs-container { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}
@media (max-width: 768px) {
    body { cursor: auto; }
    .cursor-glow, .cursor-dot { display: none; }
    
    .nav-links { display: none; }
    .nav-hamburger { display: flex; }
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: rgba(10,0,21,0.97);
        backdrop-filter: var(--glass-blur);
        padding: 20px;
        gap: 12px;
        border-bottom: 1px solid var(--glass-border);
        z-index: 999;
    }
    .nav-logo-img { height: 35px; }
    .nav-brand { font-size: 16px; letter-spacing: 2px; }
    
    .section { padding: 75px 15px 30px; }
    .section-title { font-size: 22px; }
    .section-header { padding: 20px 15px; margin-bottom: 25px; }
    
    .glitch-text { font-size: 38px; }
    .hero-sub { font-size: 16px; letter-spacing: 6px; }
    .hero-desc { font-size: 14px; max-width: 100%; }
    .hero-cta { flex-direction: column; }
    .hero-cta .btn-primary, .hero-cta .btn-secondary { width: 100%; justify-content: center; }
    .hero-stats { gap: 20px; justify-content: center; }
    .stat-number { font-size: 26px; }
    .hero-3d-container { height: 220px; }
    .hero-logo-big { max-width: 60%; }
    
    .dashboard-grid { grid-template-columns: 1fr; gap: 15px; }
    .dashboard-card { padding: 18px; }
    .labs-container { grid-template-columns: 1fr; gap: 15px; }
    .lab-card { padding: 18px; }
    .lab-card h3 { font-size: 15px; }
    .badges-container { grid-template-columns: 1fr 1fr; gap: 12px; }
    .badge-card { padding: 18px; }
    .badge-icon { width: 55px; height: 55px; font-size: 24px; }
    .badge-card h3 { font-size: 11px; }
    .badge-card p { font-size: 11px; }
    
    .modal-container { padding: 20px; max-height: 90vh; }
    .modal-header h2 { font-size: 20px; }
    .modal-body .lab-step { padding: 15px; }
    
    .completion-container { padding: 30px 20px; }
    .completion-title { font-size: 22px; }
    .completion-badge { width: 80px; height: 80px; font-size: 36px; }
    
    .lab-filters { gap: 6px; }
    .filter-btn { padding: 5px 12px; font-size: 10px; }
    .quick-grid { grid-template-columns: 1fr 1fr; }
    
    .xp-display { font-size: 11px; }
    .profile-avatar { width: 30px; height: 30px; font-size: 12px; }
}
@media (max-width: 480px) {
    .nav-container { padding: 0 12px; }
    .nav-links.active { gap: 10px; padding: 15px; }
    .nav-link { font-size: 11px; }
    
    .section { padding: 65px 10px 20px; }
    .section-title { font-size: 18px; }
    
    .glitch-text { font-size: 30px; }
    .hero-sub { font-size: 14px; letter-spacing: 4px; }
    .hero-3d-container { height: 180px; }
    .hero-logo-big { max-width: 70%; }
    .hero-badge { font-size: 10px; padding: 4px 14px; }
    
    .labs-container { grid-template-columns: 1fr; }
    .badges-container { grid-template-columns: 1fr 1fr; gap: 10px; }
    .badge-icon { width: 45px; height: 45px; font-size: 20px; }
    .badge-card h3 { font-size: 10px; }
    
    .modal-container { padding: 15px; }
    .modal-body .lab-step { padding: 12px; }
    .modal-body .lab-step .step-title { font-size: 13px; }
    .modal-body .lab-step .step-content { font-size: 13px; }
    .modal-body .lab-option { padding: 10px 14px; font-size: 13px; }
    .modal-footer { flex-direction: column; }
    .modal-footer .btn-primary, .modal-footer .btn-secondary { width: 100%; justify-content: center; }
}

/* ============================================================
   INTERACTIVE CLI BANNER & KNOWLEDGE STYLES
   ============================================================ */
.lab-cli-banner {
    background: rgba(168, 85, 247, 0.08);
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: 12px;
    padding: 14px 18px;
    margin: 15px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
    transition: all 0.3s ease;
}
.lab-cli-banner:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.15);
}
.lab-cli-btn {
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: 8px;
    color: white !important;
    font-family: var(--font-display);
    font-size: 11px;
    letter-spacing: 1px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.3s;
}
.lab-cli-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4);
}
.knowledge-feedback {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.6;
    margin-top: 12px;
    display: none;
}
.knowledge-feedback.correct {
    display: block;
    background: rgba(52, 211, 153, 0.1);
    border: 1px solid var(--accent-green);
    color: var(--accent-green);
}
.knowledge-feedback.wrong {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    color: #ef6666;
}
.knowledge-opt.correct {
    border-color: var(--accent-green) !important;
    background: rgba(52, 211, 153, 0.15) !important;
    color: var(--accent-green) !important;
}
.knowledge-opt.wrong {
    border-color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.15) !important;
    color: #ef6666 !important;
}
/* ============================================================
   LAB CONTROLS (requirement #29)
   ============================================================ */
.lab-modal {
    width: 100%;
    max-width: 900px;
    max-height: 88vh;
    overflow-y: auto;
    padding: 28px;
    position: relative;
}
.lab-modal.maximized {
    max-width: 100vw !important;
    width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
}
.lab-modal-head {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding-right: 40px;
}
.lab-modal-head h3 {
    font-family: var(--font-display);
    font-size: 20px;
    margin: 0;
    color: var(--primary);
    flex: 1 1 auto;
}
.lab-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: transparent;
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}
.lab-close:hover { background: rgba(255,0,0,0.1); border-color: #ff3333; color: #ff3333; }
.lab-controls-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px 0;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--glass-border);
    padding-right: 40px;
}
.lab-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-display);
    font-size: 10px;
    letter-spacing: 1px;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid rgba(52,211,153,0.4);
    background: rgba(52,211,153,0.08);
    color: var(--accent-green);
}
.lab-status-pill .lab-status-dot,
.lab-min-status .lab-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-green);
    animation: labPulse 1.6s ease-in-out infinite;
}
@keyframes labPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 6px rgba(52,211,153,0.8); }
    50% { opacity: 0.45; box-shadow: none; }
}
.lab-question-progress {
    font-family: var(--font-display);
    font-size: 10px;
    letter-spacing: 1px;
    color: var(--text-muted);
}
.lab-controls {
    margin-left: auto;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.lab-ctrl-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-family: var(--font-display);
    font-size: 10px;
    letter-spacing: 1px;
    color: var(--text-secondary);
    background: rgba(168,85,247,0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s;
}
.lab-ctrl-btn i { font-size: 11px; }
.lab-ctrl-btn:hover {
    border-color: var(--primary);
    color: var(--text-primary);
    background: rgba(168,85,247,0.12);
    transform: translateY(-1px);
}
.lab-ctrl-btn.lab-stop:hover {
    border-color: #ff5555;
    color: #ff8888;
    background: rgba(255,0,0,0.1);
}

/* Minimized lab bar - stays accessible from the screen (#29) */
.lab-minimized-bar {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 6000;
    display: none;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(20,6,36,0.95);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(168,85,247,0.4);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    cursor: pointer;
    animation: labMinIn 0.3s ease;
}
.lab-minimized-bar.visible { display: flex; }
@keyframes labMinIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.lab-min-icon { font-size: 20px; }
.lab-min-text { display: flex; flex-direction: column; gap: 2px; }
.lab-min-title {
    font-family: var(--font-display);
    font-size: 12px;
    color: var(--text-primary);
    max-width: 240px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lab-min-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-family: var(--font-display);
    letter-spacing: 1px;
    color: var(--accent-green);
}
.lab-min-btn {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(168,85,247,0.1);
    border: 1px solid rgba(168,85,247,0.35);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.25s;
}
.lab-min-btn:hover { background: rgba(168,85,247,0.25); transform: scale(1.06); }
.lab-min-stop { border-color: rgba(239,68,68,0.5) !important; color: #f87171 !important; }
.lab-min-stop:hover { background: rgba(239,68,68,0.2) !important; }

/* ============================================================
   ANSWER AREA (requirements #30 / #31)
   ============================================================ */
.answer-area { margin-top: 25px; }
.answer-area-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.answer-area-head h5 {
    font-family: var(--font-display);
    letter-spacing: 1px;
    color: var(--accent);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}
.answer-area-sub { font-size: 10px; color: var(--text-muted); font-weight: normal; }
.answer-progress {
    font-family: var(--font-display);
    font-size: 11px;
    color: var(--accent-green);
}
.answer-progressbar {
    height: 6px;
    border-radius: 4px;
    background: rgba(168,85,247,0.08);
    border: 1px solid var(--glass-border);
    overflow: hidden;
    margin-bottom: 16px;
}
.answer-progressbar-fill {
    height: 100%;
    width: 0%;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent-green));
    transition: width 0.5s var(--transition-smooth);
}
.answer-group { margin-bottom: 20px; }
.answer-group-title {
    font-family: var(--font-display);
    font-size: 12px;
    letter-spacing: 1px;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px dashed var(--glass-border);
    margin-bottom: 12px;
}
.answer-question {
    background: rgba(168,85,247,0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.answer-question.solved {
    border-color: rgba(52,211,153,0.5);
    box-shadow: 0 0 12px rgba(52,211,153,0.06);
}
.answer-question.shake { animation: answerShake 0.4s ease; }
@keyframes answerShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-7px); }
    40% { transform: translateX(7px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}
.answer-q-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}
.answer-q-num {
    font-family: var(--font-display);
    font-size: 10px;
    letter-spacing: 1px;
    color: var(--primary);
}
.answer-q-type {
    font-size: 9px;
    font-family: var(--font-display);
    letter-spacing: 1px;
    color: var(--text-muted);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 2px 8px;
}
.answer-q-text {
    font-size: 13px;
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0 0 12px;
    font-weight: 500;
}
.answer-input {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 14px;
    background: rgba(0,0,0,0.35);
    border: 1px solid var(--glass-border);
    border-radius: 9px;
    color: var(--text-primary);
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 13px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.answer-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(168,85,247,0.12); }
.answer-input:disabled { opacity: 0.6; }
.answer-options { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.answer-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(168,85,247,0.02);
    border: 1px solid var(--glass-border);
    border-radius: 9px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-secondary);
    transition: all 0.25s;
}
.answer-option:hover { border-color: var(--primary); background: rgba(168,85,247,0.06); }
.answer-option.selected {
    border-color: var(--primary);
    background: rgba(168,85,247,0.1);
    color: var(--text-primary);
}
.answer-option.selected .answer-option-letter { background: var(--primary); color: #fff; }
.answer-option.correct {
    border-color: var(--accent-green);
    background: rgba(52,211,153,0.08);
    color: var(--accent-green);
}
.answer-option.disabled { opacity: 0.75; pointer-events: none; }
.answer-option-letter {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    font-family: var(--font-display);
    font-size: 10px;
}
.answer-submit {
    padding: 9px 20px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary), #7c3aed);
    color: #fff;
    font-family: var(--font-display);
    font-size: 10px;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.25s;
}
.answer-submit:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(168,85,247,0.3); }
.answer-submit:disabled { opacity: 0.55; cursor: wait; }
.answer-feedback {
    margin-top: 10px;
    font-size: 13px;
    font-weight: 600;
    min-height: 18px;
    display: none;
}
.answer-feedback.correct { display: block; color: var(--accent-green); }
.answer-feedback.incorrect { display: block; color: #f87171; }

/* Completion modal subtitle (#32) */
.completion-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 6px 0 4px;
}