/* ============================================================
   Virtual Office — Design System
   Blue gradient bg · Glass sidebar · White main panel
   ============================================================ */

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

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0 }
html, body { height: 100%; -webkit-font-smoothing: antialiased; overflow: hidden }
button { cursor: pointer; font-family: inherit; border: none; background: none }
img { max-width: 100% }
a { text-decoration: none }

body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  background: linear-gradient(145deg, #3889bb 0%, #4fa0d0 35%, #72bde8 65%, #87cefa 100%);
  color: #0a1628;
}

/* ── Blobs ── */
#blobs {
  position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
}
.blob { position: absolute; border-radius: 50%; filter: blur(72px) }
.blob-1 {
  width: 580px; height: 580px; top: -140px; right: -60px;
  background: radial-gradient(circle, rgba(255,255,255,.28) 0%, transparent 65%);
  animation: bd1 22s ease-in-out infinite;
}
.blob-2 {
  width: 460px; height: 460px; bottom: -90px; left: -50px;
  background: radial-gradient(circle, rgba(40,90,160,.35) 0%, transparent 65%);
  animation: bd2 28s ease-in-out infinite;
}
.blob-3 {
  width: 300px; height: 300px; top: 30%; right: 15%;
  background: radial-gradient(circle, rgba(255,255,255,.18) 0%, transparent 65%);
  animation: bd3 19s ease-in-out infinite;
}
.blob-4 {
  width: 220px; height: 220px; top: 60%; left: 20%;
  background: radial-gradient(circle, rgba(30,80,150,.3) 0%, transparent 65%);
  animation: bd4 24s ease-in-out infinite;
}
@keyframes bd1 { 0%,100%{transform:translate(0,0)} 33%{transform:translate(-45px,35px)} 66%{transform:translate(20px,-18px)} }
@keyframes bd2 { 0%,100%{transform:translate(0,0)} 33%{transform:translate(50px,-35px)} 66%{transform:translate(-25px,45px)} }
@keyframes bd3 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(-28px,22px) scale(1.12)} }
@keyframes bd4 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(22px,-28px)} }

/* ── Shell ── */
.app-layout {
  display: flex;
  height: 100%;
  position: relative;
  z-index: 1;
  padding: 14px;
  gap: 14px;
}

/* ── Sidebar ── */
.sidebar {
  width: 56px;
  flex-shrink: 0;
  height: 100%;
  background: transparent;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: width .28s cubic-bezier(.4,0,.2,1);
  position: relative;
  z-index: 20;
}
.sidebar:hover { width: 224px }

