/* ═══════════════════════════════════════
   NINJAHACKERS STUDENT PORTAL — CSS
   Premium Glassmorphic Theme
   ═══════════════════════════════════════ */

:root {
    --bg: #080c16;
    --bg-gradient: linear-gradient(135deg, #080c16 0%, #0d1525 40%, #111d35 70%, #0a1020 100%);
    --dark: #0a0f1a;
    --surface: rgba(17, 24, 50, .55);
    --card: rgba(22, 32, 60, .5);
    --card-hover: rgba(30, 42, 75, .55);
    --border: rgba(0, 212, 255, .08);
    --border-hover: rgba(0, 212, 255, .2);
    --glass: rgba(12, 18, 36, .65);
    --glass-border: rgba(255, 255, 255, .06);
    --cyan: #00d4ff;
    --green: #00ff88;
    --red: #ff4757;
    --orange: #ffa502;
    --purple: #a855f7;
    --text: #e8edf5;
    --text-secondary: #b0bdd0;
    --muted: #5a6e8a;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 8px 32px rgba(0, 0, 0, .25);
    --transition: all .3s cubic-bezier(.4, 0, .2, 1);
}

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

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--bg);
    background-image: var(--bg-gradient);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ── Animated Background Orbs ── */
body::before,
body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    opacity: .12;
    z-index: 0;
    pointer-events: none;
    animation: float 25s ease-in-out infinite;
}

body::before {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--cyan), transparent 70%);
    top: -120px;
    right: -100px;
}

body::after {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--purple), transparent 70%);
    bottom: -80px;
    left: -80px;
    animation-delay: -12s;
}

@keyframes float {

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

    25% {
        transform: translate(30px, -40px) scale(1.05);
    }

    50% {
        transform: translate(-20px, 20px) scale(.95);
    }

    75% {
        transform: translate(-30px, -20px) scale(1.02);
    }
}

/* ═══════════════════════════════════════
   TOP NAV
   ═══════════════════════════════════════ */
.learn-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: 58px;
    background: rgba(8, 12, 22, .82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0 1.8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 30px rgba(0, 0, 0, .2);
}

.learn-brand {
    font-family: 'Share Tech Mono', monospace;
    font-size: 1.1rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: .4rem;
    position: relative;
    z-index: 1;
}

.learn-brand i {
    background: linear-gradient(135deg, var(--green), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.learn-brand {
    background: linear-gradient(135deg, var(--green), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.learn-brand .accent {
    color: var(--cyan);
}

.learn-nav-right {
    display: flex;
    align-items: center;
    gap: .8rem;
    position: relative;
    z-index: 1;
}

.student-name {
    font-family: 'Share Tech Mono', monospace;
    font-size: .8rem;
    color: var(--text-secondary);
}

.btn-nav {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--muted);
    padding: .45rem .7rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-size: .85rem;
    backdrop-filter: blur(8px);
}

.btn-nav:hover {
    color: var(--red);
    border-color: rgba(255, 71, 87, .3);
    background: rgba(255, 71, 87, .06);
}

/* ═══════════════════════════════════════
   AUTH SCREEN
   ═══════════════════════════════════════ */
.auth-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow), 0 0 80px rgba(0, 212, 255, .03);
    position: relative;
    overflow: hidden;
    animation: fadeSlideUp .5s ease;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--cyan), var(--green), transparent);
    opacity: .6;
}

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

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

.auth-logo {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: .8rem;
}

