/* ═══════════════════════════════════════════════════════════════════════════
   JorDan_AoE Student Portal — "Onimaru Esports" Dark Theme
   ═══════════════════════════════════════════════════════════════════════════ */

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

/* ── CSS Variables ────────────────────────────────────────────────────── */
:root {
    --bg-darkest:    #04040d;
    --bg-dark:       #08080f;
    --bg-card:       #0d0d1a;
    --bg-card-hover: #111126;
    --bg-input:      #0a0a18;
    --border:        rgba(255,255,255,0.07);
    --border-accent: rgba(124,58,237,0.4);

    --primary:       #7c3aed;
    --primary-glow:  rgba(124,58,237,0.25);
    --primary-light: #9561ff;
    --cyan:          #06b6d4;
    --cyan-glow:     rgba(6,182,212,0.2);
    --emerald:       #10b981;
    --amber:         #f59e0b;
    --red:           #ef4444;
    --red-glow:      rgba(239,68,68,0.2);

    --text-primary:  #f1f5f9;
    --text-secondary:#94a3b8;
    --text-muted:    #475569;

    --radius-sm:     8px;
    --radius-md:     12px;
    --radius-lg:     20px;
    --radius-xl:     28px;

    --shadow-card:   0 4px 24px rgba(0,0,0,0.5);
    --shadow-glow:   0 0 40px rgba(124,58,237,0.15);
    --transition:    all 0.2s cubic-bezier(0.4,0,0.2,1);
}

/* ── Reset & Base ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ── Scrollbar ────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-darkest); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ── Animated Background ─────────────────────────────────────────────── */
.bg-grid {
    position: fixed;
    inset: 0;
    z-index: 0;
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(124,58,237,0.12) 0%, transparent 70%),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(6,182,212,0.06) 0%, transparent 60%),
        linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 48px 48px, 48px 48px;
    pointer-events: none;
}

.page-content { position: relative; z-index: 1; }

/* ── Glass Card ───────────────────────────────────────────────────────── */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.card:hover { border-color: rgba(255,255,255,0.12); box-shadow: var(--shadow-glow); }

