/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    outline: none;
}

.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-hover); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3); }

.btn-accent { background: var(--color-accent); color: #fff; }
.btn-accent:hover { background: var(--color-accent-hover); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(225, 29, 72, 0.3); }

.btn-outline { background: transparent; color: var(--color-text-main); border: 1px solid var(--glass-border); }
.btn-outline:hover { background: rgba(255,255,255,0.05); }

.btn-block { width: 100%; }
.btn-large { padding: 14px 28px; font-size: 1.1rem; border-radius: var(--border-radius-md); }

.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.7); }
    70% { transform: scale(1.02); box-shadow: 0 0 0 10px rgba(225, 29, 72, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(225, 29, 72, 0); }
}

/* Forms */
.input-group {
    position: relative;
    margin-bottom: 20px;
}
.input-group i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    font-size: 1.2rem;
}
.input-group input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 14px 14px 14px 48px;
    border-radius: var(--border-radius-md);
    color: var(--color-text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all var(--transition-fast);
}
.input-group input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(0, 0, 0, 0.2);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2);
}

/* Utility layout */
.col-span-1 { grid-column: span 1; }
.col-span-2 { grid-column: span 2; }
.col-span-3 { grid-column: span 3; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.w-full { width: 100%; }
.text-center { text-align: center; }
.text-sm { font-size: 0.875rem; }

/* Login & Register Layout Centering */
#login-view, #register-view {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
}

#login-view.active, #register-view.active { 
    display: flex !important; 
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 40px;
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.login-header {
    text-align: center;
    margin-bottom: 30px;
}
.logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}
.logo-icon {
    font-size: 2.5rem;
    color: var(--color-primary);
    background: -webkit-linear-gradient(45deg, var(--color-primary), #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.logo-text {
    font-family: var(--font-heading);
    display: flex;
    flex-direction: column;
    line-height: 0.9;
    font-weight: 700;
}
.logo-text span:first-child { 
    font-size: 1.8rem; 
    letter-spacing: -0.5px; 
}
.logo-text .highlight { 
    font-size: 0.85rem; 
    text-transform: uppercase; 
    letter-spacing: 1.2px; 
    font-weight: 800; 
    color: var(--color-accent);
    margin-top: 2px;
}
.login-header h2 { font-size: 1.5rem; margin-bottom: 4px; }
.login-header p { color: var(--color-text-muted); }

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}
.form-options label { display: flex; align-items: center; gap: 6px; cursor: pointer; }

/* Dashboard Layout (Sidebar) */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styling */
.sidebar {
    width: 280px;
    min-height: 100vh;
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    border-radius: 0;
    border-right: 1px solid var(--glass-border);
    border-top: none;
    border-left: none;
    border-bottom: none;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
}

.sidebar-header {
    padding: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.sidebar-header .logo-icon { font-size: 1.8rem; }
.sidebar-header .logo-text { font-size: 1.4rem; }

.sidebar-profile {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.sidebar-profile .profile-info h4 { font-size: 1.1rem; margin-bottom: 2px; color: var(--color-text-main); }
.sidebar-profile .profile-info p { font-size: 0.85rem; color: var(--color-text-muted); }

.sidebar-nav {
    padding: 24px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.nav-title {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    padding-left: 16px;
}
.nav-item {
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 500;
    padding: 12px 16px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    width: 100%;
}
.nav-item i { font-size: 1.2rem; }
.nav-item:hover { color: var(--color-text-main); background: rgba(255,255,255,0.05); }
.nav-item.active { color: var(--color-primary); background: rgba(6, 182, 212, 0.1); border-left: 3px solid var(--color-primary); border-top-left-radius: 0; border-bottom-left-radius: 0; }
.special-nav-item { color: var(--color-accent); font-weight: 600; }
.special-nav-item i { color: var(--color-accent); }
.special-nav-item:hover { background: rgba(225, 29, 72, 0.1); color: var(--color-accent-hover); }

.sidebar-footer {
    padding: 24px 16px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.text-danger { color: var(--color-danger); }
.text-danger:hover { background: rgba(239, 68, 68, 0.1); color: var(--color-danger); }

/* Avatar component */
.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), #3b82f6);
    color: var(--color-text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    font-family: var(--font-heading);
    box-shadow: 0 4px 10px rgba(6, 182, 212, 0.3);
    border: 2px solid transparent;
}

/* Main Dashboard Content Area */
.dashboard-main {
    flex: 1;
    padding: 40px;
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
}

.dash-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: flex-start; 
    margin-bottom: 40px; 
}
.dash-header h1 { font-size: 2.2rem; margin-bottom: 8px; }
.dash-header p { color: var(--color-text-muted); font-size: 1.1rem; }

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.glass-panel-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1.4rem;
    color: var(--color-text-muted);
}
.glass-panel-icon:hover { background: rgba(0,0,0,0.06); transform: translateY(-2px); color: var(--color-text-main);}

.notifications { position: relative; }
.badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--color-accent);
    color: var(--color-text-main);
    font-size: 0.7rem;
    font-weight: bold;
    height: 18px;
    width: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.grid-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.hover-lift { transition: transform 0.2s, box-shadow 0.2s; }
