/* ═══════════════════════════════════════════════════════════════════════════
   Hotel Élite — Admin Dashboard CSS
   ═══════════════════════════════════════════════════════════════════════════ */

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

:root {
  --bg:          #0d0f14;
  --surface:     #151820;
  --surface2:    #1c2030;
  --border:      rgba(255,255,255,0.06);
  --border2:     rgba(255,255,255,0.12);
  --gold:        #d4a843;
  --gold-light:  #f0c060;
  --gold-dim:    rgba(212,168,67,0.12);
  --text:        #e8eaf0;
  --text-muted:  #5e6578;
  --text-dim:    #9099b0;
  --success:     #4ade80;
  --error:       #f87171;
  --warning:     #fbbf24;
  --info:        #60a5fa;
  --purple:      #a78bfa;
  --radius:      12px;
  --radius-sm:   8px;
  --shadow:      0 4px 24px rgba(0,0,0,0.4);
  --sidebar-w:   220px;
  --transition:  0.2s ease;
  font-family: 'Inter', -apple-system, sans-serif;
}

html { font-size: 14px; }
body { background: var(--bg); color: var(--text); line-height: 1.5; overflow-x: hidden; }

/* ── LOGIN ────────────────────────────────────────────────────────────────── */
.login-overlay {
  position: fixed; inset: 0; z-index: 999;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at center, #16181e 0%, #0a0b0e 100%);
  transition: opacity .35s;
}
.login-card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 20px;
  padding: 48px 40px;
  width: 100%; max-width: 400px;
  box-shadow: 0 24px 80px rgba(0,0,0,.7);
  animation: fadeUp .4s ease;
}
@keyframes fadeUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:none; } }
.login-logo { font-size: 1.6rem; font-weight: 700; color: var(--gold); letter-spacing: .04em; margin-bottom: 4px; }
.login-subtitle { color: var(--text-muted); font-size: .85rem; margin-bottom: 32px; }
.login-label { display: block; font-size: .8rem; font-weight: 600; color: var(--text-dim); margin-bottom: 8px; letter-spacing: .05em; text-transform: uppercase; }
.login-input {
  width: 100%; padding: 13px 16px; border-radius: var(--radius-sm);
  background: var(--surface2); border: 1px solid var(--border2); color: var(--text);
  font-size: .95rem; outline: none; transition: border-color var(--transition), box-shadow var(--transition);
  margin-bottom: 12px;
}
.login-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-dim); }
.login-error { display: none; color: var(--error); font-size: .8rem; margin-bottom: 12px; padding: 8px 12px; background: rgba(248,113,113,.1); border-radius: 6px; }
.btn-login {
  width: 100%; padding: 14px; border-radius: var(--radius-sm); border: none;
  background: linear-gradient(135deg, var(--gold), #b8860b);
  color: #0d0f14; font-size: .95rem; font-weight: 700; cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  margin-top: 4px; letter-spacing: .02em;
}
.btn-login:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(212,168,67,.35); }
.btn-login:active { transform: translateY(0); }

/* ── APP SHELL ────────────────────────────────────────────────────────────── */
.app { display: flex; height: 100vh; overflow: hidden; opacity: 0; transition: opacity .4s; }
.app.visible { opacity: 1; }

