/* ──────────────────────────────────────────────────────────────
   StokSentinel v3 — Premium Dark + Gold Design System
   ────────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Space+Grotesk:wght@500;600&display=swap');

:root {
  /* Backgrounds */
  --bg-0: #070708;
  --bg-1: #0d0d10;
  --bg-2: #141418;
  --bg-3: #1c1c22;
  --bg-hover: #20202a;

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-default: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.15);
  --border-gold: rgba(184, 154, 62, 0.25);

  /* Text */
  --text-primary: #f4f2ec;
  --text-secondary: #a1a09a;
  --text-tertiary: #6d6d68;
  --text-muted: #4a4a46;

  /* Brand */
  --gold: #B89A3E;
  --gold-dim: #8B7331;
  --gold-bright: #D4B65E;
  --gold-glow: rgba(184, 154, 62, 0.15);

  /* Status */
  --success: #4ade80;
  --success-bg: rgba(74, 222, 128, 0.08);
  --success-border: rgba(74, 222, 128, 0.2);
  --warning: #fbbf24;
  --warning-bg: rgba(251, 191, 36, 0.08);
  --warning-border: rgba(251, 191, 36, 0.2);
  --danger: #f87171;
  --danger-bg: rgba(248, 113, 113, 0.08);
  --danger-border: rgba(248, 113, 113, 0.2);
  --info: #60a5fa;
  --info-bg: rgba(96, 165, 250, 0.08);
  --info-border: rgba(96, 165, 250, 0.2);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;

  /* Spacing */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.3);
  --shadow-lg: 0 10px 32px rgba(0,0,0,0.4);
  --shadow-gold: 0 0 20px rgba(184, 154, 62, 0.1);

  /* Transitions */
  --t-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-med: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html, body {
  height: 100%;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--bg-0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-image:
    radial-gradient(at 20% 0%, rgba(184, 154, 62, 0.03) 0%, transparent 50%),
    radial-gradient(at 80% 100%, rgba(184, 154, 62, 0.02) 0%, transparent 50%);
  background-attachment: fixed;
  min-height: 100vh;
}

a { color: var(--gold); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--gold-bright); }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; }

/* ── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-1); }
::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 5px; border: 2px solid var(--bg-1); }
::-webkit-scrollbar-thumb:hover { background: var(--border-default); }

/* ── Layout ───────────────────────────────────────────────── */
.app-shell { display: flex; min-height: 100vh; }

.sidebar {
  width: 240px;
  background: var(--bg-1);
  border-right: 1px solid var(--border-subtle);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  z-index: 100;
}

.main {
  flex: 1;
  margin-left: 240px;
  padding: 28px 36px;
  max-width: 1400px;
}

/* ── Brand ───────────────────────────────────────────────── */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 8px 20px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 20px;
}

.brand-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dim) 100%);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--bg-0);
  font-size: 18px;
  box-shadow: var(--shadow-gold);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.brand-tag {
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 2px;
  font-weight: 500;
}

/* ── Navigation ───────────────────────────────────────────── */
.nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }

.nav-heading {
  font-size: 10px;
  color: var(--text-tertiary);
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 12px 10px 8px;
  font-weight: 500;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 500;
  transition: all var(--t-fast);
  cursor: pointer;
}

.nav-item:hover { background: var(--bg-hover); color: var(--text-primary); }
.nav-item.active {
  background: var(--gold-glow);
  color: var(--gold-bright);
}
.nav-item.active .nav-icon { color: var(--gold); }

.nav-icon { width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; }

/* ── Sidebar Footer ───────────────────────────────────────── */
.sidebar-footer { padding-top: 20px; border-top: 1px solid var(--border-subtle); }

.user-box {
  padding: 12px;
  background: var(--bg-2);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
}
.user-box-label { font-size: 10px; color: var(--text-tertiary); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 4px; }
.user-box-value { font-size: 13px; font-weight: 500; color: var(--text-primary); }
.user-box-sub { font-size: 11px; color: var(--text-secondary); margin-top: 2px; }

.logout-btn {
  width: 100%;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  transition: all var(--t-fast);
}
.logout-btn:hover { border-color: var(--danger); color: var(--danger); }

/* ── Page Header ──────────────────────────────────────────── */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.page-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.page-sub { font-size: 12.5px; color: var(--text-tertiary); margin-top: 2px; }

.page-actions { display: flex; gap: 10px; align-items: center; }

/* ── Status Badge ─────────────────────────────────────────── */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid;
}

.status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  display: inline-block;
}

.status-badge.active { background: var(--success-bg); border-color: var(--success-border); color: var(--success); }
.status-badge.active .status-dot { background: var(--success); box-shadow: 0 0 8px var(--success); }

.status-badge.warning { background: var(--warning-bg); border-color: var(--warning-border); color: var(--warning); }
.status-badge.warning .status-dot { background: var(--warning); }