.auth-logo i {
    background: linear-gradient(135deg, var(--cyan), var(--green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 12px rgba(0, 212, 255, .3));
}

.auth-title {
    font-family: 'Exo 2', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
}

.auth-sub {
    font-size: .85rem;
    color: var(--muted);
    margin-bottom: 2rem;
    text-align: center;
}

.auth-error {
    color: var(--red);
    font-size: .78rem;
    margin-bottom: .5rem;
    font-family: 'Share Tech Mono', monospace;
    min-height: 1.2em;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: .78rem;
    color: var(--muted);
    margin-bottom: .3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: .35rem;
}

.form-group label i {
    color: var(--cyan);
    font-size: .7rem;
    opacity: .7;
}

.form-group input {
    width: 100%;
    padding: .75rem 1rem;
    background: rgba(8, 12, 22, .6);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: 'Rajdhani', sans-serif;
    font-size: .95rem;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus {
    border-color: var(--cyan);
    background: rgba(8, 12, 22, .8);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, .08);
}

.form-group input::placeholder {
    color: var(--muted);
}

.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, var(--cyan) 0%, #0099cc 50%, #0077b3 100%);
    color: #080c16;
    font-weight: 700;
    font-size: 1rem;
    padding: .85rem;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: .5px;
    box-shadow: 0 4px 16px rgba(0, 212, 255, .15);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, .2), transparent 60%);
    opacity: 0;
    transition: opacity .3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 212, 255, .3);
}

.btn-primary:hover::before {
    opacity: 1;
}

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

.btn-link {
    background: none;
    border: none;
    color: var(--cyan);
    cursor: pointer;
    font-family: 'Rajdhani', sans-serif;
    font-size: .82rem;
    font-weight: 600;
    transition: var(--transition);
    opacity: .8;
}

.btn-link:hover {
    opacity: 1;
    text-decoration: underline;
}

.auth-toggle {
    text-align: center;
    margin-top: 1.2rem;
    font-size: .82rem;
    color: var(--muted);
}

/* ═══════════════════════════════════════
   DASHBOARD LAYOUT
   ═══════════════════════════════════════ */
.dashboard {
    display: flex;
    min-height: 100vh;
    padding-top: 58px;
    position: relative;
    z-index: 1;
}

/* ─── SIDEBAR ─── */
.sidebar {
    width: 260px;
    min-width: 260px;
    background: rgba(8, 12, 22, .75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 58px;
    bottom: 0;
    left: 0;
    z-index: 50;
    overflow-y: auto;
    transition: transform .3s ease;
}

.sidebar-header {
    padding: 1.2rem 1.2rem .8rem;
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    font-size: .9rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: .5rem;
    letter-spacing: .3px;
}

.sidebar-courses {
    flex: 1;
    overflow-y: auto;
    padding: 0 .6rem;
}

.sidebar-course {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .7rem .8rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    font-size: .82rem;
    margin-bottom: .25rem;
}

.sidebar-course:hover {
    background: rgba(0, 255, 136, .04);
    border-color: rgba(0, 255, 136, .12);
}

.sidebar-course.active {
    background: rgba(0, 255, 136, .07);
    border-color: rgba(0, 255, 136, .25);
    box-shadow: 0 0 16px rgba(0, 255, 136, .04);
}

.sidebar-course-title {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    color: var(--text);
    font-size: .88rem;
}

.sidebar-course-meta {
    font-family: 'Share Tech Mono', monospace;
    font-size: .62rem;
    color: var(--muted);
}

.sidebar-footer {
    padding: .8rem;
    border-top: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.btn-browse {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: .78rem;
    color: var(--green);
    text-decoration: none;
    border: 1px solid rgba(0, 255, 136, .2);
    padding: .5rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    background: rgba(0, 255, 136, .03);
}

.btn-browse:hover {
    background: rgba(0, 255, 136, .08);
    border-color: rgba(0, 255, 136, .35);
    transform: translateY(-1px);
}

/* ─── MAIN CONTENT ─── */
.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 1.8rem 2rem;
    min-height: calc(100vh - 58px);
}

.welcome-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding: 1.4rem 1.6rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}

.welcome-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--green), var(--cyan), transparent);
    opacity: .5;
}

.welcome-bar h1 {
    font-family: 'Exo 2', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.welcome-sub {
    font-size: .82rem;
    color: var(--muted);
    margin-top: .15rem;
}

/* ─── COURSE GRID ─── */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.2rem;
}

.course-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    animation: fadeSlideUp .4s ease both;
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan), var(--green));
    opacity: 0;
    transition: opacity .3s;
}

