/* =========================================================
   MSSD Malidegao MIS — modern glass UI
   Municipality of Malidegao, SGA-BARMM
   Deep maroon + ember + brass, frosted-glass surfaces over
   soft gradient mesh backgrounds.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,560;9..144,680&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --maroon-950: #2b0809;
  --maroon-900: #3f0d0f;
  --maroon-800: #5a1214;
  --red-700:    #8a1416;
  --red-600:    #a51d1c;
  --ember-500:  #e0553a;
  --ember-400:  #f07a55;
  --brass-500:  #c9953a;
  --brass-300:  #e8c27a;
  --paper:      #f7f1ea;
  --paper-dim:  rgba(138, 20, 22, 0.05);
  --ink:        #241513;
  --ink-soft:   #6b5650;
  --line:       rgba(90, 18, 20, 0.12);
  --white:      #ffffff;

  --ok:      #1f7a45;  --ok-bg:   rgba(31,122,69,.12);
  --warn:    #a86a0c;  --warn-bg: rgba(201,149,58,.18);
  --bad:     #b02a2a;  --bad-bg:  rgba(176,42,42,.12);
  --muted:   #675c55;  --muted-bg:rgba(103,92,85,.12);

  --glass:        rgba(255, 255, 255, 0.62);
  --glass-strong: rgba(255, 255, 255, 0.78);
  --glass-border: rgba(255, 255, 255, 0.75);
  --glass-dark:   rgba(43, 8, 9, 0.55);
  --blur: blur(18px) saturate(170%);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, 'Segoe UI', sans-serif;

  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 10px rgba(43, 8, 9, 0.06);
  --shadow-md: 0 12px 32px -12px rgba(43, 8, 9, 0.28);
  --shadow-lg: 0 30px 60px -24px rgba(43, 8, 9, 0.42);
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.55;
  background: var(--paper);
  min-height: 100vh;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* soft gradient mesh behind every page */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(900px 600px at 8% -10%, rgba(224,85,58,.22), transparent 60%),
    radial-gradient(800px 600px at 100% 10%, rgba(201,149,58,.22), transparent 60%),
    radial-gradient(900px 700px at 60% 110%, rgba(138,20,22,.18), transparent 60%),
    linear-gradient(180deg, #fbf6f0, #f3e9df);
}

a { color: var(--red-700); text-decoration: none; transition: color .15s; }
a:hover { color: var(--ember-500); }

h1, h2, h3, h4 {
  font-family: var(--font-body);
  color: var(--maroon-950);
  margin: 0 0 .45em;
  font-weight: 700;
  letter-spacing: -0.02em;
}

:focus-visible { outline: 2px solid var(--brass-500); outline-offset: 2px; }

/* ---------- animated background orbs (auth + landing) ---------- */
.bg-orbs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-orbs span {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55;
  animation: float 18s ease-in-out infinite;
}
.bg-orbs span:nth-child(1) { width: 380px; height: 380px; background: var(--ember-500); top: -80px; left: -60px; }
.bg-orbs span:nth-child(2) { width: 320px; height: 320px; background: var(--brass-500); right: -60px; top: 25%; animation-delay: -6s; }
.bg-orbs span:nth-child(3) { width: 420px; height: 420px; background: var(--red-700); bottom: -140px; left: 30%; animation-delay: -12s; }
@keyframes float { 0%,100% { transform: translate(0,0) scale(1);} 50% { transform: translate(30px,-24px) scale(1.08);} }

/* =========================================================
   Landing + auth pages
   ========================================================= */
body.auth-body {
  background: var(--maroon-950);
}
body.auth-body::before {
  background:
    linear-gradient(160deg, rgba(43,8,9,.88) 0%, rgba(90,18,20,.78) 50%, rgba(138,20,22,.7) 100%),
    var(--bg-photo, none) center / cover fixed no-repeat;
}

