:root {
    --bg-black: #000000;
    --bg-navy: #00243d;
    --brand-red: #ed1c24;
    --brand-blue: #1c75bc;
    --text-light: #f0f4f8;
    --text-muted: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-hover: rgba(255, 255, 255, 0.08);
    --sidebar-width: 260px;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-black);
    color: var(--text-light);
    min-height: 100vh;
    background-image:
        radial-gradient(ellipse 80% 60% at 50% -20%, rgba(28, 117, 188, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 90%, rgba(237, 28, 36, 0.08) 0%, transparent 50%);
    background-size: 200% 200%;
    animation: bgShift 20s ease infinite;
}

@keyframes bgShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

/* ── AUTH PAGES (login / register) ─────────────────────────── */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem 1rem;
}

.auth-container {
    width: 100%;
    max-width: 520px;
}

.auth-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 1.25rem;
    padding: 2.5rem 2rem;
}

.auth-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.auth-logo img { height: 42px; width: auto; }

.auth-card h1 {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.25rem;
}

.auth-card .subtitle {
    color: var(--text-muted);
    text-align: center;
    font-size: 0.875rem;
    margin-bottom: 1.75rem;
}

/* ── Forms ───────────────────────────────────────────────── */
.form-section {
    margin-bottom: 1.75rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid var(--glass-border);
}

.form-section:last-of-type { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.form-section h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--brand-blue);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.form-row-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }

.form-row-2 { grid-template-columns: 1fr 1fr; }

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

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--glass-border);
    border-radius: 0.6rem;
    color: var(--text-light);
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.2s, background 0.2s;
    outline: none;
}

.form-group input:focus,
.form-group select:focus { border-color: var(--brand-blue); background: rgba(255,255,255,0.1); }

.form-group select option { background: #111; color: var(--text-light); }

.form-group textarea { resize: vertical; min-height: 60px; }

.form-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    line-height: 1.4;
}

.form-hint strong { color: var(--brand-blue); }

.form-error {
    font-size: 0.75rem;
    color: var(--danger);
    margin-top: 0.2rem;
    display: none;
}

.form-group.error input { border-color: var(--danger); }

.form-group.error select { border-color: var(--danger); }

.form-group.error .file-upload { border-color: var(--danger); }

.form-group.error .form-error { display: block; }

/* Password visibility */
.password-wrapper {
    position: relative;
}

.password-wrapper input { padding-right: 2.5rem; }

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    font-size: 1rem;
}

.password-toggle:hover { color: var(--text-light); }