.course-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .3), 0 0 0 1px rgba(0, 212, 255, .05);
}

.course-card:hover::before {
    opacity: .7;
}

.course-card:nth-child(1) {
    animation-delay: .05s;
}

.course-card:nth-child(2) {
    animation-delay: .1s;
}

.course-card:nth-child(3) {
    animation-delay: .15s;
}

.course-card:nth-child(4) {
    animation-delay: .2s;
}

.course-card-cover {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, rgba(0, 212, 255, .08), rgba(168, 85, 247, .08));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--cyan);
    position: relative;
    overflow: hidden;
}

.course-card-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(8, 12, 22, .7));
    pointer-events: none;
}

.course-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-card-cover-icon {
    font-size: 2.8rem;
    opacity: .25;
}

.course-card-body {
    padding: 1.1rem 1.2rem;
}

.course-card-title {
    font-family: 'Exo 2', sans-serif;
    font-size: .95rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: .4rem;
    line-height: 1.3;
}

.course-card-meta {
    display: flex;
    gap: .8rem;
    flex-wrap: wrap;
    font-family: 'Share Tech Mono', monospace;
    font-size: .65rem;
    color: var(--muted);
}

.course-card-badge {
    position: absolute;
    top: .6rem;
    right: .6rem;
    font-family: 'Share Tech Mono', monospace;
    font-size: .58rem;
    font-weight: 700;
    padding: .2rem .6rem;
    border-radius: 6px;
    letter-spacing: 1px;
    z-index: 2;
    backdrop-filter: blur(8px);
}

.badge-free {
    background: rgba(0, 255, 136, .12);
    color: var(--green);
    border: 1px solid rgba(0, 255, 136, .25);
}

.badge-paid {
    display: none;
}

.course-card-progress {
    margin-top: .6rem;
    height: 3px;
    background: rgba(0, 212, 255, .08);
    border-radius: 2px;
    overflow: hidden;
}

.course-card-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--cyan), var(--green));
    border-radius: 2px;
    transition: width .5s ease;
    box-shadow: 0 0 8px rgba(0, 212, 255, .25);
}

.no-courses {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--muted);
}

.no-courses i {
    font-size: 2rem;
    margin-bottom: .5rem;
    display: block;
}

.no-courses a {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-top: 1rem;
    color: var(--green);
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(0, 255, 136, .25);
    padding: .5rem 1.2rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.no-courses a:hover {
    background: rgba(0, 255, 136, .06);
}

/* ═══════════════════════════════════════
   COURSE VIEWER — Full-Screen LMS Layout
   ═══════════════════════════════════════ */
#courseViewer {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 58px);
    margin: -1.8rem -2rem;
    width: calc(100% + 4rem);
}

