/* ============================================================
   MÉDICS DE SAINT-DENIS — Apothicaire 1899
   Direction artistique : Cabinet médical, flacons, encre bleue
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Rye&family=UnifrakturMaguntia&family=IM+Fell+English:ital@0;1&family=Josefin+Slab:wght@300;400;600;700&display=swap');

:root {
  /* Parchemin — identique à Black Cat */
  --paper:         #e8dfc8;
  --paper-dark:    #d9ccaa;
  --paper-aged:    #c8b88a;
  --paper-shadow:  #a89060;

  /* Palette apothicaire — bleu encre médicale */
  --ink:           #0e1a2b;
  --ink-faded:     #1e2e44;
  --ink-light:     #2e4460;
  --ink-mid:       #3a5478;

  /* Bois sombre cabinet */
  --wood-dark:     #060e18;
  --wood-mid:      #0e1e2e;
  --wood-warm:     #1a2e40;

  /* Accents médicaux */
  --blue-seal:     #1a3a5c;
  --gold-cabinet:  #c8d8e8;
  --blue-aged:     #2a5080;
  --blue-bright:   #3a6898;
  --copper:        #7a5a2a;
  --copper-bright: #a07838;
  --red-cross:     #8b1a1a;
  --green-herb:    #1a4a2a;
  --green-light:   #2a6a3a;
  --amber-flask:   #8b6010;
  --amber-bright:  #b08020;

  /* Fonts */
  --font-display:  'Rye', serif;
  --font-gothic:   'UnifrakturMaguntia', cursive;
  --font-serif:    'IM Fell English', serif;
  --font-slab:     'Josefin Slab', serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

/* ── BODY — Bois sombre cabinet médical ── */
body {
  background-color: var(--wood-dark);
  background-image:
    repeating-linear-gradient(90deg, transparent 0px, transparent 2px, rgba(255,255,255,0.008) 2px, rgba(255,255,255,0.008) 3px),
    repeating-linear-gradient(180deg, transparent 0px, transparent 50px, rgba(0,0,0,0.12) 50px, rgba(0,0,0,0.12) 51px),
    linear-gradient(180deg, #060e18 0%, #0e1a28 40%, #081420 100%);
  color: var(--ink);
  font-family: var(--font-serif);
  min-height: 100vh;
}

/* ── HEADER ── */
.site-header {
  background: linear-gradient(180deg, #040c14 0%, #0a1824 40%, #0e1e30 70%, #081420 100%);
  border-bottom: 5px double var(--blue-bright);
  box-shadow: 0 5px 0 #040c14, 0 7px 20px rgba(0,0,0,0.9), inset 0 1px 0 rgba(58,104,152,0.25);
  position: sticky; top: 0; z-index: 100;
}

.header-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 2.5rem 0.8rem;
}

.header-brand { flex: 1; text-align: center; }

.brand-eyebrow {
  font-family: var(--font-slab); font-size: 0.62rem; font-weight: 600;
  color: var(--blue-bright); letter-spacing: 7px; text-transform: uppercase; margin-bottom: 0.1rem;
}

.brand-title {
  font-family: var(--font-gothic); font-size: 2.8rem; color: #a0c0e0; line-height: 1;
  text-shadow: 2px 2px 0 #040c14, 4px 4px 10px rgba(0,0,0,0.8), 0 0 40px rgba(58,104,152,0.25);
  letter-spacing: 2px;
}

.brand-rule {
  display: flex; align-items: center; gap: 0.8rem; margin: 0.2rem 0; color: var(--blue-bright);
}
.brand-rule::before, .brand-rule::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue-bright), transparent);
}
.brand-rule-text {
  font-family: var(--font-slab); font-size: 0.58rem; font-weight: 600;
  letter-spacing: 4px; text-transform: uppercase; white-space: nowrap;
}

