/* ══════════════════════════════════════
   LastBreath RP - Premium Theme
   ══════════════════════════════════════ */

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

:root {
    --gold: #29c2b8;
    --gold-dark: #1fa89f;
    --gold-glow: rgba(41, 194, 184, 0.25);
    --bg-primary: #060609;
    --bg-secondary: #0c0c12;
    --bg-card: #111119;
    --bg-card-hover: #17171f;
    --bg-input: #13131b;
    --text-primary: #eaeaf2;
    --text-secondary: #8888a0;
    --text-muted: #55556a;
    --border: #1e1e2e;
    --border-light: #2a2a3f;
    --danger: #ff4757;
    --success: #2ed573;
    --info: #5b8def;
    --warning: #ffa502;
    --radius: 12px;
    --shadow: 0 8px 32px rgba(0,0,0,0.5);
    --glass: rgba(17, 17, 25, 0.7);
}

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

/* ── Hazard stripe (brand band, matches paradiseisland.online) ── */
.hazard-bar {
    height: 6px;
    background: repeating-linear-gradient(45deg, var(--gold) 0 18px, #08201e 18px 36px);
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a { color: var(--gold); text-decoration: none; transition: all 0.3s ease; }
a:hover { color: #fff; }

::selection { background: var(--gold); color: #000; }

/* ── Animated Background ── */
.bg-glow {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-glow::before {
    content: '';
    position: absolute;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(41, 194, 184, 0.04) 0%, transparent 70%);
    top: -200px; left: -100px;
    animation: floatGlow 20s ease-in-out infinite;
}

.bg-glow::after {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(91, 141, 239, 0.03) 0%, transparent 70%);
    bottom: -200px; right: -100px;
    animation: floatGlow 25s ease-in-out infinite reverse;
}

@keyframes floatGlow {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(100px, 50px); }
    66% { transform: translate(-50px, 100px); }
}

/* ── Navbar ── */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(6, 6, 9, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(41, 194, 184, 0.08);
    padding: 0 2rem;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--gold);
    letter-spacing: -0.02em;
    text-shadow: 0 0 20px var(--gold-glow);
}

.nav-brand .palm { font-size: 1.6rem; }

.nav-brand-mark { width: 28px; height: 28px; border-radius: 8px; vertical-align: middle; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    padding: 24px 18px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: all 0.3s;
    border-bottom: 2px solid transparent;
    display: block;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%; right: 50%;
    height: 2px;
    background: var(--gold);
    transition: all 0.3s ease;
    box-shadow: 0 0 8px var(--gold-glow);
}

.nav-links a:hover::after, .nav-links a.active::after {
    left: 18px; right: 18px;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--gold);
    border-bottom-color: transparent;
}

.nav-dropdown { position: relative; }

.nav-dropdown:hover .dropdown-menu {
    opacity: 1; visibility: visible; transform: translateY(0);
}