.btn-back {
    background: var(--glass);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: .45rem .9rem;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: .82rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

.btn-back:hover {
    border-color: var(--border-hover);
    color: var(--text);
    background: rgba(0, 212, 255, .04);
}

/* ─── Viewer Header (compact top bar) ─── */
.viewer-header {
    padding: .8rem 1.5rem;
    background: rgba(8, 12, 22, .75);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-shrink: 0;
}

.viewer-header h1 {
    font-family: 'Exo 2', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.viewer-meta {
    font-family: 'Share Tech Mono', monospace;
    font-size: .68rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: .5rem;
    white-space: nowrap;
}

/* ─── Main Viewer Split Layout ─── */
.viewer-layout {
    display: flex;
    flex: 1;
    min-height: 0;
}

/* ─── Module Sidebar (fixed left panel) ─── */
.module-sidebar {
    width: 280px;
    min-width: 280px;
    background: rgba(8, 12, 22, .7);
    backdrop-filter: blur(12px);
    border-right: 1px solid var(--glass-border);
    overflow-y: auto;
    height: calc(100vh - 58px - 50px);
    position: sticky;
    top: 0;
}

.module-group {
    border-bottom: 1px solid rgba(255, 255, 255, .03);
}

.module-group:last-child {
    border-bottom: none;
}

.module-title {
    padding: .75rem 1rem;
    font-family: 'Rajdhani', sans-serif;
    font-size: .82rem;
    font-weight: 700;
    color: var(--cyan);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: .5rem;
    transition: var(--transition);
    user-select: none;
}

.module-title:hover {
    background: rgba(0, 212, 255, .04);
}

.module-title i:first-child {
    font-size: .6rem;
    color: var(--cyan);
    opacity: .6;
}

.module-title .fa-chevron-down,
.module-title .fa-chevron-right {
    margin-left: auto;
    font-size: .5rem;
    transition: transform .3s;
    color: var(--muted);
}

.module-title .chevron.open {
    transform: rotate(90deg);
}

.module-items {
    display: none;
    padding: 0 .4rem .3rem;
}

.module-items.open {
    display: block;
}

.sidebar-item {
    padding: .5rem .7rem;
    font-size: .76rem;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: .5rem;
    color: var(--text-secondary);
    border: 1px solid transparent;
    margin-bottom: 2px;
}

.sidebar-item:hover {
    background: rgba(0, 212, 255, .04);
    border-color: rgba(0, 212, 255, .08);
    color: var(--text);
}

.sidebar-item.active {
    background: rgba(0, 212, 255, .08);
    border-color: rgba(0, 212, 255, .18);
    color: var(--text);
}

.module-item-icon {
    font-size: .65rem;
    min-width: 14px;
    text-align: center;
}

.item-type-live_class .module-item-icon {
    color: var(--red);
}

.item-type-recorded_class .module-item-icon {
    color: var(--green);
}

.item-type-notes .module-item-icon {
    color: var(--cyan);
}

.item-type-assignment .module-item-icon {
    color: var(--orange);
}

.item-type-quiz .module-item-icon {
    color: var(--purple);
}

.sidebar-item.completed::after {
    content: '✓';
    color: var(--green);
    font-size: .55rem;
    margin-left: auto;
    font-weight: 700;
}

.live-dot {
    width: 6px;
    height: 6px;
    background: var(--green);
    border-radius: 50%;
    margin-left: auto;
    animation: livePulse 2s infinite;
    box-shadow: 0 0 6px var(--green);
}

@keyframes livePulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .3;
    }
}

/* ─── CONTENT AREA (fills remaining space) ─── */
.content-area {
    flex: 1;
    min-height: calc(100vh - 58px - 50px);
    padding: 2rem 2.5rem;
    overflow-y: auto;
    position: relative;
    background: transparent;
}

.content-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 60vh;
    color: var(--muted);
    font-size: .9rem;
    text-align: center;
    gap: .8rem;
}

.content-placeholder i {
    font-size: 3rem;
    opacity: .25;
    background: linear-gradient(135deg, var(--cyan), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.content-header {
    margin-bottom: 1.2rem;
}

.content-title {
    font-family: 'Exo 2', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    animation: fadeSlideUp .3s ease;
}

.content-type-badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-family: 'Share Tech Mono', monospace;
    font-size: .6rem;
    font-weight: 700;
    padding: .2rem .65rem;
    border-radius: 6px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: .4rem;
}

.type-live_class {
    background: rgba(255, 71, 87, .1);
    color: var(--red);
    border: 1px solid rgba(255, 71, 87, .2);
}

.type-recorded_class {
    background: rgba(0, 255, 136, .08);
    color: var(--green);
    border: 1px solid rgba(0, 255, 136, .2);
}

.type-notes {
    background: rgba(0, 212, 255, .08);
    color: var(--cyan);
    border: 1px solid rgba(0, 212, 255, .2);
}

.type-assignment {
    background: rgba(255, 165, 2, .08);
    color: var(--orange);
    border: 1px solid rgba(255, 165, 2, .2);
}

.content-body {
    margin-top: 1.2rem;
}

.content-description {
    font-size: .88rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
    padding: 1rem 1.2rem;
    background: rgba(8, 12, 22, .4);
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
}

/* ─── Video Player ─── */
.video-container {
    width: 100%;
    max-width: 960px;
    margin: 0 auto 1.5rem;
    border-radius: var(--radius);
    overflow: hidden;
    background: #000;
    box-shadow: 0 8px 40px rgba(0, 0, 0, .5);
    position: relative;
}

.video-container iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
    display: block;
}

