/* ================================================================
   LODRICK DCRS — Design System v3
   Light: Blue + White  |  Dark: Blue + Deep Slate
   Inter font · Bootstrap 5 extended
   ================================================================ */

/* ── Theme Tokens ────────────────────────────────────────────── */
:root {
  --bg:           #f0f4ff;
  --bg2:          #e8eeff;
  --surface:      #ffffff;
  --surface2:     #f5f7fe;
  --border:       #d8e0f5;
  --border2:      #b8c8e8;
  --text:         #0d1b3e;
  --text2:        #2d4080;
  --muted:        #6677aa;
  --accent:       #1d4ed8;
  --accent2:      #2563eb;
  --accent3:      #3b82f6;
  --accent-tint:  #dbeafe;
  --accent-xdim:  #eff6ff;
  --green:        #15803d; --green-bg: #dcfce7;
  --amber:        #b45309; --amber-bg: #fef3c7;
  --red:          #b91c1c; --red-bg:   #fee2e2;
  --cyan:         #0369a1; --cyan-bg:  #e0f2fe;
  --sh1: 0 1px 3px rgba(20,40,120,.06), 0 1px 2px rgba(20,40,120,.04);
  --sh2: 0 4px 12px rgba(20,40,120,.09), 0 2px 4px rgba(20,40,120,.05);
  --sh3: 0 8px 32px rgba(20,40,120,.12), 0 2px 8px rgba(20,40,120,.05);
  --r1: 8px; --r2: 12px; --r3: 16px; --r4: 20px;
  --sw: 268px;
}

[data-theme="dark"] {
  --bg:           #0b0f1a;
  --bg2:          #111827;
  --surface:      #161d2e;
  --surface2:     #1e2a40;
  --border:       rgba(148,163,184,0.15);
  --border2:      rgba(148,163,184,0.28);
  --text:         #f0f4ff;
  --text2:        #a8b8d8;
  --muted:        #5a6e8a;
  --accent:       #3b82f6;
  --accent2:      #60a5fa;
  --accent3:      #93c5fd;
  --accent-tint:  rgba(59,130,246,0.15);
  --accent-xdim:  rgba(59,130,246,0.07);
  --green:        #4ade80; --green-bg: rgba(74,222,128,0.12);
  --amber:        #fbbf24; --amber-bg: rgba(251,191,36,0.12);
  --red:          #f87171; --red-bg:   rgba(248,113,113,0.12);
  --cyan:         #38bdf8; --cyan-bg:  rgba(56,189,248,0.12);
  --sh1: 0 1px 3px rgba(0,0,0,.5);
  --sh2: 0 4px 12px rgba(0,0,0,.6), 0 2px 4px rgba(0,0,0,.4);
  --sh3: 0 8px 32px rgba(0,0,0,.7), 0 2px 8px rgba(0,0,0,.5);
}

/* ── Base ────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, -apple-system, sans-serif !important;
  font-feature-settings: "cv11","ss01","cv02","cv03","cv04";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg) !important;
  color: var(--text) !important;
  min-height: 100vh;
  transition: background-color .2s, color .2s;
}
*, *::before, *::after { box-sizing: border-box; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4,h5,h6 { color: var(--text); font-weight: 700; line-height: 1.25; }

/* ── App Shell (flexbox, sidebar-first) ──────────────────────── */
.app-shell { display: flex; min-height: 100vh; }
.app-main  { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--bg); transition: background .2s; }
.app-content { flex: 1; padding: 28px 32px; }

/* ── Sidebar ─────────────────────────────────────────────────── */
.app-sidebar {
  width: var(--sw); flex-shrink: 0;
  position: sticky; top: 0; height: 100vh;
  overflow-y: auto; scrollbar-width: none;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  z-index: 30;
  transition: background .2s, border-color .2s;
}
.app-sidebar::-webkit-scrollbar { display: none; }

.sidebar-header {
  padding: 18px 16px 16px;
  border-bottom: 1px solid var(--border);
}

.sidebar-brand { display: flex; align-items: center; gap: 10px; }