/* ── SIDEBAR ──────────────────────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  flex-shrink: 0; overflow: hidden;
}
.sidebar-brand {
  padding: 24px 20px 20px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
}
.sidebar-logo { font-size: 1.2rem; color: var(--gold); }
.sidebar-name { font-size: .95rem; font-weight: 700; color: var(--text); letter-spacing: .02em; }
.sidebar-nav { flex: 1; padding: 12px 8px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: var(--radius-sm);
  background: none; border: none; color: var(--text-dim);
  cursor: pointer; font-size: .88rem; font-weight: 500;
  transition: background var(--transition), color var(--transition);
  width: 100%; text-align: left; position: relative;
}
.nav-item:hover { background: var(--surface2); color: var(--text); }
.nav-item.active { background: var(--gold-dim); color: var(--gold); }
.nav-icon { font-size: 1rem; width: 20px; text-align: center; }
.nav-label { flex: 1; }
.nav-badge {
  background: var(--error); color: #fff;
  font-size: .68rem; font-weight: 700;
  padding: 2px 7px; border-radius: 999px;
  display: none;
}
.nav-badge.show { display: block; }
.sidebar-footer {
  padding: 16px 16px 20px;
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 8px;
}
.live-badge {
  display: flex; align-items: center; gap: 6px;
  font-size: .75rem; font-weight: 600; color: var(--success);
}
.live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--success);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:.3;} }
.last-sync { font-size: .7rem; color: var(--text-muted); }
.btn-logout {
  padding: 9px 14px; border-radius: var(--radius-sm);
  background: rgba(248,113,113,.1); border: 1px solid rgba(248,113,113,.2);
  color: var(--error); font-size: .8rem; font-weight: 600;
  cursor: pointer; transition: background var(--transition);
}
.btn-logout:hover { background: rgba(248,113,113,.2); }

/* ── MAIN CONTENT ─────────────────────────────────────────────────────────── */
.main-content { flex: 1; overflow-y: auto; display: flex; flex-direction: column; }

.tab-section { display: none; padding: 28px 32px; flex: 1; }
.tab-section.active { display: block; }

/* ── PAGE HEADER ──────────────────────────────────────────────────────────── */
.page-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 28px; gap: 16px;
}
.page-title { font-size: 1.5rem; font-weight: 700; color: var(--text); line-height: 1.2; }
.page-subtitle { font-size: .82rem; color: var(--text-muted); margin-top: 4px; }

/* ── BUTTONS ──────────────────────────────────────────────────────────────── */
.btn-primary {
  padding: 10px 20px; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--gold), #b8860b);
  color: #0d0f14; font-size: .85rem; font-weight: 700;
  border: none; cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(212,168,67,.3); }
.btn-secondary {
  padding: 10px 20px; border-radius: var(--radius-sm);
  background: var(--surface2); border: 1px solid var(--border2);
  color: var(--text-dim); font-size: .85rem; font-weight: 600; cursor: pointer;
  transition: background var(--transition);
}
.btn-secondary:hover { background: var(--border); }
.btn-success {
  padding: 10px 20px; border-radius: var(--radius-sm);
  background: rgba(74,222,128,.15); border: 1px solid rgba(74,222,128,.3);
  color: var(--success); font-size: .85rem; font-weight: 600; cursor: pointer;
  transition: background var(--transition);
}
.btn-success:hover { background: rgba(74,222,128,.25); }
.btn-warning {
  padding: 10px 20px; border-radius: var(--radius-sm);
  background: rgba(251,191,36,.15); border: 1px solid rgba(251,191,36,.3);
  color: var(--warning); font-size: .85rem; font-weight: 600; cursor: pointer;
  transition: background var(--transition);
}
.btn-warning:hover { background: rgba(251,191,36,.25); }

/* ── METRICS ──────────────────────────────────────────────────────────────── */
.metrics-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 24px; }
.metric-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  position: relative; overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.metric-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.metric-card::before {
  content: ''; position: absolute; top:0; left:0; right:0; height:2px;
}
.metric-card.yellow::before { background: linear-gradient(90deg,var(--gold),transparent); }
.metric-card.green::before  { background: linear-gradient(90deg,var(--success),transparent); }
.metric-card.blue::before   { background: linear-gradient(90deg,var(--info),transparent); }
.metric-card.red::before    { background: linear-gradient(90deg,var(--error),transparent); }
.metric-icon { font-size: 1.5rem; display: block; margin-bottom: 12px; }
.metric-label { font-size: .75rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.metric-value { font-size: 1.7rem; font-weight: 800; color: var(--text); line-height: 1; margin-bottom: 6px; }
.metric-sub { font-size: .72rem; color: var(--text-muted); margin-bottom: 12px; }
.metric-bar-wrap { height: 4px; background: var(--border2); border-radius: 999px; overflow: hidden; }
.metric-bar-fill { height: 100%; border-radius: 999px; width: 0%; transition: width .8s cubic-bezier(.4,0,.2,1); }
.fill-gold    { background: var(--gold); }
.fill-success { background: var(--success); }
.fill-info    { background: var(--info); }
.fill-error   { background: var(--error); }

/* ── MID ROW ──────────────────────────────────────────────────────────────── */
.mid-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.status-row { display: grid; grid-template-columns: 1fr 1.6fr; gap: 16px; margin-bottom: 24px; }

/* ── CARD ─────────────────────────────────────────────────────────────────── */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
}
.card-title {
  font-size: .85rem; font-weight: 700; color: var(--text);
  margin-bottom: 16px; display: flex; align-items: center;
  justify-content: space-between; gap: 8px;
}