.public-nav {
  position: sticky; top: 14px; z-index: 20;
  margin: 14px auto 0; width: min(1180px, calc(100% - 28px));
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 10px 14px 10px 16px;
  background: rgba(255,255,255,.12);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px; color: #fff;
  box-shadow: 0 10px 30px -14px rgba(0,0,0,.5);
}
.public-nav .brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; }
.public-nav .brand:hover { color: #fff; }
.public-nav .brand small { display: block; font-weight: 500; font-size: 11px; color: rgba(255,255,255,.7); }
.public-nav .nav-actions { display: flex; gap: 8px; align-items: center; }

.seal, .seal-lg {
  border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  font-family: var(--font-display); font-weight: 680; color: #fff;
  background: linear-gradient(135deg, var(--ember-500), var(--brass-500));
  box-shadow: 0 6px 16px -6px rgba(0,0,0,.5), inset 0 0 0 2px rgba(255,255,255,.35);
}
.seal { width: 38px; height: 38px; font-size: 14px; }
.seal-lg { width: 46px; height: 46px; font-size: 16px; }

.hero {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px;
  align-items: center; width: min(1180px, calc(100% - 28px)); margin: 0 auto;
  min-height: calc(100vh - 150px); padding: 48px 0;
}
@media (max-width: 920px) { .hero { grid-template-columns: 1fr; gap: 32px; padding: 32px 0; } }

.hero-left { color: #fff; --bg-photo: none; background: none; padding: 0; }
.hero-badge { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 22px;
  padding: 8px 16px 8px 8px; border-radius: 999px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
.hero-badge .seal-text { line-height: 1.2; }
.hero-badge .office { font-weight: 700; font-size: 14px; }
.hero-badge .location { font-size: 11.5px; color: rgba(255,255,255,.75); }

.hero-eyebrow { font-size: 12px; letter-spacing: .14em; color: var(--brass-300); font-weight: 700; margin-bottom: 14px; }
.hero-left h1 {
  color: #fff; font-family: var(--font-display); font-weight: 680;
  font-size: clamp(34px, 4.6vw, 58px); line-height: 1.05; max-width: 14ch; margin-bottom: 18px;
}
.hero-left p { max-width: 50ch; color: rgba(255,255,255,.84); font-size: 16.5px; }
.hero-left .helper-text, .hero-left .helper-text a { color: rgba(255,255,255,.8); }
.hero-left .helper-text a { color: var(--brass-300); font-weight: 600; text-decoration: underline; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 8px; }

/* glass call-out inside hero */
.hero-left .alert-success {
  background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.25);
  border-left: 1px solid rgba(255,255,255,.25);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border-radius: var(--radius-lg); padding: 18px 20px;
}

.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 36px; max-width: 520px; }
.hero-stats .stat {
  padding: 16px 18px; border-radius: 18px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
}
.hero-stats .stat .num { font-size: 28px; font-weight: 800; display: block; line-height: 1.1; }
.hero-stats .stat .label { font-size: 12px; color: rgba(255,255,255,.75); }

.hero-right { display: flex; justify-content: center; padding: 0; background: none; }

.login-panel {
  width: 100%; max-width: 420px; padding: 36px 32px;
  background: rgba(255,255,255,.80);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 28px; box-shadow: var(--shadow-lg);
  animation: rise .6s var(--ease) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(18px);} to { opacity: 1; transform: none; } }
.login-panel h2 { font-size: 26px; margin-bottom: 4px; }
.login-panel .sub { color: var(--ink-soft); font-size: 14px; margin-bottom: 26px; }

