/* ============================================================
   BOGEL Payment – Design System v2
   Dark-first, light via prefers-color-scheme
   Font: Syne (display) + DM Sans (body) via Google Fonts
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

/* ── CSS Variables ────────────────────────────────────────── */
:root {
  /* Core palette – dark theme */
  --bg:        #0d0f14;
  --bg-2:      #121520;
  --surface:   #181c26;
  --surface-2: #1e2333;
  --surface-3: #252b3d;
  --border:    rgba(255,255,255,0.07);
  --border-2:  rgba(255,255,255,0.12);

  --text:      #e8eaf0;
  --text-2:    #9ba3b8;
  --muted:     #5c647a;

  /* Brand */
  --primary:        #6c8fff;
  --primary-dark:   #4d6fff;
  --primary-glow:   rgba(108,143,255,0.25);

  /* Semantic */
  --success:        #34d399;
  --success-bg:     rgba(52,211,153,0.12);
  --warning:        #fbbf24;
  --warning-bg:     rgba(251,191,36,0.12);
  --danger:         #f87171;
  --danger-bg:      rgba(248,113,113,0.12);
  --info:           #60a5fa;
  --info-bg:        rgba(96,165,250,0.12);

  /* Aliases used by JS-generated HTML */
  --white:          #e8eaf0;
  --dark:           #0d0f14;
  --gray:           #9ba3b8;
  --light-gray:     #1e2333;

  /* Elevation */
  --shadow:    0 1px 3px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.45);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.6);

  /* Shape */
  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Motion */
  --ease:     cubic-bezier(0.22,1,0.36,1);
  --fast:     150ms;
  --normal:   250ms;
}

/* Light theme override */
@media (prefers-color-scheme: light) {
  :root {
    --bg:        #f0f2f8;
    --bg-2:      #e8eaf2;
    --surface:   #ffffff;
    --surface-2: #f5f6fb;
    --surface-3: #ebedf5;
    --border:    rgba(0,0,0,0.07);
    --border-2:  rgba(0,0,0,0.12);

    --text:      #111827;
    --text-2:    #4b5563;
    --muted:     #9ca3af;

    --primary:        #4d6fff;
    --primary-dark:   #3355ee;
    --primary-glow:   rgba(77,111,255,0.18);

    --success:        #059669;
    --success-bg:     rgba(5,150,105,0.1);
    --warning:        #d97706;
    --warning-bg:     rgba(217,119,6,0.1);
    --danger:         #dc2626;
    --danger-bg:      rgba(220,38,38,0.1);
    --info:           #2563eb;
    --info-bg:        rgba(37,99,235,0.1);

    --white:          #ffffff;
    --dark:           #111827;
    --gray:           #6b7280;
    --light-gray:     #f3f4f6;

    --shadow:    0 1px 3px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 48px rgba(0,0,0,0.14);
  }
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  font-size: 15px;
  /* Subtle noise grain overlay */
  background-image:
    radial-gradient(ellipse 80% 60% at 20% -10%, rgba(108,143,255,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 110%, rgba(108,143,255,0.05) 0%, transparent 60%);
  background-attachment: fixed;
}

/* ── Typography ───────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

code {
  font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 0.82em;
  background: var(--surface-3);
  color: var(--primary);
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

pre {
  background: #080a10;
  color: #a8d8ff;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: 0.82rem;
  line-height: 1.7;
  border: 1px solid var(--border);
}
pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

/* ── Container & Grid ─────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ── Navbar ───────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 15, 20, 0.82);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  padding: 0;
  margin-bottom: 2.5rem;
}

@media (prefers-color-scheme: light) {
  .navbar {
    background: rgba(240, 242, 248, 0.85);
  }
}

.navbar-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
}

.navbar-brand {
  font-family: 'Syne', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color var(--fast) var(--ease);
}
.navbar-brand:hover { color: var(--primary); }

.navbar-menu {
  display: flex;
  gap: 4px;
  align-items: center;
}

.navbar-link {
  color: var(--text-2);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--fast) var(--ease);
  position: relative;
}
.navbar-link:hover {
  color: var(--text);
  background: var(--surface-2);
}
.navbar-link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
  animation: fadeInUp var(--normal) var(--ease) both;
  position: relative;
  overflow: hidden;
}

/* Subtle top glow line */
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-2), transparent);
}

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