/* ── Sidebar Brand ── */
.sidebar-brand {
  height: 58px;
  display: flex;
  align-items: center;
  padding: 0 13px;
  gap: 12px;
  overflow: hidden;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.brand-icon {
  width: 30px; height: 30px;
  border-radius: 8px;
  flex-shrink: 0;
  background: #87cefa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #07183a;
  box-shadow: 0 0 20px rgba(135,206,250,.45);
}

.brand-name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .18s .06s;
}
.brand-name span {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: rgba(255,255,255,.45);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.sidebar:hover .brand-name { opacity: 1 }

/* ── Sidebar Nav ── */
.sidebar-nav {
  overflow-y: auto;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 0 0 auto;
}
.sidebar-nav::-webkit-scrollbar { display: none }

.nav-section-title {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  padding: 10px 8px 4px;
  white-space: nowrap;
  overflow: hidden;
  opacity: 0;
  transition: opacity .14s;
}
.sidebar:hover .nav-section-title { opacity: 1 }

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 0 11px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,.6);
  cursor: pointer;
  transition: all .14s;
  white-space: nowrap;
  overflow: hidden;
  position: relative;
  text-decoration: none;
}
.nav-item:hover { background: rgba(255,255,255,.08); color: #fff; text-decoration: none }
.nav-item.active {
  background: rgba(135,206,250,.18);
  color: #87cefa;
  box-shadow: inset 0 0 0 1px rgba(135,206,250,.2);
}
.nav-item.active::after {
  content: '';
  position: absolute;
  left: 0; top: 22%; bottom: 22%;
  width: 2.5px;
  background: #87cefa;
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(135,206,250,.8);
}

.nav-icon {
  width: 18px; height: 18px;
  flex-shrink: 0;
  opacity: .85;
}

.nav-label {
  opacity: 0;
  transition: opacity .14s .05s;
  flex: 1;
}
.sidebar:hover .nav-label { opacity: 1 }

.nav-badge {
  background: #87cefa;
  color: #07183a;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 20px;
  opacity: 0;
  transition: opacity .14s;
  flex-shrink: 0;
  line-height: 1.6;
}
.nav-badge.green { background: #34d399; color: #072418 }
.sidebar:hover .nav-badge { opacity: 1 }

/* ── Sidebar Info Boxes ── */
.sidebar-info {
  padding: 8px 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
  border-top: 1px solid rgba(255,255,255,.08);
}

.sidebar-info-card {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.06);
  cursor: pointer;
  transition: background .14s, border-color .14s;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.sidebar-info-card:hover {
  background: rgba(255,255,255,.11);
  border-color: rgba(135,206,250,.18);
  text-decoration: none;
}

.sidebar-info-icon {
  width: 26px; height: 26px;
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 12px;
}

.sidebar-info-body {
  flex: 1;
  min-width: 0;
  opacity: 0;
  transition: opacity .14s .05s;
}
.sidebar:hover .sidebar-info-body { opacity: 1 }

.sidebar-info-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: rgba(255,255,255,.35);
  line-height: 1;
  margin-bottom: 2px;
}

.sidebar-info-value {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.sidebar-info-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 20px;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity .14s;
}
.sidebar:hover .sidebar-info-badge { opacity: 1 }

.badge-warn  { background: rgba(251,191,36,.2);  color: #fcd34d }
.badge-alert { background: rgba(248,113,113,.2); color: #f87171 }
.badge-ok    { background: rgba(52,211,153,.2);  color: #34d399 }

/* ── Sidebar User ── */
.sidebar-user {
  padding: 10px 8px;
  border-top: 1px solid rgba(255,255,255,.1);
  flex-shrink: 0;
}

.user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 11px;
  border-radius: 10px;
  cursor: pointer;
  transition: background .14s;
  overflow: hidden;
}
.user-card:hover { background: rgba(255,255,255,.08) }

.user-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, #87cefa, #c084fc);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #07183a;
}

.user-info {
  overflow: hidden;
  opacity: 0;
  transition: opacity .14s;
}
.sidebar:hover .user-info { opacity: 1 }

.user-name { font-size: 12px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.user-role { font-size: 10px; color: rgba(255,255,255,.35) }

/* ── Main white card ── */
.main-content {
  flex: 1;
  min-width: 0;
  background: #fff;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(4,12,40,.55), 0 0 0 1px rgba(135,206,250,.12);
}

/* ── Topbar ── */
.topbar {
  height: 58px;
  padding: 0 22px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #e8edf7;
  background: #fff;
}

.topbar-left  { display: flex; align-items: center; gap: 12px }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px }

.topbar-title {
  font-size: 15px;
  font-weight: 700;
  color: #0a1628;
}

/* ── Page Content ── */
.page-content {
  flex: 1;
  overflow-y: auto;
  padding: 22px;
  background: #f4f8fd;
}
.page-content::-webkit-scrollbar { width: 4px }
.page-content::-webkit-scrollbar-thumb { background: #d0ddf0; border-radius: 2px }

/* ── Page Header ── */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.page-title    { font-size: 20px; font-weight: 700; color: #0a1628 }
.page-subtitle { font-size: 13px; color: #8fa5c0; margin-top: 2px }

/* ── Design tokens ── */
:root {
  --sky:        #87cefa;
  --sky-dim:    rgba(135,206,250,.12);
  --sky-glow:   rgba(135,206,250,.4);
  --sky-deep:   rgba(135,206,250,.08);
  --purple:     #c084fc;
  --purple-dim: rgba(192,132,252,.1);
  --green:      #34d399;
  --green-dim:  rgba(52,211,153,.1);
  --amber:      #fbbf24;
  --amber-dim:  rgba(251,191,36,.1);
  --red:        #f87171;
  --red-dim:    rgba(248,113,113,.1);
  --t1: #0a1628;
  --t2: #4a6080;
  --t3: #8fa5c0;
  --bdr: #e2e8f4;
  --card: #ffffff;
  --r: 14px;
  --r-sm: 9px;
  --accent: #87cefa;
  --accent-dark: #3889bb;
  --color-success: #34d399;
  --color-warning: #fbbf24;
  --color-danger:  #f87171;
  --color-info:    #60a5fa;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fbff;
  --bg-input: #f5f8fe;
  --border-color: #e2e8f4;
  --border-strong: #c8d4ec;
  --text-primary: #0a1628;
  --text-secondary: #4a6080;
  --text-muted: #8fa5c0;
  --bg-main: #f4f8fd;
}

/* ── Cards ── */
.card {
  background: #fff;
  border: 1px solid var(--bdr);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color .18s, box-shadow .2s;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(56,137,187,.08);
}
.card:hover { border-color: #c8d4ec; box-shadow: 0 8px 28px rgba(56,137,187,.18) }
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px }
.card-title  { font-size: 14px; font-weight: 700; color: var(--t1) }
.section-title { font-size: 12px; font-weight: 700; color: var(--t2); text-transform: uppercase; letter-spacing: .06em }

/* ── Stat cards ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.stat-card {
  background: #fff;
  border: 1px solid var(--bdr);
  border-radius: var(--r);
  padding: 18px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(56,137,187,.08);
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 70px; height: 70px;
  border-radius: 0 var(--r) 0 70px;
  opacity: .07;
}
.stat-card.primary::before { background: var(--sky) }
.stat-card.success::before { background: var(--green) }
.stat-card.warning::before { background: var(--amber) }
.stat-card.danger::before  { background: var(--red) }

.stat-icon {
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  margin-bottom: 10px;
}
.stat-card.primary .stat-icon { background: var(--sky-deep) }
.stat-card.success .stat-icon { background: var(--green-dim) }
.stat-card.warning .stat-icon { background: var(--amber-dim) }
.stat-card.danger  .stat-icon { background: var(--red-dim) }

.stat-value { font-size: 28px; font-weight: 700; color: var(--t1); line-height: 1; font-variant-numeric: tabular-nums }
.stat-label { font-size: 12px; color: var(--t3); margin-top: 4px }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 16px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  transition: all .14s;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  border: none;
}
.btn:hover { text-decoration: none }

.btn-primary {
  background: var(--sky);
  color: #07183a;
  box-shadow: 0 2px 14px rgba(135,206,250,.45);
}
.btn-primary:hover { box-shadow: 0 4px 22px rgba(135,206,250,.6); transform: translateY(-1px); color: #07183a }

.btn-secondary {
  background: #f5f8fe;
  color: var(--t2);
  border: 1px solid var(--bdr);
}
.btn-secondary:hover { border-color: #c8d4ec; color: var(--t1) }

.btn-danger  { background: var(--red);   color: #fff }
.btn-danger:hover  { filter: brightness(.92); color: #fff }
.btn-success { background: var(--green); color: #072418 }
.btn-success:hover { filter: brightness(.95); color: #072418 }

.btn-sm { height: 28px; padding: 0 11px; font-size: 12px; border-radius: 8px }

.btn-icon {
  width: 34px; height: 34px;
  border-radius: var(--r-sm);
  border: 1px solid var(--bdr);
  background: #f5f8fe;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  color: var(--t2);
  transition: all .14s;
}
.btn-icon:hover { background: #ebf0fb; border-color: #c8d4ec }

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

.form-label {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--t2);
  margin-bottom: 5px;
}

.form-control {
  width: 100%;
  padding: 8px 12px;
  background: var(--bg-input);
  border: 1px solid var(--bdr);
  border-radius: var(--r-sm);
  color: var(--t1);
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  transition: all .14s;
  outline: none;
  height: 36px;
}
.form-control:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(135,206,250,.2);
  background: #fff;
}
.form-control::placeholder { color: var(--t3) }
select.form-control { cursor: pointer }
textarea.form-control { height: auto; min-height: 90px; resize: vertical }

.form-error { font-size: 11.5px; color: var(--red); margin-top: 4px }
.form-hint  { font-size: 11.5px; color: var(--t3); margin-top: 4px }

/* Toggle switch */
.toggle-switch { position: relative; display: inline-block; width: 44px; height: 24px }
.toggle-switch input { opacity: 0; width: 0; height: 0 }
.toggle-track {
  position: absolute; inset: 0;
  background: #d8e4f5;
  border-radius: 20px;
  cursor: pointer;
  transition: background .14s;
}
.toggle-track::before {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  left: 3px; top: 3px;
  background: white;
  border-radius: 50%;
  transition: transform .14s;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.toggle-switch input:checked + .toggle-track { background: var(--sky) }
.toggle-switch input:checked + .toggle-track::before { transform: translateX(20px) }

/* ── Tables ── */
.table-wrap { overflow-x: auto }

table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
table.data-table th {
  text-align: left;
  padding: 10px 14px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--t3);
  border-bottom: 1px solid var(--bdr);
}
table.data-table td {
  padding: 11px 14px;
  font-size: 13px;
  color: var(--t2);
  border-bottom: 1px solid var(--bdr);
  vertical-align: middle;
}
table.data-table td.t1 { color: var(--t1); font-weight: 500 }
table.data-table tr:last-child td { border-bottom: none }
table.data-table tbody tr { transition: background .1s }
table.data-table tbody tr:hover { background: #f8fbff }

/* ── Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
  border: 1px solid transparent;
  white-space: nowrap;
}

.badge-success, .badge-green { background: var(--green-dim); color: #0f7a56; border-color: rgba(52,211,153,.2) }
.badge-warning, .badge-amber { background: var(--amber-dim); color: #8a5e00; border-color: rgba(251,191,36,.2) }
.badge-danger,  .badge-red   { background: var(--red-dim);   color: #b53030; border-color: rgba(248,113,113,.2) }
.badge-primary, .badge-sky   { background: var(--sky-dim);   color: #1a7fb5; border-color: rgba(135,206,250,.25) }
.badge-secondary, .badge-muted { background: #f0f4fb;        color: var(--t2); border-color: var(--bdr) }
.badge-purple  { background: var(--purple-dim); color: #7c3aed; border-color: rgba(192,132,252,.2) }

/* ── Alerts ── */
.alert {
  padding: 12px 16px;
  border-radius: var(--r-sm);
  font-size: 13px;
  margin-bottom: 16px;
  border: 1px solid transparent;
  display: flex; align-items: flex-start; gap: 10px;
}
.alert-danger  { background: rgba(248,113,113,.07);  border-color: rgba(248,113,113,.2);  color: #b53030 }
.alert-success { background: rgba(52,211,153,.07);   border-color: rgba(52,211,153,.2);   color: #0f7a56 }
.alert-warning { background: rgba(251,191,36,.07);   border-color: rgba(251,191,36,.2);   color: #8a5e00 }
.alert-info    { background: rgba(96,165,250,.07);   border-color: rgba(96,165,250,.2);   color: #1d4ed8 }

/* ── Pagination ── */
.pagination {
  display: flex; gap: 4px; align-items: center;
  justify-content: center; margin-top: 18px;
}
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 32px; height: 32px; padding: 0 8px;
  border-radius: 8px; font-size: 13px;
  border: 1px solid var(--bdr); background: #fff;
  color: var(--t2); text-decoration: none; transition: all .14s;
}
.pagination a:hover { background: #f8fbff; color: var(--t1); text-decoration: none }
.pagination .active, .pagination .current { background: var(--sky); border-color: var(--sky); color: #07183a; font-weight: 700 }
.pagination .dots   { border: none; color: var(--t3) }

/* ── Modal ── */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(4,12,40,.45);
  z-index: 1000; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
.modal-overlay.open { display: flex }
.modal {
  background: #fff;
  border: 1px solid var(--bdr);
  border-radius: 20px;
  padding: 28px;
  max-width: 500px; width: 90%; max-height: 90vh; overflow-y: auto;
  box-shadow: 0 24px 64px rgba(4,12,40,.4);
}
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px }
.modal-title  { font-size: 16px; font-weight: 700; color: var(--t1) }

/* ── Filter Bar ── */
.filter-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px }
.filter-bar .form-control { width: auto; min-width: 150px }

/* ── Agent Status ── */
.agent-status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500 }
.agent-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0 }
.agent-dot.active   { background: var(--green); box-shadow: 0 0 6px var(--green); animation: pulse 2s infinite }
.agent-dot.inactive { background: var(--t3) }
.agent-dot.busy     { background: var(--amber); box-shadow: 0 0 6px var(--amber) }

@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.45} }

/* ── Theme toggle (noop in new design) ── */
.theme-toggle { display: none }

/* ── Auth Page ── */
.auth-page {
  min-height: 100%; display: flex; align-items: center;
  justify-content: center; padding: 20px; position: relative; z-index: 1;
}
.auth-card {
  width: 100%; max-width: 400px;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 20px;
  padding: 38px;
  backdrop-filter: blur(20px);
  box-shadow: 0 24px 64px rgba(4,12,40,.3);
}
.auth-logo { text-align: center; margin-bottom: 26px }
.auth-logo-icon {
  width: 54px; height: 54px;
  background: var(--sky);
  border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 26px; margin-bottom: 14px;
  box-shadow: 0 4px 20px rgba(135,206,250,.5);
}
.auth-logo h1 { font-size: 19px; font-weight: 700; color: var(--t1) }
.auth-logo p  { font-size: 13px; color: var(--t3); margin-top: 3px }

/* ── Hamburger (mobile) ── */
.menu-toggle { display: none; padding: 6px; color: var(--t1) }

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

/* ── Empty state ── */
.empty-state { text-align: center; padding: 40px 24px; color: var(--t3) }
.empty-state-icon { font-size: 36px; margin-bottom: 12px; opacity: .35 }
.empty-state h3   { font-size: 14px; color: var(--t2); margin-bottom: 5px }

/* ── Responsive ── */
@media (max-width: 768px) {
  .app-layout { padding: 8px; gap: 0 }
  .sidebar { position: fixed; z-index: 50; width: 224px; transform: translateX(-230px); transition: transform .28s cubic-bezier(.4,0,.2,1); height: 100% }
  .sidebar.open { transform: translateX(0) }
  .sidebar.open .brand-name,
  .sidebar.open .nav-section-title,
  .sidebar.open .nav-label,
  .sidebar.open .nav-badge,
  .sidebar.open .sidebar-info-body,
  .sidebar.open .sidebar-info-badge,
  .sidebar.open .user-info { opacity: 1 }
  .main-content { border-radius: 0 }
  .menu-toggle { display: flex }
  .page-content { padding: 14px }
  .stats-grid { grid-template-columns: repeat(2, 1fr) }
  .page-header { flex-direction: column; align-items: flex-start; gap: 10px }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr }
  .auth-card  { padding: 22px }
}

/* ── Utilities ── */
.flex            { display: flex }
.items-center    { align-items: center }
.justify-between { justify-content: space-between }
.gap-2  { gap: 8px }
.gap-3  { gap: 12px }
.gap-4  { gap: 16px }
.mt-1   { margin-top: 4px }
.mt-2   { margin-top: 8px }
.mt-4   { margin-top: 16px }
.mb-4   { margin-bottom: 16px }
.mb-6   { margin-bottom: 24px }
.text-sm      { font-size: 12px }
.text-xs      { font-size: 10.5px }
.text-muted   { color: var(--t3) }
.text-danger  { color: var(--red) }
.text-success { color: var(--green) }
.font-bold    { font-weight: 700 }
.font-medium  { font-weight: 500 }
.font-mono    { font-family: 'JetBrains Mono', monospace }
.truncate     { overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.w-full       { width: 100% }
.grid-2       { display: grid; grid-template-columns: 1fr 1fr; gap: 16px }
.grid-3       { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px }
