/* =============================================================
   SKY FITNESS — Notification Backoffice
   Design: dark sidebar, bright canvas, athletic-modern
   ============================================================= */

:root {
  /* Couleurs principales */
  --sky-50:  #f0f9ff;
  --sky-100: #e0f2fe;
  --sky-200: #bae6fd;
  --sky-300: #7dd3fc;
  --sky-400: #38bdf8;
  --sky-500: #0ea5e9;
  --sky-600: #0284c7;
  --sky-700: #0369a1;

  --ink-50:  #f8fafc;
  --ink-100: #f1f5f9;
  --ink-200: #e2e8f0;
  --ink-300: #cbd5e1;
  --ink-400: #94a3b8;
  --ink-500: #64748b;
  --ink-600: #475569;
  --ink-700: #334155;
  --ink-800: #1e293b;
  --ink-900: #0f172a;
  --ink-950: #020617;

  --success: #10b981;
  --warning: #f59e0b;
  --danger:  #ef4444;

  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow:    0 4px 14px rgba(15, 23, 42, .08), 0 1px 3px rgba(15, 23, 42, .04);
  --shadow-lg: 0 20px 40px -8px rgba(15, 23, 42, .15), 0 8px 16px -4px rgba(15, 23, 42, .08);
  --shadow-glow: 0 0 0 4px rgba(14, 165, 233, .12);

  --font-sans: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-800);
  background: var(--ink-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--sky-600); text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

/* =============================================================
   LAYOUT
   ============================================================= */
.layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: linear-gradient(180deg, var(--ink-900) 0%, var(--ink-950) 100%);
  color: var(--ink-200);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  border-right: 1px solid rgba(255,255,255,.05);
}

.main {
  padding: 36px 44px 60px;
  max-width: 1400px;
  width: 100%;
}

@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar {
    position: relative; height: auto;
    flex-direction: row; align-items: center; padding: 16px;
    overflow-x: auto; overflow-y: hidden;
  }
  .sidebar .nav { flex-direction: row; gap: 6px; margin: 0 16px; flex: 1; }
  .sidebar .user-card { margin-top: 0; }
  .main { padding: 24px 20px 40px; }
}

/* =============================================================
   SIDEBAR — Brand & nav
   ============================================================= */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 8px 28px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  margin-bottom: 24px;
}
.brand-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--sky-400), var(--sky-600));
  border-radius: 12px;
  display: grid; place-items: center;
  color: white;
  box-shadow: 0 6px 14px -4px rgba(14, 165, 233, .5);
}
.brand-icon svg { width: 26px; height: 26px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 15px;
  color: white;
}
.brand-sub { font-size: 11px; color: var(--ink-400); letter-spacing: 0.02em; }

.nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius);
  color: var(--ink-300);
  font-weight: 500;
  font-size: 14.5px;
  transition: all .15s ease;
  position: relative;
}
.nav-item svg { width: 19px; height: 19px; flex-shrink: 0; opacity: .85; }
.nav-item:hover {
  background: rgba(255,255,255,.04);
  color: white;
}
.nav-item.active {
  background: linear-gradient(135deg, rgba(14,165,233,.18), rgba(14,165,233,.08));
  color: white;
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, .25);
}
.nav-item.active::before {
  content: '';
  position: absolute; left: -20px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 22px;
  background: var(--sky-400);
  border-radius: 0 3px 3px 0;
  box-shadow: 0 0 12px var(--sky-400);
}