.brand-logo {
  width: 32px; height: 32px; border-radius: var(--r1);
  background: linear-gradient(135deg, var(--accent), var(--accent3));
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.brand-logo svg { width: 17px; height: 17px; }
.brand-name { font-size: 0.88rem; font-weight: 700; color: var(--text); line-height: 1.2; }
.brand-sub  { font-size: 0.66rem; color: var(--muted); line-height: 1.2; }

.sidebar-nav {
  flex: 1; padding: 10px 9px;
  display: flex; flex-direction: column; gap: 1px;
}

.sidebar-section-label {
  font-size: 0.63rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
  padding: 14px 10px 5px; user-select: none;
}

.sidebar-link {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 10px; border-radius: var(--r1);
  font-size: 0.83rem; font-weight: 500;
  color: var(--muted); transition: all .15s;
  position: relative;
}
.sidebar-link i { width: 15px; text-align: center; font-size: 0.88rem; flex-shrink: 0; }
.sidebar-link:hover { background: var(--accent-xdim); color: var(--accent2); }
.sidebar-link.active {
  background: var(--accent-tint); color: var(--accent);
  font-weight: 600;
}
.sidebar-link.active::before {
  content: '';
  position: absolute; left: 0; top: 4px; bottom: 4px;
  width: 3px; background: var(--accent);
  border-radius: 0 3px 3px 0;
}
[data-theme="dark"] .sidebar-link.active { background: var(--accent-tint); }
[data-theme="dark"] .sidebar-link:hover  { background: var(--accent-xdim); }

.sidebar-footer {
  padding: 13px 14px;
  border-top: 1px solid var(--border);
}
.sb-user { display: flex; align-items: center; gap: 9px; }
.sb-avatar {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent3));
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 800; color: #fff;
}
.sb-name { font-size: 0.8rem; font-weight: 600; color: var(--text); line-height: 1.3; }
.sb-role { font-size: 0.67rem; color: var(--muted); line-height: 1.3; }

/* ── Navbar ──────────────────────────────────────────────────── */
.app-navbar {
  position: sticky; top: 0; z-index: 40;
  height: 62px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 24px; gap: 10px;
  transition: background .2s, border-color .2s;
}
.nav-bc   { font-size: 0.65rem; color: var(--muted); letter-spacing: .07em; text-transform: uppercase; }
.nav-title { font-size: 1rem; font-weight: 700; color: var(--text); }

/* ── Public Header ───────────────────────────────────────────── */
.public-header {
  position: sticky; top: 0; z-index: 40;
  height: 62px; padding: 0 40px;
  background: rgba(240,244,255,.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  transition: background .2s;
}
[data-theme="dark"] .public-header { background: rgba(11,15,26,.92); }
.public-brand { display: flex; align-items: center; gap: 10px; }
.header-actions { display: flex; align-items: center; gap: 8px; }

/* ── Theme Toggle ────────────────────────────────────────────── */
.btn-theme {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 10px; border-radius: var(--r1);
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--muted); font-size: 0.8rem; font-weight: 500;
  cursor: pointer; transition: all .15s;
  font-family: "Inter", system-ui, sans-serif;
}
.btn-theme:hover { background: var(--accent-tint); border-color: var(--accent3); color: var(--accent); }
.btn-theme i { font-size: 0.88rem; }

/* Hamburger */
.btn-hamburger {
  display: none; flex-direction: column; align-items: center;
  justify-content: center; gap: 4px;
  width: 34px; height: 34px; padding: 0;
  background: transparent; border: 1px solid var(--border);
  border-radius: var(--r1); cursor: pointer; color: var(--text2);
}
.btn-hamburger span { width: 14px; height: 1.5px; background: currentColor; border-radius: 2px; display: block; }