/* feature tiles on landing */
.features { width: min(1180px, calc(100% - 28px)); margin: 0 auto 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.feature {
  padding: 24px; border-radius: 22px; color: #fff;
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  transition: transform .25s var(--ease), background .25s;
}
.feature:hover { transform: translateY(-4px); background: rgba(255,255,255,.16); }
.feature .ico { width: 44px; height: 44px; border-radius: 14px; margin-bottom: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--ember-500), var(--brass-500)); }
.feature .ico svg { width: 22px; height: 22px; }
.feature h3 { color: #fff; font-size: 16.5px; margin-bottom: 6px; }
.feature p { margin: 0; color: rgba(255,255,255,.78); font-size: 14px; }

.public-footer {
  width: min(1180px, calc(100% - 28px)); margin: 0 auto; padding: 22px 0 28px;
  font-size: 12.5px; color: rgba(255,255,255,.7); border-top: 1px solid rgba(255,255,255,.16); background: none;
}

/* =========================================================
   Forms
   ========================================================= */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--maroon-900); margin-bottom: 7px; letter-spacing: .01em; }

.field input[type="text"], .field input[type="password"], .field input[type="email"],
.field input[type="number"], .field input[type="date"], .field input[type="file"],
.field select, .field textarea,
.toolbar input[type="text"], .toolbar input[type="date"], .toolbar select {
  width: 100%; padding: 12px 15px;
  border: 1.5px solid rgba(90,18,20,.14); border-radius: 12px;
  background: rgba(255,255,255,.7);
  font-family: var(--font-body); font-size: 14.5px; color: var(--ink);
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.toolbar input[type="text"], .toolbar input[type="date"], .toolbar select { width: auto; padding: 9px 13px; font-size: 13.5px; }
.field input[type="file"] { padding: 10px; border-style: dashed; cursor: pointer; }
.field input[type="file"]::file-selector-button {
  margin-right: 12px; padding: 7px 14px; border: 0; border-radius: 9px; cursor: pointer;
  background: linear-gradient(120deg, var(--red-700), var(--ember-500)); color: #fff; font-weight: 600; font-family: inherit;
}
.field input::placeholder, .field textarea::placeholder { color: #a99b92; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(90,18,20,.3); }
.field input:focus, .field select:focus, .field textarea:focus,
.toolbar input:focus, .toolbar select:focus {
  border-color: var(--red-600); background: #fff; outline: none;
  box-shadow: 0 0 0 4px rgba(165,29,28,.13);
}

.field .password-wrap, .password-wrap { position: relative; }
.field .password-wrap input[type="password"], .field .password-wrap input[type="text"] { padding-right: 48px; }
.password-toggle {
  position: absolute; top: 50%; right: 7px; transform: translateY(-50%);
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  background: transparent; border: none; border-radius: 10px; cursor: pointer;
  color: var(--ink-soft); padding: 0; transition: background .15s, color .15s;
}
.password-toggle:hover { background: rgba(138,20,22,.09); color: var(--red-700); }
.password-toggle svg { width: 19px; height: 19px; display: block; }
.password-toggle .eye-off { display: none; }
.password-toggle[data-visible="true"] .eye-on { display: none; }
.password-toggle[data-visible="true"] .eye-off { display: block; }
.password-toggle[data-visible="true"] { color: var(--red-700); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 12px; border: 1px solid transparent;
  font-family: var(--font-body); font-weight: 600; font-size: 14.5px; cursor: pointer; text-decoration: none;
  transition: transform .15s var(--ease), box-shadow .2s, filter .15s, background .15s, border-color .15s, color .15s;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary {
  background: linear-gradient(120deg, var(--red-700), var(--ember-500)); color: #fff; width: 100%;
  box-shadow: 0 12px 24px -10px rgba(165,29,28,.6);
}
.btn-primary:hover { color: #fff; filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 16px 28px -10px rgba(165,29,28,.7); }
.btn-outline {
  background: rgba(255,255,255,.55); border-color: rgba(90,18,20,.18); color: var(--maroon-900);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.btn-outline:hover { background: #fff; border-color: var(--red-600); color: var(--red-600); }
.btn-small { padding: 7px 14px; font-size: 13px; border-radius: 10px; }
.btn-danger { background: var(--bad); color: #fff; }
.btn-glass { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.3);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); width: auto; }
.btn-glass:hover { background: rgba(255,255,255,.26); color: #fff; }
.btn-light { background: #fff; color: var(--red-700); width: auto; }
.btn-light:hover { color: var(--ember-500); transform: translateY(-1px); }

.helper-text { font-size: 12.5px; color: var(--ink-soft); margin-top: 8px; }

.alert { padding: 13px 16px; border-radius: 14px; font-size: 14px; margin-bottom: 18px; border: 1px solid transparent; backdrop-filter: blur(8px); }
.alert-error   { background: var(--bad-bg);  border-color: rgba(176,42,42,.25);  color: var(--bad); }
.alert-success { background: var(--ok-bg);   border-color: rgba(31,122,69,.25);  color: var(--ok); }
.alert-warning { background: var(--warn-bg); border-color: rgba(201,149,58,.35); color: var(--warn); }

/* =========================================================
   App shell (admin + resident)
   ========================================================= */
.admin-shell { display: grid; grid-template-columns: 268px 1fr; min-height: 100vh; }

.sidebar {
  position: sticky; top: 0; height: 100vh; margin: 14px 0 14px 14px; height: calc(100vh - 28px);
  padding: 20px 14px; display: flex; flex-direction: column; overflow-y: auto;
  color: #fff; border-radius: 26px;
  background:
    radial-gradient(260px 200px at 0% 0%, rgba(224,85,58,.35), transparent 70%),
    radial-gradient(260px 240px at 100% 100%, rgba(201,149,58,.25), transparent 70%),
    linear-gradient(180deg, rgba(43,8,9,.92), rgba(90,18,20,.88));
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: var(--shadow-lg);
}
.sidebar .brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 20px; margin-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.14); }
.sidebar .brand .office { font-weight: 700; font-size: 15px; line-height: 1.2; }
.sidebar .brand .office small { display: block; font-size: 11px; color: rgba(255,255,255,.62); font-weight: 500; }

.nav-group { margin-bottom: 16px; }
.nav-group .nav-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.45); padding: 0 12px; margin-bottom: 6px; font-weight: 700; }

.nav-link {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; margin-bottom: 3px;
  color: rgba(255,255,255,.82); font-size: 14px; font-weight: 500;
  transition: background .15s, color .15s, transform .15s var(--ease);
}
.nav-link .nav-icon { width: 19px; height: 19px; flex-shrink: 0; opacity: .85; }
.nav-link .badge { margin-left: auto; }
.nav-link:hover { background: rgba(255,255,255,.10); color: #fff; transform: translateX(2px); }
.nav-link.active {
  background: linear-gradient(120deg, rgba(255,255,255,.22), rgba(255,255,255,.08));
  color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), 0 8px 18px -10px rgba(0,0,0,.5);
}
.nav-link.active .nav-icon { opacity: 1; color: var(--brass-300); }

.sidebar .signout { margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.14); }
.sidebar .signout .nav-link:hover { background: rgba(224,85,58,.28); }

.admin-main { display: flex; flex-direction: column; min-height: 100vh; min-width: 0; }

.topbar {
  position: sticky; top: 14px; z-index: 10; margin: 14px 22px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 20px; border-radius: 20px;
  background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border); box-shadow: var(--shadow-sm);
}
.topbar .page-title { font-size: 20px; margin: 0; }
.topbar .who { font-size: 13.5px; color: var(--ink-soft); display: flex; align-items: center; gap: 10px; }
.topbar .who strong { color: var(--maroon-950); }
.topbar-left { display: flex; align-items: center; gap: 12px; min-width: 0; }

.sidebar-toggle {
  display: none; width: 40px; height: 40px; border-radius: 12px; cursor: pointer; color: var(--maroon-900);
  background: rgba(255,255,255,.7); border: 1px solid var(--line); align-items: center; justify-content: center; padding: 0;
}
.sidebar-toggle svg { width: 20px; height: 20px; }
.sidebar-backdrop { display: none; }

.content { padding: 24px 22px 60px; animation: rise .45s var(--ease) both; }

/* Stat band → floating glass cards */
.stat-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin-bottom: 24px; border: 0; background: none; overflow: visible; }
.stat-band .stat-cell {
  position: relative; overflow: hidden; padding: 20px 22px; border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
  background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s;
}
.stat-band .stat-cell::before {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--red-700), var(--ember-500), var(--brass-500));
}
.stat-band .stat-cell:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.stat-band .stat-cell:last-child { border-right: 1px solid var(--glass-border); }
.stat-band .stat-cell .num { font-size: 30px; font-weight: 800; letter-spacing: -.03em; color: var(--red-700); display: block; line-height: 1.15; }
.stat-band .stat-cell .label { font-size: 12.5px; color: var(--ink-soft); font-weight: 500; }

