/* =============================================
   Univers Coiffure – Design System v2
   Style : Invoice.UI – Indigo & White
   ============================================= */

/* ── Variables ─────────────────────────────── */
:root {
  --primary:           #4F46E5;
  --primary-hover:     #4338CA;
  --primary-light:     #EEF2FF;
  --primary-border:    #C7D2FE;

  --bg-page:           #F0F2F5;
  --bg-card:           #FFFFFF;
  --bg-hover:          #F9FAFB;
  --bg-input:          #FFFFFF;

  --border:            #E5E7EB;
  --border-strong:     #D1D5DB;

  --text-primary:      #111827;
  --text-secondary:    #6B7280;
  --text-tertiary:     #9CA3AF;

  --danger:            #DC2626;
  --danger-light:      #FEE2E2;
  --danger-border:     #FECACA;
  --success:           #16A34A;
  --success-light:     #DCFCE7;
  --warning:           #D97706;
  --warning-light:     #FEF3C7;

  --radius-card:       12px;
  --radius-input:      8px;
  --radius-btn:        8px;
  --radius-full:       9999px;

  --shadow-card:       0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:         0 4px 6px rgba(0,0,0,.06), 0 2px 4px rgba(0,0,0,.04);
  --shadow-lg:         0 10px 24px rgba(0,0,0,.08);

  --sidebar-width:     220px;
  --topbar-height:     60px;
  --transition:        .18s ease;
  --font:              'DM Sans', system-ui, sans-serif;
}

/* ── Reset & Base ──────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font);
  background: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.55;
  min-height: 100vh;
}
a { text-decoration: none; color: inherit; }
button { font-family: var(--font); }
input, select, textarea { font-family: var(--font); }

/* =============================================
   LAYOUT PRINCIPAL
   ============================================= */
.app-shell {
  display: flex;
  min-height: 100vh;
}

/* =============================================
   SIDEBAR
   ============================================= */
.sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 200;
  transition: transform var(--transition);
  overflow-y: auto;
  overflow-x: hidden;
}

