/* ════════════════════════════════════════════════
   Prelaunch Circle — Premium Dark Glass Theme
   ════════════════════════════════════════════════ */
:root {
  --bg:         #0f172a;
  --surface:    rgba(255,255,255,0.04);
  --surface-md: rgba(255,255,255,0.07);
  --border:     rgba(255,255,255,0.08);
  --border-md:  rgba(255,255,255,0.15);
  --muted:      rgba(255,255,255,0.5);
  --dim:        rgba(255,255,255,0.3);
  --white:      #ffffff;
  --red:        #ef4444;  --red-glow:   rgba(239,68,68,0.25);
  --orange:     #f97316;  --orange-glow:rgba(249,115,22,0.25);
  --indigo:     #6366f1;  --indigo-glow:rgba(99,102,241,0.25);
  --purple:     #8b5cf6;  --purple-glow:rgba(139,92,246,0.25);
  --cyan:       #06b6d4;  --cyan-glow:  rgba(6,182,212,0.25);
  --green:      #10b981;  --green-glow: rgba(16,185,129,0.25);
  --amber:      #f59e0b;  --amber-glow: rgba(245,158,11,0.25);
  --yellow:     #fcd34d;
  --admin-grad:   linear-gradient(135deg,#ef4444,#f97316);
  --agent-grad:   linear-gradient(135deg,#8b5cf6,#06b6d4);
  --builder-grad: linear-gradient(135deg,#f59e0b,#f97316);
  --sidebar-grad: linear-gradient(160deg,#1e1b4b 0%,#312e81 40%,#1e3a5f 100%);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 15px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── Layout ─────────────────────────────────── */
.db-root   { display: flex; min-height: 100vh; overflow: hidden; }
.db-sidebar {
  width: 240px; flex-shrink: 0; display: flex; flex-direction: column;
  background: var(--sidebar-grad); border-right: 1px solid var(--border);
  position: sticky; top: 0; height: 100vh; overflow-y: auto; z-index: 100;
}
.db-main { flex: 1; display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.db-topbar {
  position: sticky; top: 0; z-index: 90; display: flex; align-items: center;
  gap: 12px; padding: 14px 24px; background: rgba(15,23,42,0.92);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--border);
  min-height: 64px;
}
.db-content { flex: 1; padding: 24px; overflow-y: auto; }
.db-page-title    { font-size: 19px; font-weight: 700; color: var(--white); }
.db-page-subtitle { font-size: 12px; color: var(--dim); margin-top: 2px; }

/* ── Sidebar nav ─────────────────────────────── */
.sidebar-brand {
  padding: 22px 18px 16px; display: flex; align-items: center;
  gap: 10px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sidebar-logo {
  width: 40px; height: 40px; border-radius: 11px; background: var(--admin-grad);
  display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0;
}
.sidebar-brand-name  { font-size: 15px; font-weight: 700; color: var(--white); }
.sidebar-brand-sub   { font-size: 11px; color: var(--dim); }
.sidebar-profile {
  margin: 12px 14px 4px; padding: 14px; border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.08);
}
.sidebar-avatar {
  width: 42px; height: 42px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; color: var(--white);
  font-weight: 800; font-size: 18px; margin-bottom: 8px;
}
.sidebar-user-name { font-size: 14px; font-weight: 600; color: var(--white); }
.sidebar-user-role { font-size: 11px; color: var(--dim); margin-bottom: 6px; }
.sidebar-role-badge {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: 10px; font-weight: 600;
}
.sidebar-nav { flex: 1; padding: 10px; overflow-y: auto; }
.nav-section-label {
  color: rgba(255,255,255,0.3); font-size: 10px; font-weight: 700;
  letter-spacing: 1.2px; text-transform: uppercase; padding: 8px 10px 4px;
}
.nav-item {
  display: flex; align-items: center; gap: 11px; padding: 11px 13px;
  border-radius: var(--radius-sm); cursor: pointer; margin-bottom: 2px;
  min-height: 44px; border: 1px solid transparent; text-decoration: none;
  color: var(--muted); font-size: 14px; font-weight: 400; transition: all 0.15s;
}
.nav-item:hover { background: var(--surface-md); color: var(--white); }
.nav-item.active {
  background: linear-gradient(90deg,rgba(239,68,68,0.2),rgba(249,115,22,0.08));
  border-color: rgba(239,68,68,0.25); color: #fca5a5; font-weight: 600;
}
.nav-item.active.agent {
  background: linear-gradient(90deg,rgba(139,92,246,0.2),rgba(6,182,212,0.08));
  border-color: rgba(139,92,246,0.25); color: #c4b5fd;
}
.nav-item.active.builder {
  background: linear-gradient(90deg,rgba(245,158,11,0.2),rgba(249,115,22,0.08));
  border-color: rgba(245,158,11,0.25); color: #fcd34d;
}
.nav-icon { font-size: 17px; width: 20px; text-align: center; flex-shrink: 0; }
.nav-dot  { width: 7px; height: 7px; border-radius: 50%; margin-left: auto; }
.sidebar-footer { padding: 10px 14px 18px; border-top: 1px solid var(--border); }

/* ── Cards ───────────────────────────────────── */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; position: relative;
}
.card-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px 14px; border-bottom: 1px solid var(--border);
  gap: 10px; flex-wrap: wrap;
}
.card-title  { font-size: 15px; font-weight: 600; color: var(--white); }
.card-body   { padding: 20px 22px; }
.card:hover  { border-color: var(--border-md); }

/* ── Stat cards ──────────────────────────────── */
.stats-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(200px,1fr));
  margin-bottom: 22px;
}
.stat-card {
  padding: 20px; border-radius: var(--radius-lg); border: 1px solid;
  position: relative; overflow: hidden;
}
.stat-icon {
  width: 42px; height: 42px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 12px;
}
.stat-label { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.stat-value { font-size: 26px; font-weight: 800; color: var(--white); line-height: 1; margin-bottom: 8px; }
.stat-change { display: inline-flex; padding: 3px 9px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.stat-change.up   { background: rgba(34,197,94,0.2); color: #4ade80; }
.stat-change.down { background: rgba(239,68,68,0.2);  color: #f87171; }

/* ── Grid layouts ────────────────────────────── */
.grid-2 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill,minmax(320px,1fr)); margin-bottom: 22px; }
.grid-3 { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill,minmax(240px,1fr)); margin-bottom: 22px; }
.prop-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill,minmax(280px,1fr)); margin-bottom: 22px; }