.status-badge.inactive { background: var(--bg-2); border-color: var(--border-default); color: var(--text-tertiary); }
.status-badge.inactive .status-dot { background: var(--text-tertiary); }

.status-badge.danger { background: var(--danger-bg); border-color: var(--danger-border); color: var(--danger); }
.status-badge.danger .status-dot { background: var(--danger); }

@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.status-badge.active .status-dot { animation: pulse 2s infinite; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--bg-2);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  transition: all var(--t-fast);
  white-space: nowrap;
}
.btn:hover { background: var(--bg-hover); border-color: var(--border-strong); }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dim) 100%);
  color: var(--bg-0);
  border-color: var(--gold);
  font-weight: 600;
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 100%);
  border-color: var(--gold-bright);
  box-shadow: var(--shadow-gold);
}

.btn-danger { color: var(--danger); border-color: var(--danger-border); background: var(--danger-bg); }
.btn-danger:hover { background: rgba(248, 113, 113, 0.15); }

.btn-success { color: var(--success); border-color: var(--success-border); background: var(--success-bg); }
.btn-success:hover { background: rgba(74, 222, 128, 0.15); }

.btn-icon { padding: 10px; }
.btn-sm { padding: 6px 10px; font-size: 12px; }

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--bg-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: border-color var(--t-fast);
}
.card:hover { border-color: var(--border-default); }

.card-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.2px;
  margin-bottom: 4px;
}

.card-sub { font-size: 12px; color: var(--text-tertiary); margin-bottom: 16px; }

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

/* ── Stat Cards ───────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.stat-card {
  background: var(--bg-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  transition: all var(--t-fast);
}
.stat-card:hover { border-color: var(--border-default); transform: translateY(-1px); }

.stat-label {
  font-size: 10.5px;
  color: var(--text-tertiary);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
  font-weight: 500;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -1px;
  line-height: 1;
}

.stat-value.gold { color: var(--gold); }
.stat-value.success { color: var(--success); }
.stat-value.warning { color: var(--warning); }

.stat-sub { font-size: 11px; color: var(--text-tertiary); margin-top: 6px; }

/* ── Bot Status Panel ─────────────────────────────────────── */
.bot-panel {
  background: linear-gradient(135deg, var(--bg-1) 0%, var(--bg-2) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.bot-panel-left { display: flex; align-items: center; gap: 16px; }

.bot-panel-indicator {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 12px var(--success);
  animation: pulse 2s infinite;
}
.bot-panel-indicator.inactive { background: var(--text-tertiary); box-shadow: none; animation: none; }
.bot-panel-indicator.warning { background: var(--warning); box-shadow: 0 0 12px var(--warning); }

.bot-panel-text h3 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 2px;
}
.bot-panel-text p { font-size: 12.5px; color: var(--text-secondary); }

.bot-panel-right { display: flex; align-items: center; gap: 20px; }

.bot-panel-meta {
  text-align: right;
}
.bot-panel-meta-label { font-size: 10px; color: var(--text-tertiary); letter-spacing: 1.5px; text-transform: uppercase; }
.bot-panel-meta-value { font-family: var(--font-display); font-size: 14px; font-weight: 500; color: var(--gold); margin-top: 2px; }

/* ── Cookie Status Card ───────────────────────────────────── */
.cookie-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--bg-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  gap: 14px;
}

.cookie-status.fresh { border-color: var(--success-border); background: var(--success-bg); }
.cookie-status.warning { border-color: var(--warning-border); background: var(--warning-bg); }
.cookie-status.expired, .cookie-status.missing { border-color: var(--danger-border); background: var(--danger-bg); }

.cookie-status-icon {
  width: 32px; height: 32px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cookie-status.fresh .cookie-status-icon { background: var(--success); color: var(--bg-0); }
.cookie-status.warning .cookie-status-icon { background: var(--warning); color: var(--bg-0); }
.cookie-status.expired .cookie-status-icon, .cookie-status.missing .cookie-status-icon { background: var(--danger); color: var(--bg-0); }

.cookie-status-text { flex: 1; }
.cookie-status-text strong { font-size: 13.5px; font-weight: 500; display: block; margin-bottom: 2px; }
.cookie-status-text span { font-size: 12px; color: var(--text-secondary); }

/* ── Notifications List ───────────────────────────────────── */
.notif-list { display: flex; flex-direction: column; }

.notif-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--t-fast);
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--bg-hover); margin: 0 -16px; padding: 14px 16px; border-radius: var(--radius-md); }

.notif-img {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  background: var(--bg-2);
  object-fit: cover;
  flex-shrink: 0;
}

.notif-info { flex: 1; min-width: 0; }
.notif-name { font-size: 13.5px; font-weight: 500; margin-bottom: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notif-meta { font-size: 11.5px; color: var(--text-tertiary); }

.notif-badge {
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-mono);
  white-space: nowrap;
}
.notif-badge.empty { background: var(--danger-bg); border: 1px solid var(--danger-border); color: var(--danger); }
.notif-badge.low { background: var(--warning-bg); border: 1px solid var(--warning-border); color: var(--warning); }

