/* ============================================================
   XPD — Xeno Police Department
   Dark + Gold theme
   ============================================================ */

:root {
    --bg:           #0a0a10;
    --bg-surface:   #111119;
    --bg-card:      #1a1a26;
    --bg-hover:     #202032;
    --gold:         #c9a227;
    --gold-light:   #f0c040;
    --gold-dark:    #8b6914;
    --gold-glow:    rgba(201,162,39,.18);
    --text:         #e8e8f2;
    --text-muted:   #8888a8;
    --text-dim:     #5a5a78;
    --border:       #252535;
    --border-gold:  rgba(201,162,39,.25);
    --success:      #2ea043;
    --danger:       #d73a49;
    --warning:      #f0c040;
    --info:         #58a6ff;
    --radius:       8px;
    --radius-lg:    14px;
    --shadow:       0 4px 24px rgba(0,0,0,.5);
    --transition:   .18s ease;
    --font:         'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }
img { max-width: 100%; }
code { font-family: 'Cascadia Code', 'Consolas', monospace; background: var(--bg-card); padding: 2px 6px; border-radius: 4px; font-size: .85em; }

/* ── Layout ── */
.main-content { flex: 1; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 4rem 0; }
.section-dark { background: var(--bg-surface); }
.section-cta { background: linear-gradient(135deg, var(--bg-surface) 0%, #1a1520 100%); border-top: 1px solid var(--border-gold); }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 2rem; }
.mt-4 { margin-top: 3rem; }
.ml-2 { margin-left: .75rem; }
.ml-auto { margin-left: auto; }

/* ── Typography ── */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.25; }
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; }
p + p { margin-top: .75rem; }

/* ── Navbar ── */
.navbar {
    background: rgba(10,10,16,.95);
    border-bottom: 1px solid var(--border-gold);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.25rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    height: 64px;
}
.nav-brand { display: flex; align-items: center; gap: .5rem; text-decoration: none; flex-shrink: 0; }
.nav-logo  { height: 36px; width: 36px; object-fit: contain; }
.nav-title { font-weight: 800; font-size: 1rem; color: var(--gold); letter-spacing: .04em; white-space: nowrap; }
.nav-links {
    display: flex;
    align-items: center;
    gap: .1rem;
    margin-left: auto;
    flex-wrap: nowrap;
}
.nav-link {
    color: var(--text-muted);
    padding: .4rem .55rem;
    border-radius: var(--radius);
    font-size: .85rem;
    transition: all var(--transition);
    white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--gold); background: var(--gold-glow); }
/* Dropdown triggers — button reset so no href="#" dead-scroll */
.nav-link-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: inherit;
    text-align: left;
    text-decoration: none;
}
.nav-cta { color: var(--gold); border: 1px solid var(--border-gold); }
.nav-cta:hover { background: var(--gold); color: #000; }
.nav-admin { color: var(--warning); }
.nav-avatar { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--border-gold); flex-shrink: 0; }
.nav-username { font-size: .85rem; color: var(--text-muted); }

/* ── Language dropdown ── */
.nav-lang-menu { position: relative; }
.nav-lang-trigger {
    display: flex; align-items: center; gap: .4rem;
    padding: .3rem .55rem; border-radius: 8px;
    border: 1px solid var(--border); background: transparent; cursor: pointer;
    transition: border-color .15s, background .15s;
}
.nav-lang-trigger:hover,
.nav-lang-trigger[aria-expanded="true"] { border-color: var(--border-gold); background: var(--gold-glow); }
.nav-lang-trigger[aria-expanded="true"] .nav-chevron { transform: rotate(180deg); }
.nav-lang-flag-img { height: 18px; width: auto; border-radius: 3px; display: block; }
.nav-lang-code { font-size: .72rem; font-weight: 700; color: var(--text-muted); }
.nav-lang-dropdown { min-width: 150px; right: 0; left: auto; }
.nav-lang-item-active { background: var(--gold-glow); }

/* ── User dropdown menu ── */
.nav-user-menu { position: relative; }

.nav-user-trigger {
    display: flex;
    align-items: center;
    gap: .45rem;
    background: none;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: .3rem .55rem;
    cursor: pointer;
    color: var(--text);
    transition: border-color .15s, background .15s;
}
.nav-user-trigger:hover,
.nav-user-trigger[aria-expanded="true"] {
    border-color: var(--border-gold);
    background: var(--gold-glow);
}
.nav-chevron {
    opacity: .5;
    transition: transform .2s;
    flex-shrink: 0;
}
.nav-user-trigger[aria-expanded="true"] .nav-chevron { transform: rotate(180deg); }

.nav-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,.5);
    z-index: 1000;
    overflow: hidden;
    animation: dropIn .15s ease;
}
.nav-dropdown.open { display: block; }