.panel {
  background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
  margin-bottom: 24px; box-shadow: var(--shadow-sm); overflow: hidden;
}
.panel-header { padding: 16px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.panel-header h3 { font-size: 16px; margin: 0; }
.panel-body { padding: 22px; overflow-x: auto; }

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
thead th {
  text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700;
  color: var(--ink-soft); padding: 12px 22px; background: rgba(138,20,22,.05); border-bottom: 1px solid var(--line); white-space: nowrap;
}
tbody td { padding: 14px 22px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr { transition: background .15s; }
tbody tr:hover { background: rgba(224,85,58,.07); }
tbody tr:last-child td { border-bottom: none; }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.nav-link .badge::before { display: none; }
.badge-success { background: var(--ok-bg); color: var(--ok); }
.badge-warning { background: var(--warn-bg); color: var(--warn); }
.badge-danger  { background: var(--bad-bg); color: var(--bad); }
.badge-muted   { background: var(--muted-bg); color: var(--muted); }

.role-tag { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: rgba(138,20,22,.08); border: 1px solid var(--line); color: var(--red-700); }

.empty-state { text-align: center; padding: 56px 20px; color: var(--ink-soft); }
.empty-state h4 { color: var(--maroon-950); margin-bottom: 6px; }

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 20px; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.form-grid .field.full { grid-column: 1 / -1; }

.form-actions { display: flex; gap: 10px; flex-wrap: wrap; padding-top: 16px; border-top: 1px solid var(--line); margin-top: 10px; }

.pagination { display: flex; gap: 6px; margin-top: 16px; flex-wrap: wrap; }
.pagination a, .pagination span {
  padding: 7px 13px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; color: var(--ink); background: rgba(255,255,255,.6);
}
.pagination a:hover { border-color: var(--red-600); color: var(--red-600); }
.pagination .active { background: linear-gradient(120deg, var(--red-700), var(--ember-500)); color: #fff; border-color: transparent; }

.text-right { text-align: right; }
.mt-0 { margin-top: 0; }
.muted { color: var(--ink-soft); }

/* admin program form helpers (overrides inline defaults) */
.requirement-row input[type="text"] { flex: 1; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .admin-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; z-index: 50; top: 0; left: 0; bottom: 0; width: 280px; margin: 12px; height: auto;
    transform: translateX(-120%); transition: transform .3s var(--ease);
  }
  body.sidebar-open .sidebar { transform: none; }
  .sidebar-toggle { display: inline-flex; }
  .sidebar-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(43,8,9,.45); backdrop-filter: blur(3px); }
  body.sidebar-open .sidebar-backdrop { display: block; }
  .topbar { margin: 12px 12px 0; }
  .content { padding: 18px 12px 48px; }
  .topbar .who span.who-label { display: none; }
}
@media (max-width: 560px) {
  .hero-stats { grid-template-columns: 1fr; }
  .login-panel { padding: 28px 22px; }
  .public-nav .brand small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
  .sidebar, .topbar, .toolbar, .no-print, .bg-orbs, .sidebar-backdrop { display: none !important; }
  .admin-shell { display: block; }
  .content { padding: 0; }
  body::before { display: none; }
  .panel, .stat-cell { backdrop-filter: none; background: #fff; box-shadow: none; }
}