.dropdown-menu {
    position: absolute;
    top: 100%; left: -10px;
    background: rgba(17, 17, 25, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 8px 0;
    min-width: 260px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    opacity: 0; visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 200;
}

.dropdown-menu a {
    display: block;
    padding: 11px 20px;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.dropdown-menu a::after { display: none; }

.dropdown-menu a:hover {
    background: rgba(41, 194, 184, 0.06);
    color: var(--gold);
    padding-left: 24px;
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
}

/* ── Hero ── */
.hero {
    position: relative;
    padding: 120px 2rem 100px;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(41, 194, 184, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(91, 141, 239, 0.03) 0%, transparent 50%),
        linear-gradient(180deg, transparent 0%, var(--bg-primary) 100%);
    z-index: 0;
}

.hero > * { position: relative; z-index: 1; }

.hero-label {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(41, 194, 184, 0.08);
    border: 1px solid rgba(41, 194, 184, 0.15);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 24px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    animation: fadeInUp 0.6s ease;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--gold) 0%, #fffde0 50%, var(--gold) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite, fadeInUp 0.6s ease 0.1s both;
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

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

.hero p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 550px;
    margin: 0 auto 36px;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.hero-banner {
    width: 100%;
    max-width: 820px;
    border-radius: 18px;
    border: 1px solid rgba(41, 194, 184, 0.25);
    box-shadow: 0 24px 70px rgba(0,0,0,0.6);
    display: block;
    margin: 0 auto 32px;
    animation: fadeInUp 0.6s ease 0.15s both;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: -8px auto 32px;
    max-width: 640px;
    animation: fadeInUp 0.6s ease 0.25s both;
}

.hero-badge {
    font-size: 0.72rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 6px 13px;
    border-radius: 100px;
    background: rgba(41, 194, 184, 0.12);
    border: 1px solid rgba(41, 194, 184, 0.35);
    color: #7fe0d6;
    font-weight: 600;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease 0.3s both;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #000;
    box-shadow: 0 4px 20px rgba(41, 194, 184, 0.25);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(41, 194, 184, 0.35);
    color: #000;
}

.btn-secondary {
    background: rgba(255,255,255,0.04);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
    backdrop-filter: blur(10px);
}
.btn-secondary:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(41, 194, 184, 0.05);
    transform: translateY(-2px);
}

.btn-danger {
    background: rgba(255, 71, 87, 0.1);
    color: var(--danger);
    border: 1px solid rgba(255, 71, 87, 0.2);
}
.btn-danger:hover { background: var(--danger); color: #fff; }

.btn-sm { padding: 7px 16px; font-size: 0.8rem; }

/* ── Container / Layout ── */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.page-header {
    padding: 56px 0 36px;
    margin-bottom: 36px;
    position: relative;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 60px; height: 3px;
    background: var(--gold);
    border-radius: 3px;
    box-shadow: 0 0 12px var(--gold-glow);
}

.page-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.page-header p { color: var(--text-secondary); font-size: 1rem; }

.section { padding: 48px 0; }

.section-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--gold);
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title::before {
    content: '';
    width: 4px; height: 24px;
    background: var(--gold);
    border-radius: 4px;
    box-shadow: 0 0 8px var(--gold-glow);
}

/* ── Cards ── */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

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

.card:hover {
    border-color: rgba(41, 194, 184, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 40px rgba(41, 194, 184, 0.04);
}

.card:hover::before { opacity: 1; }

.card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.card-badge {
    width: 44px; height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.card h3 { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; }
.card p { color: var(--text-secondary); font-size: 0.88rem; line-height: 1.6; }

.card-category {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(41, 194, 184, 0.06);
    border: 1px solid rgba(41, 194, 184, 0.1);
    color: var(--gold);
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 600;
    margin-top: 14px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

/* ── Department Page ── */
.dept-hero {
    padding: 64px 0 44px;
    position: relative;
}

.dept-hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.dept-hero h1 { font-size: 2.4rem; margin-bottom: 10px; letter-spacing: -0.02em; }

.dept-hero .badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.dept-content {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 40px;
    padding: 40px 0;
}

.dept-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.dept-sidebar a {
    display: block;
    padding: 11px 18px;
    color: var(--text-secondary);
    border-left: 2px solid var(--border);
    font-size: 0.88rem;
    transition: all 0.3s;
}

.dept-sidebar a:hover, .dept-sidebar a.active {
    color: var(--gold);
    border-left-color: var(--gold);
    background: rgba(41, 194, 184, 0.03);
}

/* ── Tables ── */
.table-container {
    overflow-x: auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

table { width: 100%; border-collapse: collapse; }

thead th {
    background: rgba(41, 194, 184, 0.03);
    padding: 15px 18px;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gold);
    border-bottom: 1px solid var(--border);
}

tbody td {
    padding: 13px 18px;
    border-bottom: 1px solid rgba(30, 30, 46, 0.5);
    font-size: 0.88rem;
}

tbody tr { transition: background 0.2s; }
tbody tr:hover { background: rgba(41, 194, 184, 0.02); }
tbody tr:last-child td { border-bottom: none; }

.severity-badge {
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.severity-infraction { background: rgba(46, 213, 115, 0.1); color: var(--success); border: 1px solid rgba(46, 213, 115, 0.2); }
.severity-misdemeanor { background: rgba(255, 165, 2, 0.1); color: var(--warning); border: 1px solid rgba(255, 165, 2, 0.2); }
.severity-felony { background: rgba(255, 71, 87, 0.1); color: var(--danger); border: 1px solid rgba(255, 71, 87, 0.2); }

/* ── Filter Tabs ── */
.filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.filter-tab {
    padding: 9px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
}

.filter-tab:hover, .filter-tab.active {
    background: rgba(41, 194, 184, 0.08);
    border-color: var(--gold);
    color: var(--gold);
    box-shadow: 0 0 16px rgba(41, 194, 184, 0.08);
}

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

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    text-align: center;
    transition: all 0.35s;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(41, 194, 184, 0.03) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.stat-card:hover { transform: translateY(-3px); border-color: rgba(41, 194, 184, 0.15); }
.stat-card:hover::before { opacity: 1; }

.stat-card .number { font-size: 2.2rem; position: relative; }
.stat-card .label { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; position: relative; }

/* ── Footer ── */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 48px 2rem;
    margin-top: 80px;
    position: relative;
    z-index: 1;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-brand {
    color: var(--gold);
    font-weight: 800;
    font-size: 1.05rem;
    text-shadow: 0 0 20px var(--gold-glow);
}

.footer p { color: var(--text-muted); font-size: 0.82rem; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--text-muted); font-size: 0.82rem; font-weight: 500; }
.footer-links a:hover { color: var(--gold); }

/* ── Search Box ── */
.search-box {
    position: relative;
    margin-bottom: 24px;
}

.search-box input {
    width: 100%;
    padding: 14px 18px 14px 48px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s;
}

.search-box input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 20px rgba(41, 194, 184, 0.08);
}

.search-box::before {
    content: '\1F50D';
    position: absolute;
    left: 18px; top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
}

/* ══════════════════════════════════════
   ADMIN PANEL
   ══════════════════════════════════════ */

.admin-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    padding: 28px 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.admin-sidebar .brand {
    padding: 0 24px 24px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
}

.admin-sidebar .brand h2 {
    font-size: 1rem;
    color: var(--gold);
    text-shadow: 0 0 20px var(--gold-glow);
}

.admin-sidebar .brand small { color: var(--text-muted); font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase; }

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 24px;
    color: var(--text-secondary);
    font-size: 0.88rem;
    transition: all 0.3s;
    border-left: 3px solid transparent;
    font-weight: 500;
}

.admin-nav a:hover, .admin-nav a.active {
    color: var(--gold);
    background: rgba(41, 194, 184, 0.04);
    border-left-color: var(--gold);
}

.admin-content {
    padding: 36px;
    overflow-y: auto;
    background: var(--bg-primary);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.admin-header h1 { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; }

/* ── Forms ── */
.form-group { margin-bottom: 16px; }

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

.form-control {
    width: 100%;
    padding: 11px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.88rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 16px rgba(41, 194, 184, 0.08);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238888a0' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

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

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.form-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 24px;
}

.form-card h3 {
    font-size: 1.05rem;
    margin-bottom: 18px;
    color: var(--gold);
    font-weight: 700;
}

/* ── Login ── */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(ellipse at 30% 30%, rgba(41, 194, 184, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 70%, rgba(91, 141, 239, 0.02) 0%, transparent 50%),
        var(--bg-primary);
}

.login-card {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 44px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.login-card h1 {
    text-align: center;
    color: var(--gold);
    margin-bottom: 8px;
    font-size: 1.6rem;
    text-shadow: 0 0 30px var(--gold-glow);
}

.login-card .subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 36px;
    font-size: 0.88rem;
}

.login-error {
    background: rgba(255, 71, 87, 0.08);
    border: 1px solid rgba(255, 71, 87, 0.2);
    color: var(--danger);
    padding: 11px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 16px;
}

/* ── Alerts ── */
.alert {
    padding: 13px 18px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 0.88rem;
    font-weight: 500;
}

.alert-success {
    background: rgba(46, 213, 115, 0.08);
    border: 1px solid rgba(46, 213, 115, 0.2);
    color: var(--success);
}

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

.admin-stat {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.admin-stat::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px; height: 100%;
    background: var(--gold);
    box-shadow: 0 0 12px var(--gold-glow);
}

.admin-stat .number {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--gold);
    text-shadow: 0 0 20px var(--gold-glow);
}

.admin-stat .label { color: var(--text-muted); font-size: 0.82rem; font-weight: 500; }

/* ── Edit Rows ── */
.edit-row {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 12px;
    transition: border-color 0.3s;
}

.edit-row:hover { border-color: var(--border-light); }

.edit-row-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.edit-row-header h4 { font-size: 0.92rem; font-weight: 600; }

.edit-row-body {
    display: none;
    padding-top: 18px;
    margin-top: 18px;
    border-top: 1px solid var(--border);
}

.edit-row.open .edit-row-body { display: block; }

.edit-actions { display: flex; gap: 8px; margin-top: 14px; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-toggle { display: block; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px; left: 0; right: 0;
        background: rgba(6, 6, 9, 0.95);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border);
        padding: 16px;
    }
    .nav-links.open a { padding: 14px 18px; }
    .nav-links.open a::after { display: none; }
    .dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding-left: 16px; }
    .hero h1 { font-size: 2.2rem; }
    .hero { padding: 80px 1rem 60px; }
    .dept-content { grid-template-columns: 1fr; }
    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar { position: static; height: auto; }
    .card-grid { grid-template-columns: 1fr; }
    .admin-content { padding: 20px; }
}