/* ── Buttons (Bootstrap override) ───────────────────────────── */
.btn {
  font-family: "Inter", system-ui, sans-serif !important;
  font-weight: 600 !important;
  border-radius: var(--r1) !important;
  display: inline-flex !important;
  align-items: center; gap: 6px;
  transition: all .15s !important;
  font-size: 0.83rem !important;
  line-height: 1.4 !important;
}
.btn-primary {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(29,78,216,.3) !important;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--accent2) !important;
  border-color: var(--accent2) !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(29,78,216,.4) !important;
}
.btn-primary:focus { box-shadow: 0 0 0 3px var(--accent-tint) !important; }
.btn-outline, .btn-outline-secondary, .btn-outline-primary {
  background: transparent !important;
  border-color: var(--border2) !important;
  color: var(--text2) !important;
}
.btn-outline:hover, .btn-outline-secondary:hover, .btn-outline-primary:hover {
  background: var(--accent-tint) !important;
  border-color: var(--accent3) !important;
  color: var(--accent) !important;
}
.btn-sm { padding: 5px 12px !important; font-size: 0.77rem !important; }
.btn-lg { padding: 11px 22px !important; font-size: 0.9rem !important; }

/* ── Cards ───────────────────────────────────────────────────── */
.card {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--r3) !important;
  box-shadow: var(--sh1) !important;
  transition: background .2s, border-color .2s !important;
}
.card-header {
  background: var(--surface2) !important;
  border-bottom: 1px solid var(--border) !important;
  padding: 14px 20px !important;
  border-radius: var(--r3) var(--r3) 0 0 !important;
  display: flex !important; align-items: center; justify-content: space-between;
}
.card-body  { padding: 20px !important; background: transparent !important; }
.card-footer { background: var(--surface2) !important; border-top: 1px solid var(--border) !important; padding: 12px 20px !important; border-radius: 0 0 var(--r3) var(--r3) !important; }
.card-title { font-size: 0.88rem !important; font-weight: 700 !important; color: var(--text) !important; margin: 0 !important; }

/* ── Stat Cards ──────────────────────────────────────────────── */
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r3);
  padding: 22px 22px 20px;
  box-shadow: var(--sh1);
  transition: all .18s;
  position: relative; overflow: hidden;
}
.stat-card::after {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent3));
  border-radius: var(--r3) var(--r3) 0 0;
}
.stat-card:hover { box-shadow: var(--sh2); transform: translateY(-2px); }

.stat-icon {
  width: 38px; height: 38px; border-radius: 9px;
  display: flex !important; align-items: center !important; justify-content: center !important;
  font-size: 0.95rem; flex-shrink: 0;
}
.si-blue  { background: var(--accent-tint); color: var(--accent); }
.si-green { background: var(--green-bg);    color: var(--green);  }
.si-amber { background: var(--amber-bg);    color: var(--amber);  }
.si-red   { background: var(--red-bg);      color: var(--red);    }