/* File upload */
.file-upload {
    position: relative;
    padding: 1.25rem;
    border: 1px dashed var(--glass-border);
    border-radius: 0.6rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.file-upload:hover { border-color: var(--brand-blue); background: rgba(28,117,188,0.05); }

.file-upload input { position: absolute; opacity: 0; width: 100%; height: 100%; top: 0; left: 0; cursor: pointer; }

.file-upload .upload-icon { font-size: 1.5rem; margin-bottom: 0.25rem; }

.file-upload .upload-text { font-size: 0.8rem; color: var(--text-muted); }

.file-upload .upload-filename { font-size: 0.8rem; color: var(--success); margin-top: 0.25rem; display: none; }

/* Buttons */
.btn-primary {
    width: 100%;
    padding: 0.85rem;
    background: linear-gradient(135deg, var(--brand-red), #d4181f);
    color: #fff;
    border: none;
    border-radius: 0.6rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
}

.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }

.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-secondary {
    width: 100%;
    padding: 0.85rem;
    background: rgba(255,255,255,0.06);
    color: var(--text-light);
    border: 1px solid var(--glass-border);
    border-radius: 0.6rem;
    font-size: 1rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-secondary:hover { background: rgba(255,255,255,0.1); }

.btn-outline {
    width: auto;
    padding: 0.5rem 1rem;
    background: transparent;
    color: var(--brand-blue);
    border: 1px solid var(--brand-blue);
    border-radius: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-outline:hover { background: rgba(28,117,188,0.1); }

.auth-link {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.auth-link a { color: var(--brand-blue); text-decoration: none; font-weight: 600; }

.auth-link a:hover { text-decoration: underline; }

/* Alerts */
.alert {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    display: none;
}

.alert.show { display: block; }

.alert-success { background: rgba(16,185,129,0.15); border: 1px solid rgba(16,185,129,0.3); color: var(--success); }

.alert-error { background: rgba(239,68,68,0.15); border: 1px solid rgba(239,68,68,0.3); color: var(--danger); }

.alert-info { background: rgba(28,117,188,0.15); border: 1px solid rgba(28,117,188,0.3); color: var(--brand-blue); }

/* Loading spinner */
.spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin: 0 auto;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── MODAL (success) ──────────────────────────────────────── */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(6px);
    z-index: 999;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

/* ═══ REGISTRATION SUCCESS (inline) ═══ */
#regSuccessSection {
    text-align: center;
    padding: 1rem 0;
}

#regSuccessSection .success-icon {
    width: 72px;
    height: 72px;
    background: rgba(16,185,129,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

#regSuccessSection h2 { font-size: 1.4rem; font-weight: 700; margin-bottom: 0.5rem; }

#regSuccessSection p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }

.id-display-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--glass-border);
    border-radius: 0.6rem;
    padding: 0.75rem 1rem;
    margin: 1.25rem auto;
    max-width: 380px;
}

.id-display-value {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--brand-blue);
    word-break: break-all;
}

.btn-copy {
    background: rgba(28,117,188,0.15);
    color: var(--brand-blue);
    border: 1px solid rgba(28,117,188,0.3);
    border-radius: 0.4rem;
    padding: 0.35rem 0.7rem;
    font-size: 0.75rem;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}

.btn-copy:hover { background: var(--brand-blue); color: #fff; }

.warning-text { font-size: 0.8rem !important; color: var(--warning) !important; font-weight: 600; }

.verify-section { margin: 0.75rem 0 1rem; }

.verify-section p { font-size: 0.85rem; margin-bottom: 0.25rem; }

.verify-link { color: var(--brand-blue); font-size: 0.8rem; word-break: break-all; text-decoration: underline; }

.verify-link:hover { color: #2a8ad4; }

#regSuccessSection .steps {
    text-align: left;
    margin: 1rem 0 1.5rem;
}

#regSuccessSection .steps li {
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 0.35rem 0;
    list-style: none;
}

#regSuccessSection .steps li::before {
    content: '✓ ';
    color: var(--success);
    font-weight: 700;
}

/* ═══ TOAST ═══ */
.toast-overlay {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    background: var(--success);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 0.6rem;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateX(-50%) translateY(-10px);
}

.toast-overlay.toast-show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ═══════════════════════════════════════════════════════════════
   DASHBOARD LAYOUT (sidebar)
   ═══════════════════════════════════════════════════════════════ */
.app-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(16px);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    padding: 0;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 200;
    transition: transform 0.3s ease;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 1.25rem 1.25rem;
    border-bottom: 1px solid var(--glass-border);
}

.sidebar-brand img { height: 36px; width: auto; }

.sidebar-nav {
    flex: 1;
    padding: 0.75rem 0;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
    border-left: 3px solid transparent;
}

.nav-item:hover { background: var(--glass-hover); color: var(--text-light); }

.nav-item.active {
    background: rgba(28,117,188,0.1);
    color: var(--brand-blue);
    border-left-color: var(--brand-blue);
}

.sidebar-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--glass-border);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.sidebar-user .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--brand-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    overflow: hidden;
}

.sidebar-user .avatar img { width: 100%; height: 100%; object-fit: cover; }

.sidebar-logout {
    width: 100%;
    padding: 0.5rem;
    background: rgba(255,255,255,0.06);
    color: var(--text-muted);
    border: 1px solid var(--glass-border);
    border-radius: 0.5rem;
    font-size: 0.8rem;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.sidebar-logout:hover { background: rgba(239,68,68,0.15); color: var(--danger); border-color: rgba(239,68,68,0.3); }

/* Main content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 2rem;
    min-height: 100vh;
}

.section { display: none; }

.section.active { display: block; }

.section-header { margin-bottom: 1.5rem; }

.section-header h1 { font-size: 1.5rem; font-weight: 700; }

.section-header .subtitle { color: var(--text-muted); font-size: 0.875rem; margin-top: 0.25rem; }

/* Profile photo top-right */
.profile-top {
    position: fixed;
    top: 1rem;
    right: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 300;
}

.profile-top .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--brand-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    overflow: hidden;
    border: 2px solid var(--glass-border);
    transition: border-color 0.2s;
    position: relative;
}

.profile-top .avatar:hover { border-color: var(--brand-blue); }

.profile-top .avatar img { width: 100%; height: 100%; object-fit: cover; }