@keyframes dropIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.nav-dropdown-header {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .85rem 1rem;
}
.dropdown-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--border-gold);
    flex-shrink: 0;
}
.dropdown-name { font-weight: 600; font-size: .9rem; margin: 0; }
.dropdown-role { font-size: .78rem; margin: .1rem 0 0; }

.nav-dropdown-divider { height: 1px; background: var(--border); margin: .25rem 0; }

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .55rem 1rem;
    color: var(--text);
    text-decoration: none;
    font-size: .88rem;
    transition: background .12s;
}
.nav-dropdown-item:hover { background: var(--bg-hover); }
.nav-dropdown-item span { width: 18px; text-align: center; }
.nav-dropdown-danger { color: var(--danger); }
.nav-dropdown-danger:hover { background: rgba(218,54,51,.12); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: .5rem; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--gold); border-radius: 2px; transition: var(--transition); }

/* ── Nav dropdown menus ── */
.nav-has-dropdown { position: relative; }
.nav-has-dropdown > .nav-link {
    display: flex;
    align-items: center;
    gap: .3rem;
}
.nav-has-dropdown > .nav-link::after {
    content: '';
    display: inline-block;
    width: 0; height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    opacity: .5;
    transition: transform .2s;
}
.nav-has-dropdown.open > .nav-link::after { transform: rotate(180deg); opacity: 1; }
.nav-submenu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 210px;
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,.5);
    z-index: 1000;
    overflow: hidden;
    animation: dropIn .15s ease;
    padding: .3rem 0;
}
.nav-has-dropdown.open .nav-submenu { display: block; }
.nav-submenu a {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .6rem 1rem;
    color: var(--text-muted);
    font-size: .88rem;
    transition: background .12s, color .12s;
    white-space: nowrap;
}
.nav-submenu a:hover, .nav-submenu a:focus { background: var(--bg-hover); color: var(--gold); outline: none; }
.nav-submenu a .nav-sub-icon { font-size: 1rem; width: 20px; text-align: center; flex-shrink: 0; }
.nav-submenu a .nav-sub-text { display: flex; flex-direction: column; }
.nav-submenu a .nav-sub-label { font-size: .88rem; font-weight: 500; color: var(--text); line-height: 1.2; }
.nav-submenu a:hover .nav-sub-label, .nav-submenu a:focus .nav-sub-label { color: var(--gold); }
.nav-submenu a .nav-sub-desc { font-size: .72rem; opacity: .55; line-height: 1.2; margin-top:.1rem; }
.nav-submenu-divider { height: 1px; background: var(--border); margin: .25rem 0; }

/* ── Language Switcher (footer dropdown) ── */
.footer-lang {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: .4rem;
}
.footer-lang-label {
    font-size: .85rem;
    opacity: .6;
    line-height: 1;
    pointer-events: none;
}
.lang-select {
    background: var(--bg-secondary);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: .3rem .55rem;
    font-size: .82rem;
    cursor: pointer;
    appearance: auto;
    transition: border-color var(--transition);
}
.lang-select:hover { border-color: var(--border-gold); }
.lang-select:focus { outline: 2px solid var(--gold); outline-offset: 1px; }