/* ── BAR LIST ─────────────────────────────────────────────────────────────── */
.bar-list { display: flex; flex-direction: column; gap: 14px; }
.bar-item {}
.bar-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.bar-label { font-size: .8rem; color: var(--text-dim); }
.bar-val   { font-size: .8rem; font-weight: 600; color: var(--text); }
.bar-track { height: 6px; background: var(--surface2); border-radius: 999px; overflow: hidden; }
.bar-fill  { height: 100%; border-radius: 999px; width: 0; transition: width .8s cubic-bezier(.4,0,.2,1); }
.bar-simple { background: var(--info); }
.bar-doble  { background: var(--gold); }
.bar-suite  { background: var(--purple); }

/* ── ACTIVITY FEED ────────────────────────────────────────────────────────── */
.activity-list { display: flex; flex-direction: column; gap: 2px; max-height: 220px; overflow-y: auto; }
.activity-item { display: flex; align-items: flex-start; gap: 10px; padding: 9px 6px; border-radius: 6px; transition: background var(--transition); }
.activity-item:hover { background: var(--surface2); }
.activity-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.activity-body { flex: 1; min-width: 0; }
.activity-main { font-size: .78rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.activity-time { font-size: .7rem; color: var(--text-muted); margin-top: 2px; }

/* ── GAUGE ────────────────────────────────────────────────────────────────── */
.gauge-wrap { display: flex; align-items: center; gap: 24px; }
.gauge-svg { width: 110px; height: 110px; flex-shrink: 0; }
.gauge-track { fill: none; stroke: var(--surface2); stroke-width: 10; }
.gauge-fill  { fill: none; stroke-width: 10; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dashoffset 1s cubic-bezier(.4,0,.2,1), stroke .5s; }
.gauge-text  { font-size: 18px; font-weight: 800; fill: var(--text); text-anchor: middle; dominant-baseline: middle; }
.gauge-label-svg { font-size: 9px; fill: var(--text-muted); text-anchor: middle; }
.gauge-legend { display: flex; flex-direction: column; gap: 10px; }
.gauge-legend-item { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.gauge-legend-key { font-size: .78rem; color: var(--text-dim); }
.gauge-legend-val { font-size: .82rem; font-weight: 700; color: var(--text); }

/* ── ROOM MAP ─────────────────────────────────────────────────────────────── */
.room-status-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.room-status-cell {
  width: 64px; height: 64px; border-radius: var(--radius-sm);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: .65rem; font-weight: 600; border: 1px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: default;
}
.room-status-cell:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.3); }
.room-cell-num { font-size: .85rem; font-weight: 800; }
.room-status-cell.available  { background: rgba(74,222,128,.12); border-color: rgba(74,222,128,.2); color: var(--success); }
.room-status-cell.occupied   { background: rgba(248,113,113,.12); border-color: rgba(248,113,113,.2); color: var(--error); }
.room-status-cell.checked_in { background: rgba(251,191,36,.14); border-color: rgba(251,191,36,.3); color: var(--warning); }
.room-status-cell.checkout   { background: rgba(167,139,250,.12); border-color: rgba(167,139,250,.2); color: var(--purple); }

/* ── MINI CHART ───────────────────────────────────────────────────────────── */
.mini-chart { height: 80px; display: flex; align-items: flex-end; gap: 6px; }
.mini-bar {
  flex: 1; border-radius: 4px 4px 0 0; min-height: 4px;
  background: linear-gradient(180deg, var(--gold), rgba(212,168,67,.3));
  transition: height .6s cubic-bezier(.4,0,.2,1);
  cursor: pointer;
}
.mini-bar:hover { background: linear-gradient(180deg, var(--gold-light), var(--gold)); }