.user-card {
  margin-top: 20px;
  display: flex; align-items: center; gap: 12px;
  padding: 12px;
  background: rgba(255,255,255,.04);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.06);
}
.user-avatar {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--sky-400), var(--sky-600));
  border-radius: 10px;
  display: grid; place-items: center;
  color: white; font-weight: 700; font-size: 14px;
  letter-spacing: 0.03em;
}
.user-meta { flex: 1; min-width: 0; }
.user-name { color: white; font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-tel  { color: var(--ink-400); font-size: 12px; font-family: var(--font-mono); }
.logout-btn {
  color: var(--ink-400); padding: 6px;
  border-radius: 8px; transition: all .15s ease;
}
.logout-btn:hover { color: var(--danger); background: rgba(239,68,68,.1); }
.logout-btn svg { width: 18px; height: 18px; display: block; }

.pill {
  font-size: 10px; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px;
  margin-left: auto;
}
.pill-warning { background: rgba(245,158,11,.15); color: #fbbf24; }
.pill-success { background: rgba(16,185,129,.15); color: #34d399; }

/* =============================================================
   PAGE HEADER
   ============================================================= */
.page-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  margin-bottom: 32px;
}
.page-title {
  font-size: 28px; font-weight: 700; color: var(--ink-900);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.page-subtitle {
  color: var(--ink-500); font-size: 14.5px; margin-top: 6px;
}
.page-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--sky-600);
  margin-bottom: 6px;
}

/* =============================================================
   CARDS
   ============================================================= */
.card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--ink-100);
  overflow: hidden;
}
.card-body { padding: 24px; }
.card-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--ink-100);
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.card-title {
  font-size: 16px; font-weight: 600;
  color: var(--ink-900);
}
.card-desc { color: var(--ink-500); font-size: 13.5px; margin-top: 2px; }

/* =============================================================
   STAT CARDS
   ============================================================= */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}
.stat {
  background: white;
  border-radius: var(--radius-lg);
  padding: 22px;
  border: 1px solid var(--ink-100);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat::after {
  content: ''; position: absolute; top: 0; right: 0;
  width: 120px; height: 120px;
  background: radial-gradient(circle at top right, rgba(14,165,233,.07), transparent 70%);
  pointer-events: none;
}
.stat-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  display: grid; place-items: center;
  margin-bottom: 14px;
  background: var(--sky-50);
  color: var(--sky-600);
}
.stat-icon.green { background: #ecfdf5; color: var(--success); }
.stat-icon.orange { background: #fffbeb; color: var(--warning); }
.stat-icon.red    { background: #fef2f2; color: var(--danger); }
.stat-icon svg { width: 22px; height: 22px; }
.stat-label {
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-500);
}
.stat-value {
  font-family: var(--font-mono);
  font-size: 32px; font-weight: 600;
  color: var(--ink-900);
  margin-top: 4px;
  letter-spacing: -0.02em;
}
.stat-delta {
  font-size: 12.5px; color: var(--ink-500); margin-top: 6px;
}

/* =============================================================
   FORM
   ============================================================= */
.form-grid { display: grid; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.label {
  font-size: 13px; font-weight: 600; color: var(--ink-700);
  letter-spacing: 0.01em;
}
.input, .textarea, .select {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius);
  border: 1.5px solid var(--ink-200);
  background: white;
  color: var(--ink-900);
  transition: border-color .15s ease, box-shadow .15s ease;
  font-size: 14.5px;
}
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--sky-400);
  box-shadow: var(--shadow-glow);
}
.textarea { resize: vertical; min-height: 100px; font-family: inherit; line-height: 1.55; }
.hint { font-size: 12.5px; color: var(--ink-500); }
.count-hint {
  font-family: var(--font-mono);
  font-size: 12px; color: var(--ink-500);
  align-self: flex-end;
}

/* =============================================================
   BUTTONS
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px;
  font-weight: 600; font-size: 14.5px;
  border-radius: var(--radius);
  transition: all .15s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: linear-gradient(135deg, var(--sky-500), var(--sky-600));
  color: white;
  box-shadow: 0 4px 14px -2px rgba(14,165,233,.4);
}
.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -4px rgba(14,165,233,.5);
}
.btn-primary:disabled {
  background: var(--ink-300);
  color: var(--ink-100);
  box-shadow: none;
  cursor: not-allowed;
}
.btn-ghost {
  color: var(--ink-700);
  border: 1.5px solid var(--ink-200);
  background: white;
}
.btn-ghost:hover { border-color: var(--ink-300); background: var(--ink-50); }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #dc2626; }

/* =============================================================
   TARGET SELECTOR
   ============================================================= */
