/* ZDN-Votes — Election Intelligence Design System */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Source+Sans+3:wght@400;500;600;700&display=swap');

:root {
  --ink: #0c1b2a;
  --ink-soft: #1a3348;
  --teal: #1fa7a0;
  --teal-deep: #147a75;
  --teal-glow: rgba(31, 167, 160, 0.18);
  --amber: #f0a202;
  --amber-soft: #ffd166;
  --coral: #e85d4c;
  --surface: #eef2f4;
  --surface-2: #ffffff;
  --muted: #5c7386;
  --line: #d5dee6;
  --success: #2a9d8f;
  --warning: #e9c46a;
  --danger: #e76f51;
  --official: #264653;
  --prediction: #1fa7a0;
  --polling: #457b9d;
  --sidebar-w: 272px;
  --radius: 14px;
  --shadow: 0 10px 40px rgba(12, 27, 42, 0.08);
  --shadow-sm: 0 4px 16px rgba(12, 27, 42, 0.06);
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;
  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--teal-deep); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--teal); }
img { max-width: 100%; height: auto; }
h1,h2,h3,h4,h5 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; margin: 0 0 0.5rem; }
p { margin: 0 0 1rem; color: var(--muted); }

/* Background atmosphere */
body.admin-body {
  background:
    radial-gradient(1200px 600px at 100% -10%, rgba(31,167,160,0.12), transparent 60%),
    radial-gradient(900px 500px at -10% 100%, rgba(240,162,2,0.08), transparent 55%),
    var(--surface);
}

/* Login */
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: var(--ink);
}
.auth-visual {
  position: relative;
  overflow: hidden;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  background:
    linear-gradient(160deg, rgba(12,27,42,0.55), rgba(20,122,117,0.75)),
    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='%23ffffff' fill-opacity='0.05'%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"),
    linear-gradient(145deg, #0c1b2a 0%, #147a75 55%, #1fa7a0 100%);
}
.auth-visual h1 {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  color: #fff;
  max-width: 12ch;
  animation: riseIn 0.7s ease both;
}
.auth-visual p {
  color: rgba(255,255,255,0.82);
  max-width: 36ch;
  font-size: 1.1rem;
  animation: riseIn 0.7s ease 0.1s both;
}
.auth-brand-mark {
  position: absolute;
  top: 2.5rem;
  left: 3rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}
.auth-brand-mark .logo-orb {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, var(--amber), var(--teal));
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.auth-panel {
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
  background: var(--surface-2);
}
.auth-card { width: 100%; max-width: 420px; animation: riseIn 0.55s ease both; }
.auth-card h2 { font-size: 1.85rem; margin-bottom: 0.35rem; }
.auth-card .sub { margin-bottom: 2rem; }

/* App shell */
.app-shell { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar-w);
  background: linear-gradient(180deg, #0c1b2a 0%, #102636 100%);
  color: #fff;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition);
  box-shadow: 8px 0 32px rgba(12,27,42,0.18);
}
.sidebar-brand {
  padding: 1.35rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sidebar-brand .logo-orb {
  width: 40px; height: 40px; border-radius: 11px;
  background: linear-gradient(135deg, var(--amber), var(--teal));
  display: grid; place-items: center; flex-shrink: 0;
}
.sidebar-brand strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  display: block;
}
.sidebar-brand span { font-size: 0.72rem; color: rgba(255,255,255,0.55); }
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 0.75rem 1.5rem;
}
.nav-section {
  margin: 1rem 0 0.4rem;
  padding: 0 0.75rem;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.38);
  font-weight: 600;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.62rem 0.85rem;
  border-radius: 10px;
  color: rgba(255,255,255,0.72);
  font-weight: 500;
  font-size: 0.92rem;
  margin-bottom: 2px;
  transition: all var(--transition);
}
.nav-link i { width: 18px; text-align: center; opacity: 0.85; }
.nav-link:hover {
  background: rgba(255,255,255,0.07);
  color: #fff;
}
.nav-link.active {
  background: linear-gradient(90deg, rgba(31,167,160,0.28), rgba(31,167,160,0.08));
  color: #fff;
  box-shadow: inset 3px 0 0 var(--teal);
}
.nav-link.active i { color: var(--amber-soft); }