/* Tables */
.table-wrap {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-card);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.data-table thead {
    background: rgba(41, 194, 184, 0.05);
}

.data-table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.data-table td {
    padding: 12px 16px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-light);
}

.data-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Pulse Animation */
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.9); }
}

/* ══════════════════════════════════════
   LOADING SCREEN
   ══════════════════════════════════════ */

.loading-screen {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 99999;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loading-screen.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Background video/image */
.loading-bg-media {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
}

.loading-bg-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(6, 6, 9, 0.55);
    z-index: 1;
}

.loading-screen .loading-scanline,
.loading-screen .loading-particles,
.loading-screen .loading-icon,
.loading-screen .loading-title,
.loading-screen .loading-subtitle,
.loading-screen .loading-bar-track {
    z-index: 2;
    position: relative;
}

/* Ambient glow blobs */
.loading-screen::before,
.loading-screen::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0;
    animation: loadGlowIn 1.5s ease forwards;
}

.loading-screen::before {
    width: 500px; height: 500px;
    background: rgba(41, 194, 184, 0.07);
    top: 20%; left: 25%;
    animation-delay: 0.3s;
}

.loading-screen::after {
    width: 400px; height: 400px;
    background: rgba(91, 141, 239, 0.05);
    bottom: 15%; right: 20%;
    animation-delay: 0.6s;
}