.card-header {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.1rem;
}
.card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  font-family: 'Syne', sans-serif;
}
.card-subtitle {
  color: var(--text-2);
  font-size: 0.875rem;
  margin-top: 4px;
}
.card-subtitle strong { color: var(--text); }

/* ── Stats Grid ───────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 24px rgba(108,143,255,0.3);
  position: relative;
  overflow: hidden;
  animation: fadeInUp var(--normal) var(--ease) both;
  border: 1px solid rgba(255,255,255,0.12);
  transition: transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(108,143,255,0.4);
}

/* Decorative circle inside stat card */
.stat-card::after {
  content: '';
  position: absolute;
  right: -20px; top: -20px;
  width: 100px; height: 100px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
}

.stat-value {
  font-family: 'Syne', sans-serif;
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 6px;
  position: relative;
}
.stat-label {
  font-size: 0.85rem;
  opacity: 0.85;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.65rem 1.4rem;
  border: none;
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--fast) var(--ease);
  text-decoration: none;
  text-align: center;
  position: relative;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 12px var(--primary-glow);
}
.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 20px var(--primary-glow);
  transform: translateY(-1px);
  color: #fff;
}
.btn-primary:active { transform: translateY(0); }

.btn-success {
  background: var(--success);
  color: #0a1a12;
}
.btn-success:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-danger {
  background: var(--danger);
  color: #1a0a0a;
}
.btn-danger:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--surface-3);
  color: var(--text-2);
  border: 1px solid var(--border-2);
}
.btn-secondary:hover {
  background: var(--surface-2);
  color: var(--text);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary-glow);
  color: var(--primary);
}

/* Ghost */
.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border-2);
}
.btn-ghost:hover {
  background: var(--surface-2);
  color: var(--text);
}

.btn-block { width: 100%; }