.brand-subtitle {
  font-family: var(--font-slab); font-size: 0.56rem; font-weight: 300;
  color: var(--blue-bright); letter-spacing: 5px; text-transform: uppercase; opacity: 0.7;
}

.header-user { display: flex; align-items: center; gap: 1rem; min-width: 200px; justify-content: flex-end; }

.user-card { text-align: right; border-right: 2px solid var(--blue-bright); padding-right: 1rem; }
.user-name  { display: block; font-family: var(--font-serif); font-style: italic; font-size: 0.88rem; color: var(--paper); }
.user-grade { display: block; font-family: var(--font-slab); font-size: 0.6rem; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; color: #a0c0e0; margin-top: 0.1rem; }

.btn-logout {
  font-family: var(--font-slab); font-size: 0.62rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--paper-dark); background: transparent;
  border: 1px solid var(--blue-aged); padding: 0.3rem 0.7rem; text-decoration: none; transition: all 0.2s; cursor: pointer;
}
.btn-logout:hover { background: var(--blue-aged); color: var(--paper); }

.main-nav { border-top: 1px solid rgba(58,104,152,0.2); }
.nav-inner { display: flex; justify-content: center; padding: 0 1rem; }
.nav-list  { display: flex; list-style: none; }
.nav-link  {
  display: flex; align-items: center; gap: 0.4rem; padding: 0.5rem 1.2rem;
  font-family: var(--font-slab); font-size: 0.7rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--blue-bright); text-decoration: none;
  border-right: 1px solid rgba(58,104,152,0.15); transition: all 0.2s; position: relative;
}
.nav-link::after {
  content: ''; position: absolute; bottom: 0; left: 50%; right: 50%;
  height: 2px; background: #a0c0e0; transition: all 0.2s;
}
.nav-link:hover { color: var(--paper); background: rgba(58,104,152,0.1); }
.nav-link:hover::after, .nav-link.active::after { left: 0; right: 0; }
.nav-link.active { color: var(--paper); }

/* ── MAIN ── */
.site-main { max-width: 1400px; margin: 0 auto; padding: 2rem 2.5rem; }