/* ── TABLE ────────────────────────────────────────────────────────────────── */
.table-section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.table-controls { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.search-wrap { position: relative; flex: 1; min-width: 200px; }
.search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: .85rem; }
.search-input {
  width: 100%; padding: 9px 12px 9px 36px;
  background: var(--surface2); border: 1px solid var(--border2);
  border-radius: var(--radius-sm); color: var(--text); font-size: .85rem; outline: none;
  transition: border-color var(--transition);
}
.search-input:focus { border-color: var(--gold); }
.filter-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.pill {
  padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border2);
  background: none; color: var(--text-muted); font-size: .78rem; font-weight: 600;
  cursor: pointer; transition: all var(--transition);
}
.pill:hover { border-color: var(--text-dim); color: var(--text); }
.pill.active { background: var(--gold-dim); border-color: var(--gold); color: var(--gold); }
.table-wrap { overflow-x: auto; }
.res-table { width: 100%; border-collapse: collapse; }
.res-table th {
  padding: 12px 16px; text-align: left;
  font-size: .72rem; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .06em;
  border-bottom: 1px solid var(--border); background: var(--surface);
  white-space: nowrap;
}
.res-table td {
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  vertical-align: middle; font-size: .83rem;
}
.res-table tbody tr { transition: background var(--transition); }
.res-table tbody tr:hover { background: var(--surface2); }
.res-table tbody tr:last-child td { border-bottom: none; }
.td-code { font-family: monospace; font-size: .78rem; color: var(--gold); font-weight: 700; letter-spacing: .02em; }
.td-guest-name { font-weight: 600; color: var(--text); }
.td-guest-email { font-size: .73rem; color: var(--text-muted); }
.td-room-num { font-weight: 700; color: var(--text); }
.td-room-type { font-size: .72rem; color: var(--text-muted); text-transform: capitalize; }
.td-dates-range { color: var(--text); font-weight: 500; white-space: nowrap; }
.td-dates-sub { font-size: .72rem; color: var(--text-muted); }
.td-amount { font-weight: 700; color: var(--gold); white-space: nowrap; }
.table-empty { text-align: center; padding: 48px; color: var(--text-muted); font-size: .85rem; }
.skeleton-row { height: 40px; background: linear-gradient(90deg, var(--surface2) 25%, var(--border) 50%, var(--surface2) 75%); background-size: 200% 100%; border-radius: 6px; animation: shimmer 1.5s infinite; }
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* ── BADGES ───────────────────────────────────────────────────────────────── */
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: .7rem; font-weight: 700; letter-spacing: .04em; white-space: nowrap;
}
.badge-confirmed  { background: rgba(96,165,250,.15); color: var(--info); }
.badge-checked_in { background: rgba(251,191,36,.15); color: var(--warning); }
.badge-completed  { background: rgba(74,222,128,.15); color: var(--success); }
.badge-cancelled  { background: rgba(248,113,113,.12); color: var(--error); }

/* ── ACTION BUTTONS (in table) ────────────────────────────────────────────── */
.action-group { display: flex; justify-content: flex-end; gap: 6px; flex-wrap: wrap; }
.btn-action {
  padding: 5px 12px; border-radius: 6px; border: none;
  font-size: .73rem; font-weight: 600; cursor: pointer;
  transition: all var(--transition); white-space: nowrap;
}
.btn-action.checkin  { background: rgba(96,165,250,.15); color: var(--info); }
.btn-action.checkout { background: rgba(251,191,36,.15); color: var(--warning); }
.btn-action.edit     { background: rgba(167,139,250,.15); color: var(--purple); }
.btn-action.cancel   { background: rgba(248,113,113,.12); color: var(--error); }
.btn-action:hover { filter: brightness(1.2); transform: translateY(-1px); }