/* ── Forms ────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.4rem; }

.form-label, .label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-2);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.form-control, .input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
  appearance: none;
}
.form-control::placeholder, .input::placeholder { color: var(--muted); }
.form-control:focus, .input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
  background: var(--surface);
}
.form-control:focus-visible, .input:focus-visible {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-select, select.form-control {
  width: 100%;
  padding: 0.7rem 2.2rem 0.7rem 0.9rem;
  background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239ba3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 12px center no-repeat;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  cursor: pointer;
  appearance: none;
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

/* ── Badge ────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-success {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid rgba(52,211,153,0.25);
}
.badge-warning {
  background: var(--warning-bg);
  color: var(--warning);
  border: 1px solid rgba(251,191,36,0.25);
}
.badge-danger {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid rgba(248,113,113,0.25);
}
.badge-info {
  background: var(--info-bg);
  color: var(--info);
  border: 1px solid rgba(96,165,250,0.25);
}

/* ── Table ────────────────────────────────────────────────── */
.table-container {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

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

.table thead {
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.table th {
  padding: 0.85rem 1rem;
  text-align: left;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-2);
  white-space: nowrap;
}
.table td {
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}

/* Striped rows */
.table tbody tr:nth-child(odd) { background: transparent; }
.table tbody tr:nth-child(even) { background: var(--surface-2); }
.table tbody tr:hover {
  background: var(--surface-3);
  transition: background var(--fast) var(--ease);
}

/* ── Divider ──────────────────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.5rem 0;
}

/* ── Loading Spinner ──────────────────────────────────────── */
.spinner {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  animation: spin 0.8s linear infinite;
  margin: 2.5rem auto;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-text {
  text-align: center;
  color: var(--text-2);
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

/* ── Toast Notification ───────────────────────────────────── */
.toast {
  position: fixed;
  top: 76px;
  right: 20px;
  background: var(--surface);
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  z-index: 9999;
  animation: slideInRight var(--normal) var(--ease);
  min-width: 280px;
  max-width: 380px;
  border: 1px solid var(--border);
  font-size: 0.9rem;
}
@keyframes slideInRight {
  from { transform: translateX(120%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

.toast-success { border-left: 3px solid var(--success); }
.toast-error   { border-left: 3px solid var(--danger); }
.toast-warning { border-left: 3px solid var(--warning); }

/* ── QR Code Display ──────────────────────────────────────── */
.qr-container {
  text-align: center;
  padding: 1.5rem 1rem;
}
.qr-image {
  max-width: 320px;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  margin: 1.5rem auto;
  display: block;
  border: 3px solid var(--border);
  padding: 12px;
  background: #fff;
}

/* ── Hero / Landing ───────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 5rem 1.5rem 3rem;
  position: relative;
}
.hero::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(108,143,255,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 100%, rgba(108,143,255,0.1) 0%, transparent 60%);
  z-index: -1;
  pointer-events: none;
}

.hero-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
  animation: fadeInUp var(--normal) var(--ease) both;
}
.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-2);
  margin-bottom: 2rem;
  animation: fadeInUp var(--normal) var(--ease) 80ms both;
}

/* Landing card override for light-on-dark feel */
.hero .card {
  background: var(--surface);
  border-color: var(--border-2);
  animation: fadeInUp var(--normal) var(--ease) 150ms both;
}

/* Landing feature list */
.hero .card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}
.hero .card ul li {
  padding: 6px 0;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

/* ── Tab Buttons (Admin) ──────────────────────────────────── */
.tab-btn {
  padding: 0.6rem 1.25rem;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-2);
  border-bottom: 2px solid transparent;
  transition: all var(--fast) var(--ease);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  letter-spacing: 0.01em;
}
.tab-btn:hover { color: var(--primary); }
.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.tab-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.tab-content {
  animation: fadeIn var(--normal) var(--ease);
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Fee Info Box (Withdraw) ──────────────────────────────── */
#fee-info {
  padding: 1.1rem 1.25rem;
  background: var(--surface-2);
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  border: 1px solid var(--border);
  font-size: 0.9rem;
}
#fee-info .fee-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  color: var(--text-2);
}
#fee-info .fee-total {
  display: flex;
  justify-content: space-between;
  padding-top: 10px;
  margin-top: 8px;
  border-top: 1px solid var(--border-2);
  font-weight: 700;
  color: var(--text);
}

/* Inline override for existing JS-generated fee rows */
#fee-info [style*="justify-content: space-between"] {
  color: var(--text-2) !important;
}

/* ── Invoice / Withdraw info cards ───────────────────────── */
.info-note {
  padding: 1rem 1.25rem;
  background: rgba(251,191,36,0.06);
  border-left: 3px solid var(--warning);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-top: 1.25rem;
  font-size: 0.88rem;
  color: var(--text-2);
}
.info-note strong { color: var(--text); }

/* Timer badge on invoice */
.timer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--warning-bg);
  color: var(--warning);
  border: 1px solid rgba(251,191,36,0.3);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* ── Success Page ─────────────────────────────────────────── */
.checkmark-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--success), #22c55e);
  box-shadow: 0 0 40px rgba(52,211,153,0.35);
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: scaleIn 0.5s var(--ease);
}
@keyframes scaleIn {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.checkmark {
  font-size: 2.5rem;
  color: #fff;
  animation: fadeIn 0.3s 0.3s var(--ease) both;
}

/* ── Code Example Block ───────────────────────────────────── */
.code-example {
  margin-top: 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.code-example-header {
  background: var(--surface-3);
  padding: 8px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
}
.code-example pre {
  margin: 0;
  border-radius: 0;
  border: none;
}

/* ── Utility Classes ──────────────────────────────────────── */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-sm     { font-size: 0.85rem; }
.text-muted  { color: var(--text-2); }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.p-0  { padding: 0; }
.p-1  { padding: 0.5rem; }
.p-2  { padding: 1rem; }

.hidden        { display: none !important; }
.flex          { display: flex; }
.flex-between  { justify-content: space-between; }
.flex-center   { justify-content: center; }
.items-center  { align-items: center; }
.gap-1         { gap: 0.5rem; }
.gap-2         { gap: 1rem; }

/* ── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-title { font-size: 2rem; }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.9rem;
  }

  .stat-value { font-size: 1.5rem; }

  .navbar-content {
    padding: 0 16px;
    height: auto;
    flex-direction: column;
    gap: 0;
    padding-top: 10px;
    padding-bottom: 4px;
  }
  .navbar-brand { padding-bottom: 6px; }
  .navbar-menu {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 8px;
    gap: 2px;
  }
  .navbar-link { padding: 5px 10px; font-size: 0.85rem; }

  .card { padding: 1.25rem; }

  .toast {
    left: 12px;
    right: 12px;
    top: auto;
    bottom: 20px;
    min-width: auto;
  }

  .grid-2 { grid-template-columns: 1fr; }

  .table th, .table td { padding: 0.65rem 0.75rem; }

  .btn { padding: 0.6rem 1.1rem; font-size: 0.85rem; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .container { padding: 0 12px 32px; }
}

/* ── Reduced Motion ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}