/* ── Property card ───────────────────────────── */
.prop-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; cursor: pointer;
  transition: transform 0.18s, border-color 0.18s;
}
.prop-card:hover { transform: translateY(-3px); border-color: var(--border-md); }
.prop-img {
  height: 130px; position: relative; display: flex;
  align-items: center; justify-content: center; font-size: 36px;
  background-size: cover; background-position: center;
}
.prop-img-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom,transparent 30%,rgba(0,0,0,0.65)); }
.prop-rera { position: absolute; bottom: 7px; left: 10px; font-size: 10px; color: rgba(255,255,255,0.75); }
.prop-body { padding: 13px 14px; }
.prop-name { font-size: 13px; font-weight: 600; color: var(--white); margin-bottom: 2px; }
.prop-sub  { font-size: 11px; color: var(--dim); margin-bottom: 8px; }
.prop-price { font-size: 14px; font-weight: 700; color: var(--yellow); }
.prop-actions { display: flex; gap: 6px; margin-top: 10px; }

/* ── Progress bar ────────────────────────────── */
.progress-wrap { height: 5px; background: rgba(255,255,255,0.08); border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 3px; transition: width 0.4s; }

/* ── Badges ──────────────────────────────────── */
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 600; border: 1px solid;
}
.badge-green  { background: rgba(34,197,94,0.15);  color: #4ade80; border-color: rgba(34,197,94,0.3);  }
.badge-red    { background: rgba(239,68,68,0.15);  color: #f87171; border-color: rgba(239,68,68,0.3);  }
.badge-amber  { background: rgba(245,158,11,0.15); color: #fcd34d; border-color: rgba(245,158,11,0.3); }
.badge-indigo { background: rgba(99,102,241,0.15); color: #a5b4fc; border-color: rgba(99,102,241,0.3); }
.badge-cyan   { background: rgba(6,182,212,0.15);  color: #67e8f9; border-color: rgba(6,182,212,0.3);  }
.badge-purple { background: rgba(139,92,246,0.15); color: #c4b5fd; border-color: rgba(139,92,246,0.3); }
.badge-orange { background: rgba(249,115,22,0.15); color: #fb923c; border-color: rgba(249,115,22,0.3); }
.badge-ghost  { background: rgba(255,255,255,0.07); color: var(--muted); border-color: var(--border);  }

/* ── Buttons ─────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; padding: 10px 18px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600; cursor: pointer; border: none;
  text-decoration: none; min-height: 42px; transition: opacity 0.15s;
}
.btn:hover { opacity: 0.85; }
.btn-primary { background: var(--admin-grad); color: var(--white); }
.btn-agent   { background: var(--agent-grad);   color: var(--white); }
.btn-builder { background: var(--builder-grad); color: var(--white); }
.btn-ghost   { background: var(--surface-md); color: var(--muted); border: 1px solid var(--border); }
.btn-danger  { background: rgba(239,68,68,0.15); color: #f87171; border: 1px solid rgba(239,68,68,0.3); }
.btn-warn    { background: rgba(245,158,11,0.12); color: #fcd34d; border: 1px solid rgba(245,158,11,0.3); }
.btn-sm      { padding: 6px 12px; font-size: 12px; min-height: 34px; border-radius: 7px; }
.btn-xs      { padding: 4px 9px;  font-size: 11px; min-height: 28px; border-radius: 6px; }
.btn-full    { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Forms ───────────────────────────────────── */
.form-label { display: block; font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 7px; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 11px 14px; background: var(--surface-md);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--white); font-size: 13px; font-family: inherit;
  min-height: 44px; outline: none; transition: border-color 0.15s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: rgba(139,92,246,0.5); }
.form-select option { background: #1e1b4b; color: var(--white); }
.form-textarea { min-height: 90px; resize: vertical; }
.form-group { margin-bottom: 16px; }
.form-row { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.form-hint { font-size: 11px; color: var(--dim); margin-top: 4px; }
.form-error { font-size: 11px; color: #f87171; margin-top: 4px; }

/* ── Table ───────────────────────────────────── */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th {
  color: var(--dim); font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.8px; padding: 11px 14px; text-align: left; white-space: nowrap;
  border-bottom: 1px solid var(--border);
}
.table td { padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,0.03); font-size: 13px; }
.table tr:hover td { background: rgba(255,255,255,0.02); }
.table-cell-name { color: var(--white); font-weight: 500; }
.table-cell-muted { color: var(--muted); }
.table-cell-dim   { color: var(--dim); font-size: 12px; }

/* ── Avatar ──────────────────────────────────── */
.avatar {
  width: 34px; height: 34px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; color: var(--white);
  font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.avatar-lg { width: 48px; height: 48px; font-size: 18px; font-weight: 800; }

/* ── Modal ───────────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.75);
  z-index: 1000; display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(8px); padding: 16px;
}
.modal {
  background: linear-gradient(160deg,#0f172a,#1e1b4b);
  border: 1px solid var(--border-md); border-radius: var(--radius-xl);
  width: 100%; max-width: 640px; max-height: 90vh; overflow-y: auto;
  padding: 28px; position: relative;
}
.modal-lg { max-width: 900px; }
.modal-title { font-size: 18px; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.modal-sub   { font-size: 12px; color: var(--dim); margin-bottom: 20px; }
.modal-close {
  position: absolute; top: 20px; right: 20px; width: 34px; height: 34px;
  border-radius: 50%; background: var(--surface-md); border: 1px solid var(--border);
  color: var(--muted); font-size: 16px; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
}

/* ── Steps (wizard) ──────────────────────────── */
.step-bar { display: flex; gap: 4px; margin-bottom: 24px; }
.step-seg {
  flex: 1; height: 4px; border-radius: 2px;
  background: rgba(255,255,255,0.12); transition: background 0.2s;
}
.step-seg.done { background: var(--purple); }
.step-seg.active { background: linear-gradient(90deg,var(--purple),var(--cyan)); }
.step-label { font-size: 14px; font-weight: 600; color: var(--white); margin-bottom: 4px; }
.step-sub   { font-size: 12px; color: var(--dim); margin-bottom: 20px; }

/* ── Bottom nav (mobile) ─────────────────────── */
.bottom-nav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: rgba(15,23,42,0.97); border-top: 1px solid var(--border);
  backdrop-filter: blur(12px);
}
.bottom-nav-inner { display: flex; justify-content: space-around; padding: 8px 0 max(8px,env(safe-area-inset-bottom)); }
.bnav-tab {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  cursor: pointer; padding: 4px 12px; min-width: 52px;
  text-decoration: none;
}
.bnav-icon  { font-size: 20px; line-height: 1; }
.bnav-label { font-size: 10px; font-weight: 500; }

/* ── Hamburger ───────────────────────────────── */
.hamburger {
  display: none; background: var(--surface-md); border: 1px solid var(--border);
  color: var(--muted); font-size: 18px; border-radius: var(--radius-sm);
  cursor: pointer; padding: 8px 10px; min-height: 40px; min-width: 40px;
  align-items: center; justify-content: center;
}

/* ── Drawer (mobile sidebar) ─────────────────── */
.drawer-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  z-index: 300; backdrop-filter: blur(4px);
}
.drawer {
  position: fixed; left: -260px; top: 0; bottom: 0; width: 260px;
  z-index: 400; background: var(--sidebar-grad); border-right: 1px solid var(--border);
  transition: left 0.25s ease; overflow-y: auto; display: flex; flex-direction: column;
}
.drawer.open  { left: 0; }
.drawer-overlay.open { display: block; }

/* ── Tabs ────────────────────────────────────── */
.tab-bar { display: flex; gap: 4px; margin-bottom: 20px; flex-wrap: wrap; }
.tab-btn {
  padding: 8px 16px; border-radius: var(--radius-sm); cursor: pointer;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--muted); font-size: 13px; font-weight: 500; min-height: 38px;
  text-decoration: none;
}
.tab-btn.active, .tab-btn:hover { background: var(--surface-md); color: var(--white); border-color: var(--border-md); }

/* ── Flash alert ─────────────────────────────── */
.flash {
  padding: 13px 18px; border-radius: var(--radius-sm); margin-bottom: 18px;
  font-size: 13px; font-weight: 500; display: flex; align-items: center; gap: 8px;
}
.flash-success { background: rgba(16,185,129,0.12); border: 1px solid rgba(16,185,129,0.3); color: #4ade80; }
.flash-error   { background: rgba(239,68,68,0.12);  border: 1px solid rgba(239,68,68,0.3);  color: #f87171; }
.flash-warn    { background: rgba(245,158,11,0.12); border: 1px solid rgba(245,158,11,0.3); color: #fcd34d; }

/* ── Charts (CSS-only bars) ──────────────────── */
.bar-chart { display: flex; align-items: flex-end; gap: 8px; height: 100px; }
.bar-col    { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; }
.bar-fill   { width: 100%; border-radius: 4px 4px 0 0; min-height: 4px; }
.bar-val    { font-size: 9px; color: var(--dim); }
.bar-lbl    { font-size: 10px; color: var(--dim); }

/* ── Search ──────────────────────────────────── */
.search-box {
  display: flex; align-items: center; gap: 7px; padding: 8px 14px;
  background: var(--surface-md); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--dim); font-size: 12px; width: 180px;
}
.search-box input {
  background: none; border: none; color: var(--white); outline: none;
  font-size: 13px; width: 100%;
}

/* ── Landing Page ────────────────────────────── */
.hero {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 40px 20px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%,rgba(139,92,246,0.2),transparent 70%),
              radial-gradient(ellipse 60% 40% at 80% 80%,rgba(239,68,68,0.12),transparent 60%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 16px; border-radius: 20px; font-size: 12px; font-weight: 600;
  background: rgba(139,92,246,0.15); border: 1px solid rgba(139,92,246,0.3);
  color: #c4b5fd; margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(32px,5vw,64px); font-weight: 900; line-height: 1.1;
  margin-bottom: 20px; max-width: 780px;
}
.hero-title .grad {
  background: linear-gradient(135deg,#8b5cf6,#06b6d4,#10b981);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub   { font-size: 17px; color: var(--muted); max-width: 540px; margin: 0 auto 32px; line-height: 1.6; }
.hero-ctas  { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; max-width: 520px; margin: 60px auto 0; }
.hero-stat-val  { font-size: 28px; font-weight: 800; color: var(--white); }
.hero-stat-label{ font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ── Login page ──────────────────────────────── */
.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 24px; background: radial-gradient(ellipse 70% 50% at 50% 0%,rgba(139,92,246,0.18),transparent 60%);
}
.login-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 36px; width: 100%; max-width: 420px;
}
.login-logo {
  width: 56px; height: 56px; border-radius: 14px; background: var(--admin-grad);
  display: flex; align-items: center; justify-content: center; font-size: 26px;
  margin: 0 auto 20px;
}
.login-title { text-align: center; font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.login-sub   { text-align: center; font-size: 13px; color: var(--muted); margin-bottom: 28px; }
.otp-boxes { display: flex; gap: 10px; justify-content: center; margin-bottom: 20px; }
.otp-box {
  width: 48px; height: 56px; text-align: center; font-size: 22px; font-weight: 700;
  background: var(--surface-md); border: 1px solid var(--border-md);
  border-radius: var(--radius-sm); color: var(--white); outline: none;
  caret-color: var(--purple);
}
.otp-box:focus { border-color: rgba(139,92,246,0.6); }

/* ── Property detail tabs ────────────────────── */
.detail-tab-bar {
  display: flex; gap: 4px; border-bottom: 1px solid var(--border);
  margin-bottom: 24px; overflow-x: auto; padding-bottom: 0; -webkit-overflow-scrolling: touch;
}
.detail-tab {
  padding: 10px 16px; font-size: 13px; font-weight: 500; cursor: pointer;
  white-space: nowrap; color: var(--muted); border-bottom: 2px solid transparent;
  text-decoration: none; margin-bottom: -1px;
}
.detail-tab.active { color: var(--white); border-bottom-color: var(--purple); }
.detail-panel { display: none; }
.detail-panel.active { display: block; }

/* ── Property hero ───────────────────────────── */
.prop-hero {
  height: 220px; position: relative; display: flex;
  align-items: flex-end; padding: 20px;
  background-size: cover; background-position: center;
  border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 22px;
}
.prop-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top,rgba(0,0,0,0.75) 0%,rgba(0,0,0,0.1) 60%); }
.prop-hero-content { position: relative; z-index: 1; }
.prop-hero-title { font-size: 22px; font-weight: 800; color: var(--white); line-height: 1.2; }
.prop-hero-sub   { font-size: 13px; color: rgba(255,255,255,0.7); margin-top: 4px; }

/* ── Map iframe ──────────────────────────────── */
.map-frame { width: 100%; height: 300px; border: none; border-radius: var(--radius-md); }

/* ── Affiliate QR ────────────────────────────── */
.qr-card {
  background: var(--surface-md); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 20px; text-align: center;
}
.qr-img { width: 120px; height: 120px; border-radius: var(--radius-sm); margin: 10px auto; display: block; }
.aff-url-box {
  background: rgba(0,0,0,0.3); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px 14px; font-size: 11px;
  color: var(--muted); word-break: break-all; margin: 10px 0;
  font-family: monospace;
}

/* ── Scrollbar ───────────────────────────────── */
::-webkit-scrollbar       { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 3px; }

/* ── Utilities ───────────────────────────────── */
.flex   { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2  { gap: 8px; }
.gap-3  { gap: 12px; }
.mb-1   { margin-bottom: 4px; }
.mb-2   { margin-bottom: 8px; }
.mb-3   { margin-bottom: 12px; }
.mb-4   { margin-bottom: 16px; }
.mb-5   { margin-bottom: 20px; }
.mb-6   { margin-bottom: 24px; }
.mt-3   { margin-top: 12px; }
.text-white  { color: var(--white); }
.text-muted  { color: var(--muted); }
.text-dim    { color: var(--dim); }
.text-yellow { color: var(--yellow); }
.text-green  { color: #4ade80; }
.text-red    { color: #f87171; }
.text-purple { color: #c4b5fd; }
.text-cyan   { color: #67e8f9; }
.font-700 { font-weight: 700; }
.font-800 { font-weight: 800; }
.text-xs  { font-size: 11px; }
.text-sm  { font-size: 12px; }
.text-lg  { font-size: 16px; }
.text-xl  { font-size: 20px; }
.w-full   { width: 100%; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-only-label { color: #f87171; font-size: 11px; }

/* ── Responsive ──────────────────────────────── */
@media (max-width: 1024px) {
  .db-sidebar { display: none; }
  .hamburger  { display: flex; }
  .bottom-nav { display: block; }
  .db-content { padding: 16px 14px 80px; }
  .db-topbar  { padding: 12px 14px; }
}

@media (max-width: 768px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .grid-2, .grid-3, .prop-grid { grid-template-columns: 1fr; }
  .form-row   { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; gap: 12px; }
  .tab-btn    { font-size: 12px; padding: 7px 11px; }
  .card-header { padding: 14px 16px 10px; }
  .card-body   { padding: 14px 16px; }
  .table th, .table td { padding: 10px 12px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .login-card { padding: 24px 18px; }
  .modal      { padding: 20px; }
  .hero-title { font-size: 26px; }
  .hero-ctas  { flex-direction: column; align-items: stretch; width: 100%; max-width: 280px; }
}