@keyframes loadGlowIn {
    from { opacity: 0; transform: scale(0.5); }
    to   { opacity: 1; transform: scale(1); }
}

.loading-icon {
    font-size: 4rem;
    margin-bottom: 24px;
    opacity: 0;
    animation: loadIconPop 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes loadIconPop {
    0%   { opacity: 0; transform: scale(0.3) rotate(-20deg); }
    100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

.loading-title {
    font-size: 2.4rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--gold) 0%, #fffde0 50%, var(--gold) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: loadTitleIn 0.7s ease 0.3s both, shimmer 2.5s linear 1s infinite;
}

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

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.loading-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 48px;
    animation: loadTitleIn 0.7s ease 0.5s both;
}

.loading-bar-track {
    width: 280px;
    height: 3px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    overflow: hidden;
    animation: loadTitleIn 0.5s ease 0.7s both;
}

.loading-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--gold), #fffde0, var(--gold));
    background-size: 200% 100%;
    border-radius: 3px;
    box-shadow: 0 0 16px var(--gold-glow);
    animation: loadBarFill 2.2s cubic-bezier(0.4, 0, 0.2, 1) 0.9s forwards,
               loadBarShimmer 1.5s linear 0.9s infinite;
}

@keyframes loadBarFill {
    0%   { width: 0%; }
    30%  { width: 45%; }
    60%  { width: 70%; }
    85%  { width: 90%; }
    100% { width: 100%; }
}

@keyframes loadBarShimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.loading-scanline {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 200px;
    background: linear-gradient(180deg, transparent 0%, rgba(41, 194, 184, 0.02) 50%, transparent 100%);
    animation: scanlineMove 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes scanlineMove {
    0%   { top: -200px; }
    100% { top: calc(100% + 200px); }
}

.loading-particles {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
    overflow: hidden;
}

.loading-particle {
    position: absolute;
    width: 2px; height: 2px;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 4s ease-in-out infinite;
}

.loading-particle:nth-child(1) { left: 10%; top: 80%; animation-delay: 0s; animation-duration: 3.5s; }
.loading-particle:nth-child(2) { left: 25%; top: 85%; animation-delay: 0.5s; animation-duration: 4s; }
.loading-particle:nth-child(3) { left: 40%; top: 90%; animation-delay: 1s; animation-duration: 3.8s; }
.loading-particle:nth-child(4) { left: 55%; top: 82%; animation-delay: 0.3s; animation-duration: 4.2s; }
.loading-particle:nth-child(5) { left: 70%; top: 88%; animation-delay: 0.8s; animation-duration: 3.6s; }
.loading-particle:nth-child(6) { left: 85%; top: 78%; animation-delay: 1.2s; animation-duration: 4.5s; }
.loading-particle:nth-child(7) { left: 15%; top: 75%; animation-delay: 0.7s; animation-duration: 3.3s; }
.loading-particle:nth-child(8) { left: 60%; top: 92%; animation-delay: 1.5s; animation-duration: 3.9s; }

@keyframes particleFloat {
    0%   { opacity: 0; transform: translateY(0) scale(1); }
    20%  { opacity: 0.6; }
    100% { opacity: 0; transform: translateY(-60vh) scale(0); }
}

@media (max-width: 768px) {
    .loading-title { font-size: 1.6rem; }
    .loading-icon { font-size: 3rem; }
    .loading-bar-track { width: 200px; }
}