/* ── PAPER — Parchemin médicament ── */
.paper {
  background:
    radial-gradient(ellipse 60% 40% at 15% 20%, rgba(58,104,152,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 85% 75%, rgba(26,74,92,0.05) 0%, transparent 60%),
    linear-gradient(180deg, rgba(58,80,100,0.08) 0%, transparent 4%, transparent 96%, rgba(58,80,100,0.08) 100%),
    linear-gradient(90deg, rgba(58,80,100,0.08) 0%, transparent 2%, transparent 98%, rgba(58,80,100,0.08) 100%),
    linear-gradient(160deg, #e8dfc8 0%, #dfd4b0 30%, #e5d9bc 60%, #daced0 100%);
  border: 1px solid var(--paper-shadow);
  box-shadow: 0 2px 0 rgba(20,40,60,0.4), 4px 4px 12px rgba(0,0,0,0.5), inset 0 0 30px rgba(20,40,80,0.05);
  position: relative;
}
.paper::after {
  content: ''; position: absolute; top: 0; right: 0; width: 0; height: 0;
  border-style: solid; border-width: 0 26px 26px 0; border-color: transparent var(--paper-shadow) transparent transparent;
}

/* ── PAGE HEADER ── */
.page-header { text-align: center; margin-bottom: 2rem; }
.page-header-inner {
  display: inline-block; padding: 1.2rem 3rem;
  background: linear-gradient(160deg, #e8dfc8, #dfd4b0);
  border: 1px solid var(--paper-shadow); border-top: 4px solid var(--blue-seal);
  box-shadow: 3px 3px 8px rgba(0,0,0,0.4);
}
.page-header-inner::before, .page-header-inner::after {
  content: '— ✦ —'; display: block; font-family: var(--font-serif);
  font-size: 0.62rem; color: var(--blue-seal); letter-spacing: 6px; margin: 0.2rem 0;
}
.page-title    { font-family: var(--font-display); font-size: 1.5rem; color: var(--blue-seal); letter-spacing: 3px; }
.page-subtitle { font-family: var(--font-slab); font-size: 0.65rem; font-weight: 300; letter-spacing: 4px; text-transform: uppercase; color: var(--ink-light); margin-top: 0.2rem; }

/* ── LEDGER ── */
.ledger { position: relative; margin-bottom: 1.8rem; }
.ledger-header {
  background: var(--ink); color: var(--paper-dark); padding: 0.5rem 1.2rem;
  font-family: var(--font-slab); font-size: 0.63rem; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
  display: flex; align-items: center; gap: 0.6rem;
}
.ledger-header::before { content: '§'; font-family: var(--font-serif); font-size: 0.9rem; color: #a0c0e0; }
.ledger-body {
  background:
    repeating-linear-gradient(180deg, transparent 0px, transparent 28px, rgba(20,40,80,0.06) 28px, rgba(20,40,80,0.06) 29px),
    linear-gradient(160deg, #e8dfc8 0%, #e2d8b8 50%, #ddd0a8 100%);
  border: 1px solid var(--paper-shadow); border-top: none;
  padding: 1.2rem 1.5rem; box-shadow: 3px 3px 8px rgba(0,0,0,0.35);
}

/* ── STATS ── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1.2rem; margin-bottom: 1.8rem; }
.stat-card {
  background: linear-gradient(160deg, #e8dfc8, #dfd4b0);
  border: 1px solid var(--paper-shadow); border-top: 3px solid var(--ink);
  padding: 1rem 1.2rem; box-shadow: 3px 3px 6px rgba(0,0,0,0.4); position: relative; overflow: hidden;
}
.stat-card::before { content: '✦'; position: absolute; right: 0.8rem; bottom: 0.4rem; font-size: 3rem; color: rgba(20,40,80,0.05); line-height: 1; }
.stat-label { font-family: var(--font-slab); font-size: 0.57rem; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--ink-light); margin-bottom: 0.4rem; }
.stat-value { font-family: var(--font-display); font-size: 1.6rem; color: var(--blue-seal); line-height: 1; }
.stat-sub   { font-family: var(--font-serif); font-style: italic; font-size: 0.7rem; color: var(--ink-light); margin-top: 0.3rem; }
.stat-card.danger  { border-top-color: var(--red-cross); }
.stat-card.danger .stat-value  { color: var(--red-cross); }
.stat-card.success { border-top-color: var(--green-herb); }
.stat-card.success .stat-value { color: var(--green-herb); }
.stat-card.blue    { border-top-color: var(--blue-bright); }
.stat-card.blue .stat-value    { color: var(--blue-bright); }

/* ── TABLE ── */
.table-wrapper { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-family: var(--font-serif); font-size: 0.88rem; }
thead tr { background: var(--ink); border-bottom: 2px solid var(--blue-bright); }
thead th {
  padding: 0.6rem 0.9rem; text-align: left; color: var(--paper-dark);
  font-family: var(--font-slab); font-size: 0.6rem; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase;
}
tbody tr { border-bottom: 1px solid rgba(20,40,80,0.15); transition: background 0.15s; }
tbody tr:nth-child(even) { background: rgba(20,40,80,0.04); }
tbody tr:hover { background: rgba(58,104,152,0.1) !important; }
td { padding: 0.6rem 0.9rem; color: var(--ink-faded); vertical-align: middle; }
.td-name  { color: var(--ink); font-style: italic; }
.td-money { font-family: var(--font-display); font-size: 0.85rem; color: var(--blue-seal); }
.td-red   { color: var(--red-cross); font-weight: bold; }
.td-green { color: var(--green-herb); }
.td-blue  { color: var(--blue-bright); }

/* ── BADGES ── */
.badge {
  display: inline-block; padding: 0.15rem 0.5rem;
  font-family: var(--font-slab); font-size: 0.6rem; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; border: 1px solid currentColor; background: rgba(255,255,255,0.15);
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.5rem 1.2rem;
  font-family: var(--font-slab); font-size: 0.68rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; cursor: pointer; text-decoration: none; border: none; transition: all 0.15s;
}
.btn-primary {
  background: linear-gradient(180deg, var(--blue-aged) 0%, var(--blue-seal) 100%);
  color: var(--paper-dark); border: 1px solid var(--blue-bright);
  box-shadow: 2px 2px 0 rgba(0,0,0,0.5);
}
.btn-primary:hover { background: linear-gradient(180deg, var(--blue-bright) 0%, var(--blue-aged) 100%); color: var(--paper); box-shadow: 1px 1px 0 rgba(0,0,0,0.5); transform: translateY(1px); }
.btn-secondary {
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-dark) 100%);
  color: var(--ink); border: 1px solid var(--paper-shadow); box-shadow: 2px 2px 0 rgba(0,0,0,0.3);
}
.btn-secondary:hover { background: linear-gradient(180deg, var(--paper-dark) 0%, var(--paper-aged) 100%); box-shadow: 1px 1px 0 rgba(0,0,0,0.3); transform: translateY(1px); }
.btn-danger  { background: linear-gradient(180deg, #6b1515, #4a0e0e); color: #f5d8d8; border: 1px solid #8b2020; box-shadow: 2px 2px 0 rgba(0,0,0,0.5); }
.btn-danger:hover  { background: linear-gradient(180deg, #8b1515, #6b1515); transform: translateY(1px); }
.btn-success { background: linear-gradient(180deg, var(--green-herb), #0f2a18); color: #c8e8c8; border: 1px solid var(--green-light); box-shadow: 2px 2px 0 rgba(0,0,0,0.5); }
.btn-success:hover { background: linear-gradient(180deg, var(--green-light), var(--green-herb)); transform: translateY(1px); }
.btn-sm { padding: 0.3rem 0.7rem; font-size: 0.6rem; }
.action-buttons { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* ── FORMS ── */
.form-grid  { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.3rem; }
.form-label { font-family: var(--font-slab); font-size: 0.6rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--ink-light); }
.form-control {
  background: rgba(255,255,255,0.45); border: none;
  border-bottom: 2px solid var(--ink-light); border-left: 3px solid transparent;
  color: var(--ink); padding: 0.5rem 0.6rem;
  font-family: var(--font-serif); font-style: italic; font-size: 0.9rem;
  outline: none; transition: all 0.2s; -webkit-appearance: none;
}
.form-control:focus { border-bottom-color: var(--blue-seal); border-left-color: var(--blue-seal); background: rgba(255,255,255,0.65); }
.form-control option { background: #e8dfc8; color: var(--ink); font-style: normal; }
textarea.form-control { resize: vertical; min-height: 80px; }
.form-actions { display: flex; gap: 0.8rem; margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid rgba(20,40,80,0.15); }

/* ── ALERTS ── */
.alert { padding: 0.8rem 1.2rem 0.8rem 2.5rem; margin-bottom: 1.2rem; font-family: var(--font-serif); font-size: 0.88rem; border: 1px solid; position: relative; }
.alert::before { position: absolute; left: 0.8rem; font-size: 1rem; }
.alert-success { background: linear-gradient(90deg, rgba(26,74,42,0.12), transparent); border-color: var(--green-herb); color: var(--green-herb); }
.alert-success::before { content: '✓'; color: var(--green-herb); }
.alert-error   { background: linear-gradient(90deg, rgba(122,21,21,0.12), transparent); border-color: var(--red-cross); color: var(--red-cross); }
.alert-error::before { content: '✗'; color: var(--red-cross); }
.alert-warning { background: linear-gradient(90deg, rgba(139,96,16,0.12), transparent); border-color: var(--amber-aged, #8b6010); color: var(--amber-flask); }
.alert-warning::before { content: '!'; color: var(--amber-flask); font-weight: bold; }
.alert-info    { background: linear-gradient(90deg, rgba(26,58,92,0.12), transparent); border-color: var(--blue-bright); color: var(--blue-bright); }
.alert-info::before { content: 'i'; color: var(--blue-bright); font-weight: bold; font-family: var(--font-slab); }

/* ── CRAFT CALCULATOR — Pièce maîtresse ── */
.craft-card {
  background:
    radial-gradient(ellipse 70% 50% at 20% 10%, rgba(58,104,152,0.08) 0%, transparent 60%),
    linear-gradient(160deg, #e8dfc8, #ddd4b0);
  border: 1px solid var(--paper-shadow);
  border-top: 4px solid var(--blue-seal);
  box-shadow: 4px 4px 12px rgba(0,0,0,0.45);
  padding: 1.5rem;
  position: relative;
}

.craft-result {
  background: linear-gradient(160deg, var(--ink) 0%, var(--ink-faded) 100%);
  border: 1px solid var(--blue-bright);
  color: var(--paper-dark);
  padding: 1.2rem 1.5rem;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.3);
}

.ingredient-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.5rem 0; border-bottom: 1px solid rgba(20,40,80,0.12);
}
.ingredient-row:last-child { border-bottom: none; }

.ingredient-name { font-style: italic; color: var(--ink); font-size: 0.9rem; }
.ingredient-qty  { font-family: var(--font-display); font-size: 1.2rem; color: var(--blue-seal); }
.ingredient-unit { font-family: var(--font-slab); font-size: 0.6rem; letter-spacing: 1px; color: var(--ink-light); text-transform: uppercase; }

/* Flacon d'ingrédient — icône décorative */
.flask-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--ink); color: #a0c0e0; font-size: 0.8rem;
  border: 1px solid var(--blue-bright); margin-right: 0.5rem; flex-shrink: 0;
}

/* ── STOCK BAR ── */
.stock-bar { display: flex; align-items: center; gap: 0.5rem; }
.stock-track { width: 60px; height: 5px; background: rgba(20,40,80,0.15); border: 1px solid rgba(20,40,80,0.2); }
.stock-fill  { height: 100%; transition: width 0.3s; }
.stock-fill.ok    { background: var(--green-herb); }
.stock-fill.low   { background: var(--amber-flask); }
.stock-fill.empty { background: var(--red-cross); }

/* ── LOGIN ── */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem;
  background: linear-gradient(160deg, #060e18, #0e1a28, #060e18); }
.login-poster { width: 100%; max-width: 440px; position: relative; }
.login-poster::before, .login-poster::after {
  content: '●'; position: absolute; font-size: 1.1rem; color: var(--blue-bright);
  text-shadow: 0 1px 3px rgba(0,0,0,0.8); z-index: 2;
}
.login-poster::before { top: -6px; left: 12px; }
.login-poster::after  { top: -6px; right: 12px; }
.login-inner {
  background: linear-gradient(160deg, #e8dfc8 0%, #ddd4b0 50%, #e2d8bc 100%);
  border: 1px solid var(--paper-shadow); border-top: 5px solid var(--blue-seal);
  box-shadow: 0 4px 0 #040c14, 6px 6px 20px rgba(0,0,0,0.7);
  padding: 2.5rem 2.5rem 2rem; position: relative;
}
.login-seal {
  position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
  width: 36px; height: 36px; background: radial-gradient(circle, var(--blue-seal), #081420);
  border-radius: 50%; border: 2px solid var(--paper-shadow);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-size: 1rem; color: #a0c0e0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5); z-index: 3;
}
.login-brand  { text-align: center; margin-bottom: 1.8rem; margin-top: 0.5rem; }
.login-eyebrow { font-family: var(--font-slab); font-size: 0.55rem; font-weight: 700; letter-spacing: 6px; text-transform: uppercase; color: var(--ink-light); margin-bottom: 0.2rem; }
.login-title   { font-family: var(--font-gothic); font-size: 3.2rem; color: var(--blue-seal); line-height: 1; text-shadow: 2px 2px 0 rgba(255,255,255,0.3); }
.login-hr { display: flex; align-items: center; gap: 0.6rem; margin: 0.4rem 0 0.2rem; color: var(--blue-seal); font-size: 0.6rem; letter-spacing: 4px; }
.login-hr::before, .login-hr::after { content: ''; flex: 1; height: 1px; background: var(--blue-seal); opacity: 0.4; }
.login-location { font-family: var(--font-serif); font-style: italic; font-size: 0.78rem; color: var(--ink-light); }
.login-submit   { width: 100%; justify-content: center; padding: 0.7rem; font-size: 0.72rem; margin-top: 0.5rem; }
.login-footer   { text-align: center; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid rgba(20,40,80,0.2); font-family: var(--font-serif); font-style: italic; font-size: 0.72rem; color: var(--ink-light); line-height: 1.5; }

/* ── ORNAMENT ── */
.ornament-rule { text-align: center; margin: 1.5rem 0; display: flex; align-items: center; gap: 1rem; color: var(--blue-seal); font-size: 0.7rem; letter-spacing: 4px; }
.ornament-rule::before, .ornament-rule::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(20,40,80,0.25), transparent); }

/* ── DASHBOARD GRID ── */
.dashboard-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 1.5rem; }

/* ── PAGINATION ── */
.pagination { display: flex; gap: 0.4rem; justify-content: center; margin-top: 1.2rem; }
.pagination a { padding: 0.3rem 0.7rem; border: 1px solid var(--paper-shadow); background: linear-gradient(180deg, var(--paper), var(--paper-dark)); color: var(--ink-light); text-decoration: none; font-family: var(--font-slab); font-size: 0.65rem; font-weight: 700; box-shadow: 1px 1px 0 rgba(0,0,0,0.2); transition: all 0.15s; }
.pagination a:hover, .pagination a.current { background: linear-gradient(180deg, var(--blue-aged), var(--blue-seal)); color: var(--paper-dark); }

/* ── FOOTER ── */
.site-footer { margin-top: 3rem; padding: 1.5rem 2rem; text-align: center; border-top: 4px double var(--blue-bright); background: linear-gradient(180deg, #0a1824, #040c14); }
.footer-ornament { font-family: var(--font-serif); color: var(--blue-bright); font-size: 0.9rem; letter-spacing: 8px; margin-bottom: 0.5rem; }
.footer-text { font-family: var(--font-slab); font-size: 0.6rem; font-weight: 300; letter-spacing: 4px; text-transform: uppercase; color: var(--blue-bright); opacity: 0.7; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--wood-dark); }
::-webkit-scrollbar-thumb { background: var(--wood-warm); }
::-webkit-scrollbar-thumb:hover { background: var(--blue-aged); }

/* ── ANIMATIONS ── */
@keyframes unfold { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.ledger    { animation: unfold 0.35s ease both; }
.stat-card { animation: unfold 0.3s ease both; }
.ledger:nth-child(1)    { animation-delay: 0.05s; }
.ledger:nth-child(2)    { animation-delay: 0.10s; }
.ledger:nth-child(3)    { animation-delay: 0.15s; }
.stat-card:nth-child(1) { animation-delay: 0.04s; }
.stat-card:nth-child(2) { animation-delay: 0.08s; }
.stat-card:nth-child(3) { animation-delay: 0.12s; }
.stat-card:nth-child(4) { animation-delay: 0.16s; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .header-top { flex-direction: column; gap: 0.8rem; padding: 0.8rem 1rem 0; }
  .nav-list { flex-wrap: wrap; justify-content: center; }
  .site-main { padding: 1rem; }
  .brand-title { font-size: 2rem; }
}
