:root {
  --bg: #071611;
  --bg-soft: #0d221a;
  --panel: rgba(18, 56, 42, 0.72);
  --panel-solid: #0f241c;
  --card: linear-gradient(180deg, rgba(22,64,48,.95), rgba(10,32,24,.95));
  --text: #ecfdf5;
  --muted: #a7c6b7;
  --primary: #22c55e;
  --primary-2: #86efac;
  --gold: #d9f99d;
  --danger: #ef4444;
  --shadow: 0 20px 50px rgba(0,0,0,.28);
  --radius: 24px;
  --radius-sm: 16px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(34,197,94,.15), transparent 26%),
    radial-gradient(circle at bottom right, rgba(134,239,172,.14), transparent 22%),
    linear-gradient(180deg, #071611, #0c1f18 55%, #08130f);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.site-shell, .admin-layout { width: min(1280px, calc(100% - 24px)); margin: 20px auto; }
.glass, .premium-card {
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: var(--shadow);
}
.premium-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
}
.site-topbar {
  display:flex; justify-content:space-between; align-items:center; gap:20px;
  padding: 18px 22px; border-radius: 28px;
  background: rgba(11, 35, 26, 0.72);
  margin-bottom: 18px;
}
.brand-wrap { display:flex; align-items:center; gap:16px; }
.site-logo { width: 62px; height: auto; object-fit: contain; }
.site-logo.small { width: 50px; }
.site-logo.lg { width: 84px; }
.eyebrow { margin:0 0 6px; color: var(--primary-2); text-transform: uppercase; letter-spacing: .14em; font-size: 12px; }
h1,h2,h3,p { margin-top:0; }
.site-topbar h1 { margin-bottom:0; font-size: clamp(1.35rem, 2.4vw, 2rem); }
.status-pill, .badge {
  display:inline-flex; align-items:center; gap:8px; border-radius:999px;
  padding:10px 14px; background: rgba(34,197,94,.13); border:1px solid rgba(134,239,172,.18); color: var(--gold);
  font-size: 13px; font-weight: 600;
}
.hero-grid, .toolbar, .bulk-bar, .month-tabs, .stats-grid, .class-grid { margin-bottom: 18px; }
.hero-card { display:grid; grid-template-columns: 1.6fr .9fr; gap:18px; align-items:center; }
.hero-card h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); line-height:1.15; margin-bottom:12px; }
.hero-card p { color: var(--muted); max-width: 760px; }
.hero-stats { display:grid; grid-template-columns: repeat(3,1fr); gap:12px; }
.hero-stats div, .stat-card { background: rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.08); border-radius: 20px; padding: 18px; }
.hero-stats strong, .stat-card strong { display:block; font-size: 1.8rem; margin-bottom: 6px; }
.hero-stats span, .stat-card span, .muted { color: var(--muted); }
.month-tabs { display:flex; gap:12px; flex-wrap:wrap; }
.month-tab {
  padding: 12px 16px; border-radius: 16px; background: rgba(255,255,255,.04); border:1px solid transparent; font-weight: 600;
}
.month-tab.active { background: linear-gradient(135deg, rgba(34,197,94,.3), rgba(134,239,172,.16)); border-color: rgba(134,239,172,.25); color: white; }
.toolbar { display:flex; justify-content:space-between; align-items:center; gap:16px; }
.search-form { display:flex; gap:12px; flex-wrap:wrap; width:100%; }
input[type=text], input[type=password], input[type=file], select {
  width:100%; padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.08); color: var(--text); outline: none;
}
select option { color:#000; }
.search-form input[type=text] { flex:1 1 280px; }
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:8px; border:none; cursor:pointer;
  padding: 13px 18px; border-radius: 16px; font-weight:700; transition:.2s transform,.2s opacity,.2s background;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, #22c55e, #16a34a); color:#052e16; }
.btn-secondary { background: rgba(236,253,245,.12); color: white; border:1px solid rgba(236,253,245,.1); }
.btn-ghost { background: transparent; color: var(--text); border:1px solid rgba(255,255,255,.12); }
.btn-danger { background: rgba(239,68,68,.18); color: #fecaca; border:1px solid rgba(239,68,68,.24); }
.full { width:100%; }
.class-grid { display:grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap:18px; }
.class-card { min-height: 220px; display:flex; flex-direction:column; justify-content:space-between; }
.class-card.is-empty { opacity:.88; }
.class-card-head { display:flex; justify-content:space-between; gap:12px; align-items:flex-start; }
.class-card h3 { margin-bottom: 8px; font-size: 1.2rem; }
.file-meta { color: var(--muted); line-height:1.7; margin: 14px 0; }
.card-actions { display:flex; gap:10px; flex-wrap:wrap; }
.card-actions.wrap .btn { flex:1; }
.bulk-bar { display:flex; justify-content:space-between; gap:18px; align-items:center; }
.bulk-actions { display:flex; gap:10px; flex-wrap:wrap; }
.check-wrap { display:flex; gap:8px; align-items:center; color: var(--muted); font-size: 14px; }
.alert { padding:14px 16px; border-radius:16px; margin-bottom:16px; }
.alert-success { background: rgba(34,197,94,.14); border:1px solid rgba(34,197,94,.3); }
.alert-error { background: rgba(239,68,68,.14); border:1px solid rgba(239,68,68,.28); }
.empty-state.small { padding: 14px 0; color: var(--muted); }
.admin-layout { display:grid; grid-template-columns: 280px 1fr; gap:18px; }
.sidebar { position: sticky; top: 20px; height: fit-content; border-radius: 28px; padding: 22px; background: rgba(10, 31, 23, 0.8); }
.sidebar-brand { display:flex; align-items:center; gap:14px; margin-bottom:20px; }
.side-nav { display:grid; gap:10px; }
.side-nav a { padding:14px 16px; border-radius:16px; background: rgba(255,255,255,.04); font-weight: 600; }
.side-nav a.active { background: linear-gradient(135deg, rgba(34,197,94,.28), rgba(134,239,172,.15)); }
.admin-main { min-width:0; }
.stats-grid { display:grid; grid-template-columns: repeat(4, 1fr); gap:18px; }
.section-head { display:flex; justify-content:space-between; gap:16px; align-items:center; margin-bottom:16px; }
.table-wrap { overflow:auto; }
table { width:100%; border-collapse: collapse; }
th, td { text-align:left; padding:14px 12px; border-bottom:1px solid rgba(255,255,255,.08); }
.auth-shell { min-height:100vh; display:grid; place-items:center; padding:20px; }
.auth-card { width:min(460px, 100%); }
.auth-card, .stack-form { display:grid; gap:14px; }
.form-card { max-width: 760px; }
.logo-preview.inner-card { display:flex; align-items:center; gap:16px; margin-top:10px; }
@media (max-width: 980px) {
  .hero-card, .admin-layout, .stats-grid, .class-grid { grid-template-columns: 1fr; }
  .site-topbar, .toolbar, .bulk-bar, .section-head { flex-direction: column; align-items: stretch; }
  .sidebar { position:relative; top:auto; }
}
@media (max-width: 640px) {
  .site-shell, .admin-layout { width: min(100% - 16px, 100%); }
  .premium-card, .sidebar { padding: 16px; border-radius: 22px; }
  .site-logo { width: 52px; }
  .month-tab { padding: 10px 14px; font-size: 13px; }
}