/* Logo */
.sidebar-logo {
  padding: 20px 18px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.sidebar-logo-inner {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-mark {
  width: 32px; height: 32px;
  background: var(--primary);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-mark svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2; }
.logo-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.logo-wordmark strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -.1px;
}
.logo-wordmark span {
  font-size: 11px;
  color: var(--text-tertiary);
  font-weight: 400;
}

/* User block */
.sidebar-user {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: background var(--transition);
  flex-shrink: 0;
}
.sidebar-user:hover { background: var(--bg-hover); }
.user-ava {
  width: 34px; height: 34px;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.user-info { flex: 1; min-width: 0; }
.user-info-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.user-info-role {
  font-size: 11px;
  color: var(--text-tertiary);
}
.user-chevron { color: var(--text-tertiary); flex-shrink: 0; }
.user-chevron svg { width: 14px; height: 14px; }

/* Nav sections */
.sidebar-nav {
  flex: 1;
  padding: 8px 0;
  display: flex;
  flex-direction: column;
}
.nav-section {
  padding: 16px 18px 4px;
}
.nav-section-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  margin: 1px 8px;
  border-radius: var(--radius-input);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}
.nav-item:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.nav-item.active {
  background: var(--primary-light);
  color: var(--primary);
}
.nav-item.active .nav-icon svg { stroke: var(--primary); }
.nav-icon { width: 18px; height: 18px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.nav-icon svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.nav-label { flex: 1; }
.nav-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}
.nav-badge.blue  { background: #DBEAFE; color: #1D4ED8; }
.nav-badge.red   { background: var(--danger-light); color: var(--danger); }
.nav-badge.gray  { background: var(--border); color: var(--text-secondary); }

/* Sidebar footer */
.sidebar-footer {
  border-top: 1px solid var(--border);
  padding: 8px 0;
  flex-shrink: 0;
}
.nav-item.nav-danger { color: #B91C1C; }
.nav-item.nav-danger:hover { background: var(--danger-light); color: var(--danger); }
.nav-item.nav-danger .nav-icon svg { stroke: currentColor; }

/* Sidebar overlay (mobile) */
.sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 199;
}

/* =============================================
   MAIN WRAPPER
   ============================================= */
.main-wrapper {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── Topbar ──────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  height: var(--topbar-height);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 28px;
  gap: 14px;
  z-index: 100;
}
.topbar-back {
  width: 32px; height: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  background: none;
  color: var(--text-secondary);
  transition: all var(--transition);
  flex-shrink: 0;
}
.topbar-back:hover { background: var(--bg-hover); color: var(--text-primary); }
.topbar-back svg { width: 16px; height: 16px; }
.topbar-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -.2px;
  flex: 1;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.menu-toggle {
  display: none;
  width: 36px; height: 36px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.menu-toggle span {
  display: block;
  width: 16px; height: 1.5px;
  background: var(--text-secondary);
  border-radius: 2px;
}

/* ── Page content ────────────────────────── */
.main-content {
  flex: 1;
  padding: 24px 28px;
}

/* =============================================
   COMPOSANTS
   ============================================= */

/* ── Boutons ─────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: var(--radius-btn);
  font-family: var(--font);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  line-height: 1;
}
.btn svg { width: 15px; height: 15px; }

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border);
}
.btn-secondary:hover { background: var(--bg-hover); border-color: var(--border-strong); }

.btn-danger {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}
.btn-danger:hover { background: #B91C1C; }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}
.btn-ghost:hover { background: var(--bg-hover); color: var(--text-primary); }

.btn-sm { padding: 6px 12px; font-size: 12.5px; }
.btn-lg { padding: 10px 22px; font-size: 14.5px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ── Cartes ──────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.card-pad { padding: 20px 24px; }
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
}
.card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}
.card-body { padding: 20px 24px; }

/* ── Statistiques ────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow-md); }
.stat-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.stat-icon-wrap {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.stat-icon-wrap svg { width: 20px; height: 20px; fill: none; stroke-width: 1.8; }
.stat-icon-wrap.indigo { background: var(--primary-light); }
.stat-icon-wrap.indigo svg { stroke: var(--primary); }
.stat-icon-wrap.green  { background: #DCFCE7; }
.stat-icon-wrap.green  svg { stroke: #16A34A; }
.stat-icon-wrap.red    { background: var(--danger-light); }
.stat-icon-wrap.red    svg { stroke: var(--danger); }
.stat-icon-wrap.amber  { background: #FEF3C7; }
.stat-icon-wrap.amber  svg { stroke: #D97706; }
.stat-icon-wrap.purple { background: #EDE9FE; }
.stat-icon-wrap.purple svg { stroke: #7C3AED; }

.stat-trend {
  font-size: 11px;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}
.stat-trend.up   { background: #DCFCE7; color: #15803D; }
.stat-trend.down { background: var(--danger-light); color: var(--danger); }
.stat-trend.neutral { background: var(--border); color: var(--text-secondary); }

.stat-value {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -.5px;
  line-height: 1;
}
.stat-label {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-top: 3px;
}

/* ── Alertes ─────────────────────────────── */
.alert {
  padding: 11px 16px;
  border-radius: var(--radius-input);
  font-size: 13px;
  margin-bottom: 18px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid transparent;
}
.alert svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; }
.alert-error   { background: var(--danger-light);  color: #991B1B; border-color: var(--danger-border); }
.alert-success { background: #DCFCE7; color: #14532D; border-color: #BBF7D0; }
.alert-warning { background: var(--warning-light); color: #92400E; border-color: #FDE68A; }
.alert-info    { background: var(--primary-light); color: #3730A3; border-color: var(--primary-border); }

/* ── Formulaires ─────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
  letter-spacing: .1px;
}
.form-control {
  width: 100%;
  padding: 9px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  font-family: var(--font);
  font-size: 13.5px;
  color: var(--text-primary);
  background: var(--bg-input);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}
.form-control::placeholder { color: var(--text-tertiary); }
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,.12);
}
.form-control-icon { position: relative; }
.form-control-icon .form-control { padding-right: 36px; }
.form-control-icon .input-icon {
  position: absolute;
  right: 11px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
  pointer-events: none;
}
.form-control-icon .input-icon svg { width: 15px; height: 15px; }
select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

/* ── Tableaux ────────────────────────────── */
.table-wrapper { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
thead th {
  padding: 10px 16px;
  text-align: left;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-tertiary);
  background: #F9FAFB;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
  vertical-align: middle;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: #FAFAFA; }

/* ── Badges statuts ──────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}
.badge::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.badge-success { background: #DCFCE7; color: #15803D; }
.badge-danger  { background: var(--danger-light); color: var(--danger); }
.badge-warning { background: #FEF3C7; color: #B45309; }
.badge-neutral { background: #F3F4F6; color: var(--text-secondary); }
.badge-primary { background: var(--primary-light); color: var(--primary); }

/* ── Divider ─────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}

/* ── Empty state ─────────────────────────── */
.empty-state {
  text-align: center;
  padding: 52px 24px;
  color: var(--text-tertiary);
}
.empty-state-icon {
  width: 48px; height: 48px;
  margin: 0 auto 14px;
  opacity: .4;
}
.empty-state-icon svg { width: 48px; height: 48px; stroke: currentColor; fill: none; }
.empty-state p { font-size: 13.5px; }

/* =============================================
   PAGE DE LOGIN
   ============================================= */
body.login-body {
  background: var(--bg-page);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}

.login-wrap {
  width: 100%;
  max-width: 400px;
}

.login-header {
  text-align: center;
  margin-bottom: 28px;
}
.login-logo-mark {
  width: 48px; height: 48px;
  background: var(--primary);
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  box-shadow: 0 4px 14px rgba(79,70,229,.3);
}
.login-logo-mark svg { width: 26px; height: 26px; stroke: #fff; fill: none; stroke-width: 2; }
.login-brand {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -.3px;
}
.login-sub {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.login-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 32px 32px 28px;
}
.login-card-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.login-card-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}
.login-card .form-control { padding: 10px 14px; font-size: 14px; }
.login-submit {
  width: 100%;
  padding: 11px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-btn);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition);
  margin-top: 4px;
}
.login-submit:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 14px rgba(79,70,229,.35);
}
.login-footer {
  text-align: center;
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 20px;
}

/* =============================================
   DASHBOARD
   ============================================= */
.page-header {
  margin-bottom: 22px;
}
.page-header h1 {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -.3px;
}
.page-header p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 3px;
}

/* Grille 2 colonnes pour le dashboard */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px;
  align-items: start;
}
.dashboard-main { display: flex; flex-direction: column; gap: 20px; }
.dashboard-aside { display: flex; flex-direction: column; gap: 20px; }

/* Quick actions */
.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Activity list */
.activity-list { display: flex; flex-direction: column; }
.activity-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}
.activity-item:last-child { border-bottom: none; }
.activity-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.activity-dot.indigo { background: var(--primary); }
.activity-dot.green  { background: var(--success); }
.activity-dot.amber  { background: var(--warning); }
.activity-text { flex: 1; font-size: 13px; color: var(--text-primary); }
.activity-time { font-size: 12px; color: var(--text-tertiary); white-space: nowrap; }

/* Info panel right */
.info-panel-section { padding: 16px 20px; border-bottom: 1px solid var(--border); }
.info-panel-section:last-child { border-bottom: none; }
.info-panel-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--text-tertiary);
  margin-bottom: 10px;
}
.info-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin-bottom: 7px;
}
.info-line:last-child { margin-bottom: 0; }
.info-line .lbl { color: var(--text-secondary); }
.info-line .val { font-weight: 500; color: var(--text-primary); }
.info-line .val.primary { color: var(--primary); font-size: 16px; font-weight: 700; }