.stat-label { font-size: 0.7rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
.stat-num   { font-size: 2rem; font-weight: 800; color: var(--text); line-height: 1; letter-spacing: -.03em; }
.stat-sub   { font-size: 0.73rem; color: var(--muted); }

/* ── Badges ──────────────────────────────────────────────────── */
.badge {
  display: inline-flex !important; align-items: center; gap: 4px;
  padding: 3px 9px !important; border-radius: 99px !important;
  font-size: 0.66rem !important; font-weight: 700 !important;
  letter-spacing: .05em; text-transform: uppercase;
  white-space: nowrap; line-height: 1.4 !important;
}
.badge-blue  { background: var(--accent-tint) !important; color: var(--accent)  !important; }
.badge-green { background: var(--green-bg)    !important; color: var(--green)   !important; }
.badge-amber { background: var(--amber-bg)    !important; color: var(--amber)   !important; }
.badge-red   { background: var(--red-bg)      !important; color: var(--red)     !important; }
.badge-gray  { background: var(--surface2)    !important; color: var(--muted)   !important; border: 1px solid var(--border) !important; }

.status-APPROVED   { background: var(--green-bg)    !important; color: var(--green) !important; }
.status-PENDING    { background: var(--amber-bg)    !important; color: var(--amber) !important; }
.status-REJECTED   { background: var(--red-bg)      !important; color: var(--red)   !important; }
.status-SUSPENDED  { background: var(--surface2)    !important; color: var(--muted) !important; border: 1px solid var(--border) !important; }
.status-OPEN       { background: var(--accent-tint) !important; color: var(--accent) !important; }
.status-IN_PROGRESS{ background: var(--cyan-bg)     !important; color: var(--cyan)   !important; }
.status-ESCALATED  { background: var(--red-bg)      !important; color: var(--red)    !important; }
.status-RESOLVED   { background: var(--green-bg)    !important; color: var(--green)  !important; }
.status-CLOSED     { background: var(--surface2)    !important; color: var(--muted)  !important; border: 1px solid var(--border) !important; }
.priority-LOW      { background: var(--green-bg)    !important; color: var(--green)  !important; }
.priority-MEDIUM   { background: var(--accent-tint) !important; color: var(--accent) !important; }
.priority-HIGH     { background: var(--amber-bg)    !important; color: var(--amber)  !important; }
.priority-CRITICAL { background: var(--red-bg)      !important; color: var(--red)    !important; }
.sms-DELIVERED     { background: var(--green-bg)    !important; color: var(--green)  !important; }
.sms-SENT          { background: var(--accent-tint) !important; color: var(--accent) !important; }
.sms-FAILED        { background: var(--red-bg)      !important; color: var(--red)    !important; }
.sms-QUEUED        { background: var(--amber-bg)    !important; color: var(--amber)  !important; }

/* ── Forms ───────────────────────────────────────────────────── */
.form-label {
  font-size: 0.77rem !important; font-weight: 600 !important;
  color: var(--text2) !important; margin-bottom: 5px !important;
  font-family: "Inter", system-ui, sans-serif !important;
}
.form-control, .form-select {
  font-family: "Inter", system-ui, sans-serif !important;
  font-size: 0.875rem !important;
  background-color: var(--surface) !important;
  border: 1px solid var(--border2) !important;
  border-radius: var(--r1) !important;
  color: var(--text) !important;
  padding: 9px 13px !important;
  transition: border-color .15s, box-shadow .15s !important;
  outline: none !important;
}
.form-control::placeholder { color: var(--muted) !important; }
.form-control:focus, .form-select:focus {
  border-color: var(--accent3) !important;
  box-shadow: 0 0 0 3px var(--accent-tint) !important;
  background-color: var(--surface) !important;
  color: var(--text) !important;
}
[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select { background-color: var(--surface2) !important; }
[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus { background-color: var(--surface2) !important; }
textarea.form-control { resize: vertical; min-height: 96px; }
.form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%236677aa' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important; background-position: right 11px center !important;
  background-size: 13px !important; padding-right: 34px !important;
}
.input-icon-wrap { position: relative; }
.input-icon-wrap > i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 0.88rem; pointer-events: none; z-index: 2; }
.input-icon-wrap .form-control { padding-left: 36px !important; }

/* ── Table ───────────────────────────────────────────────────── */
.dcrs-table {
  width: 100%; border-collapse: collapse;
  font-size: 0.83rem; font-family: "Inter", system-ui, sans-serif;
}
.dcrs-table thead tr { background: var(--surface2); border-bottom: 1px solid var(--border); }
.dcrs-table thead th {
  padding: 10px 16px;
  font-size: 0.66rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--muted); white-space: nowrap;
}
.dcrs-table tbody tr { border-bottom: 1px solid var(--border); transition: background .12s; }
.dcrs-table tbody tr:last-child { border-bottom: none; }
.dcrs-table tbody tr:hover { background: var(--surface2); }
.dcrs-table td { padding: 12px 16px; color: var(--text2); vertical-align: middle; }
.td-mono  { font-size: 0.75rem; font-family: "SFMono-Regular","Consolas",monospace; color: var(--muted); }
.td-bold  { font-weight: 600; color: var(--text); }
.table-wrap { overflow-x: auto; border-radius: var(--r3); border: 1px solid var(--border); }

/* ── Page header ─────────────────────────────────────────────── */
.page-header-h { font-size: 1.25rem; font-weight: 800; color: var(--text); letter-spacing: -.025em; line-height: 1.2; }
.page-header-p { font-size: 0.82rem; color: var(--muted); margin-top: 3px; }