.content-video {
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
    border-radius: var(--radius);
    background: #000;
    box-shadow: 0 8px 40px rgba(0, 0, 0, .5);
}

/* ─── Content Action Buttons ─── */
.content-action {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .65rem 1.4rem;
    border-radius: var(--radius-sm);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: .88rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    border: none;
    margin-top: .5rem;
}

.action-video {
    background: rgba(0, 255, 136, .08);
    border: 1px solid rgba(0, 255, 136, .25);
    color: var(--green);
}

.action-video:hover {
    background: rgba(0, 255, 136, .15);
    box-shadow: 0 4px 16px rgba(0, 255, 136, .1);
}

.action-live {
    background: linear-gradient(135deg, var(--green), #00cc6a);
    color: #080c16;
    box-shadow: 0 4px 20px rgba(0, 255, 136, .2);
    font-size: 1rem;
    padding: .8rem 2rem;
    border-radius: var(--radius);
}

.action-live:hover {
    box-shadow: 0 8px 32px rgba(0, 255, 136, .35);
    transform: translateY(-2px);
}

.action-notes {
    background: rgba(0, 212, 255, .08);
    border: 1px solid rgba(0, 212, 255, .25);
    color: var(--cyan);
}

.action-notes:hover {
    background: rgba(0, 212, 255, .15);
    box-shadow: 0 4px 16px rgba(0, 212, 255, .1);
}

.action-assignment {
    background: rgba(255, 165, 2, .08);
    border: 1px solid rgba(255, 165, 2, .25);
    color: var(--orange);
}

.action-assignment:hover {
    background: rgba(255, 165, 2, .15);
    box-shadow: 0 4px 16px rgba(255, 165, 2, .1);
}

/* ─── Live Class Card ─── */
.live-status-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 3rem 2rem;
    max-width: 600px;
    margin: 2rem auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(12px);
    text-align: center;
}

.live-status-card .live-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(0, 255, 136, .08);
    border: 1px solid rgba(0, 255, 136, .3);
    border-radius: 20px;
    padding: .4rem 1.2rem;
    font-size: .8rem;
    color: var(--green);
    font-weight: 600;
}

.live-status-card .live-badge .pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
    animation: livePulse 1.5s infinite;
    box-shadow: 0 0 8px var(--green);
}

/* ─── Scheduled Class Card ─── */
.scheduled-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    padding: 3rem 2rem;
    max-width: 600px;
    margin: 2rem auto;
    background: var(--surface);
    border: 1px solid rgba(255, 165, 2, .15);
    border-radius: var(--radius);
    backdrop-filter: blur(12px);
    text-align: center;
}