.empty-state {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-tertiary);
  font-size: 13px;
}

/* ── Log List ─────────────────────────────────────────────── */
.log-list {
  font-family: var(--font-mono);
  font-size: 12px;
  max-height: 400px;
  overflow-y: auto;
}

.log-item {
  display: flex;
  gap: 12px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
}
.log-item:hover { background: var(--bg-hover); }

.log-time { color: var(--text-tertiary); min-width: 65px; }
.log-msg { flex: 1; color: var(--text-secondary); }
.log-item.success .log-msg { color: var(--success); }
.log-item.warning .log-msg { color: var(--warning); }
.log-item.error .log-msg { color: var(--danger); }

/* ── Forms ────────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }

.form-label {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg-2);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 13.5px;
  transition: all var(--t-fast);
  font-family: var(--font-sans);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); }

.form-textarea {
  resize: vertical;
  min-height: 120px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
}

.form-help { font-size: 11.5px; color: var(--text-tertiary); margin-top: 5px; line-height: 1.5; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ── Login Page ───────────────────────────────────────────── */
.login-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-1);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.login-brand { text-align: center; margin-bottom: 32px; }
.login-brand .brand-icon { margin: 0 auto 14px; width: 48px; height: 48px; font-size: 24px; }
.login-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}
.login-sub { font-size: 13px; color: var(--text-tertiary); }

.error-banner {
  padding: 10px 14px;
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  border-radius: var(--radius-md);
  color: var(--danger);
  font-size: 12.5px;
  margin-bottom: 16px;
}

/* ── Toast ────────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 9999;
  display: flex; flex-direction: column; gap: 10px;
}

.toast {
  padding: 14px 18px;
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 280px; max-width: 380px;
  font-size: 13px;
  animation: toastIn 300ms cubic-bezier(0.2, 0.9, 0.3, 1.3);
}
@keyframes toastIn { from { transform: translateX(20px); opacity: 0; } to { transform: none; opacity: 1; } }

.toast.success { border-color: var(--success-border); background: var(--success-bg); color: var(--success); }
.toast.error { border-color: var(--danger-border); background: var(--danger-bg); color: var(--danger); }
.toast.warning { border-color: var(--warning-border); background: var(--warning-bg); color: var(--warning); }
.toast.info { border-color: var(--info-border); background: var(--info-bg); color: var(--info); }

/* ── Guide Page ───────────────────────────────────────────── */
.guide-step {
  display: flex;
  gap: 20px;
  padding: 20px;
  background: var(--bg-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  margin-bottom: 14px;
}

.guide-step-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  color: var(--bg-0);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  flex-shrink: 0;
}

.guide-step-content h3 { font-family: var(--font-display); font-size: 15px; font-weight: 500; margin-bottom: 6px; }
.guide-step-content p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }
.guide-step-content code {
  background: var(--bg-2);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  color: var(--gold);
  font-family: var(--font-mono);
}

/* ── Tables (Admin) ───────────────────────────────────────── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th {
  text-align: left;
  padding: 12px 14px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-tertiary);
  border-bottom: 1px solid var(--border-default);
}

.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.data-table tr:hover td { background: var(--bg-hover); }

.table-actions { display: flex; gap: 6px; }

/* ── Modal ────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.modal-backdrop.active { display: flex; animation: fadeIn 200ms; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: var(--bg-1);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
  animation: modalIn 250ms cubic-bezier(0.2, 0.9, 0.3, 1.1);
}
@keyframes modalIn { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.modal-header {
  display: flex; justify-content: space-between; align-items: start;
  margin-bottom: 20px; padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-title { font-family: var(--font-display); font-size: 17px; font-weight: 500; letter-spacing: -0.3px; }
.modal-sub { font-size: 12.5px; color: var(--text-tertiary); margin-top: 4px; }

.modal-close {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-tertiary);
  transition: all var(--t-fast);
}
.modal-close:hover { background: var(--bg-hover); color: var(--text-primary); }

.modal-footer {
  display: flex; justify-content: flex-end; gap: 10px;
  margin-top: 24px; padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); transition: transform var(--t-med); }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; padding: 20px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-value { font-size: 22px; }
  .bot-panel { flex-direction: column; align-items: flex-start; }
  .page-header { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* ── Utilities ────────────────────────────────────────────── */
.row { display: flex; align-items: center; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.text-muted { color: var(--text-tertiary); }
.text-gold { color: var(--gold); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.font-mono { font-family: var(--font-mono); }
.hidden { display: none !important; }

/* Skeleton loader */
.skeleton {
  background: linear-gradient(90deg, var(--bg-2) 0%, var(--bg-3) 50%, var(--bg-2) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