/* ── Dropdown ────────────────────────────────────────────────── */
.dropdown-menu {
  background: var(--surface) !important; border: 1px solid var(--border2) !important;
  border-radius: var(--r2) !important; box-shadow: var(--sh3) !important;
  padding: 5px !important; font-family: "Inter", system-ui, sans-serif !important;
  min-width: 160px;
}
.dropdown-item {
  border-radius: var(--r1) !important; font-size: 0.83rem !important;
  color: var(--text2) !important; padding: 8px 11px !important;
  display: flex !important; align-items: center; gap: 8px;
  transition: all .12s !important;
}
.dropdown-item:hover { background: var(--accent-tint) !important; color: var(--accent) !important; }
.dropdown-divider   { border-color: var(--border) !important; margin: 4px 0 !important; }

/* ── Alerts ──────────────────────────────────────────────────── */
.alert {
  display: flex !important; align-items: flex-start; gap: 9px;
  padding: 11px 14px !important; border-radius: var(--r1) !important;
  font-size: 0.83rem !important; font-family: "Inter", system-ui, sans-serif;
}
.alert-success { background: var(--green-bg) !important; color: var(--green) !important; border-color: rgba(21,128,61,.2) !important; }
.alert-warning  { background: var(--amber-bg) !important; color: var(--amber) !important; border-color: rgba(180,83,9,.2)  !important; }
.alert-danger, .alert-error { background: var(--red-bg) !important; color: var(--red) !important; border-color: rgba(185,28,28,.2) !important; }
.alert-info     { background: var(--accent-tint) !important; color: var(--accent) !important; border-color: rgba(29,78,216,.2) !important; }

/* ── Pagination ──────────────────────────────────────────────── */
.pg { display: flex; align-items: center; justify-content: center; gap: 4px; padding: 14px 0; }
.pg-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 32px; height: 32px; padding: 0 8px;
  border-radius: var(--r1); font-size: 0.8rem; font-weight: 500;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text2); transition: all .12s; text-decoration: none;
  font-family: "Inter", system-ui, sans-serif;
}
.pg-btn:hover  { background: var(--accent-tint); border-color: var(--accent3); color: var(--accent); }
.pg-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }
.pg-btn.disabled { opacity: .35; pointer-events: none; }

/* ── Sidebar Overlay ─────────────────────────────────────────── */
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 29; backdrop-filter: blur(2px); }
.sidebar-overlay.visible { display: block; }

/* ── Page header helpers ─────────────────────────────────────── */
.ph-title { font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; color: var(--text); margin: 0; }
.ph-sub   { font-size: 0.82rem; color: var(--muted); margin: 3px 0 0; }

/* ── Detail Item ─────────────────────────────────────────────── */
.di {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--r1);
  padding: 12px 14px;
}
.di-label { font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 4px; }
.di-val   { font-size: 0.875rem; font-weight: 600; color: var(--text); }