.card-glass {
    background: rgba(13,13,26,0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #5b21b6);
    color: #fff;
    box-shadow: 0 4px 16px var(--primary-glow);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px var(--primary-glow); filter: brightness(1.1); }
.btn-primary:active { transform: translateY(0); }

.btn-cyan {
    background: linear-gradient(135deg, var(--cyan), #0891b2);
    color: #fff;
    box-shadow: 0 4px 16px var(--cyan-glow);
}
.btn-cyan:hover { transform: translateY(-1px); filter: brightness(1.1); }

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}
.btn-ghost:hover { background: rgba(255,255,255,0.05); color: var(--text-primary); border-color: rgba(255,255,255,0.15); }

.btn-danger { background: linear-gradient(135deg, var(--red), #b91c1c); color: #fff; }
.btn-danger:hover { filter: brightness(1.1); transform: translateY(-1px); }

.btn-sm { padding: 6px 14px; font-size: 0.8rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; border-radius: var(--radius-md); }
.btn-full { width: 100%; justify-content: center; }

/* ── Inputs ───────────────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.form-input, .form-select, .form-textarea {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    padding: 12px 16px;
    transition: var(--transition);
    width: 100%;
    outline: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

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

/* ── Badges ───────────────────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.badge-active    { background: rgba(16,185,129,0.15); color: var(--emerald); border: 1px solid rgba(16,185,129,0.3); }
.badge-expired   { background: rgba(239,68,68,0.15);  color: var(--red);     border: 1px solid rgba(239,68,68,0.3); }
.badge-warning   { background: rgba(245,158,11,0.15); color: var(--amber);   border: 1px solid rgba(245,158,11,0.3); }
.badge-inactive  { background: rgba(71,85,105,0.3);   color: var(--text-muted); border: 1px solid var(--border); }
.badge-win       { background: rgba(16,185,129,0.12); color: var(--emerald); }
.badge-loss      { background: rgba(239,68,68,0.12);  color: var(--red); }

/* ── Stat Cards ───────────────────────────────────────────────────────── */
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

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

.stat-card:hover::before { opacity: 1; }
.stat-card:hover { border-color: var(--border-accent); transform: translateY(-2px); }

.stat-icon { font-size: 1.4rem; margin-bottom: 8px; }
.stat-value { font-size: 2rem; font-weight: 800; font-family: 'Space Grotesk', sans-serif; }
.stat-value.cyan    { color: var(--cyan); }
.stat-value.primary { color: var(--primary-light); }
.stat-value.emerald { color: var(--emerald); }
.stat-value.amber   { color: var(--amber); }
.stat-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.stat-sub   { font-size: 0.85rem; color: var(--text-secondary); }

/* ── Navbar ───────────────────────────────────────────────────────────── */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 32px;
    background: rgba(8,8,15,0.8);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.navbar-logo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    box-shadow: 0 0 12px var(--primary-glow);
}

.navbar-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.navbar-title span { color: var(--primary-light); }

.navbar-right { display: flex; align-items: center; gap: 12px; }

.navbar-user {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ── Login Page ───────────────────────────────────────────────────────── */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-box {
    width: 100%;
    max-width: 420px;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    border: 2px solid var(--primary);
    box-shadow: 0 0 30px var(--primary-glow), 0 0 60px rgba(124,58,237,0.1);
    overflow: hidden;
    animation: pulse-logo 3s ease-in-out infinite;
}

@keyframes pulse-logo {
    0%, 100% { box-shadow: 0 0 20px var(--primary-glow), 0 0 40px rgba(124,58,237,0.1); }
    50%       { box-shadow: 0 0 40px var(--primary-glow), 0 0 80px rgba(124,58,237,0.2); }
}

.login-logo-wrapper img { width: 100%; height: 100%; object-fit: cover; }

.login-title { font-size: 1.8rem; font-weight: 800; font-family: 'Space Grotesk', sans-serif; }
.login-subtitle { color: var(--text-secondary); font-size: 0.9rem; margin-top: 4px; }

.login-card { padding: 2rem; }

.login-tabs {
    display: flex;
    background: var(--bg-darkest);
    border-radius: var(--radius-sm);
    padding: 4px;
    margin-bottom: 1.5rem;
    gap: 4px;
}

.login-tab {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 6px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    background: transparent;
    color: var(--text-muted);
}

.login-tab.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 2px 8px var(--primary-glow);
}

.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    margin-bottom: 1rem;
    display: none;
}
.alert.show { display: block; }
.alert-error   { background: rgba(239,68,68,0.1);  border: 1px solid rgba(239,68,68,0.3);  color: #fca5a5; }
.alert-success { background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.3); color: #6ee7b7; }

/* ── Dashboard Layout ─────────────────────────────────────────────────── */
.dashboard-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

.sidebar {
    background: rgba(8,8,15,0.9);
    border-right: 1px solid var(--border);
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-section-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    font-weight: 700;
    padding: 8px 12px 4px;
    margin-top: 8px;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.sidebar-item:hover    { background: rgba(255,255,255,0.05); color: var(--text-primary); }
.sidebar-item.active   { background: var(--primary-glow); color: var(--primary-light); border: 1px solid var(--border-accent); }
.sidebar-item svg      { width: 18px; height: 18px; flex-shrink: 0; }

.main-content { padding: 32px; overflow-y: auto; }

/* ── Section headers ──────────────────────────────────────────────────── */
.section-header { margin-bottom: 24px; }
.section-title { font-family: 'Space Grotesk', sans-serif; font-size: 1.5rem; font-weight: 700; }
.section-subtitle { color: var(--text-secondary); font-size: 0.9rem; margin-top: 4px; }

/* ── Stats Grid ───────────────────────────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }

/* ── Access Countdown Bar ─────────────────────────────────────────────── */
.access-bar {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px 24px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.access-bar-info { flex: 1; }
.access-bar-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.access-bar-days  { font-size: 1.6rem; font-weight: 800; font-family: 'Space Grotesk', sans-serif; }
.access-bar-days.urgent { color: var(--red); }
.access-bar-days.warning { color: var(--amber); }
.access-bar-days.good  { color: var(--emerald); }

.access-progress { flex: 2; }
.progress-track  { height: 6px; background: rgba(255,255,255,0.08); border-radius: 3px; overflow: hidden; }
.progress-fill   { height: 100%; border-radius: 3px; transition: width 1s ease; background: linear-gradient(90deg, var(--primary), var(--cyan)); }
.progress-fill.urgent  { background: linear-gradient(90deg, var(--red), #fbbf24); }
.progress-fill.warning { background: linear-gradient(90deg, var(--amber), #fbbf24); }

/* ── Profile Card ─────────────────────────────────────────────────────── */
.profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.profile-top { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }

.profile-avatar {
    width: 72px; height: 72px;
    border-radius: 50%;
    border: 3px solid var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
    background: var(--bg-darkest);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-light);
    flex-shrink: 0;
}

.profile-name      { font-size: 1.4rem; font-weight: 700; font-family: 'Space Grotesk', sans-serif; }
.profile-username  { color: var(--text-secondary); font-size: 0.9rem; margin-top: 2px; }

.profile-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.profile-stat { text-align: center; }
.profile-stat-val { font-size: 1.5rem; font-weight: 700; font-family: 'Space Grotesk', sans-serif; }
.profile-stat-lbl { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }

/* ── Chart Container ──────────────────────────────────────────────────── */
.chart-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}
.chart-title { font-weight: 700; font-size: 1rem; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.chart-title .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 8px var(--primary); }
.chart-wrapper { position: relative; height: 260px; }

/* ── Matches Table ────────────────────────────────────────────────────── */
.matches-table { width: 100%; border-collapse: collapse; }
.matches-table th {
    padding: 10px 14px;
    text-align: left;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    font-weight: 700;
}
.matches-table td { padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,0.04); font-size: 0.88rem; }
.matches-table tr:last-child td { border-bottom: none; }
.matches-table tr:hover td { background: rgba(255,255,255,0.02); }

/* ── Notes ────────────────────────────────────────────────────────────── */
.note-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin-bottom: 16px;
    transition: var(--transition);
}
.note-card:hover { border-color: var(--border-accent); }
.note-header   { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 12px; gap: 16px; }
.note-title    { font-weight: 700; font-size: 1rem; }
.note-meta     { font-size: 0.78rem; color: var(--text-muted); margin-top: 3px; }
.note-content  { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; white-space: pre-wrap; }

/* ── Videos ───────────────────────────────────────────────────────────── */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.video-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}
.video-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.video-embed { position: relative; padding-top: 56.25%; background: #000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }
.video-embed-placeholder {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-darkest);
    color: var(--text-muted);
    flex-direction: column; gap: 8px;
    font-size: 0.85rem;
}
.video-info { padding: 16px; }
.video-title { font-weight: 700; margin-bottom: 6px; }
.video-desc  { font-size: 0.85rem; color: var(--text-secondary); }
.video-date  { font-size: 0.75rem; color: var(--text-muted); margin-top: 8px; }

/* ── Linked Accounts ──────────────────────────────────────────────────── */
.linked-account {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-input);
    margin-bottom: 8px;
}
.linked-icon { color: var(--cyan); font-size: 1.1rem; }
.linked-name { font-weight: 600; font-size: 0.9rem; }
.linked-elo  { font-size: 0.8rem; color: var(--text-muted); }

/* ── Admin Panel ──────────────────────────────────────────────────────── */
.admin-topbar {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 32px;
    background: rgba(8,8,15,0.95);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
}

.admin-title { font-family: 'Space Grotesk', sans-serif; font-size: 1.3rem; font-weight: 700; flex: 1; }

.admin-main { padding: 32px; max-width: 1400px; margin: 0 auto; }

/* ── Students Table ───────────────────────────────────────────────────── */
.students-table { width: 100%; border-collapse: collapse; }
.students-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 700;
    border-bottom: 1px solid var(--border);
    background: rgba(0,0,0,0.2);
}
.students-table td { padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,0.04); font-size: 0.9rem; vertical-align: middle; }
.students-table tr:hover td { background: rgba(255,255,255,0.02); }
.students-table tr:last-child td { border-bottom: none; }