.target-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.target-option {
  position: relative;
  padding: 18px;
  border-radius: var(--radius);
  border: 2px solid var(--ink-200);
  cursor: pointer;
  transition: all .15s ease;
  background: white;
  display: flex; flex-direction: column; gap: 8px;
}
.target-option input { position: absolute; opacity: 0; pointer-events: none; }
.target-option:hover { border-color: var(--sky-300); }
.target-option .target-icon {
  width: 36px; height: 36px;
  background: var(--ink-100);
  border-radius: 10px;
  display: grid; place-items: center;
  color: var(--ink-600);
  transition: all .15s ease;
}
.target-option .target-icon svg { width: 20px; height: 20px; }
.target-option .target-name { font-weight: 600; color: var(--ink-900); font-size: 14.5px; }
.target-option .target-desc { font-size: 12.5px; color: var(--ink-500); line-height: 1.4; }
.target-option input:checked ~ * { color: inherit; }
.target-option:has(input:checked) {
  border-color: var(--sky-500);
  background: linear-gradient(135deg, var(--sky-50), white);
  box-shadow: var(--shadow-glow);
}
.target-option:has(input:checked) .target-icon {
  background: var(--sky-500);
  color: white;
}

/* =============================================================
   SEARCH & USER LIST
   ============================================================= */
.search-wrap { position: relative; }
.search-wrap .input { padding-left: 42px; }
.search-wrap svg {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--ink-400);
}