.main-wrap {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.5rem;
  background: rgba(238,242,244,0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(213,222,230,0.7);
}
.topbar-left { display: flex; align-items: center; gap: 0.75rem; }
.menu-toggle {
  display: none;
  border: none;
  background: var(--surface-2);
  width: 42px; height: 42px;
  border-radius: 11px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  color: var(--ink);
}
.search-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  min-width: min(360px, 42vw);
  box-shadow: var(--shadow-sm);
}
.search-box input {
  border: none; outline: none; background: transparent;
  width: 100%; font-family: inherit; font-size: 0.92rem;
}
.topbar-right { display: flex; align-items: center; gap: 0.75rem; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  display: grid; place-items: center;
  color: var(--ink-soft);
  position: relative;
  transition: all var(--transition);
}
.icon-btn:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-1px); }
.icon-btn .badge-dot {
  position: absolute; top: 8px; right: 8px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 2px #fff;
}
.user-chip {
  display: flex; align-items: center; gap: 0.65rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.85rem 0.3rem 0.35rem;
}
.user-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--ink-soft));
  color: #fff; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 0.85rem;
}
.user-chip small { display: block; color: var(--muted); font-size: 0.72rem; }
.user-chip strong { font-size: 0.85rem; }

.content { padding: 1.35rem 1.5rem 2.5rem; }