/* ── Modal ────────────────────────────────────────────────────────────── */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(8px);
    z-index: 200;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    opacity: 0; pointer-events: none;
    transition: opacity 0.25s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 32px;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 80px rgba(0,0,0,0.8);
    transform: translateY(20px);
    transition: transform 0.25s;
}
.modal-overlay.open .modal { transform: translateY(0); }

.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.modal-title  { font-family: 'Space Grotesk', sans-serif; font-size: 1.3rem; font-weight: 700; }
.modal-close  { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 1.5rem; line-height: 1; padding: 4px; transition: color 0.2s; }
.modal-close:hover { color: var(--text-primary); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .span-2 { grid-column: span 2; }

/* ── Loading Skeleton ─────────────────────────────────────────────────── */
.skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ── Expired Page ─────────────────────────────────────────────────────── */
.expired-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem; text-align: center; }
.expired-icon { font-size: 4rem; margin-bottom: 1rem; }
.expired-title { font-family: 'Space Grotesk', sans-serif; font-size: 2rem; font-weight: 800; color: var(--red); }
.expired-desc { color: var(--text-secondary); margin: 1rem 0 2rem; font-size: 1rem; max-width: 400px; }

/* ── Utility ──────────────────────────────────────────────────────────── */
.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.gap-2        { gap: 8px; }
.gap-3        { gap: 12px; }
.gap-4        { gap: 16px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.text-muted   { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-emerald { color: var(--emerald); }
.text-red     { color: var(--red); }
.text-cyan    { color: var(--cyan); }
.text-primary-color { color: var(--primary-light); }
.font-mono    { font-family: 'Space Grotesk', monospace; }
.font-bold    { font-weight: 700; }
.mb-2         { margin-bottom: 8px; }
.mb-4         { margin-bottom: 16px; }
.mb-6         { margin-bottom: 24px; }
.mt-4         { margin-top: 16px; }
.empty-state  { text-align: center; padding: 4rem 2rem; color: var(--text-muted); }
.empty-state-icon { font-size: 3rem; margin-bottom: 1rem; }
.empty-state-text { font-size: 0.9rem; }

/* ── Fade In Animation ────────────────────────────────────────────────── */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeInUp 0.4s ease forwards; }
.fade-in-delay-1 { animation-delay: 0.05s; opacity: 0; }
.fade-in-delay-2 { animation-delay: 0.10s; opacity: 0; }
.fade-in-delay-3 { animation-delay: 0.15s; opacity: 0; }
.fade-in-delay-4 { animation-delay: 0.20s; opacity: 0; }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .dashboard-layout { grid-template-columns: 1fr; }
    .sidebar { display: none; }
    .profile-stats { grid-template-columns: repeat(2, 1fr); }
    .form-grid { grid-template-columns: 1fr; }
    .form-grid .span-2 { grid-column: span 1; }
}

@media (max-width: 600px) {
    .navbar { padding: 12px 16px; }
    .main-content { padding: 20px 16px; }
    .admin-main { padding: 20px 16px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .video-grid { grid-template-columns: 1fr; }
}