/* ── Landing Page ────────────────────────────────────────────── */
.lp-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(148deg,#0c2d8a 0%,#1d4ed8 55%,#1e40af 100%);
  padding: 88px 0 100px; color: #fff;
}
.lp-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at 72% 108%, rgba(96,165,250,.2), transparent 55%),
    radial-gradient(ellipse 50% 60% at -5% 40%,  rgba(255,255,255,.05), transparent 50%);
}
.lp-hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  opacity: .35;
  background-image: radial-gradient(rgba(255,255,255,.15) 1px, transparent 1px);
  background-size: 30px 30px;
}
.lp-container { max-width: 1180px; margin: 0 auto; padding: 0 40px; position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.hero-eyebrow { color: rgba(147,197,253,.9); font-size: .7rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; display: block; margin-bottom: 14px; }
.hero-h1 { color: #fff; font-size: clamp(1.9rem,4vw,3.1rem); font-weight: 800; line-height: 1.08; letter-spacing: -.025em; margin-bottom: 18px; }
.hero-lead { color: rgba(255,255,255,.72); font-size: 1rem; line-height: 1.7; max-width: 48ch; margin-bottom: 30px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-hero-white {
  background: #fff; color: #1d4ed8; border: none; border-radius: var(--r1);
  padding: 12px 24px; font-size: .9rem; font-weight: 700;
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,.2);
  transition: all .15s; font-family: "Inter", system-ui, sans-serif;
}
.btn-hero-white:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.25); color: #1d4ed8; }
.btn-hero-ghost {
  background: rgba(255,255,255,.1); color: #fff;
  border: 1px solid rgba(255,255,255,.28); border-radius: var(--r1);
  padding: 11px 24px; font-size: .9rem; font-weight: 600;
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  transition: all .15s; backdrop-filter: blur(8px);
  font-family: "Inter", system-ui, sans-serif;
}
.btn-hero-ghost:hover { background: rgba(255,255,255,.18); color: #fff; }

/* Hero mockup panel */
.hero-mockup {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--r4); padding: 22px;
  backdrop-filter: blur(12px); box-shadow: 0 24px 64px rgba(0,0,0,.35);
}
.hm-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.hm-title { font-size: .8rem; font-weight: 700; color: rgba(255,255,255,.9); }
.hm-live  { display: flex; align-items: center; gap: 5px; font-size: .68rem; color: rgba(255,255,255,.6); }
.hm-live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 7px rgba(74,222,128,.9); display: block; }
.hm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.hm-stat { background: rgba(255,255,255,.07); border-radius: 10px; padding: 11px 13px; border: 1px solid rgba(255,255,255,.08); }
.hm-stat-v { font-size: 1.45rem; font-weight: 800; color: #fff; line-height: 1; }
.hm-stat-l { font-size: .62rem; color: rgba(255,255,255,.55); text-transform: uppercase; letter-spacing: .07em; margin-top: 2px; }
.hm-row { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.04); border-radius: 7px; padding: 8px 10px; margin-bottom: 5px; border: 1px solid rgba(255,255,255,.05); }
.hm-row:last-child { margin: 0; }
.hm-dot  { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.hm-text { flex: 1; font-size: .74rem; color: rgba(255,255,255,.72); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-tag  { font-size: .6rem; font-weight: 700; padding: 2px 7px; border-radius: 99px; background: rgba(255,255,255,.1); color: rgba(255,255,255,.82); }

/* Stats bar */
.lp-stats { background: var(--surface); border-bottom: 1px solid var(--border); }
.lp-stats-grid { max-width: 1180px; margin: 0 auto; padding: 0 40px; display: grid; grid-template-columns: repeat(4,1fr); }
.lp-stat { padding: 28px 20px; text-align: center; border-right: 1px solid var(--border); }
.lp-stat:last-child { border-right: none; }
.lp-stat-num { font-size: 1.9rem; font-weight: 800; color: var(--accent); letter-spacing: -.03em; line-height: 1; }
.lp-stat-lbl { font-size: .76rem; color: var(--muted); margin-top: 4px; }

/* Features */
.lp-features { padding: 72px 0; background: var(--bg); }
.sec-head { text-align: center; margin-bottom: 44px; }
.sec-head h2 { font-size: clamp(1.4rem,2.8vw,2rem); font-weight: 800; letter-spacing: -.025em; color: var(--text); margin-bottom: 10px; }
.sec-head p  { font-size: .92rem; color: var(--muted); max-width: 50ch; margin: 0 auto; }
.feat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.feat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r3); padding: 26px 22px;
  box-shadow: var(--sh1); transition: all .18s;
}
.feat-card:hover { transform: translateY(-3px); box-shadow: var(--sh2); border-color: var(--accent3); }
.feat-icon { width: 42px; height: 42px; border-radius: 9px; background: var(--accent-tint); display: flex; align-items: center; justify-content: center; font-size: 1.05rem; color: var(--accent); margin-bottom: 14px; }
.feat-card h3 { font-size: .93rem; font-weight: 700; color: var(--text); margin-bottom: 7px; }
.feat-card p  { font-size: .82rem; color: var(--muted); line-height: 1.65; margin: 0; }