/* ── MODALES ──────────────────────────────────────────────────────────────── */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,.7); backdrop-filter: blur(4px);
  align-items: center; justify-content: center;
  padding: 20px; animation: fadeIn .2s ease;
}
.modal-overlay.open { display: flex; }
@keyframes fadeIn { from{opacity:0} to{opacity:1} }
.modal-card {
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: 16px; width: 100%; max-width: 520px;
  box-shadow: 0 24px 80px rgba(0,0,0,.8);
  animation: slideUp .25s cubic-bezier(.34,1.56,.64,1);
  max-height: 90vh; overflow-y: auto; display: flex; flex-direction: column;
}
.modal-card.modal-lg { max-width: 680px; }
.modal-card.modal-sm { max-width: 420px; }
@keyframes slideUp { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:none} }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.modal-title { font-size: 1rem; font-weight: 700; color: var(--text); }
.modal-close { background: none; border: none; color: var(--text-muted); font-size: 1.1rem; cursor: pointer; padding: 4px; line-height: 1; transition: color var(--transition); }
.modal-close:hover { color: var(--text); }
.modal-body { padding: 24px; flex: 1; }
.modal-footer {
  padding: 16px 24px; border-top: 1px solid var(--border);
  display: flex; justify-content: flex-end; gap: 10px; flex-shrink: 0;
}
.modal-info-banner {
  padding: 12px 14px; background: var(--surface2);
  border: 1px solid var(--border2); border-radius: var(--radius-sm);
  font-size: .82rem; color: var(--text-dim);
  margin-bottom: 16px; line-height: 1.6;
}
.modal-info-banner:empty { display: none; }

/* ── FORMS ────────────────────────────────────────────────────────────────── */
.form-section-title { font-size: .72rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.form-group { margin-bottom: 14px; }
.form-row .form-group { margin-bottom: 0; }
.form-group label { display: block; font-size: .78rem; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; letter-spacing: .03em; text-transform: uppercase; }
.form-input {
  width: 100%; padding: 10px 14px; border-radius: var(--radius-sm);
  background: var(--surface2); border: 1px solid var(--border2); color: var(--text);
  font-size: .88rem; outline: none; font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-dim); }
.form-select { cursor: pointer; }
.form-select option { background: var(--surface2); }
.form-textarea { min-height: 80px; resize: vertical; }
.price-preview {
  background: var(--gold-dim); border: 1px solid rgba(212,168,67,.2);
  border-radius: var(--radius-sm); padding: 12px 16px;
  font-size: .88rem; font-weight: 700; color: var(--gold);
  margin-top: 4px;
}
.price-preview:empty { display: none; }

/* ── CONFIRM MODALS ────────────────────────────────────────────────────────── */
.confirm-icon { font-size: 3rem; text-align: center; margin-bottom: 12px; }
.confirm-text { text-align: center; color: var(--text-dim); font-size: .9rem; margin-bottom: 16px; line-height: 1.6; }

/* ── TOAST ────────────────────────────────────────────────────────────────── */
.toast-area { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; max-width: 340px; }
.toast {
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: 12px; padding: 14px 16px;
  display: flex; align-items: flex-start; gap: 12px;
  box-shadow: var(--shadow); animation: slideInRight .3s ease;
}
@keyframes slideInRight { from{opacity:0;transform:translateX(20px)} to{opacity:1;transform:none} }
.toast.out { animation: slideOutRight .3s ease forwards; }
@keyframes slideOutRight { to{opacity:0;transform:translateX(30px)} }
.toast-success { border-left: 3px solid var(--success); }
.toast-error   { border-left: 3px solid var(--error); }
.toast-info    { border-left: 3px solid var(--info); }
.toast-warning { border-left: 3px solid var(--warning); }
.toast-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.toast-body { flex: 1; }
.toast-title { font-size: .83rem; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.toast-msg { font-size: .78rem; color: var(--text-muted); }
.toast-close { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 1rem; padding: 0; line-height: 1; flex-shrink: 0; }
.toast-close:hover { color: var(--text); }

/* ── SCROLLBAR ────────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ── RESPONSIVE ───────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .metrics-grid { grid-template-columns: repeat(2,1fr); }
  .mid-row { grid-template-columns: 1fr 1fr; }
  .mid-row .card:last-child { grid-column: 1/-1; }
}
@media (max-width: 768px) {
  :root { --sidebar-w: 60px; }
  .sidebar-name, .nav-label, .sidebar-footer .last-sync, .sidebar-footer .live-badge { display: none; }
  .sidebar-brand { justify-content: center; padding: 16px 8px; }
  .nav-item { justify-content: center; padding: 12px; }
  .sidebar-footer { align-items: center; padding: 12px 8px; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .mid-row, .status-row { grid-template-columns: 1fr; }
  .tab-section { padding: 16px; }
}