.hover-lift:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.5); border-color: rgba(255,255,255,0.1) !important;}
.forum-item:hover { background: rgba(255,255,255,0.05); }
.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
}
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.card-header h3 { font-size: 1.2rem; color: var(--color-text-main); }

/* Progress Card UI */
.progress-percent { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: var(--color-primary); }
.progress-bar-container { width: 100%; height: 8px; background: rgba(0,0,0,0.06); border-radius: 4px; overflow: hidden; margin-bottom: 24px; }
.progress-bar { height: 100%; background: linear-gradient(90deg, var(--color-primary), #3b82f6); border-radius: 4px; transition: width 1s ease-in-out; }

.nodes-container { display: flex; justify-content: space-between; position: relative; }
.node { display: flex; flex-direction: column; align-items: center; gap: 8px; position: relative; z-index: 1; }
.node i { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; background: var(--color-bg); border: 2px solid var(--glass-border); transition: all 0.3s; }
.node span { font-size: 0.8rem; font-weight: 600; color: var(--color-text-muted); }
.node.completed i { background: var(--color-success); border-color: var(--color-success); color: var(--color-text-main); box-shadow: 0 0 10px rgba(16, 185, 129, 0.4); }
.node.completed span { color: var(--color-success); }
.node.current i { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-text-main); box-shadow: 0 0 15px rgba(6, 182, 212, 0.5); animation: pulse-primary 2s infinite; }
.node.current span { color: var(--color-text-main); }
.node.locked i { color: var(--color-text-muted); opacity: 0.5; }

@keyframes pulse-primary {
    0% { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(6, 182, 212, 0); }
    100% { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0); }
}

/* Event Card UI */
.event-card { display: flex; gap: 16px; padding: 16px; background: rgba(0,0,0,0.2); border-radius: var(--border-radius-md); border: 1px solid rgba(255,255,255,0.05); }
.event-date { display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(6, 182, 212, 0.1); padding: 10px; border-radius: var(--border-radius-sm); border: 1px solid rgba(6, 182, 212, 0.2); min-width: 65px; }
.event-date .month { font-size: 0.8rem; font-weight: 700; color: var(--color-primary); text-transform: uppercase; }
.event-date .day { font-size: 1.5rem; font-weight: 800; font-family: var(--font-heading); color: var(--color-text-main); line-height: 1; }
.event-details h4 { font-size: 1rem; margin-bottom: 4px; }
.event-details p { font-size: 0.85rem; color: var(--color-text-muted); display: flex; align-items: center; gap: 4px; }