.scheduled-card .schedule-icon {
    font-size: 2.5rem;
    opacity: .5;
    background: linear-gradient(135deg, var(--orange), var(--red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.scheduled-card .schedule-date {
    font-family: 'Share Tech Mono', monospace;
    font-size: 1.1rem;
    color: var(--text);
    font-weight: 600;
}

.scheduled-card .countdown {
    font-family: 'Share Tech Mono', monospace;
    font-size: 2rem;
    font-weight: 700;
    color: var(--green);
    letter-spacing: 3px;
}

.scheduled-card .lock-msg {
    font-size: .75rem;
    color: var(--muted);
    font-family: 'Share Tech Mono', monospace;
    display: flex;
    align-items: center;
    gap: .4rem;
}

/* ─── Notes Content Box ─── */
.notes-content-box {
    background: rgba(8, 12, 22, .4);
    border: 1px solid rgba(0, 212, 255, .1);
    border-radius: var(--radius);
    padding: 1.5rem;
    line-height: 1.8;
    font-size: .9rem;
    color: var(--text-secondary);
}

/* ─── Assignment Submission Box ─── */
.assignment-box {
    background: rgba(8, 12, 22, .4);
    border: 1px solid rgba(255, 165, 2, .12);
    border-radius: var(--radius);
    padding: 1.2rem;
    margin-top: .8rem;
}

.assignment-box h4 {
    color: var(--orange);
    font-size: .85rem;
    margin: 0 0 .6rem;
    display: flex;
    align-items: center;
    gap: .4rem;
}

.assignment-box form {
    display: flex;
    gap: .5rem;
    align-items: center;
}

.assignment-box input[type="file"] {
    flex: 1;
    font-size: .72rem;
    color: var(--text-secondary);
}

.assignment-box button {
    background: var(--orange);
    color: #080c16;
    border: none;
    padding: .45rem .9rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: .78rem;
    transition: var(--transition);
}

.assignment-box button:hover {
    opacity: .9;
}

/* ═══════════════════════════════════════
   TOAST
   ═══════════════════════════════════════ */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--glass);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 255, 136, .3);
    color: var(--green);
    padding: .8rem 1.4rem;
    border-radius: var(--radius-sm);
    font-family: 'Share Tech Mono', monospace;
    font-size: .82rem;
    z-index: 3000;
    opacity: 0;
    transform: translateY(10px);
    transition: all .3s;
    pointer-events: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .3);
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.error {
    border-color: rgba(255, 71, 87, .4);
    color: var(--red);
}

/* ═══════════════════════════════════════
   SIDEBAR TOGGLE (mobile)
   ═══════════════════════════════════════ */
.sidebar-toggle {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 200;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green), var(--cyan));
    color: #080c16;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 255, 136, .2);
    transition: var(--transition);
}

.sidebar-toggle:hover {
    transform: scale(1.1);
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .4);
    backdrop-filter: blur(4px);
    z-index: 45;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
}

.sidebar-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 900px) {
    .learn-nav {
        padding: 0 1rem;
    }

    .student-name {
        display: none;
    }

    .sidebar-toggle {
        display: flex !important;
    }

    body::before,
    body::after {
        width: 250px;
        height: 250px;
    }

    .sidebar {
        transform: translateX(-100%);
        box-shadow: 20px 0 50px rgba(0, 0, 0, .5);
    }

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

    .main-content {
        margin-left: 0 !important;
        padding: 1.2rem;
    }

    /* Course Viewer Mobile */
    #courseViewer {
        margin: -1.2rem;
        width: calc(100% + 2.4rem);
        position: relative;
    }

    .viewer-header {
        padding: .75rem 1rem;
        gap: .8rem;
    }

    .viewer-header h1 {
        font-size: .95rem;
    }

    .viewer-layout {
        display: block;
    }

    .module-sidebar {
        position: fixed;
        left: 0;
        top: 110px;
        /* Below viewer-header if sticky */
        bottom: 0;
        height: auto;
        width: 280px;
        z-index: 50;
        transform: translateX(-100%);
        transition: transform .3s cubic-bezier(.4, 0, .2, 1);
        border-right: 1px solid var(--border);
        box-shadow: 10px 0 30px rgba(0, 0, 0, .4);
    }

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

    .content-area {
        padding: 1.2rem;
        min-height: calc(100vh - 110px);
    }

    .curriculum-toggle {
        display: flex !important;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 1.5rem;
        border-radius: var(--radius);
    }

    .main-content {
        padding: 1rem;
    }

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

    .content-area {
        padding: 1rem;
    }

    .welcome-bar {
        padding: 1rem;
        flex-direction: column;
        gap: .8rem;
        align-items: flex-start;
    }

    .welcome-bar h1 {
        font-size: 1.2rem;
    }

    .video-container {
        border-radius: 8px;
    }

    .live-status-card,
    .scheduled-card {
        padding: 2rem 1.2rem;
    }
}