.user-list {
  display: flex; flex-direction: column;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius);
  max-height: 380px;
  overflow-y: auto;
  background: white;
}
.user-row {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--ink-100);
  cursor: pointer;
  transition: background .12s ease;
}
.user-row:last-child { border-bottom: 0; }
.user-row:hover { background: var(--sky-50); }
.user-row .check {
  width: 20px; height: 20px;
  border: 2px solid var(--ink-300); border-radius: 6px;
  display: grid; place-items: center;
  transition: all .12s ease;
  flex-shrink: 0;
}
.user-row .check svg { width: 14px; height: 14px; color: white; opacity: 0; }
.user-row.selected .check {
  background: var(--sky-500);
  border-color: var(--sky-500);
}
.user-row.selected .check svg { opacity: 1; }
.user-row.selected { background: var(--sky-50); }
.user-row .ux-avatar {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--ink-700), var(--ink-900));
  border-radius: 50%;
  display: grid; place-items: center;
  color: white; font-weight: 600; font-size: 13px;
  flex-shrink: 0;
}
.user-row .ux-meta { flex: 1; min-width: 0; }
.user-row .ux-name { font-weight: 600; color: var(--ink-900); font-size: 14px; }
.user-row .ux-tel  { font-family: var(--font-mono); color: var(--ink-500); font-size: 12.5px; }
.user-row .ux-status {
  font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.ux-status.ok { background: #ecfdf5; color: var(--success); }
.ux-status.no { background: #fef2f2; color: var(--danger); }
.user-empty {
  padding: 32px; text-align: center; color: var(--ink-400);
  font-size: 14px;
}

.selected-summary {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: var(--sky-50);
  border: 1px solid var(--sky-200);
  border-radius: var(--radius);
  font-size: 13.5px;
  color: var(--sky-700);
}
.selected-summary strong { font-family: var(--font-mono); }

/* =============================================================
   LOCK BANNER & PROGRESS
   ============================================================= */
.lock-banner {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border: 1px solid #fde68a;
  border-radius: var(--radius);
  margin-bottom: 24px;
  color: #92400e;
}
.lock-banner .spin {
  width: 22px; height: 22px;
  border: 3px solid #fde68a;
  border-top-color: #f59e0b;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}
.lock-banner strong { font-weight: 700; }
.lock-banner .lock-meta {
  font-family: var(--font-mono); font-size: 12px;
  color: #b45309; margin-top: 2px;
}

@keyframes spin { to { transform: rotate(360deg); } }

.progress-card {
  margin-top: 20px;
  padding: 20px;
  background: linear-gradient(135deg, var(--sky-50), white);
  border: 1px solid var(--sky-200);
  border-radius: var(--radius);
}
.progress-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px;
}
.progress-head .label { font-size: 14px; font-weight: 600; color: var(--ink-900); }
.progress-head .count { font-family: var(--font-mono); font-size: 14px; color: var(--sky-700); font-weight: 600; }
.progress-bar {
  width: 100%; height: 10px;
  background: white;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--sky-200);
}
.progress-bar > div {
  height: 100%;
  background: linear-gradient(90deg, var(--sky-400), var(--sky-600));
  border-radius: 999px;
  transition: width .4s ease;
  box-shadow: 0 0 8px rgba(14,165,233,.4);
}
.progress-stats {
  display: flex; gap: 16px; margin-top: 12px;
  font-size: 12.5px; color: var(--ink-600);
}
.progress-stats span { font-family: var(--font-mono); font-weight: 600; }
.progress-stats .ok { color: var(--success); }
.progress-stats .ko { color: var(--danger); }

/* =============================================================
   LIVE FEED — chaque user défile pendant l'envoi
   ============================================================= */
.feed-head {
  display: flex; align-items: center; gap: 10px;
  margin-top: 22px; margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--sky-200);
}
.feed-title {
  font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--sky-700);
}
.feed-pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(16,185,129,.6);
  animation: feedPulse 1.4s ease-out infinite;
}
@keyframes feedPulse {
  0%   { box-shadow: 0 0 0 0 rgba(16,185,129,.6); }
  70%  { box-shadow: 0 0 0 10px rgba(16,185,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}

.live-feed {
  max-height: 360px;
  overflow-y: auto;
  background: white;
  border: 1px solid var(--sky-200);
  border-radius: var(--radius);
  padding: 6px;
}
.live-feed:empty::before {
  content: 'En attente du premier envoi…';
  display: block; text-align: center;
  color: var(--ink-400); font-size: 13px;
  padding: 24px;
}

.feed-row {
  display: grid;
  grid-template-columns: 32px 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  animation: feedIn .35s cubic-bezier(.34, 1.56, .64, 1);
  transform-origin: top;
}
.feed-row + .feed-row { margin-top: 2px; }
.feed-row:hover { background: var(--ink-50); }

@keyframes feedIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.96);
    max-height: 0;
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    max-height: 60px;
  }
}

.feed-avatar {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--ink-700), var(--ink-900));
  border-radius: 50%;
  display: grid; place-items: center;
  color: white; font-weight: 600; font-size: 11.5px;
  letter-spacing: 0.02em;
}
.feed-meta { min-width: 0; }
.feed-name {
  font-weight: 600; color: var(--ink-900);
  font-size: 13.5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.feed-tel {
  font-family: var(--font-mono);
  font-size: 11.5px; color: var(--ink-500);
}
.feed-status {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600;
  padding: 4px 10px; border-radius: 999px;
}
.feed-icon { display: grid; place-items: center; }
.feed-icon svg { width: 12px; height: 12px; }

.feed-row.sent .feed-status {
  background: #ecfdf5; color: var(--success);
}
.feed-row.failed .feed-status {
  background: #fef2f2; color: var(--danger);
}
.feed-row.skipped .feed-status {
  background: var(--ink-100); color: var(--ink-500);
}

.feed-time {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-400);
  font-variant-numeric: tabular-nums;
}

.live-feed::-webkit-scrollbar { width: 6px; }
.live-feed::-webkit-scrollbar-thumb { background: var(--ink-300); border-radius: 3px; }