.profile-top .avatar .edit-badge {
    position: absolute;
    bottom: 0; right: 0;
    width: 16px; height: 16px;
    background: var(--brand-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    color: #fff;
    border: 2px solid var(--bg-black);
}

/* Hamburger */
.hamburger {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 250;
    background: rgba(0,0,0,0.8);
    border: 1px solid var(--glass-border);
    border-radius: 0.5rem;
    padding: 0.5rem;
    cursor: pointer;
}

.hamburger span { display: block; width: 20px; height: 2px; background: var(--text-light); margin: 4px 0; border-radius: 2px; }

/* ═══ CARDS ═══ */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
}

.stat-card .stat-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); font-weight: 600; }

.stat-card .stat-value { font-size: 2rem; font-weight: 800; margin-top: 0.25rem; }

.stat-value.status-Pending { color: var(--warning); }

.stat-value.status-Approved { color: var(--success); }

.stat-value.status-Rejected { color: var(--danger); }

/* Status badge */
.status-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-Pending { background: rgba(245,158,11,0.15); color: var(--warning); }

.status-Approved { background: rgba(16,185,129,0.15); color: var(--success); }

.status-Rejected { background: rgba(239,68,68,0.15); color: var(--danger); }

.status-paid { background: rgba(46,196,116,0.15); color: #2ec46e; }

.status-pending { background: rgba(245,158,11,0.15); color: #eab308; }

.status-rejected { background: rgba(239,68,68,0.15); color: #f87171; }

.btn-sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    border-radius: 0.375rem;
    border: 1px solid var(--glass-border);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
    background: rgba(255,255,255,0.05);
    color: var(--text-light);
}
.btn-sm:hover { background: rgba(255,255,255,0.1); }

.btn-primary {
    padding: 0.75rem 1.5rem;
    background: var(--brand-blue);
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-primary:hover { background: #155a94; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-outline {
    padding: 0.4rem 0.75rem;
    background: transparent;
    border: 1px solid var(--glass-border);
    border-radius: 0.375rem;
    color: var(--text-light);
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}
.btn-outline:hover { background: var(--glass-bg); border-color: var(--brand-blue); color: var(--brand-blue); }

.table-wrapper { overflow-x: auto; }
.table-wrapper table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}
.table-wrapper th {
    text-align: left;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    white-space: nowrap;
}
.table-wrapper td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--glass-border);
    vertical-align: middle;
}
.table-wrapper tr:last-child td { border-bottom: none; }
.table-wrapper tr:hover td { background: rgba(255,255,255,0.02); }

/* ═══ PROGRESS TIMELINE ═══ */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--glass-border);
}

.timeline-item {
    position: relative;
    padding: 0 0 2rem 1rem;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-item .dot {
    position: absolute;
    left: -1.65rem;
    top: 0.25rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--glass-border);
    background: var(--bg-black);
}

.timeline-item.completed .dot { background: var(--success); border-color: var(--success); }

.timeline-item.active .dot { background: var(--brand-blue); border-color: var(--brand-blue); box-shadow: 0 0 0 4px rgba(28,117,188,0.2); }

.timeline-item.pending .dot { background: var(--bg-black); border-color: var(--text-muted); }

.timeline-item .tl-title { font-size: 0.9rem; font-weight: 600; }

.timeline-item .tl-desc { font-size: 0.8rem; color: var(--text-muted); }

.timeline-item .tl-date { font-size: 0.75rem; color: var(--brand-blue); margin-top: 0.15rem; }

/* ═══ PROFILE SETTINGS ═══ */
.profile-settings { max-width: 600px; }

.profile-settings .form-group { margin-bottom: 1.25rem; }

.profile-settings .email-display {
    padding: 0.7rem 0.9rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    border-radius: 0.6rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.email-display .email-locked { font-size: 0.75rem; color: var(--text-muted); font-style: italic; }

/* Photo upload in settings */
.photo-upload-area {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.photo-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--glass-border);
    background: var(--glass-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--brand-blue);
    flex-shrink: 0;
}

.photo-preview img { width: 100%; height: 100%; object-fit: cover; }

.photo-actions { flex: 1; }

.photo-actions p { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.5rem; }

/* Application detail card */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.detail-item { margin-bottom: 0.75rem; }

.detail-item .detail-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); font-weight: 600; }

.detail-item .detail-value { font-size: 0.95rem; font-weight: 500; margin-top: 0.15rem; }

/* Empty state */
.empty-state { text-align: center; padding: 2rem; color: var(--text-muted); }