/* =============================================
   MODULE CLIENTS
   ============================================= */

/* Avatars clients */
.client-ava {
  width: 32px; height: 32px;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.client-ava-lg {
  width: 56px; height: 56px;
  font-size: 22px;
  border-radius: 16px;
}
.client-ava-xl {
  width: 68px; height: 68px;
  font-size: 28px;
  border-radius: 20px;
}

/* Boutons d'action dans le tableau */
.table-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.action-btn {
  width: 30px; height: 30px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  cursor: pointer;
  background: none;
  transition: all var(--transition);
  flex-shrink: 0;
}
.action-btn-blue  { background: #EFF6FF; color: #2563EB; border-color: #BFDBFE; }
.action-btn-blue:hover  { background: #DBEAFE; }
.action-btn-amber { background: #FFFBEB; color: #D97706; border-color: #FDE68A; }
.action-btn-amber:hover { background: #FEF3C7; }
.action-btn-red   { background: var(--danger-light); color: var(--danger); border-color: var(--danger-border); }
.action-btn-red:hover   { background: #FECACA; }

/* Fil d'Ariane */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 18px;
}
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span:not(:last-child) { color: var(--text-tertiary); }
.breadcrumb span:last-child { color: var(--text-primary); font-weight: 500; }

/* Layout 2 colonnes formulaires */
.form-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 20px;
  align-items: start;
}
.form-layout-main { display: flex; flex-direction: column; gap: 20px; }
.form-layout-aside { position: sticky; top: calc(var(--topbar-height) + 16px); }

/* Validation formulaire */
.input-error {
  border-color: var(--danger) !important;
  box-shadow: 0 0 0 3px rgba(220,38,38,.1) !important;
}
.field-error {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--danger);
  margin-top: 5px;
}
.required-star { color: var(--danger); }

/* Messages flash */
.flash-msg { margin-bottom: 20px; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-aside { order: -1; flex-direction: row; flex-wrap: wrap; }
  .dashboard-aside .card { flex: 1 1 240px; }
  .form-layout { grid-template-columns: 1fr; }
  .form-layout-aside { position: static; }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar-overlay.open { display: block; }
  .main-wrapper { margin-left: 0; }
  .menu-toggle { display: flex; }
  .main-content { padding: 20px 16px; }
  .topbar { padding: 0 16px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .topbar-title { font-size: 16px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .login-card { padding: 24px 20px; }
}
