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

:root {
    --primary: #E8722A;
    --primary-light: #FF8F4C;
    --primary-dark: #C45A18;
    --primary-glow: rgba(232, 114, 42, 0.25);
    --secondary: #1B1F3B;
    --secondary-light: #2D3250;
    --accent: #F6B17A;
    --bg: #F0EDE8;
    --bg-card: #FFFFFF;
    --bg-sidebar: #1B1F3B;
    --text: #1B1F3B;
    --text-light: #6B7094;
    --text-muted: #A0A4B8;
    --success: #10B981;
    --success-bg: #D1FAE5;
    --danger: #EF4444;
    --danger-bg: #FEE2E2;
    --warning: #F59E0B;
    --warning-bg: #FEF3C7;
    --info: #3B82F6;
    --info-bg: #DBEAFE;
    --border: #E2E0DB;
    --border-light: #F0EDE8;
    --shadow-sm: 0 1px 2px rgba(27, 31, 59, 0.04);
    --shadow: 0 2px 8px rgba(27, 31, 59, 0.06), 0 1px 2px rgba(27, 31, 59, 0.04);
    --shadow-md: 0 4px 16px rgba(27, 31, 59, 0.08), 0 2px 4px rgba(27, 31, 59, 0.04);
    --shadow-lg: 0 12px 40px rgba(27, 31, 59, 0.12), 0 4px 12px rgba(27, 31, 59, 0.06);
    --shadow-xl: 0 20px 60px rgba(27, 31, 59, 0.15);
    --shadow-btn: 0 4px 14px rgba(232, 114, 42, 0.35);
    --radius: 14px;
    --radius-sm: 10px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --tr: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --tr-bounce: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5 { font-family: 'Outfit', sans-serif; font-weight: 700; letter-spacing: -0.02em; }

/* ===================== BUTTONS ===================== */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 24px; border-radius: var(--radius-sm);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700; font-size: 14px;
    border: none; cursor: pointer;
    transition: var(--tr); text-decoration: none; white-space: nowrap;
    position: relative; overflow: hidden;
}
.btn::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, transparent 100%);
    pointer-events: none;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    box-shadow: var(--shadow-btn);
}
.btn-primary:hover {
    box-shadow: 0 6px 24px rgba(232, 114, 42, 0.45);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    color: #fff; box-shadow: 0 4px 14px rgba(27, 31, 59, 0.25);
}
.btn-secondary:hover { box-shadow: 0 6px 20px rgba(27, 31, 59, 0.35); }

.btn-outline {
    background: #fff; border: 2px solid var(--border);
    color: var(--text); box-shadow: var(--shadow-sm);
}
.btn-outline::after { display: none; }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); box-shadow: var(--shadow); }