/* Landing recent / footer */
.lp-recent { padding: 60px 0; background: var(--surface); border-top: 1px solid var(--border); }
.cz-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r3); padding: 18px;
  box-shadow: var(--sh1); transition: all .18s;
}
.cz-card:hover { transform: translateY(-2px); box-shadow: var(--sh2); border-color: var(--border2); }
.cz-id   { font-size: .65rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--accent); margin-bottom: 5px; }
.cz-name { font-size: .88rem; font-weight: 700; color: var(--text); margin-bottom: 5px; }
.cz-ward { font-size: .74rem; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.lp-footer { background: var(--surface2); border-top: 1px solid var(--border); padding: 20px 40px; }
.lp-footer-in { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: .76rem; color: var(--muted); }

/* ── Auth Page ───────────────────────────────────────────────── */
.auth-wrap { min-height: 100vh; display: flex; }
.auth-side {
  flex: 1.1; position: relative; overflow: hidden;
  background: linear-gradient(155deg,#0c2980 0%,#1d4ed8 55%,#1e3fa5 100%);
  display: flex; flex-direction: column; padding: 44px;
}
.auth-side::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.1) 1px, transparent 1px);
  background-size: 26px 26px;
}
.auth-circle { position: absolute; border-radius: 50%; pointer-events: none; }
.auth-circle.c1 { right: -100px; top: -100px; width: 360px; height: 360px; border: 70px solid rgba(255,255,255,.05); }
.auth-circle.c2 { left:  -80px; bottom: -80px; width: 280px; height: 280px; border: 55px solid rgba(255,255,255,.04); }
.auth-side-brand { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; }
.auth-side-brand .brand-name { color: #fff; font-size: .95rem; }
.auth-side-brand .brand-sub  { color: rgba(255,255,255,.6); }
.auth-side-body { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 32px 0; }
.auth-side-body h2 { color: #fff; font-size: clamp(1.45rem,2.5vw,2.1rem); font-weight: 800; line-height: 1.15; letter-spacing: -.025em; max-width: 14ch; margin-bottom: 13px; }
.auth-side-body p  { color: rgba(255,255,255,.65); font-size: .88rem; max-width: 40ch; line-height: 1.7; margin-bottom: 26px; }
.auth-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.auth-chip  { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.85); border-radius: 99px; padding: 5px 13px; font-size: .73rem; font-weight: 500; }
.auth-side-foot { position: relative; z-index: 1; color: rgba(255,255,255,.38); font-size: .72rem; }
.auth-form-side {
  flex: .9; background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  padding: 44px 36px; position: relative; min-height: 100vh;
}
.auth-inner { width: 100%; max-width: 375px; }
.auth-form-title { font-size: 1.55rem; font-weight: 800; letter-spacing: -.025em; color: var(--text); margin-bottom: 5px; }
.auth-form-sub   { font-size: .84rem; color: var(--muted); margin-bottom: 28px; }
.auth-corner-toggle { position: absolute; top: 18px; right: 18px; }
.auth-back { text-align: center; margin-top: 18px; font-size: .8rem; color: var(--muted); }
.auth-back a { color: var(--accent); font-weight: 600; }
.auth-error {
  display: flex; align-items: center; gap: 8px;
  background: var(--red-bg); border: 1px solid rgba(185,28,28,.2);
  border-radius: var(--r1); padding: 10px 13px;
  color: var(--red); font-size: .83rem; margin-bottom: 16px;
}
.form-forgot { display: flex; justify-content: flex-end; margin: -2px 0 4px; }
.form-forgot a { font-size: .76rem; color: var(--accent); }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width:1280px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-mockup { display: none; }
  .auth-side { display: none; }
  .auth-form-side { flex: 1; padding: 32px 24px; }
  .lp-stats-grid { grid-template-columns: repeat(2,1fr); }
  .lp-stat:nth-child(2) { border-right: none; }
  .feat-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width:1024px) {
  .app-sidebar {
    position: fixed; left: 0; top: 0; bottom: 0;
    transform: translateX(-100%);
    transition: transform .25s cubic-bezier(.4,0,.2,1);
    box-shadow: none; z-index: 100;
  }
  .app-shell.sidebar-open .app-sidebar { transform: translateX(0); box-shadow: var(--sh3); }
  .btn-hamburger { display: flex !important; }
}
@media (max-width:768px) {
  .app-content { padding: 18px 16px; }
  .public-header { padding: 0 20px; }
  .lp-container, .lp-stats-grid { padding: 0 20px; }
  .lp-stat:nth-child(2) { border-right: none; }
  .lp-stat:nth-child(3) { border-right: none; }
  .feat-grid { grid-template-columns: 1fr; }
  .lp-footer { padding: 18px 20px; }
  .lp-footer-in { flex-direction: column; text-align: center; }
  .hero-h1 { font-size: 1.8rem; }
}