/* =============================================================
   TABLE — history
   ============================================================= */
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
.table thead th {
  text-align: left;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-500);
  padding: 12px 16px;
  background: var(--ink-50);
  border-bottom: 1px solid var(--ink-200);
}
.table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--ink-100);
  font-size: 14px;
  vertical-align: middle;
}
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--ink-50); }
.table .mono { font-family: var(--font-mono); }
.status-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.status-badge.completed { background: #ecfdf5; color: var(--success); }
.status-badge.processing { background: #eff6ff; color: var(--sky-600); }
.status-badge.failed   { background: #fef2f2; color: var(--danger); }
.status-badge.pending  { background: #fffbeb; color: var(--warning); }
.status-badge .dot {
  width: 6px; height: 6px; border-radius: 50%; background: currentColor;
}
.status-badge.processing .dot { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.3; transform: scale(0.6); } }

/* =============================================================
   TOAST
   ============================================================= */
.toast-container {
  position: fixed; top: 24px; right: 24px;
  display: flex; flex-direction: column; gap: 10px;
  z-index: 9999;
  pointer-events: none;
}
.toast {
  background: white;
  padding: 14px 18px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--sky-500);
  font-size: 14px;
  min-width: 280px;
  max-width: 380px;
  pointer-events: auto;
  animation: slideIn .25s ease;
}
.toast.success { border-left-color: var(--success); }
.toast.error   { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }
.toast strong { display: block; margin-bottom: 2px; }
.toast small  { color: var(--ink-500); font-size: 12.5px; }
@keyframes slideIn { from { transform: translateX(110%); opacity: 0; } }

/* =============================================================
   LOGIN PAGE
   ============================================================= */
.login-bg {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at top right, rgba(14,165,233,.25), transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(56,189,248,.15), transparent 50%),
    linear-gradient(135deg, var(--ink-900), var(--ink-950));
  display: grid; place-items: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.login-bg::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(56,189,248,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56,189,248,.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black, transparent 70%);
}
.login-card {
  width: 100%; max-width: 420px;
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.5);
  position: relative;
  z-index: 1;
}
.login-brand {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 32px;
}
.login-brand .brand-icon { width: 52px; height: 52px; }
.login-brand .brand-icon svg { width: 30px; height: 30px; }
.login-brand .brand-name { font-size: 18px; color: white; }
.login-brand .brand-sub  { font-size: 12px; color: var(--ink-400); }

.login-title {
  font-size: 26px; font-weight: 700;
  color: white;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.login-sub {
  color: var(--ink-400);
  font-size: 14px;
  margin-bottom: 28px;
}

.login-card .label { color: var(--ink-300); }
.login-card .input {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.1);
  color: white;
}
.login-card .input::placeholder { color: var(--ink-500); }
.login-card .input:focus {
  background: rgba(255,255,255,.07);
  border-color: var(--sky-400);
  box-shadow: 0 0 0 4px rgba(14,165,233,.15);
}

.login-card .btn-primary { width: 100%; padding: 13px; font-size: 15px; }

.login-error {
  background: rgba(239,68,68,.1);
  border: 1px solid rgba(239,68,68,.25);
  color: #fca5a5;
  padding: 11px 14px;
  border-radius: var(--radius);
  font-size: 13.5px;
  margin-bottom: 18px;
}

.login-footer {
  text-align: center;
  margin-top: 26px;
  color: var(--ink-500);
  font-size: 12px;
  letter-spacing: 0.04em;
}

/* Scrollbar custom */
.user-list::-webkit-scrollbar,
.sidebar::-webkit-scrollbar { width: 6px; }
.user-list::-webkit-scrollbar-thumb { background: var(--ink-300); border-radius: 3px; }
.sidebar::-webkit-scrollbar-thumb   { background: rgba(255,255,255,.08); border-radius: 3px; }

/* Utility */
.flex { display: flex; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-24 { margin-bottom: 24px; }
.text-mono { font-family: var(--font-mono); }
.text-muted { color: var(--ink-500); }