/* Page header */
.page-header {
  display: flex; flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
  animation: riseIn 0.45s ease both;
}
.page-header h1 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.page-header p { margin: 0; }
.page-actions { display: flex; flex-wrap: wrap; gap: 0.55rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  border: none; cursor: pointer;
  font-family: var(--font-body); font-weight: 600; font-size: 0.9rem;
  padding: 0.62rem 1.05rem;
  border-radius: 11px;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1.2;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-deep) 100%);
  color: #fff;
  box-shadow: 0 8px 20px rgba(31,167,160,0.28);
}
.btn-primary:hover { color: #fff; filter: brightness(1.05); transform: translateY(-1px); }
.btn-secondary {
  background: var(--surface-2);
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-secondary:hover { border-color: var(--teal); color: var(--teal-deep); }
.btn-amber {
  background: linear-gradient(135deg, var(--amber), #d48900);
  color: #fff;
  box-shadow: 0 8px 20px rgba(240,162,2,0.25);
}
.btn-amber:hover { color: #fff; filter: brightness(1.05); }
.btn-danger { background: var(--coral); color: #fff; }
.btn-danger:hover { color: #fff; filter: brightness(1.05); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-sm { padding: 0.4rem 0.75rem; font-size: 0.82rem; border-radius: 9px; }
.btn-icon { width: 36px; height: 36px; padding: 0; }

/* Cards / panels */
.panel {
  background: var(--surface-2);
  border: 1px solid rgba(213,222,230,0.85);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  animation: riseIn 0.5s ease both;
}
.panel-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem; flex-wrap: wrap;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--line);
}
.panel-header h3 { font-size: 1.05rem; margin: 0; }
.panel-body { padding: 1.15rem 1.2rem; }
.panel-flush .panel-body { padding: 0; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.stat-card {
  position: relative;
  background: var(--surface-2);
  border: 1px solid rgba(213,222,230,0.85);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  animation: riseIn 0.5s ease both;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.stat-card::after {
  content: '';
  position: absolute; right: -20px; top: -20px;
  width: 90px; height: 90px; border-radius: 50%;
  background: var(--teal-glow);
}
.stat-card .stat-icon {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--teal-glow); color: var(--teal-deep);
  margin-bottom: 0.85rem;
}
.stat-card .stat-icon.amber { background: rgba(240,162,2,0.15); color: #c48400; }
.stat-card .stat-icon.coral { background: rgba(232,93,76,0.14); color: var(--coral); }
.stat-card .stat-icon.ink { background: rgba(12,27,42,0.08); color: var(--ink); }
.stat-card .label { font-size: 0.8rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.stat-card .value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-top: 0.2rem;
}

.grid-2 { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.15rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.15rem; }
.gap-md { gap: 1rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 1.35rem; }
.mb-0 { margin-bottom: 0; }

/* Tables */
.table-wrap { overflow-x: auto; }
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
table.data th {
  text-align: left;
  padding: 0.85rem 1.1rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  background: #f7fafb;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.data td {
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid #eef2f4;
  vertical-align: middle;
}
table.data tr:hover td { background: #f8fbfb; }
table.data .actions { display: flex; gap: 0.35rem; flex-wrap: wrap; }

/* Forms */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.form-grid .full { grid-column: 1 / -1; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label {
  font-weight: 600; font-size: 0.88rem; color: var(--ink-soft);
}
.form-control, .form-select, textarea.form-control {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 11px;
  padding: 0.7rem 0.9rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus, .form-select:focus, textarea.form-control:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px var(--teal-glow);
}
textarea.form-control { min-height: 110px; resize: vertical; }
.form-hint { font-size: 0.8rem; color: var(--muted); }
.invalid-feedback { color: var(--coral); font-size: 0.82rem; }
.is-invalid { border-color: var(--coral) !important; }

/* Badges / labels */
.badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.badge-teal { background: var(--teal-glow); color: var(--teal-deep); }
.badge-amber { background: rgba(240,162,2,0.18); color: #a86d00; }
.badge-coral { background: rgba(232,93,76,0.15); color: #c44536; }
.badge-ink { background: rgba(12,27,42,0.08); color: var(--ink); }
.badge-success { background: rgba(42,157,143,0.15); color: #1d7a70; }
.badge-muted { background: #eef2f4; color: var(--muted); }

.data-label {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.label-official { background: #264653; color: #fff; }
.label-prediction { background: rgba(31,167,160,0.15); color: var(--teal-deep); border: 1px dashed var(--teal); }
.label-polling { background: rgba(69,123,157,0.15); color: #2f5d7a; }
.label-estimate { background: rgba(240,162,2,0.15); color: #9a6a00; }
.label-survey { background: rgba(108,92,231,0.12); color: #5a4fcf; }

.disclaimer {
  display: flex; gap: 0.75rem; align-items: flex-start;
  background: linear-gradient(90deg, rgba(240,162,2,0.12), rgba(240,162,2,0.04));
  border: 1px solid rgba(240,162,2,0.35);
  border-left: 4px solid var(--amber);
  border-radius: 12px;
  padding: 0.95rem 1.1rem;
  margin-bottom: 1.15rem;
  animation: riseIn 0.55s ease both;
}
.disclaimer i { color: #c48400; margin-top: 2px; }
.disclaimer p { margin: 0; color: var(--ink-soft); font-size: 0.9rem; }

/* Progress / meters */
.meter {
  height: 10px; border-radius: 999px; background: #e6eef1; overflow: hidden;
}
.meter > span {
  display: block; height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--amber));
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.prob-big {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: -0.04em;
  color: var(--teal-deep);
}

/* Alerts */
.alert {
  padding: 0.9rem 1.1rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  display: flex; align-items: flex-start; gap: 0.65rem;
  animation: riseIn 0.4s ease both;
}
.alert-success { background: rgba(42,157,143,0.12); color: #1d6b62; border: 1px solid rgba(42,157,143,0.25); }
.alert-danger { background: rgba(231,111,81,0.12); color: #a94432; border: 1px solid rgba(231,111,81,0.25); }
.alert-info { background: rgba(31,167,160,0.12); color: var(--teal-deep); border: 1px solid rgba(31,167,160,0.25); }

.empty-state {
  text-align: center; padding: 2.5rem 1rem; color: var(--muted);
}
.empty-state i { font-size: 2rem; opacity: 0.4; margin-bottom: 0.75rem; }

/* Candidate row */
.person {
  display: flex; align-items: center; gap: 0.75rem;
}
.person-avatar {
  width: 42px; height: 42px; border-radius: 12px;
  object-fit: cover; background: #dfe8ec;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; color: var(--ink-soft);
  flex-shrink: 0;
}
.person-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }

/* Public site */
.public-body {
  background:
    radial-gradient(1000px 500px at 80% -5%, rgba(31,167,160,0.15), transparent 50%),
    radial-gradient(800px 400px at 10% 30%, rgba(240,162,2,0.1), transparent 45%),
    linear-gradient(180deg, #e8eef1 0%, #f4f7f8 40%, #eef2f4 100%);
  min-height: 100vh;
}
.public-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  position: sticky; top: 0; z-index: 40;
  background: rgba(238,242,244,0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(213,222,230,0.6);
}
.public-nav .brand {
  display: flex; align-items: center; gap: 0.7rem;
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.25rem; color: var(--ink); letter-spacing: -0.03em;
}
.public-nav .nav-links { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.hero {
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1rem, 4vw, 3rem) 2rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  min-height: calc(100vh - 72px);
}
.hero-copy .eyebrow {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--teal-deep); font-weight: 700; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 1rem;
}
.hero-copy h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.05;
  max-width: 12ch;
  margin-bottom: 1rem;
  animation: riseIn 0.6s ease both;
}
.hero-copy .lead {
  font-size: 1.15rem;
  max-width: 42ch;
  margin-bottom: 1.75rem;
  animation: riseIn 0.6s ease 0.08s both;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; animation: riseIn 0.6s ease 0.15s both; }
.hero-visual {
  position: relative;
  min-height: 380px;
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(12,27,42,0.92), rgba(20,122,117,0.88)),
    repeating-linear-gradient(-45deg, transparent, transparent 12px, rgba(255,255,255,0.03) 12px, rgba(255,255,255,0.03) 24px);
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: floatY 6s ease-in-out infinite;
}
.hero-visual .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}
.hero-visual .orb-1 {
  width: 180px; height: 180px; right: -30px; top: -20px;
  background: rgba(240,162,2,0.35);
}
.hero-visual .orb-2 {
  width: 220px; height: 220px; left: -40px; bottom: -40px;
  background: rgba(31,167,160,0.4);
}
.hero-stats {
  position: absolute; inset: 0;
  display: grid; place-content: center;
  gap: 1rem; padding: 2rem; color: #fff; text-align: center;
}
.hero-stats .big {
  font-family: var(--font-display); font-size: 3rem; font-weight: 800;
  letter-spacing: -0.04em;
}
.section {
  padding: 2.5rem clamp(1rem, 4vw, 3rem);
}
.section h2 { font-size: 1.65rem; margin-bottom: 0.35rem; }
.candidate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}
.candidate-tile {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem;
  transition: transform var(--transition), box-shadow var(--transition);
}
.candidate-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.public-footer {
  margin-top: 2rem;
  padding: 1.5rem clamp(1rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem;
}

/* Sidebar overlay mobile */
.sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(12,27,42,0.45);
  z-index: 90;
}

/* Pagination */
.pagination { display: flex; gap: 0.35rem; list-style: none; padding: 1rem; margin: 0; flex-wrap: wrap; }
.pagination li a, .pagination li span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 0.6rem;
  border-radius: 9px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); font-size: 0.88rem;
}
.pagination li.active span {
  background: var(--teal); color: #fff; border-color: var(--teal);
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Responsive */
@media (max-width: 1100px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-visual { min-height: 280px; }
}
@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-visual { min-height: 240px; padding: 1.5rem; }
  .auth-brand-mark { left: 1.5rem; top: 1.5rem; }
  .menu-toggle { display: grid; place-items: center; }
  .sidebar { transform: translateX(-105%); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay.show { display: block; }
  .main-wrap { margin-left: 0; }
  .search-box { min-width: 0; flex: 1; }
}
@media (max-width: 640px) {
  .stat-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .content { padding: 1rem; }
  .user-chip .user-meta { display: none; }
  .topbar { padding: 0.75rem 1rem; }
  .page-header { flex-direction: column; }
}