/* Escape Room Promo Card */
.escape-room-card { flex-direction: row; gap: 32px; align-items: center; overflow: hidden; position: relative; padding: 0; background: var(--glass-bg); border: 1px solid var(--glass-border); }
.er-visual { flex: 0 0 35%; height: 100%; min-height: 250px; position: relative; background: url('https://images.unsplash.com/photo-1519494026892-80bbd2d6fd0d?ixlib=rb-4.0.3&auto=format&fit=crop&w=1000&q=80') center/cover; display: flex; align-items: center; justify-content: center; }
.er-visual::before { content: ''; position: absolute; top:0; left:0; right:0; bottom:0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9) 90%); z-index: 1; }
.er-overlay { position: absolute; inset: 0; background: rgba(225, 29, 72, 0.3); mix-blend-mode: multiply; }
.er-icon { font-size: 5rem; color: rgba(255,255,255,0.9); z-index: 2; text-shadow: 0 4px 20px rgba(0,0,0,0.5); animation: float 6s ease-in-out infinite; }
.er-content { flex: 1; padding: 32px 32px 32px 0; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; }
.er-content .tag { background: rgba(225, 29, 72, 0.15); color: var(--color-accent); font-size: 0.75rem; font-weight: 700; padding: 4px 10px; border-radius: 20px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; border: 1px solid rgba(225, 29, 72, 0.3); }
.er-content h2 { font-size: 1.8rem; margin-bottom: 12px; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.er-content p { color: var(--color-text-muted); margin-bottom: 20px; font-size: 1rem; max-width: 90%; }
.er-meta { display: flex; gap: 24px; font-size: 0.85rem; font-weight: 500; color: var(--color-text-muted); margin-bottom: 0; }
.er-meta span { display: flex; align-items: center; gap: 6px; }
.er-meta i { color: var(--color-primary); font-size: 1.1rem; }

/* THEATER MODULE VIEW */
.theater-layout { display: flex; flex-direction: column; min-height: 100vh; background: var(--color-bg); color: var(--color-text-main); width: 100%; overflow-x: hidden; }
.theater-header { display: flex; justify-content: space-between; align-items: center; padding: 15px 30px; border-bottom: 1px solid rgba(0,0,0,0.06); background: var(--color-bg-light); gap: 12px; flex-wrap: wrap; }
.theater-header h2 { font-size: 1.2rem; font-weight: 600; font-family: var(--font-heading); color: var(--color-primary); margin:0; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.theater-progress { font-size: 0.95rem; font-weight: bold; color: var(--color-success); white-space: nowrap; }

.theater-body { display: flex; flex: 1; overflow: hidden; }
.video-container { flex: 1; display: flex; flex-direction: column; overflow-y: auto; background: #0b1120;}
.video-meta { padding: 35px 45px; }
.meta-tabs { display: flex; gap: 30px; border-bottom: 1px solid rgba(0,0,0,0.06); margin-bottom: 25px; list-style: none; padding: 0;}
.meta-tabs li { padding-bottom: 12px; cursor: pointer; font-family: var(--font-heading); font-weight: 600; color: var(--color-text-muted); border-bottom: 3px solid transparent;}
.meta-tabs li.active { color: var(--color-text-main); border-bottom-color: var(--color-primary);}
.meta-tabs li:hover:not(.active) { color: var(--color-text-main);}
.meta-content h3 { font-size: 1.5rem; margin-bottom: 15px;}
.meta-content p { color: var(--color-text-muted); line-height: 1.6; margin-bottom: 15px; font-size: 1.05rem;}

.simulated-video { width: 100%; position: relative; background: #000; display: flex; justify-content: center; align-items: center;}
.simulated-video img { width: 100%; max-height: 55vh; object-fit: cover; opacity: 0.7;}
.play-btn-big { position: absolute; font-size: 5rem; color: rgba(255,255,255,0.8); cursor: pointer; transition: 0.2s; z-index:10;}
.play-btn-big:hover { color: var(--color-primary); transform: scale(1.1);}
.control-bar { position: absolute; bottom: 0; left: 0; right: 0; padding: 25px 30px 20px 30px; background: linear-gradient(0deg, rgba(0,0,0,0.95), rgba(0,0,0,0.5), transparent); display: flex; align-items: center; gap: 20px; z-index:10;}
.scrub-bar { flex: 1; height: 6px; background: rgba(255,255,255,0.3); border-radius: 3px; cursor: pointer; position: relative;}
.scrub-fill { width: 32%; height: 100%; background: var(--color-primary); border-radius: 3px; position: relative;}
.scrub-fill::after { content: ''; position: absolute; right: -5px; top: -3px; width: 12px; height: 12px; background: #fff; border-radius: 50%; box-shadow: 0 0 10px rgba(6,182,212,0.8);}

.playlist-drawer { width: 380px; background: var(--color-bg-light); border-left: 1px solid rgba(0,0,0,0.06); display: flex; flex-direction: column;}
.playlist-drawer h3 { padding: 25px; margin:0; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 1.2rem; font-family: var(--font-heading); color: var(--color-text-main);}
.playlist-items { list-style: none; padding: 0; margin: 0; overflow-y: auto;}
.playlist-items li { display: flex; align-items: center; gap: 15px; padding: 20px 25px; border-bottom: 1px solid rgba(255,255,255,0.05); cursor: pointer; transition: 0.2s;}
.playlist-items li i { font-size: 1.8rem; color: #64748b;}
.playlist-items li h4 { margin: 0 0 5px 0; font-size: 1.05rem; color: var(--color-text-main); line-height: 1.3;}
.playlist-items li span { font-size: 0.85rem; color: var(--color-text-muted);}
.playlist-items li.completed i { color: var(--color-success);}
.playlist-items li.active { background: rgba(6, 182, 212, 0.1); border-left: 4px solid var(--color-primary);}
.playlist-items li.active h4 { color: var(--color-primary);}
.playlist-items li.active i { color: var(--color-primary);}
.playlist-items li:hover:not(.active) { background: rgba(255,255,255,0.05);}

@keyframes float { 0% { transform: translateY(0); } 50% { transform: translateY(-10px); } 100% { transform: translateY(0); } }

/* =========================================================
   GLOBAL OVERFLOW PREVENTION
   ========================================================= */
body, #app-root { overflow-x: hidden; max-width: 100vw; }
.view { overflow-x: hidden; }

/* =========================================================
   RESPONSIVE — Mobile & Tablet
   ========================================================= */
.hidden-desktop { display: none !important; }

/* ── Tablet (≤992px) ── */
@media (max-width: 992px) {
    .hidden-desktop { display: flex !important; margin-right: auto; }

    /* Dashboard layout */
    .dashboard-layout { flex-direction: column; }

    /* Mobile Sidebar — full-screen overlay */
    .sidebar {
        width: 100%;
        min-height: auto;
        height: auto;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        z-index: 100;
        background: rgba(10, 18, 35, 0.98);
        display: none;
        overflow-y: auto;
    }
    .sidebar.open { display: flex; }

    /* Header */
    .dash-header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 24px;
        gap: 12px;
    }
    .dash-header h1 { font-size: 1.6rem; }
    .dash-header p { font-size: 0.95rem; }
    .header-actions { width: 100%; justify-content: space-between; }
    .mobile-only { display: flex; }

    /* Main content */
    .dashboard-main { padding: 16px; }
    .grid-layout { grid-template-columns: 1fr; gap: 16px; }
    .kpi-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }
    .col-span-1, .col-span-2, .col-span-3, .progress-card { grid-column: span 1 !important; }

    /* Escape room card */
    .escape-room-card { grid-column: span 1; flex-direction: column; gap: 0; }
    .er-visual { height: 180px; width: 100%; min-height: 180px; }
    .er-content { padding: 20px; align-items: center; text-align: center; }
    .er-content h2 { font-size: 1.4rem; }
    .er-meta { flex-direction: column; gap: 8px; align-items: center; }

    /* Theater / Module player */
    .theater-layout { min-height: 100vh; height: auto; }
    .theater-body { flex-direction: column; overflow-y: auto; overflow-x: hidden; }
    .playlist-drawer { width: 100%; border-left: none; border-top: 1px solid rgba(255,255,255,0.08); max-height: 50vh; overflow-y: auto; }
    .video-container { overflow-y: visible; flex: none; min-height: auto; }
    .video-meta { padding: 20px 16px; }
    .theater-header { padding: 10px 14px; flex-wrap: wrap; gap: 8px; }
    .theater-header h2 { font-size: 0.95rem; order: 2; width: 100%; }
    .theater-header button { order: 1; }
    .theater-header .theater-progress { order: 3; }
    .meta-content h3 { font-size: 1.2rem; }
    .meta-content p { font-size: 0.95rem; }

    /* Module state cover: fix inline flex gap row */
    #module-state-1 { padding: 24px 16px !important; min-height: 50vh !important; }
    #module-state-1 h1 { font-size: 1.5rem !important; }
    #module-state-1 > div[style*='gap: 20px'] { flex-direction: column !important; gap: 10px !important; }

    /* Forum grid — collapse to single column */
    #forums-view .dashboard-main > div[style*="grid-template-columns"] {
        display: flex !important;
        flex-direction: column !important;
    }
}

/* ── Mobile (≤768px) ── */
@media (max-width: 768px) {
    /* Login & Register containers */
    .login-container {
        padding: 24px 20px;
        max-width: 100%;
        margin: 16px;
        border-radius: 20px;
    }
    .login-header h2 { font-size: 1.3rem; }

    /* Register form — gender selector: stack vertically */
    #register-form > div:first-child {
        grid-template-columns: 1fr !important;
    }

    /* Gender radio group — horizontal pill layout */
    #register-form .input-group[style*="space-around"] {
        border-radius: 12px;
        padding: 12px 16px !important;
        gap: 20px;
        justify-content: center !important;
        min-height: 50px;
    }

    /* KPI cards: single column */
    .kpi-grid { grid-template-columns: 1fr !important; }

    /* Dashboard header */
    .dash-header h1 { font-size: 1.4rem; }
    .dash-header p { display: none; }

    /* Module nodes: hide labels, only icons */
    .nodes-container { gap: 4px; }
    .node span { font-size: 0.7rem; }

    /* Theater header: hide title on mid-mobile to save space */
    .theater-header h2 { display: none; }
    .theater-progress { font-size: 0.85rem; }
    .theater-header { padding: 8px 12px; }

    /* Playlist items */
    .playlist-items li { padding: 14px 16px; gap: 10px; }
    .playlist-items li h4 { font-size: 0.95rem; }

    /* Buttons in module views: full width */
    .btn-large { padding: 12px 20px; font-size: 1rem; width: 100%; justify-content: center; }

    /* Module state-1 cover fix */
    #module-state-1 { padding: 20px 14px !important; }
    #module-state-1 h1 { font-size: 1.3rem !important; }
    #module-state-1 p { font-size: 0.95rem !important; }
    #module-state-1 > div[style*='gap: 20px'] { flex-direction: column !important; gap: 8px !important; font-size: 0.9rem !important; }

    /* Module eval options */
    #eval-q-opts label { padding: 12px !important; }

    /* Form options row: stack on very small */
    .form-options { flex-direction: column; gap: 10px; align-items: flex-start; }
}

/* ── Small phones (≤480px) ── */
@media (max-width: 480px) {
    .login-container { padding: 20px 16px; margin: 8px; }
    .login-header h2 { font-size: 1.2rem; }

    /* Progress nodes: icons only */
    .nodes-container span { display: none; }
    .node i { width: 30px; height: 30px; font-size: 1rem; }

    /* KPI grid: single column always */
    .kpi-grid { grid-template-columns: 1fr !important; }

    /* Smaller dash header */
    .dash-header h1 { font-size: 1.2rem; }

    /* Register: gender selector bigger tap targets */
    #register-form .input-group[style*="space-around"] label {
        font-size: 1rem;
        padding: 6px 12px;
    }

    /* Module content padding */
    .video-meta { padding: 16px 12px; }
    .meta-tabs { gap: 16px; }
    .meta-tabs li { font-size: 0.9rem; }

    /* Playlist */
    .playlist-items li i { font-size: 1.4rem; }

    /* Glass panels inside main */
    .glass-panel { padding: 16px !important; }

    /* Forum panels */
    #forum-threads-panel .glass-panel,
    #forum-thread-detail .glass-panel { padding: 14px !important; }

    /* Prevent overflow — scoped to dashboard, NOT escape room images */
    .dashboard-main img,
    .video-meta img,
    .glass-panel img { max-width: 100%; height: auto; }
}