/* Responsive */
@media (max-width: 900px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
        padding: 1.25rem;
        padding-top: 4rem;
    }
    .hamburger { display: block; }
    .profile-top { top: 0.75rem; right: 0.75rem; }
    .form-row { grid-template-columns: 1fr; }
    .form-row-2 { grid-template-columns: 1fr; }
    .detail-grid { grid-template-columns: 1fr; }
    .photo-upload-area { flex-direction: column; align-items: center; text-align: center; }
}

/* ═══ WELCOME BANNER ═══ */
.welcome-banner {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(28,117,188,0.12), rgba(0,36,61,0.25));
    border: 1px solid var(--glass-border);
    border-radius: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}
.welcome-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(28,117,188,0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.welcome-text { flex: 1; position: relative; z-index: 1; }
.welcome-text h2 { font-size: 1.4rem; font-weight: 700; }
.welcome-subtitle { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.15rem; }
.welcome-badge { flex-shrink: 0; position: relative; z-index: 1; }

/* ═══ QUICK STATS ═══ */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.qs-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    transition: border-color 0.2s, transform 0.15s;
}
.qs-card:hover { border-color: var(--brand-blue); transform: translateY(-1px); }
.qs-icon {
    width: 44px;
    height: 44px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.qs-blue { background: rgba(28,117,188,0.15); color: var(--brand-blue); }
.qs-green { background: rgba(16,185,129,0.15); color: var(--success); }
.qs-gold { background: rgba(245,158,11,0.15); color: var(--warning); }
.qs-purple { background: rgba(139,92,246,0.15); color: #8b5cf6; }
.qs-info { display: flex; flex-direction: column; }
.qs-value { font-size: 1.5rem; font-weight: 800; line-height: 1.2; }
.qs-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); font-weight: 600; }

/* ═══ DASH GRID ═══ */
.dash-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}
.dash-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
}
.dash-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.dash-card-header h3 { font-size: 0.95rem; font-weight: 700; }
.dash-card-link { font-size: 0.8rem; color: var(--brand-blue); text-decoration: none; font-weight: 600; }
.dash-card-link:hover { text-decoration: underline; }

/* Continue grid */
.continue-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.85rem;
}
.continue-card {
    display: flex;
    gap: 0.85rem;
    padding: 0.85rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    border-radius: 0.85rem;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.continue-card:hover { border-color: var(--brand-blue); background: rgba(28,117,188,0.05); }
.continue-img {
    width: 64px;
    height: 64px;
    border-radius: 0.6rem;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(255,255,255,0.03);
}
.continue-img img { width: 100%; height: 100%; object-fit: cover; }
.continue-body { flex: 1; min-width: 0; }
.continue-title { font-size: 0.9rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.continue-track { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.1rem; }
.continue-progress { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.5rem; }
.cp-bar { flex: 1; height: 4px; background: rgba(255,255,255,0.06); border-radius: 999px; overflow: hidden; }
.cp-fill { height: 100%; background: linear-gradient(90deg, var(--brand-blue), var(--success)); border-radius: 999px; transition: width 0.5s ease; }
.continue-progress span { font-size: 0.65rem; color: var(--text-muted); white-space: nowrap; }

/* Activity feed */
.activity-feed { display: flex; flex-direction: column; gap: 0.5rem; }
.activity-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.75rem;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--glass-border);
    border-radius: 0.6rem;
    transition: background 0.2s;
}
.activity-item:hover { background: rgba(255,255,255,0.05); }
.activity-icon { font-size: 1.1rem; flex-shrink: 0; }
.activity-text { flex: 1; font-size: 0.8rem; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.activity-date { font-size: 0.7rem; color: var(--text-muted); flex-shrink: 0; }

/* ═══ QUICK ACTIONS ═══ */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
.qa-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem 0.75rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    transition: border-color 0.2s, color 0.2s, transform 0.15s;
    cursor: pointer;
}
.qa-card:hover { border-color: var(--brand-blue); color: var(--brand-blue); transform: translateY(-2px); }
.qa-card svg { color: var(--text-muted); transition: color 0.2s; }
.qa-card:hover svg { color: var(--brand-blue); }