/* ── Gallery upload panel ── */
.gallery-upload-panel {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}
.gallery-upload-toggle {
    padding: .75rem 1.25rem;
    cursor: pointer;
    font-weight: 600;
    font-size: .95rem;
    list-style: none;
    display: flex;
    align-items: center;
    gap: .5rem;
    user-select: none;
    color: var(--gold);
}
.gallery-upload-toggle::-webkit-details-marker { display: none; }
.gallery-upload-toggle::after {
    content: '▸';
    margin-left: auto;
    transition: transform .2s;
}
.gallery-upload-panel[open] .gallery-upload-toggle::after { transform: rotate(90deg); }
.gallery-upload-form {
    padding: 1.25rem;
    border-top: 1px solid var(--border);
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .55rem 1.25rem;
    border-radius: var(--radius);
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
    font-family: var(--font);
}
.btn-gold     { background: var(--gold); color: #000; border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); color: #000; }
.btn-outline  { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-glow); }
.btn-success  { background: var(--success); color: #fff; border-color: var(--success); }
.btn-success:hover { filter: brightness(1.15); color: #fff; }
.btn-danger   { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger:hover { filter: brightness(1.15); color: #fff; }
.btn-warning  { background: var(--warning); color: #000; border-color: var(--warning); }
.btn-discord  { background: #5865F2; color: #fff; border-color: #5865F2; font-size: 1rem; padding: .75rem 1.75rem; }
.btn-discord:hover { background: #4752c4; color: #fff; }
.btn-danger-outline { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn-danger-outline:hover { background: var(--danger); color: #fff; }
.btn-sm  { padding: .35rem .85rem; font-size: .82rem; }
.btn-xs  { padding: .2rem .6rem; font-size: .75rem; }
.btn-lg  { padding: .8rem 2rem; font-size: 1rem; }

/* ── Alerts ── */
.alert {
    padding: .85rem 1.25rem;
    border-radius: var(--radius);
    border: 1px solid;
    margin-bottom: 1.25rem;
    font-size: .9rem;
}
.alert-success { background: rgba(46,160,67,.12); border-color: rgba(46,160,67,.4); color: #7ee2a8; }
.alert-danger  { background: rgba(215,58,73,.12); border-color: rgba(215,58,73,.4); color: #f47d86; }
.alert-warning { background: rgba(240,192,64,.12); border-color: rgba(240,192,64,.4); color: var(--warning); }
.alert-info    { background: rgba(88,166,255,.1);  border-color: rgba(88,166,255,.3); color: #8bc8ff; }

/* ── Hero ── */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(ellipse at 50% 30%, #1a1420 0%, var(--bg) 70%);
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a227' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 60%, var(--bg) 100%); }
.hero-content { position: relative; z-index: 1; padding: 2rem; }
.hero-badge {
    width: 140px;
    height: 140px;
    object-fit: contain;
    filter: drop-shadow(0 0 40px rgba(201,162,39,.4));
    margin-bottom: 1.5rem;
    animation: badge-float 4s ease-in-out infinite;
}
@keyframes badge-float {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}
.hero-title { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 900; color: var(--gold); letter-spacing: -.02em; text-shadow: 0 0 60px rgba(201,162,39,.4); }
.hero-tagline { font-size: 1.2rem; color: var(--text-muted); margin: .75rem 0 2rem; letter-spacing: .08em; text-transform: uppercase; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Stats Bar ── */
.stats-bar { background: var(--bg-surface); border-top: 1px solid var(--border-gold); border-bottom: 1px solid var(--border); padding: 2rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; text-align: center; }
.stat-num { display: block; font-size: 2.5rem; font-weight: 900; color: var(--gold); line-height: 1; }
.stat-label { display: block; color: var(--text-muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin-top: .25rem; }

/* ── Section Headers ── */
.section-title { font-size: 1.75rem; margin-bottom: 1.5rem; position: relative; }
.section-title::after { content: ''; display: block; width: 50px; height: 3px; background: var(--gold); margin-top: .5rem; border-radius: 2px; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.section-header .section-title { margin-bottom: 0; }
.section-sub { color: var(--text-muted); margin-bottom: 1.5rem; }

/* ── About Grid ── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.about-text p { color: var(--text-muted); line-height: 1.8; font-size: 1.05rem; }
.about-features { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.feature-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem 1.5rem; transition: var(--transition); }
.feature-card:hover { border-color: var(--border-gold); background: var(--bg-hover); }
.feature-icon { font-size: 1.5rem; }
.feature-card h3 { margin: .5rem 0 .25rem; }
.feature-card p { color: var(--text-muted); font-size: .9rem; }

/* ── Events ── */
.events-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 1.25rem; }
.event-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    position: relative;
    transition: var(--transition);
}
.event-card:hover { border-color: var(--border-gold); transform: translateY(-2px); }
.event-badge { display: inline-block; padding: .2rem .65rem; border-radius: 99px; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; margin-bottom: .75rem; }
.event-badge-public  { background: rgba(88,166,255,.15); color: #58a6ff; border: 1px solid rgba(88,166,255,.3); }
.event-badge-officer { background: rgba(201,162,39,.15); color: var(--gold); border: 1px solid var(--border-gold); }
.event-title { font-size: 1.05rem; margin-bottom: .5rem; }
.event-time  { color: var(--gold); font-size: .85rem; }
.event-loc   { color: var(--text-muted); font-size: .82rem; margin-top: .25rem; }
.event-desc  { color: var(--text-muted); font-size: .85rem; margin-top: .5rem; }

.events-list { display: flex; flex-direction: column; gap: .75rem; }
.event-list-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: var(--transition);
}
.event-list-item:hover { border-color: var(--border-gold); background: var(--bg-hover); }
.event-date-block { text-align: center; min-width: 48px; background: var(--gold-glow); border-radius: var(--radius); padding: .4rem; border: 1px solid var(--border-gold); }
.event-month { display: block; font-size: .65rem; font-weight: 700; text-transform: uppercase; color: var(--gold); }
.event-day   { display: block; font-size: 1.5rem; font-weight: 900; color: var(--text); line-height: 1; }
.event-details { flex: 1; }
.event-meta { color: var(--text-muted); font-size: .82rem; margin-top: .15rem; }
.event-rsvp { display: flex; flex-direction: column; align-items: flex-end; gap: .5rem; }
.rsvp-buttons { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: flex-end; }
.rsvp-row { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin-top: .75rem; }

/* ── Calendar ── */
.calendar-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.calendar-month-title { font-size: 1.35rem; font-weight: 700; color: var(--gold); }
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.cal-header-cell { background: var(--bg-surface); color: var(--text-muted); font-size: .75rem; font-weight: 700; text-align: center; padding: .5rem; text-transform: uppercase; letter-spacing: .05em; }
.cal-cell { background: var(--bg-card); min-height: 88px; padding: .4rem; display: flex; flex-direction: column; gap: 2px; cursor: pointer; transition: background var(--transition); }
.cal-cell:hover { background: var(--bg-hover); }
.cal-empty { background: var(--bg); cursor: default; }
.cal-today .cal-day-num { background: var(--gold); color: #000; border-radius: 50%; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.cal-day-num { font-size: .82rem; color: var(--text-muted); font-weight: 600; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; }
.cal-event-dot { font-size: .68rem; background: var(--gold-glow); border: 1px solid var(--border-gold); border-radius: 3px; padding: 1px 4px; color: var(--gold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.cal-event-dot:hover { background: rgba(201,162,39,.3); }
.cal-event-officer { background: rgba(201,162,39,.2); }
.cal-event-public  { background: rgba(88,166,255,.1); border-color: rgba(88,166,255,.3); color: #58a6ff; }
.cal-has-events { border-left: 2px solid var(--gold-dark); }

/* Event detail panel */
.event-detail-panel {
    margin-top: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    position: relative;
}
.panel-close { position: absolute; top: .75rem; right: .75rem; background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 1rem; }
.event-detail h2 { color: var(--gold); margin-bottom: .5rem; }
.event-actions { display: flex; gap: .5rem; flex-wrap: wrap; }

/* Event detail modal (public) */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.75); z-index: 2000; display: flex; align-items: center; justify-content: center; }
.modal-box { background: var(--bg-card); border: 1px solid var(--border-gold); border-radius: var(--radius-lg); padding: 2rem; max-width: 560px; width: 90%; position: relative; }
.modal-close { position: absolute; top: 1rem; right: 1rem; background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 1.2rem; }

/* ── Mugshots ── */
.mugshots-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 1rem; }
.mugshot-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: var(--transition); }
.mugshot-card:hover { border-color: var(--border-gold); transform: translateY(-2px); }
.mugshot-img { width: 100%; aspect-ratio: 3/4; object-fit: cover; background: var(--bg); }
.mugshot-placeholder { width: 100%; aspect-ratio: 3/4; display: flex; align-items: center; justify-content: center; background: var(--bg-surface); color: var(--text-dim); font-size: .8rem; }
.mugshot-info { padding: .75rem; }
.mugshot-case { font-size: .7rem; color: var(--gold); font-weight: 700; letter-spacing: .05em; }
.mugshot-name { font-size: .95rem; font-weight: 700; margin: .15rem 0; }
.mugshot-vrchat { font-size: .75rem; color: var(--text-muted); }
.mugshot-charges { font-size: .78rem; color: var(--text-muted); margin-top: .25rem; }
.mugshot-footer { display: flex; align-items: center; justify-content: space-between; margin-top: .5rem; font-size: .72rem; color: var(--text-dim); }
.mugshot-officer { color: var(--text-muted); }

/* ── Auth Page ── */
.auth-page { display: flex; align-items: center; justify-content: center; min-height: calc(100vh - 64px); padding: 2rem; }
.auth-card { background: var(--bg-card); border: 1px solid var(--border-gold); border-radius: var(--radius-lg); padding: 2.5rem; max-width: 440px; width: 100%; text-align: center; box-shadow: var(--shadow); }
.auth-logo  { width: 80px; height: 80px; object-fit: contain; margin-bottom: 1rem; }
.auth-title { font-size: 1.5rem; color: var(--gold); margin-bottom: .5rem; }
.auth-desc  { color: var(--text-muted); font-size: .9rem; margin-bottom: 1.5rem; }
.auth-note  { font-size: .8rem; color: var(--text-muted); margin-top: 1rem; }

/* ── Forms ── */
.form-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.75rem 2rem; margin-bottom: 1.5rem; }
.form-card h2 { margin-bottom: 1.25rem; font-size: 1.15rem; color: var(--gold); }
.form-group { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; }
.form-group label { font-size: .85rem; font-weight: 600; color: var(--text-muted); }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 1rem; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: 1.5rem; }
.form-card-full { grid-column: 1 / -1; }
.form-actions { display: flex; gap: .75rem; align-items: center; margin-top: 1.25rem; }
.form-group-check { justify-content: center; }

input[type="text"],
input[type="email"],
input[type="url"],
input[type="number"],
input[type="search"],
input[type="date"],
input[type="datetime-local"],
input[type="color"],
input[type="file"],
textarea,
select {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    color: var(--text);
    padding: .55rem .85rem;
    border-radius: var(--radius);
    font-size: .9rem;
    font-family: var(--font);
    width: 100%;
    transition: border-color var(--transition);
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--gold-dark);
    box-shadow: 0 0 0 3px var(--gold-glow);
}
input[readonly] { opacity: .7; cursor: not-allowed; }
textarea { resize: vertical; min-height: 90px; }
select { cursor: pointer; }
.select-sm { width: auto; padding: .25rem .5rem; font-size: .8rem; }
.req { color: var(--danger); }
small { color: var(--text-muted); font-size: .78rem; }
.checkbox-label { display: flex; align-items: center; gap: .5rem; cursor: pointer; font-size: .9rem; font-weight: 400; }
input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--gold); }

.search-form { display: flex; gap: .5rem; }
.search-form input { max-width: 280px; }

/* ── Dashboard Layout ── */
.dash-layout { display: flex; min-height: calc(100vh - 64px); }
.dash-main { flex: 1; padding: 2rem; max-width: calc(100% - 240px); }

/* ── Sidebar ── */
.sidebar {
    width: 240px;
    background: var(--bg-surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
    position: sticky;
    top: 64px;
    height: calc(100vh - 64px);
    overflow-y: auto;
}
.sidebar-nav { flex: 1; padding: 0 .75rem; }
.sidebar-link {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .6rem .85rem;
    border-radius: var(--radius);
    color: var(--text-muted);
    font-size: .88rem;
    font-weight: 500;
    transition: var(--transition);
    margin-bottom: 2px;
}
.sidebar-link:hover, .sidebar-link.active { color: var(--gold); background: var(--gold-glow); }
.sidebar-icon { font-size: 1rem; width: 20px; text-align: center; }
.sidebar-divider { border: none; border-top: 1px solid var(--border); margin: .75rem 0; }
.sidebar-heading { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--text-dim); padding: 0 .85rem .25rem; }
.sidebar-user { padding: 1rem; border-top: 1px solid var(--border); display: flex; align-items: center; gap: .6rem; }
.sidebar-avatar { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--border-gold); }
.sidebar-username { font-size: .82rem; font-weight: 600; }
.sidebar-role { font-size: .72rem; }

/* ── Sidebar Group (collapsible) ── */
.sidebar-group { list-style: none; }
.sidebar-group > summary { list-style: none; }
.sidebar-group > summary::-webkit-details-marker { display: none; }
.sidebar-group-toggle {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .6rem .85rem;
    border-radius: var(--radius);
    color: var(--text-muted);
    font-size: .88rem;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
    margin-bottom: 2px;
    transition: var(--transition);
}
.sidebar-group-toggle:hover { color: var(--gold); background: var(--gold-glow); }
.sidebar-group[open] .sidebar-group-toggle { color: var(--gold); }
.sidebar-group-label { flex: 1; }
.sidebar-group-caret { font-size: .65rem; opacity: .6; transition: transform .2s ease; }
.sidebar-group[open] .sidebar-group-caret { transform: rotate(180deg); }
.sidebar-group-links { padding-left: .6rem; }

/* ── Dashboard Cards ── */
.dash-hero { margin-bottom: 1.5rem; }
.dash-welcome { display: flex; align-items: center; gap: 1rem; }
.dash-avatar { width: 56px; height: 56px; border-radius: 50%; border: 3px solid var(--gold-dark); }
.dash-welcome h1 { font-size: 1.5rem; }
.role-badge { display: inline-block; padding: .15rem .65rem; border-radius: 20px; font-size: .75rem; font-weight: 700; letter-spacing: .02em; border: 1px solid currentColor; background: transparent; margin-right: .35rem; }
.dash-rank-label { font-size: .78rem; font-weight: 700; letter-spacing: .03em; }
.role-name { color: var(--text-muted); font-size: .9rem; }
.dash-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.dash-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; }
.dash-card-alert { border-color: var(--gold-dark); background: linear-gradient(135deg, var(--bg-card) 0%, rgba(201,162,39,.05) 100%); }
.dash-card h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin-bottom: .35rem; }
.card-val { font-size: 1.25rem; font-weight: 700; }
.dash-section { margin-top: 2rem; }
.dash-section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.dash-section-header h2 { font-size: 1.15rem; }

/* ── Profile ── */
.profile-info { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.profile-avatar { width: 60px; height: 60px; border-radius: 50%; border: 3px solid var(--border-gold); }

/* ── Admin Tables (Spreadsheet) ── */
.spreadsheet-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.spreadsheet { width: 100%; border-collapse: collapse; font-size: .85rem; }
.spreadsheet th { background: var(--bg-surface); color: var(--text-muted); padding: .6rem 1rem; text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--border); white-space: nowrap; }
.spreadsheet td { padding: .65rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.spreadsheet tbody tr:last-child td { border-bottom: none; }
.spreadsheet tbody tr:hover { background: var(--bg-hover); }
.row-inactive { opacity: .5; }
.table-avatar { width: 28px; height: 28px; border-radius: 50%; vertical-align: middle; }
.action-btns { display: flex; gap: .35rem; align-items: center; flex-wrap: wrap; }
.results-count { color: var(--text-muted); font-size: .85rem; margin-bottom: 1rem; }

/* Spreadsheet click-to-expand */
.app-row { cursor: pointer; }
.detail-row > td { padding: 0; }
.app-detail { background: var(--bg-surface); border-top: 2px solid var(--gold-dark); padding: 1.25rem 1.5rem; }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 1.5rem; margin-bottom: 1rem; }
.detail-grid h4 { color: var(--gold); font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .35rem; }
.detail-grid p { color: var(--text-muted); font-size: .88rem; }
.reviewer-section { border-top: 1px solid var(--border); padding-top: .75rem; }
.reviewer-section h4 { color: var(--gold); font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .35rem; }
.notes-field { width: 100%; font-size: .85rem; margin-bottom: .5rem; }
.detail-actions { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }

/* ── Status Pills ── */
.status-pill { display: inline-block; padding: .2rem .65rem; border-radius: 99px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.status-pending  { background: rgba(240,192,64,.15); color: var(--warning); }
.status-accepted { background: rgba(46,160,67,.15); color: #7ee2a8; }
.status-denied   { background: rgba(215,58,73,.15); color: #f47d86; }
.status-waitlist { background: rgba(88,166,255,.12); color: #8bc8ff; }

/* ── Tab Bar ── */
.tab-bar { display: flex; gap: .25rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--border); }
.tab { display: inline-flex; align-items: center; gap: .35rem; padding: .5rem 1rem; font-size: .88rem; color: var(--text-muted); border-bottom: 2px solid transparent; margin-bottom: -1px; transition: var(--transition); }
.tab:hover { color: var(--text); }
.tab.active { color: var(--gold); border-bottom-color: var(--gold); }
.tab-badge { background: var(--bg-surface); color: var(--text-muted); border-radius: 99px; padding: .1rem .45rem; font-size: .7rem; font-weight: 700; }

/* ── Permission Table ── */
.perm-table { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: .4rem; }
.perm-row { display: flex; align-items: center; gap: .5rem; padding: .4rem .6rem; border-radius: var(--radius); background: var(--bg-surface); border: 1px solid var(--border); font-size: .85rem; cursor: pointer; }
.perm-row:hover { border-color: var(--border-gold); }
.perm-key { margin-left: auto; font-size: .7rem; color: var(--text-dim); }
.perm-pills { display: flex; gap: .25rem; flex-wrap: wrap; }
.perm-pill { background: var(--gold-glow); border: 1px solid var(--border-gold); border-radius: 3px; padding: 1px 6px; font-size: .65rem; color: var(--gold); }

/* ── Pagination ── */
.pagination { display: flex; gap: .35rem; margin-top: 1.5rem; flex-wrap: wrap; }
.page-btn { padding: .35rem .75rem; border-radius: var(--radius); background: var(--bg-card); border: 1px solid var(--border); color: var(--text-muted); font-size: .85rem; transition: var(--transition); }
.page-btn:hover, .page-btn.active { background: var(--gold); color: #000; border-color: var(--gold); }

/* ── View Toggle ── */
.view-toggle { display: flex; gap: .35rem; }
.view-toggle .btn.active { background: var(--gold); color: #000; border-color: var(--gold); }

/* ── Page Header ── */
.page-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.page-title { font-size: 1.5rem; color: var(--gold); }
.page-sub { color: var(--text-muted); }
.header-actions { display: flex; gap: .5rem; }

/* ── Legal Page ── */
.legal-page { max-width: 800px; }
.legal-page h1 { color: var(--gold); margin-bottom: .5rem; }
.legal-page h2 { color: var(--text); font-size: 1.05rem; margin-top: 2rem; margin-bottom: .5rem; border-bottom: 1px solid var(--border); padding-bottom: .35rem; }
.legal-page p, .legal-page li { color: var(--text-muted); line-height: 1.8; margin-bottom: .5rem; }
.legal-page ul { padding-left: 1.25rem; }

/* ── Footer ── */
.site-footer { background: var(--bg-surface); border-top: 1px solid var(--border); margin-top: auto; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 2.5rem 1.5rem; display: flex; gap: 3rem; align-items: flex-start; }
.footer-brand { min-width: 180px; }
.footer-logo { height: 48px; object-fit: contain; margin-bottom: .75rem; }
.footer-tagline { color: var(--text-muted); font-size: .85rem; }
.footer-links { display: flex; gap: 3rem; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: .4rem; }
.footer-col h4 { color: var(--text); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .25rem; }
.footer-col a { color: var(--text-muted); font-size: .85rem; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid var(--border); padding: 1rem 1.5rem; max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.footer-bottom p { color: var(--text-dim); font-size: .8rem; }

/* ── Misc ── */
.badge { display: inline-block; padding: .2rem .6rem; border-radius: 99px; font-size: .75rem; font-weight: 700; }
.badge-success { background: rgba(46,160,67,.2); color: #7ee2a8; }
.badge-danger  { background: rgba(215,58,73,.2); color: #f47d86; }

/* ── Responsive ── */
@media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; gap: 2rem; }
    .stats-grid { grid-template-columns: 1fr; gap: 1rem; }
    .dash-layout { flex-direction: column; }
    .sidebar { width: 100%; height: auto; position: relative; top: 0; border-right: none; border-bottom: 1px solid var(--border); flex-direction: row; overflow-x: auto; }
    .sidebar-nav { display: flex; flex-wrap: wrap; padding: .5rem; }
    .sidebar-user { border-top: none; border-left: 1px solid var(--border); }
    .sidebar-heading, .sidebar-divider { display: none; }
    .sidebar-group-links { padding-left: 0; }
    .sidebar-group[open] .sidebar-group-links { display: flex; flex-wrap: wrap; }
    .dash-main { max-width: 100%; padding: 1rem; }
}

@media (max-width: 640px) {
    .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg-surface); border-bottom: 1px solid var(--border-gold); padding: 1rem; gap: .25rem; z-index: 999; }
    .nav-links.open { display: flex; }
    .nav-has-dropdown { width: 100%; }
    .nav-has-dropdown > .nav-link { width: 100%; }
    .nav-submenu { position: static; border: none; border-radius: 0; box-shadow: none; background: var(--bg-secondary); padding: .25rem 0; display: none; animation: none; margin: .15rem 0 .25rem .5rem; border-left: 2px solid var(--border-gold); border-radius: 0 6px 6px 0; min-width: unset; }
    .nav-has-dropdown.open .nav-submenu { display: block; }
    .nav-submenu a { padding: .5rem .75rem; }
    .nav-toggle { display: flex; }
    .hero-badge { width: 90px; height: 90px; }
    .calendar-grid { font-size: .65rem; }
    .cal-cell { min-height: 60px; }
    .event-list-item { flex-wrap: wrap; }
    .form-row { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; gap: 1.5rem; }
    .footer-links { gap: 1.5rem; }
    .mugshots-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Command Staff Page ── */
.page-header-centered { text-align: center; margin-bottom: 3rem; }
.page-title-gold { font-size: 2.5rem; color: var(--gold); font-weight: 900; letter-spacing: -.02em; }
.page-sub-lg { color: var(--text-muted); font-size: 1.1rem; margin-top: .5rem; }
.gold-divider { width: 80px; height: 3px; background: linear-gradient(90deg, transparent, var(--gold), transparent); margin: 1.25rem auto 0; border-radius: 2px; }

.command-tier { margin-bottom: 3rem; }
.tier-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.tier-title { font-size: 1.25rem; font-weight: 800; white-space: nowrap; }
.tier-line { flex: 1; height: 1px; background: linear-gradient(90deg, var(--border-gold), transparent); }

.command-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; }

.command-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.command-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--gold);
    opacity: 0;
    transition: opacity var(--transition);
}
.command-card:hover { border-color: var(--border-gold); background: var(--bg-hover); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.command-card:hover::before { opacity: 1; }

.command-avatar-wrap { position: relative; flex-shrink: 0; }
.command-avatar { width: 64px; height: 64px; border-radius: 50%; border: 3px solid var(--border); object-fit: cover; display: block; }
.command-rank-dot { position: absolute; bottom: 2px; right: 2px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--bg-card); }

.command-info { flex: 1; min-width: 0; }
.command-name { font-size: 1rem; font-weight: 700; margin-bottom: .35rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.command-vrchat { font-size: .8rem; color: var(--text-muted); margin-top: .25rem; display: flex; align-items: center; gap: .3rem; }
.vrchat-icon { color: var(--gold); font-size: .7rem; }
.command-since { font-size: .72rem; color: var(--text-dim); margin-top: .2rem; }

.command-footer { text-align: center; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.command-footer p { margin-bottom: .75rem; }

@media (max-width: 640px) {
    .command-grid { grid-template-columns: 1fr; }
    .page-title-gold { font-size: 1.75rem; }
}

/* ── Officers roster ─────────────────────────────────── */
.roster-count { font-size: .9rem; color: var(--text-muted); margin-top: .75rem; }
.tier-count { font-size: .8rem; color: var(--text-dim); background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; padding: .1rem .6rem; white-space: nowrap; flex-shrink: 0; }

.roster-tier { margin-bottom: 2.5rem; }

.roster-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: .85rem;
}

.roster-card {
    text-decoration: none;
    color: inherit;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem .85rem;
    display: flex;
    align-items: center;
    gap: .75rem;
    transition: border-color var(--transition), background var(--transition), transform var(--transition);
}
.roster-card:hover { border-color: var(--border-gold); background: var(--bg-hover); transform: translateY(-1px); }

.roster-avatar { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; object-fit: cover; }
.roster-info { min-width: 0; }
.roster-name { font-size: .875rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); margin: 0; }
.roster-discord { font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: .15rem 0 0; }

@media (max-width: 640px) {
    .roster-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}

/* ── Sub-role badges ─────────────────────────────────── */
.subrole-list { display: flex; flex-wrap: wrap; gap: .25rem; align-items: center; }

.subrole-badge {
    display: inline-block;
    padding: .1rem .45rem;
    border-radius: 4px;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .04em;
    color: #fff;
    white-space: nowrap;
    border: none;
    cursor: default;
}

.subrole-removable {
    cursor: pointer;
    opacity: .9;
    transition: opacity .15s, filter .15s;
}
.subrole-removable:hover { opacity: 1; filter: brightness(1.15); }

.select-tiny { font-size: .72rem; padding: .1rem .25rem; height: auto; }

.subrole-assign-form { display: inline-flex; align-items: center; gap: .25rem; }

/* ── LOA card state ──────────────────────────────────── */
.card-loa-active { border-color: rgba(240,192,64,.5); background: rgba(240,192,64,.04); }

/* ── LOA roster (dashboard) ──────────────────────────── */
.loa-count-badge {
    display: inline-block;
    background: rgba(240,192,64,.2);
    color: var(--warning);
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    padding: .05rem .5rem;
    margin-left: .35rem;
    vertical-align: middle;
}

.loa-roster { display: flex; flex-direction: column; gap: .6rem; }

.loa-card {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: .75rem 1rem;
}
.loa-card.loa-overdue { border-color: rgba(220,50,50,.4); background: rgba(220,50,50,.04); }

.loa-avatar { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; object-fit: cover; }

.loa-info { flex: 1; min-width: 0; }
.loa-name { display: block; font-weight: 700; margin-bottom: .25rem; }
.loa-reason { margin: .25rem 0 .15rem; font-size: .88rem; }
.loa-dates { font-size: .8rem; margin: 0; }

/* LOA profile info table */
.loa-info-table { border-collapse: collapse; margin: .5rem 0; font-size: .88rem; width: 100%; }
.loa-info-table th { text-align: left; color: var(--text-muted); font-weight: 600; padding: .2rem .75rem .2rem 0; white-space: nowrap; }
.loa-info-table td { padding: .2rem 0; }
.loa-current { margin-bottom: .75rem; }

/* ── Admin sidebar ───────────────────────────────────── */
.sidebar-admin-header {
    padding: .6rem 1.25rem .4rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: .5rem;
}
.sidebar-admin-label {
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gold);
}

.sidebar-footer {
    margin-top: auto;
    padding: 1rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: .75rem;
}
.sidebar-admin-btn {
    width: 100%;
    text-align: center;
    font-size: .8rem;
}

/* ── Admin shortcut grid ─────────────────────────────── */
.admin-shortcut-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}
.admin-shortcut {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .3rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.25rem;
    text-decoration: none;
    color: var(--text);
    transition: border-color .15s, background .15s;
}
.admin-shortcut:hover {
    border-color: var(--gold);
    background: rgba(201,162,39,.06);
}
.admin-shortcut-icon { font-size: 1.75rem; }
.admin-shortcut strong { font-size: 1rem; }
.admin-shortcut .text-muted { font-size: .8rem; }

/* ── Docs ──────────────────────────────────────────────────── */
.doc-list { list-style: none; padding: 0; margin: 0; }
.doc-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .75rem 1.25rem;
    border-bottom: 1px solid var(--border);
}
.doc-list-item:last-child { border-bottom: none; }
.doc-list-link {
    color: var(--gold-light);
    text-decoration: none;
    font-weight: 500;
}
.doc-list-link:hover { text-decoration: underline; }
.doc-list-date { font-size: .8rem; }

.doc-body {
    color: var(--text);
    line-height: 1.8;
    font-size: .95rem;
}
.doc-body h1, .doc-body h2, .doc-body h3, .doc-body h4 {
    color: var(--gold-light);
    margin-top: 1.5em;
    margin-bottom: .5em;
}
.doc-body a { color: var(--gold); }
.doc-body table { border-collapse: collapse; width: 100%; margin: 1em 0; }
.doc-body table td, .doc-body table th {
    border: 1px solid var(--border);
    padding: .5em .75em;
}
.doc-body table th { background: var(--bg-hover); }
.doc-body code {
    background: var(--bg-hover);
    padding: .1em .4em;
    border-radius: 4px;
    font-size: .88em;
}
.doc-body pre { background: var(--bg-hover); padding: 1em; border-radius: 6px; overflow-x: auto; }
.doc-body blockquote {
    border-left: 3px solid var(--gold);
    margin: 1em 0;
    padding: .5em 1em;
    color: var(--text-muted);
}
.doc-body ul, .doc-body ol { padding-left: 1.5em; }
.doc-body img { max-width: 100%; border-radius: 6px; }

.card-footer {
    padding: .75rem 1.25rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
}