.btn-success { background: linear-gradient(135deg, #10B981, #34D399); color: #fff; box-shadow: 0 4px 14px rgba(16,185,129,0.3); }
.btn-danger { background: linear-gradient(135deg, #EF4444, #F87171); color: #fff; box-shadow: 0 4px 14px rgba(239,68,68,0.3); }
.btn-warning { background: linear-gradient(135deg, #F59E0B, #FBBF24); color: #fff; box-shadow: 0 4px 14px rgba(245,158,11,0.3); }

.btn-sm { padding: 8px 16px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 16px 32px; font-size: 16px; border-radius: var(--radius); }
.btn-block { width: 100%; justify-content: center; }

.btn-icon {
    width: 40px; height: 40px; padding: 0;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: var(--radius-sm); background: #fff;
    border: 2px solid var(--border-light);
    cursor: pointer; transition: var(--tr); color: var(--text-light);
    box-shadow: var(--shadow-sm);
}
.btn-icon::after { display: none; }
.btn-icon:hover {
    background: rgba(232,114,42,0.08); color: var(--primary);
    border-color: rgba(232,114,42,0.3); box-shadow: var(--shadow);
    transform: translateY(-2px);
}
.btn-icon.danger:hover {
    background: rgba(239,68,68,0.08); color: var(--danger);
    border-color: rgba(239,68,68,0.3);
}

/* ===================== FORMS ===================== */
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block; font-weight: 700; font-size: 13px;
    color: var(--text); margin-bottom: 8px; letter-spacing: 0.02em;
}
.form-control {
    width: 100%; padding: 13px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px; font-weight: 500;
    transition: var(--tr); background: #fff; color: var(--text);
    box-shadow: var(--shadow-sm);
}
.form-control:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow), var(--shadow-sm);
}
.form-control::placeholder { color: var(--text-muted); font-weight: 400; }
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23A0A4B8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px;
}
textarea.form-control { resize: vertical; min-height: 90px; }
.input-icon { position: relative; }
.input-icon .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; font-size: 15px; }
.input-icon .form-control { padding-left: 46px; }

/* ===================== CARDS ===================== */
.card {
    background: var(--bg-card); border-radius: var(--radius);
    box-shadow: var(--shadow); border: 1px solid rgba(0,0,0,0.04);
    overflow: hidden; transition: var(--tr);
}
.card:hover { box-shadow: var(--shadow-md); }
.card-header {
    padding: 20px 24px; border-bottom: 1px solid var(--border-light);
    display: flex; align-items: center; justify-content: space-between;
    background: linear-gradient(180deg, #FAFAF8 0%, #fff 100%);
}
.card-header h3 { font-size: 16px; color: var(--text); }
.card-body { padding: 24px; }

/* ===================== MODAL ===================== */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(27, 31, 59, 0.6); backdrop-filter: blur(8px);
    display: none; align-items: center; justify-content: center; z-index: 1000;
}
.modal-overlay.active { display: flex; }
.modal {
    background: #fff; border-radius: var(--radius-xl);
    width: 92%; max-width: 520px; max-height: 90vh;
    overflow-y: auto; box-shadow: var(--shadow-xl);
    animation: modalIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes modalIn { from { transform: translateY(30px) scale(0.92); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } }
.modal-header {
    padding: 24px 28px 20px; border-bottom: 1px solid var(--border-light);
    display: flex; align-items: center; justify-content: space-between;
}
.modal-header h3 { font-size: 20px; }
.modal-close {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--bg); border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; color: var(--text-light); transition: var(--tr);
}
.modal-close:hover { background: var(--danger-bg); color: var(--danger); transform: rotate(90deg); }
.modal-body { padding: 28px; }
.modal-footer { padding: 18px 28px; border-top: 1px solid var(--border-light); display: flex; gap: 10px; justify-content: flex-end; background: #FAFAF8; }

/* ===================== NAVBAR ===================== */
.navbar {
    background: linear-gradient(135deg, var(--secondary) 0%, #12152E 100%);
    padding: 0 28px; height: 70px;
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; z-index: 100;
    box-shadow: 0 4px 20px rgba(27, 31, 59, 0.2);
}
.navbar-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.navbar-brand .logo {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
    font-size: 18px; color: #fff; box-shadow: 0 4px 12px rgba(232,114,42,0.3);
}
.navbar-brand span {
    font-family: 'Outfit', sans-serif; font-weight: 800;
    font-size: 20px; color: #fff; letter-spacing: -0.5px;
}
.navbar-info { display: flex; align-items: center; gap: 16px; }
.school-code-badge {
    background: rgba(255,255,255,0.1); color: #fff;
    padding: 8px 18px; border-radius: 50px; font-weight: 800;
    font-size: 14px; letter-spacing: 3px;
    font-family: 'Outfit', monospace;
    border: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.navbar-user { display: flex; align-items: center; gap: 12px; color: #fff; }
.navbar-user .avatar {
    width: 38px; height: 38px; border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 15px; color: #fff;
    box-shadow: 0 2px 8px rgba(232,114,42,0.3);
}
.navbar-user .name { font-weight: 700; font-size: 14px; }
.navbar-user .role { font-size: 11px; opacity: 0.6; font-weight: 500; }
.btn-logout {
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
    color: #fff; padding: 10px 18px; border-radius: var(--radius-sm);
    cursor: pointer; font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700; font-size: 13px; transition: var(--tr);
    backdrop-filter: blur(4px);
}
.btn-logout:hover { background: var(--danger); border-color: var(--danger); box-shadow: 0 4px 14px rgba(239,68,68,0.4); transform: translateY(-1px); }

/* ===================== SIDEBAR ===================== */
.app-layout { display: flex; min-height: calc(100vh - 70px); }

.sidebar {
    width: 270px; background: var(--bg-sidebar);
    padding: 24px 16px; flex-shrink: 0;
    box-shadow: 4px 0 20px rgba(27, 31, 59, 0.1);
    position: relative;
    overflow-y: auto;
}
.sidebar::before {
    content: ''; position: absolute; top: 0; right: 0;
    width: 1px; height: 100%;
    background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, transparent 100%);
}
.sidebar-menu { list-style: none; }
.sidebar-menu li { margin-bottom: 4px; }
.sidebar-menu a, .sidebar-menu button {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 18px; border-radius: var(--radius-sm);
    text-decoration: none; color: rgba(255,255,255,0.55);
    font-weight: 600; font-size: 14.5px; width: 100%;
    background: none; border: none; cursor: pointer;
    transition: var(--tr); text-align: left;
    font-family: 'Plus Jakarta Sans', sans-serif;
    position: relative; overflow: hidden;
    letter-spacing: 0.01em;
}
.sidebar-menu a:hover, .sidebar-menu button:hover {
    background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.85);
    transform: translateX(4px);
}
.sidebar-menu a.active, .sidebar-menu button.active {
    background: linear-gradient(135deg, rgba(232,114,42,0.15) 0%, rgba(232,114,42,0.08) 100%);
    color: var(--primary-light);
    box-shadow: 0 2px 12px rgba(232,114,42,0.15);
    font-weight: 700;
}
.sidebar-menu a.active::before, .sidebar-menu button.active::before {
    content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 4px; height: 60%; border-radius: 0 4px 4px 0;
    background: linear-gradient(180deg, var(--primary), var(--primary-light));
    box-shadow: 0 0 10px var(--primary-glow);
}
.sidebar-menu .icon {
    font-size: 18px; width: 22px; text-align: center;
    opacity: 0.85;
}

.main-content { flex: 1; padding: 32px; min-width: 0; }

/* ===================== PAGE HEADER ===================== */
.page-header { margin-bottom: 28px; }
.page-header h1 {
    font-size: 28px; margin-bottom: 4px;
    background: linear-gradient(135deg, var(--text), var(--secondary-light));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.page-header p { color: var(--text-light); font-size: 15px; font-weight: 500; }

/* ===================== STATS GRID ===================== */
.stats-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px; margin-bottom: 28px;
}
.stat-card {
    background: #fff; border-radius: var(--radius); padding: 24px;
    border: 1px solid rgba(0,0,0,0.04);
    transition: var(--tr); box-shadow: var(--shadow);
    position: relative; overflow: hidden;
}
.stat-card::before {
    content: ''; position: absolute; top: 0; right: 0;
    width: 100px; height: 100px; border-radius: 50%;
    opacity: 0.04; transform: translate(30%, -30%);
    transition: var(--tr);
}
.stat-card:hover {
    box-shadow: var(--shadow-lg); transform: translateY(-4px);
}
.stat-card:hover::before { opacity: 0.08; }
.stat-card .stat-icon {
    width: 52px; height: 52px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}
.stat-card .stat-icon.orange { background: linear-gradient(135deg, rgba(232,114,42,0.12), rgba(232,114,42,0.05)); color: var(--primary); }
.stat-card .stat-icon.blue { background: linear-gradient(135deg, rgba(59,130,246,0.12), rgba(59,130,246,0.05)); color: var(--info); }
.stat-card .stat-icon.green { background: linear-gradient(135deg, rgba(16,185,129,0.12), rgba(16,185,129,0.05)); color: var(--success); }
.stat-card .stat-icon.red { background: linear-gradient(135deg, rgba(239,68,68,0.12), rgba(239,68,68,0.05)); color: var(--danger); }
.stat-card .stat-value { font-family: 'Outfit', sans-serif; font-size: 32px; font-weight: 800; line-height: 1; }
.stat-card .stat-label { color: var(--text-light); font-size: 13px; font-weight: 600; margin-top: 6px; letter-spacing: 0.02em; }

/* ===================== TABLE ===================== */
.table-container { overflow-x: auto; border-radius: var(--radius-sm); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
thead th {
    background: linear-gradient(180deg, #F8F7F4 0%, #F0EDE8 100%);
    padding: 14px 18px; text-align: left; font-weight: 700;
    font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--text-light); border-bottom: 2px solid var(--border);
}
tbody td {
    padding: 16px 18px; border-bottom: 1px solid var(--border-light);
    vertical-align: middle; font-weight: 500;
}
tbody tr { transition: var(--tr); }
tbody tr:hover { background: rgba(232,114,42,0.02); }
tbody tr:last-child td { border-bottom: none; }

/* ===================== BADGES ===================== */
.badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 5px 12px; border-radius: 50px;
    font-size: 12px; font-weight: 700; letter-spacing: 0.02em;
}
.badge-success { background: var(--success-bg); color: #059669; }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-warning { background: var(--warning-bg); color: #D97706; }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-primary { background: rgba(232,114,42,0.1); color: var(--primary); }

/* ===================== HOMEWORK CARDS ===================== */
.hw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 20px; }
.hw-card {
    background: #fff; border-radius: var(--radius);
    border: 1px solid rgba(0,0,0,0.04); overflow: hidden;
    transition: var(--tr); box-shadow: var(--shadow);
}
.hw-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.hw-card.expired { opacity: 0.65; border-left: 4px solid var(--danger); }
.hw-card-top { padding: 20px 24px; border-bottom: 1px solid var(--border-light); }
.hw-card-top h4 { font-size: 17px; margin-bottom: 6px; font-weight: 700; }
.hw-card-top .hw-meta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; }
.hw-card-top .hw-meta span { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-light); font-weight: 600; }
.hw-card-body { padding: 20px 24px; }
.hw-card-body .description { font-size: 14px; color: var(--text-light); line-height: 1.7; margin-bottom: 14px; font-weight: 500; }
.hw-card-body .file-link {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px;
    background: var(--info-bg); border-radius: 8px; font-size: 13px;
    color: var(--info); text-decoration: none; font-weight: 700; transition: var(--tr);
}
.hw-card-body .file-link:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.hw-card-footer {
    padding: 16px 24px; background: linear-gradient(180deg, #FAFAF8 0%, #F8F7F4 100%);
    display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
    border-top: 1px solid var(--border-light);
}
.hw-progress { display: flex; align-items: center; gap: 10px; }
.hw-progress-bar { width: 110px; height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.hw-progress-fill { height: 100%; background: linear-gradient(90deg, var(--success), #34D399); border-radius: 4px; transition: width 0.6s ease; }

/* ===================== CHECKBOX LIST ===================== */
.check-list { list-style: none; }
.check-list li {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px; border-radius: var(--radius-sm);
    transition: var(--tr); margin-bottom: 4px;
    border: 1px solid transparent;
}
.check-list li:hover { background: rgba(232,114,42,0.03); border-color: rgba(232,114,42,0.1); }
.check-list input[type="checkbox"] {
    width: 20px; height: 20px; accent-color: var(--primary); cursor: pointer;
    border-radius: 6px;
}

/* ===================== TABS ===================== */
.tabs {
    display: flex; gap: 4px; border-bottom: 2px solid var(--border);
    margin-bottom: 24px; padding: 0 4px;
}
.tab-btn {
    padding: 14px 24px; background: none; border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px; cursor: pointer;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700; font-size: 14px; color: var(--text-muted);
    transition: var(--tr); border-radius: 8px 8px 0 0;
}
.tab-btn:hover { color: var(--text); background: rgba(0,0,0,0.02); }
.tab-btn.active {
    color: var(--primary); border-bottom-color: var(--primary);
    background: rgba(232,114,42,0.04);
}

.filter-bar { display: flex; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; align-items: center; }

/* ===================== COMMENTS ===================== */
.comment-card {
    background: #fff; border-radius: var(--radius);
    padding: 18px 22px; margin-bottom: 14px;
    border-left: 4px solid var(--primary);
    box-shadow: var(--shadow); transition: var(--tr);
}
.comment-card:hover { box-shadow: var(--shadow-md); transform: translateX(4px); }
.comment-card .comment-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.comment-card .comment-author { font-weight: 700; font-size: 14px; }
.comment-card .comment-date { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.comment-card .comment-text { font-size: 14px; color: var(--text); line-height: 1.6; font-weight: 500; }
.comment-card .comment-branch { font-size: 12px; color: var(--primary); font-weight: 700; }

/* ===================== TOAST ===================== */
.toast-container { position: fixed; top: 86px; right: 24px; z-index: 2000; display: flex; flex-direction: column; gap: 10px; }
.toast {
    padding: 16px 24px; border-radius: var(--radius-sm); color: #fff;
    font-weight: 700; font-size: 14px; min-width: 300px;
    box-shadow: var(--shadow-lg);
    animation: toastIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), toastOut 0.3s ease 2.7s forwards;
    backdrop-filter: blur(8px);
}
.toast-success { background: linear-gradient(135deg, #10B981, #059669); }
.toast-error { background: linear-gradient(135deg, #EF4444, #DC2626); }
.toast-warning { background: linear-gradient(135deg, #F59E0B, #D97706); }
@keyframes toastIn { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes toastOut { from { opacity: 1; } to { opacity: 0; transform: translateX(120%); } }

/* ===================== EMPTY STATE ===================== */
.empty-state { text-align: center; padding: 56px 24px; color: var(--text-light); }
.empty-state .empty-icon { font-size: 52px; margin-bottom: 18px; opacity: 0.4; }
.empty-state h3 { margin-bottom: 8px; font-size: 18px; }
.empty-state p { font-weight: 500; }

/* ===================== FIRST LOGIN ===================== */
.first-login-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(27, 31, 59, 0.95); backdrop-filter: blur(12px);
    display: flex; align-items: center; justify-content: center; z-index: 9999;
}
.first-login-box {
    background: #fff; border-radius: var(--radius-xl); padding: 48px;
    width: 90%; max-width: 440px; text-align: center;
    box-shadow: var(--shadow-xl); animation: modalIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.first-login-box h2 { margin-bottom: 8px; font-size: 24px; }
.first-login-box p { color: var(--text-light); margin-bottom: 28px; font-size: 15px; font-weight: 500; }

/* ===================== LANDING PAGE ===================== */
.landing-hero {
    background: linear-gradient(135deg, var(--secondary) 0%, #0D1025 50%, #12152E 100%);
    min-height: 100vh; position: relative; overflow: hidden;
}
.landing-hero::before {
    content: ''; position: absolute; top: -40%; right: -15%;
    width: 700px; height: 700px; border-radius: 50%;
    background: radial-gradient(circle, rgba(232,114,42,0.12) 0%, transparent 65%);
    animation: heroFloat 8s ease-in-out infinite;
}
.landing-hero::after {
    content: ''; position: absolute; bottom: -25%; left: -8%;
    width: 500px; height: 500px; border-radius: 50%;
    background: radial-gradient(circle, rgba(246,177,122,0.08) 0%, transparent 65%);
    animation: heroFloat 10s ease-in-out infinite reverse;
}
@keyframes heroFloat { 0%, 100% { transform: translate(0,0); } 50% { transform: translate(20px, -20px); } }

.landing-nav {
    display: flex; align-items: center; justify-content: space-between;
    padding: 24px 48px; position: relative; z-index: 10;
}
.landing-nav .brand { display: flex; align-items: center; gap: 14px; }
.landing-nav .brand .logo-icon {
    width: 48px; height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 14px; display: flex; align-items: center; justify-content: center;
    font-size: 22px; color: #fff; box-shadow: 0 4px 16px rgba(232,114,42,0.35);
}
.landing-nav .brand h1 {
    font-family: 'Outfit', sans-serif; font-size: 24px; color: #fff;
    letter-spacing: -0.5px; font-weight: 800;
}
.landing-content {
    display: flex; align-items: center; justify-content: center;
    min-height: calc(100vh - 96px); padding: 48px;
    position: relative; z-index: 10;
}
.landing-left { flex: 1; max-width: 560px; color: #fff; }
.landing-left h2 {
    font-family: 'Outfit', sans-serif; font-size: 48px; font-weight: 800;
    line-height: 1.12; margin-bottom: 24px; letter-spacing: -0.03em;
}
.landing-left h2 .highlight {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.landing-left p { font-size: 17px; opacity: 0.75; line-height: 1.7; margin-bottom: 36px; font-weight: 500; }
.feature-pills { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.feature-pill {
    display: flex; align-items: center; gap: 10px;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
    padding: 12px 20px; border-radius: 50px;
    font-size: 13px; color: rgba(255,255,255,0.85); font-weight: 600;
    transition: var(--tr); backdrop-filter: blur(4px);
}
.feature-pill:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }
.feature-pill .pill-icon { font-size: 16px; }
.landing-right { flex: 1; max-width: 460px; margin-left: 64px; }

/* ===================== AUTH CARD ===================== */
.auth-card {
    background: #fff; border-radius: var(--radius-xl); overflow: hidden;
    box-shadow: 0 24px 80px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.1);
}
.auth-tabs { display: flex; border-bottom: 2px solid var(--border-light); background: #FAFAF8; }
.auth-tab {
    flex: 1; padding: 18px; text-align: center; background: none; border: none;
    font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 15px;
    color: var(--text-muted); cursor: pointer; transition: var(--tr);
    border-bottom: 3px solid transparent; margin-bottom: -2px;
}
.auth-tab.active { color: var(--primary); border-bottom-color: var(--primary); background: #fff; }
.auth-body { padding: 32px; }
.role-selector { display: flex; gap: 10px; margin-bottom: 22px; }
.role-btn {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 14px 10px; border: 2px solid var(--border);
    border-radius: var(--radius-sm); background: #fff; cursor: pointer;
    transition: var(--tr); font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12px; font-weight: 700; color: var(--text-light);
    box-shadow: var(--shadow-sm);
}
.role-btn:hover { border-color: var(--primary-light); transform: translateY(-2px); box-shadow: var(--shadow); }
.role-btn.active {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(232,114,42,0.06), rgba(232,114,42,0.02));
    color: var(--primary); box-shadow: 0 4px 16px var(--primary-glow);
}
.role-btn .role-icon { font-size: 26px; }

.custom-check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; font-weight: 600; }
.custom-check input { width: 20px; height: 20px; accent-color: var(--primary); }

/* ===================== MOBILE ===================== */
.mobile-menu-btn { display: none; background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; }

@media (max-width: 900px) {
    .landing-content { flex-direction: column; text-align: center; }
    .landing-left h2 { font-size: 34px; }
    .landing-right { margin-left: 0; margin-top: 36px; max-width: 100%; }
    .feature-pills { justify-content: center; }
    .landing-nav { padding: 18px 24px; }
}
@media (max-width: 768px) {
    .sidebar { display: none; }
    .navbar { padding: 0 14px; height: 64px; }
    .main-content { padding: 20px 16px; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .hw-grid { grid-template-columns: 1fr; }
    .mobile-menu-btn { display: block !important; }
    .sidebar.mobile-open {
        display: block; position: fixed; top: 64px; left: 0; bottom: 0;
        z-index: 999; box-shadow: var(--shadow-xl); width: 280px;
        animation: slideIn 0.3s ease;
    }
    @keyframes slideIn { from { transform: translateX(-100%); } to { transform: translateX(0); } }
    .school-code-badge { font-size: 12px; padding: 6px 12px; letter-spacing: 2px; }
    .page-header h1 { font-size: 22px; }
    .stat-card { padding: 18px; }
    .stat-card .stat-value { font-size: 26px; }
}