/* ═══ NOTIFICATION BELL + DROPDOWN ═══ */
.sidebar-notif {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
    transition: color 0.2s, background 0.2s;
    border-bottom: 1px solid var(--glass-border);
}
.sidebar-notif:hover { color: var(--text-light); background: var(--glass-hover); }
.notif-badge {
    position: absolute;
    top: 8px;
    right: 16px;
    min-width: 18px;
    height: 18px;
    background: var(--brand-red);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--bg-black);
    z-index: 5;
}
.notif-dropdown {
    position: fixed;
    top: 0;
    right: 0;
    width: 360px;
    max-height: 100vh;
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(16px);
    border-left: 1px solid var(--glass-border);
    z-index: 500;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}
.notif-dropdown.show { display: flex; transform: translateX(0); }
.notif-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem;
    border-bottom: 1px solid var(--glass-border);
}
.notif-dropdown-header h3 { font-size: 1rem; font-weight: 700; }
.notif-mark-all {
    background: none;
    border: none;
    color: var(--brand-blue);
    font-size: 0.8rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    padding: 0;
}
.notif-mark-all:hover { text-decoration: underline; }
.notif-dropdown-body { flex: 1; overflow-y: auto; padding: 0.5rem 0; }
.notif-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    cursor: pointer;
    transition: background 0.2s;
    border-left: 3px solid transparent;
}
.notif-item:hover { background: var(--glass-hover); }
.notif-item.unread { border-left-color: var(--brand-blue); background: rgba(28,117,188,0.05); }
.notif-item.read { border-left-color: transparent; }
.notif-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 0.1rem; }
.notif-content { flex: 1; min-width: 0; }
.notif-msg { font-size: 0.85rem; line-height: 1.4; }
.notif-date { font-size: 0.7rem; color: var(--text-muted); margin-top: 0.15rem; }
.notif-empty, .notif-loading { text-align: center; padding: 2rem; color: var(--text-muted); font-size: 0.85rem; }

/* ═══ SETTINGS — Password + Notif Prefs ═══ */
.notif-prefs { display: flex; flex-direction: column; gap: 0.3rem; }
.notif-pref-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.75rem;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--glass-border);
    border-radius: 0.5rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s;
}
.notif-pref-item:hover { background: rgba(255,255,255,0.05); }
.notif-pref-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--brand-blue);
    flex-shrink: 0;
    cursor: pointer;
}

/* ═══ PROGRESS TWO-COLUMN ═══ */
.progress-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    align-items: start;
}
.progress-col { min-width: 0; }

/* Learning progress cards */
.learning-progress-empty { text-align: center; padding: 1.5rem; color: var(--text-muted); font-size: 0.85rem; }
.lp-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--glass-border);
    border-radius: 0.85rem;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
}
.lp-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}
.lp-card-title { font-size: 0.9rem; font-weight: 700; }
.lp-card-status {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
}
.lp-card-status.completed { background: rgba(16,185,129,0.15); color: var(--success); }
.lp-card-status.in-progress { background: rgba(28,117,188,0.15); color: var(--brand-blue); }
.lp-card-status.not-started { background: rgba(255,255,255,0.06); color: var(--text-muted); }
.lp-card-progress { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.35rem; }
.lp-bar { flex: 1; height: 6px; background: rgba(255,255,255,0.06); border-radius: 999px; overflow: hidden; }
.lp-fill { height: 100%; border-radius: 999px; transition: width 0.5s ease; }
.lp-fill.completed { background: linear-gradient(90deg, var(--success), #34d399); }
.lp-fill.in-progress { background: linear-gradient(90deg, var(--brand-blue), #2a8ad4); }
.lp-pct { font-size: 0.8rem; font-weight: 700; color: var(--text-muted); flex-shrink: 0; }
.lp-card-footer { font-size: 0.75rem; color: var(--text-muted); }

/* ═══ UTILITIES ═══ */
.no-scroll { overflow: hidden !important; }
.empty-state-sm { text-align: center; padding: 1rem; color: var(--text-muted); font-size: 0.85rem; }
.loading { text-align: center; padding: 1rem; color: var(--text-muted); font-size: 0.85rem; }

/* ═══ RESPONSIVE OVERRIDES ═══ */
@media (max-width: 768px) {
    .quick-stats { grid-template-columns: repeat(2, 1fr); }
    .dash-grid { grid-template-columns: 1fr; }
    .quick-actions { grid-template-columns: repeat(2, 1fr); }
    .progress-two-col { grid-template-columns: 1fr; }
    .notif-dropdown { width: 100%; }
}
@media (max-width: 480px) {
    .quick-stats { grid-template-columns: 1fr; }
    .quick-actions { grid-template-columns: 1fr; }
    .welcome-banner { flex-direction: column; text-align: center; padding: 1.25rem; }
}
