/* ========================================================================
   Nogor Porda — DSCC Billboard & Display Control Platform
   Professional design system — light theme, DSCC green (#216d22)
   ======================================================================== */

/* ---- 1. Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, blockquote {
  margin: 0; padding: 0; font-weight: inherit;
}
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }

/* ---- 2. Tokens ---- */
:root {
  /* DSCC green primary */
  --brand: #216d22;
  --brand-600: #1a5a1b;
  --brand-700: #144914;
  --brand-500: #2c8a2e;
  --brand-400: #4ea650;
  --brand-100: #e6f2e6;
  --brand-50:  #f2f8f2;
  --brand-ink: #0e2c0f;

  /* Light surfaces */
  --bg:     #f4f6f4;
  --surface: #ffffff;
  --surface-2: #fbfcfb;
  --surface-3: #f0f3f0;

  /* Ink */
  --ink-0: #111816;
  --ink-1: #2b3331;
  --ink-2: #5b6360;
  --ink-3: #8a918e;
  --ink-4: #b4b9b6;

  /* Lines */
  --line:         #e3e7e3;
  --line-strong:  #cfd4cf;

  /* Status */
  --ok:      #16a34a;
  --ok-bg:   #e8f6ec;
  --warn:    #ca8a04;
  --warn-bg: #fdf5d8;
  --danger:  #dc2626;
  --danger-bg: #fbe7e7;
  --info:    #2563eb;
  --info-bg: #e6edfb;

  /* Layout */
  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --shadow-xs: 0 1px 2px rgba(14, 44, 15, 0.04);
  --shadow-sm: 0 1px 2px rgba(14, 44, 15, 0.06), 0 1px 3px rgba(14, 44, 15, 0.04);
  --shadow-md: 0 4px 10px rgba(14, 44, 15, 0.06), 0 2px 4px rgba(14, 44, 15, 0.04);
  --shadow-lg: 0 16px 40px rgba(14, 44, 15, 0.10), 0 4px 12px rgba(14, 44, 15, 0.06);
  --shadow-focus: 0 0 0 3px rgba(33, 109, 34, 0.18);

  /* Fonts */
  --font-display: "Fraunces", "Hind Siliguri", Georgia, serif;
  --font-body:    "Inter", "Geist", "Hind Siliguri", system-ui, -apple-system, sans-serif;
  --font-mono:    "Geist Mono", "JetBrains Mono", ui-monospace, monospace;
  --font-bangla:  "Hind Siliguri", "Noto Sans Bengali", sans-serif;
  --font-bangla-display: "Tiro Bangla", "Hind Siliguri", serif;

  /* Layout */
  --sidebar-w: 248px;
  --topbar-h:  64px;
  --gutter:    24px;
  --container: 1440px;
}

/* ---- 3. Base ---- */
html, body { min-height: 100%; }
body {
  background: var(--bg);
  color: var(--ink-0);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -0.003em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.serif { font-family: var(--font-display); }
.mono  { font-family: var(--font-mono); }
.bn    { font-family: var(--font-bangla); }
.bn-display { font-family: var(--font-bangla-display); }
.italic { font-style: italic; }

h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.02em; line-height: 1.1; color: var(--ink-0); }
h1 { font-size: 40px; font-weight: 500; }
h2 { font-size: 28px; font-weight: 500; }
h3 { font-size: 20px; font-weight: 500; }
h4 { font-size: 15px; font-weight: 600; font-family: var(--font-body); letter-spacing: 0.01em; }

p  { color: var(--ink-1); }
.muted { color: var(--ink-2); }
.small { font-size: 12.5px; }
.tiny  { font-size: 11px; letter-spacing: 0.04em; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--brand);
  font-weight: 500;
}

/* ---- 4. Layout primitives ---- */
.page { min-height: 100vh; display: flex; flex-direction: column; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.grid  { display: grid; gap: var(--gutter); }
.flex  { display: flex; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-6 { gap: 24px; } .gap-8 { gap: 32px; }
.mt-2 { margin-top: 8px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; } .mt-12 { margin-top: 48px; }
.mb-2 { margin-bottom: 8px; } .mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; } .mb-8 { margin-bottom: 32px; }
.p-4 { padding: 16px; } .p-6 { padding: 24px; } .p-8 { padding: 32px; }

/* ---- 5. App shell (sidebar + topbar) ---- */
.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  grid-template-rows: var(--topbar-h) 1fr;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  grid-row: 1 / span 2;
  background: var(--surface);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.sidebar-brand {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  min-height: var(--topbar-h);
}
.sidebar-brand img {
  width: 36px; height: 36px; object-fit: contain;
  border-radius: 4px;
}
.sidebar-brand .bn-name {
  font-family: var(--font-bangla-display);
  font-size: 18px;
  line-height: 1;
  color: var(--ink-0);
  font-weight: 500;
}
.sidebar-brand .en-name {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 3px;
}

.sidebar-section { padding: 18px 12px 4px; }
.sidebar-section h5 {
  padding: 0 10px 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  font-weight: 500;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  margin: 1px 0;
  border-radius: 6px;
  font-size: 13.5px;
  color: var(--ink-1);
  font-weight: 500;
  position: relative;
  transition: background 0.12s, color 0.12s;
}
.nav-item:hover { background: var(--surface-3); color: var(--ink-0); }
.nav-item.is-active {
  background: var(--brand-100);
  color: var(--brand);
}
.nav-item.is-active::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 7px;
  bottom: 7px;
  width: 3px;
  background: var(--brand);
  border-radius: 0 3px 3px 0;
}
.nav-item svg { width: 18px; height: 18px; flex-shrink: 0; }
.nav-item .count {
  margin-left: auto;
  font-size: 11px;
  font-family: var(--font-mono);
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--ink-2);
}
.nav-item.is-active .count { background: var(--brand); color: #fff; }

.sidebar-foot {
  margin-top: auto;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-foot .user-avatar { width: 34px; height: 34px; font-size: 12px; }
.sidebar-foot .meta { flex: 1; min-width: 0; }
.sidebar-foot strong { display: block; font-size: 13px; font-weight: 600; color: var(--ink-0); }
.sidebar-foot small { color: var(--ink-3); font-size: 11px; }

/* Topbar */
.topbar {
  grid-column: 2;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  gap: 24px;
  position: sticky;
  top: 0;
  z-index: 40;
}
.topbar-left { display: flex; align-items: center; gap: 16px; flex: 1; min-width: 0; }
.topbar-left .page-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  color: var(--ink-0);
  letter-spacing: -0.01em;
}
.topbar-left .page-title .sep { color: var(--ink-4); margin: 0 10px; font-weight: 300; }
.topbar-left .page-title .crumb { color: var(--ink-2); font-weight: 400; font-size: 16px; }

.topbar-search {
  flex: 1;
  max-width: 420px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-3);
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 8px 12px;
  transition: all 0.15s;
}
.topbar-search:focus-within { background: var(--surface); border-color: var(--brand); box-shadow: var(--shadow-focus); }
.topbar-search svg { width: 16px; height: 16px; color: var(--ink-3); }
.topbar-search input {
  flex: 1; background: transparent; border: 0; outline: none;
  color: var(--ink-0); font-size: 13.5px;
}
.topbar-search input::placeholder { color: var(--ink-3); }
.topbar-search .kbd {
  font-family: var(--font-mono); font-size: 10.5px;
  padding: 2px 6px; border: 1px solid var(--line-strong); border-radius: 3px;
  color: var(--ink-2); background: var(--surface);
}

.topbar-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 8px;
  color: var(--ink-2);
  position: relative;
  transition: background 0.12s, color 0.12s;
}
.icon-btn:hover { background: var(--surface-3); color: var(--ink-0); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn .dot {
  position: absolute; top: 7px; right: 8px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--danger);
  border: 2px solid var(--surface);
}

.user-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 5px 10px 5px 5px;
  border-radius: 999px;
  border: 1px solid var(--line);
  margin-left: 8px;
  transition: border-color 0.12s;
}
.user-chip:hover { border-color: var(--line-strong); }
.user-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-500), var(--brand));
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
}
.user-chip .name { font-size: 12.5px; font-weight: 600; color: var(--ink-0); }
.user-chip .role { font-size: 10.5px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.08em; }

/* Main content area */
.main {
  grid-column: 2;
  padding: 28px 32px 48px;
  min-width: 0;
}
.main > header { margin-bottom: 24px; }
.main > header h1 { font-size: 28px; margin-bottom: 4px; }
.main > header .sub { color: var(--ink-2); font-size: 14px; }
.main > header .bn-sub { font-family: var(--font-bangla); color: var(--ink-2); font-size: 13px; margin-top: 4px; }

/* ---- 6. Cards ---- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
}
.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
}
.card-header h3 {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-0);
  letter-spacing: -0.005em;
}
.card-header .sub { color: var(--ink-2); font-size: 12.5px; margin-top: 2px; }
.card-header .actions { display: flex; gap: 8px; align-items: center; }
.card-body { padding: 20px; }
.card-tight .card-body { padding: 14px; }

/* KPI */
.kpi {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex; flex-direction: column; gap: 10px;
  position: relative; overflow: hidden;
}
.kpi .label {
  font-size: 12px;
  color: var(--ink-2);
  display: flex; align-items: center; gap: 8px;
  font-weight: 500;
}
.kpi .label svg { width: 14px; height: 14px; color: var(--brand); }
.kpi .value {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink-0);
}
.kpi .value .unit {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ink-2);
  margin-left: 4px;
  font-weight: 400;
}
.kpi .trend {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px;
  color: var(--ink-2);
}
.kpi .trend strong { font-weight: 600; }
.kpi .trend.up { color: var(--ok); }
.kpi .trend.down { color: var(--danger); }
.kpi.accent { background: linear-gradient(150deg, var(--brand), var(--brand-600)); border-color: var(--brand); color: #fff; }
.kpi.accent .label, .kpi.accent .value, .kpi.accent .trend { color: #fff; }
.kpi.accent .label svg, .kpi.accent .value .unit { color: rgba(255,255,255,0.75); }
.kpi.accent .trend.up { color: #d4f5d9; }

/* ---- 7. Pills & chips ---- */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  background: var(--surface-3);
  color: var(--ink-1);
  border: 1px solid transparent;
}
.pill-ok     { background: var(--ok-bg);     color: var(--ok); }
.pill-warn   { background: var(--warn-bg);   color: var(--warn); }
.pill-danger { background: var(--danger-bg); color: var(--danger); }
.pill-info   { background: var(--info-bg);   color: var(--info); }
.pill-brand  { background: var(--brand-100); color: var(--brand); }
.pill-mute   { background: var(--surface-3); color: var(--ink-2); }
.pill-dot::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
}

.chip {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--ink-1);
  background: var(--surface);
  display: inline-flex; gap: 6px; align-items: center;
  transition: all 0.12s;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.is-active { background: var(--brand-100); border-color: var(--brand); color: var(--brand); font-weight: 500; }
.chip small { color: var(--ink-3); }

/* ---- 8. Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink-0);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.12s;
  white-space: nowrap;
}
.btn:hover { background: var(--surface-3); border-color: var(--ink-3); }
.btn:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
.btn svg { width: 15px; height: 15px; }
.btn-primary {
  background: var(--brand); border-color: var(--brand); color: #fff;
  box-shadow: 0 1px 0 var(--brand-700) inset;
}
.btn-primary:hover { background: var(--brand-600); border-color: var(--brand-600); }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { background: #b91c1c; border-color: #b91c1c; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-1); }
.btn-ghost:hover { background: var(--surface-3); border-color: transparent; }
.btn-sm  { padding: 6px 10px; font-size: 12px; }
.btn-lg  { padding: 12px 20px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---- 9. Forms ---- */
.form-grid { display: grid; gap: 18px; }
.form-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.form-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-1);
  display: flex; justify-content: space-between;
}
.field label .hint { color: var(--ink-3); font-weight: 400; font-size: 11.5px; }
.field .help { color: var(--ink-3); font-size: 12px; }
.field .error { color: var(--danger); font-size: 12px; }
.field.required label::after { content: " *"; color: var(--danger); }

.input, .select, .textarea {
  width: 100%;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--ink-0);
  font-size: 13.5px;
  transition: border-color 0.12s, box-shadow 0.12s;
}
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-3); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: var(--shadow-focus);
}
.input::placeholder, .textarea::placeholder { color: var(--ink-3); }
.textarea { resize: vertical; min-height: 96px; font-family: var(--font-body); }

.input-with-icon { position: relative; }
.input-with-icon svg {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--ink-3); pointer-events: none;
}
.input-with-icon .input { padding-left: 38px; }

.input-group {
  display: flex;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface);
}
.input-group:focus-within { border-color: var(--brand); box-shadow: var(--shadow-focus); }
.input-group .input { border: 0; box-shadow: none; }
.input-group .input:focus { box-shadow: none; }
.input-group .addon {
  padding: 10px 14px;
  background: var(--surface-3);
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 12px;
  display: grid; place-items: center;
  border-left: 1px solid var(--line);
}
.input-group .addon:first-child { border-left: 0; border-right: 1px solid var(--line); }

.checkbox, .radio {
  display: flex; align-items: flex-start; gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: var(--ink-1);
  padding: 2px 0;
}
.checkbox input, .radio input {
  width: 16px; height: 16px;
  accent-color: var(--brand);
  margin-top: 2px;
  cursor: pointer;
}
.checkbox strong, .radio strong { display: block; color: var(--ink-0); font-weight: 600; font-size: 13px; }
.checkbox span, .radio span { color: var(--ink-2); font-size: 12.5px; }

/* Radio-card: highlight the card whose radio is checked. Overrides inline styles. */
.radio-card {
  border: 1px solid var(--line);
  padding: 10px 14px;
  border-radius: 6px;
  flex: 1;
  min-width: 160px;
  background: var(--surface);
  transition: border-color 0.12s, background 0.12s;
}
.radio-card:hover { border-color: var(--ink-3); }
.radio-card:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-50);
}
.radio-card:has(input:checked) strong { color: var(--brand); }

.switch {
  position: relative;
  display: inline-block;
  width: 38px; height: 22px;
  cursor: pointer;
}
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider {
  position: absolute; inset: 0;
  background: var(--line-strong);
  border-radius: 999px;
  transition: background 0.15s;
}
.switch .slider::before {
  content: ""; position: absolute;
  left: 3px; top: 3px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s;
}
.switch input:checked + .slider { background: var(--brand); }
.switch input:checked + .slider::before { transform: translateX(16px); }

.upload {
  border: 1.5px dashed var(--line-strong);
  border-radius: 8px;
  padding: 28px 20px;
  text-align: center;
  background: var(--surface-2);
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.12s;
}
.upload:hover { border-color: var(--brand); background: var(--brand-50); color: var(--brand); }
.upload svg { width: 28px; height: 28px; margin: 0 auto 8px; display: block; }
.upload strong { display: block; font-size: 14px; color: var(--ink-0); font-weight: 600; }
.upload span { font-size: 12.5px; }

.segmented {
  display: inline-flex;
  background: var(--surface-3);
  border-radius: 6px;
  padding: 3px;
  gap: 2px;
}
.segmented button {
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 500;
  border-radius: 4px;
  color: var(--ink-2);
}
.segmented button.is-active {
  background: var(--surface);
  color: var(--ink-0);
  box-shadow: var(--shadow-xs);
}

/* ---- 10. Tables ---- */
.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td {
  padding: 13px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  vertical-align: middle;
}
.table th {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  font-weight: 600;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.table tbody tr { transition: background 0.1s; }
.table tbody tr:hover { background: var(--surface-2); }
.table tbody tr:last-child td { border-bottom: 0; }
.table td.num, .table th.num { font-family: var(--font-mono); text-align: right; }
.table .board-id {
  font-family: var(--font-mono);
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
}
.table .cell-strong { color: var(--ink-0); font-weight: 600; }
.table .row-actions { display: flex; gap: 4px; opacity: 0; transition: opacity 0.12s; }
.table tr:hover .row-actions { opacity: 1; }

.table-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.table-toolbar .left { display: flex; align-items: center; gap: 10px; flex: 1; }
.table-toolbar .right { display: flex; align-items: center; gap: 8px; }

.pagination {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 12.5px;
  color: var(--ink-2);
}
.pagination .pager { display: flex; gap: 4px; }
.pagination button {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 5px;
  color: var(--ink-1);
  font-size: 12.5px;
}
.pagination button:hover { background: var(--surface-3); }
.pagination button.is-active { background: var(--brand); color: #fff; font-weight: 600; }

/* ---- 11. Auth (login) ---- */
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg);
}
.auth-brand {
  position: relative;
  padding: 48px 56px;
  background:
    radial-gradient(800px 500px at 10% 10%, rgba(255,255,255,0.08), transparent 60%),
    linear-gradient(160deg, var(--brand), var(--brand-700));
  color: #fff;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.auth-brand::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 80px, rgba(255,255,255,0.04) 80px 81px),
    repeating-linear-gradient(90deg, transparent 0 80px, rgba(255,255,255,0.04) 80px 81px);
  pointer-events: none;
}
.auth-brand-top { display: flex; align-items: center; gap: 14px; position: relative; }
.auth-brand-top img { width: 44px; height: 44px; background: #fff; border-radius: 8px; padding: 4px; }
.auth-brand-top .bn-name { font-family: var(--font-bangla-display); font-size: 26px; line-height: 1; }
.auth-brand-top .en-name { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.8; margin-top: 4px; }
.auth-brand-hero {
  position: relative;
  margin-top: auto; padding-top: 56px;
}
.auth-brand-hero h2 {
  color: #fff;
  font-size: 40px;
  line-height: 1.1;
  font-weight: 500;
  max-width: 520px;
}
.auth-brand-hero h2 .italic { color: #d4f5d9; }
.auth-brand-hero p { color: rgba(255,255,255,0.85); margin-top: 16px; max-width: 500px; font-size: 14.5px; }
.auth-brand-stats {
  margin-top: 40px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 500px;
  position: relative;
}
.auth-brand-stats .stat { display: flex; flex-direction: column; gap: 4px; }
.auth-brand-stats .stat strong { font-family: var(--font-display); font-size: 28px; font-weight: 500; }
.auth-brand-stats .stat span { font-size: 12px; opacity: 0.75; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.1em; }

.auth-form {
  display: grid;
  place-items: center;
  padding: 48px 32px;
}
.auth-card {
  width: 100%;
  max-width: 400px;
}
.auth-card h1 { font-size: 28px; margin-bottom: 8px; }
.auth-card .sub { color: var(--ink-2); font-size: 14px; margin-bottom: 28px; }
.auth-card .form-grid { gap: 14px; }
.auth-foot {
  margin-top: 22px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12.5px; color: var(--ink-2);
}
.auth-foot a { color: var(--brand); font-weight: 500; }
.auth-divider {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink-3); font-size: 12px;
  margin: 18px 0;
}
.auth-divider::before, .auth-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}

/* ---- 12. Map / control-room wall ---- */
.map-shell {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 10;
}
.map-shell svg { width: 100%; height: 100%; }
.map-overlay {
  position: absolute; top: 14px; left: 14px; right: 14px;
  display: flex; justify-content: space-between; pointer-events: none;
}
.map-overlay .tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-2);
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--line);
  padding: 5px 10px;
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
}
.map-legend {
  position: absolute; bottom: 14px; left: 14px;
  display: flex; gap: 14px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 11.5px;
  box-shadow: var(--shadow-sm);
}
.map-legend span::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  display: inline-block; margin-right: 6px; vertical-align: middle;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.04);
}
.map-legend .ok { color: var(--ok); }
.map-legend .warn { color: var(--warn); }
.map-legend .dang { color: var(--danger); }

/* Display wall (control room) */
.wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.display {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow-xs);
}
.display-screen {
  position: absolute; inset: 6px;
  border-radius: 4px;
  background-size: cover;
  background-position: center;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.display-meta {
  position: absolute; bottom: 0; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.75));
  color: #fff;
}
.display-meta .id { color: #d4f5d9; letter-spacing: 0.05em; font-weight: 600; }
.display.offline .display-screen { background: repeating-linear-gradient(45deg, #f0f0f0 0 10px, #e4e4e4 10px 20px); }
.display.offline::after {
  content: "OFFLINE"; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em;
  color: #fff; background: var(--danger); padding: 4px 10px; border-radius: 3px;
  font-weight: 600;
}
.display.override .display-screen {
  background:
    linear-gradient(0deg, rgba(220,38,38,0.95), rgba(220,38,38,0.95)),
    repeating-linear-gradient(90deg, transparent 0 40px, rgba(255,255,255,0.08) 40px 41px);
  color: white;
  font-family: var(--font-display);
  font-size: 18px;
  text-align: center;
  padding: 12px;
  line-height: 1.15;
  font-weight: 500;
}

/* Emergency */
.emergency {
  position: relative;
  padding: 20px 24px;
  border: 1px solid var(--danger);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--danger-bg), #fff);
  display: flex; gap: 18px; align-items: center;
}
.emergency .big-btn {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ef4444, var(--danger) 65%, #991b1b);
  box-shadow: 0 6px 18px rgba(220,38,38,0.35), inset 0 -4px 8px rgba(0,0,0,0.25), inset 0 2px 0 rgba(255,255,255,0.3);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: transform 0.1s;
  flex-shrink: 0;
}
.emergency .big-btn:hover { transform: scale(1.04); }
.emergency .big-btn:active { transform: scale(0.97); }
.emergency-body h3 { font-family: var(--font-display); font-size: 20px; color: var(--ink-0); font-weight: 600; }
.emergency-body p { color: var(--ink-2); font-size: 13px; margin-top: 4px; }
.emergency-body .bn { color: var(--ink-3); font-size: 12.5px; margin-top: 2px; }

/* ---- 13. Timeline ---- */
.timeline { position: relative; padding-left: 22px; }
.timeline::before {
  content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px;
  width: 1px; background: var(--line);
}
.timeline-item { position: relative; padding-bottom: 18px; }
.timeline-item::before {
  content: ""; position: absolute; left: -19px; top: 4px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--brand);
}
.timeline-item.ok::before { border-color: var(--ok); }
.timeline-item.danger::before { border-color: var(--danger); }
.timeline-item.warn::before { border-color: var(--warn); }
.timeline-item time {
  font-family: var(--font-mono); font-size: 10.5px;
  color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.1em;
  display: block; margin-bottom: 2px;
}
.timeline-item strong { font-size: 13px; font-weight: 600; color: var(--ink-0); }
.timeline-item p { color: var(--ink-2); font-size: 12.5px; margin-top: 2px; }

/* ---- 14. Tabs ---- */
.tabs {
  display: flex; gap: 2px;
  border-bottom: 1px solid var(--line);
}
.tab {
  padding: 10px 16px;
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.12s;
}
.tab:hover { color: var(--ink-0); }
.tab.is-active { color: var(--brand); border-color: var(--brand); }

/* ---- 15. Phone frame (inspector) ---- */
.phone {
  width: 360px;
  background: #0f1413;
  border-radius: 36px;
  padding: 12px;
  border: 8px solid #1e2423;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.phone::before {
  content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 20px; background: #0f1413; border-radius: 20px; z-index: 2;
}
.phone-inner {
  border-radius: 24px; overflow: hidden;
  background: var(--bg);
  min-height: 680px;
  padding-top: 46px;
}

/* ---- 16. Status bars / progress ---- */
.bar {
  width: 100%; height: 6px;
  background: var(--surface-3);
  border-radius: 999px;
  overflow: hidden;
}
.bar > span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--brand), var(--brand-500));
  border-radius: 999px;
}
.bar.ok > span   { background: linear-gradient(90deg, var(--ok), #0f7a39); }
.bar.warn > span { background: linear-gradient(90deg, var(--warn), #8f6403); }
.bar.danger > span { background: linear-gradient(90deg, var(--danger), #991b1b); }

/* ---- 17. Banner / alert ---- */
.banner {
  display: flex; gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  align-items: flex-start;
}
.banner-brand  { border-color: var(--brand); background: var(--brand-50); }
.banner-warn   { border-color: var(--warn); background: var(--warn-bg); }
.banner-danger { border-color: var(--danger); background: var(--danger-bg); }
.banner svg { width: 20px; height: 20px; color: var(--brand); flex-shrink: 0; margin-top: 1px; }
.banner-warn svg { color: var(--warn); }
.banner-danger svg { color: var(--danger); }
.banner strong { color: var(--ink-0); font-weight: 600; display: block; font-size: 13.5px; }
.banner p { color: var(--ink-2); font-size: 12.5px; margin-top: 2px; }

/* ---- 18. Creative thumbnails ---- */
.creative {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-family: var(--font-display);
  font-size: 14px;
  font-style: italic;
  text-align: center;
  padding: 10px;
  line-height: 1.2;
}
.creative-1 { background: linear-gradient(135deg, #c9463c, #5b1a15); }
.creative-2 { background: linear-gradient(135deg, #1f6f5c, #0e2f26); }
.creative-3 { background: linear-gradient(135deg, #3d2e8a, #1a1442); }
.creative-4 { background: linear-gradient(135deg, #c77a26, #5d3810); }
.creative-5 { background: linear-gradient(135deg, #2b6999, #0f2d44); }
.creative-6 { background: linear-gradient(135deg, #8c2e4c, #3e1220); }
.creative-7 { background: linear-gradient(135deg, #5b7f34, #23321a); }
.creative-8 { background: linear-gradient(135deg, var(--brand), var(--brand-700)); }
.creative .brand {
  position: absolute; bottom: 6px; right: 8px;
  font-family: var(--font-mono); font-size: 9px; opacity: 0.8;
  font-style: normal; letter-spacing: 0.08em; text-transform: uppercase;
}

/* ---- 19. Utility ---- */
.divider { height: 1px; background: var(--line); margin: 20px 0; }
.text-brand  { color: var(--brand); }
.text-ok     { color: var(--ok); }
.text-danger { color: var(--danger); }
.text-warn   { color: var(--warn); }
.text-right  { text-align: right; }
.center      { text-align: center; }
.nowrap      { white-space: nowrap; }

.col-2 { grid-column: span 2; }
.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-9 { grid-column: span 9; }
.col-12 { grid-column: span 12; }
.grid-12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); }

/* ---- 20. Landing (index) ---- */
.landing { min-height: 100vh; }

.landing-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.landing-nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 12px 32px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px;
}
.landing-brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.landing-brand img { width: 38px; height: 38px; object-fit: contain; }
.landing-brand .bn-name { font-family: var(--font-bangla-display); font-size: 18px; line-height: 1; color: var(--ink-0); font-weight: 500; }
.landing-brand .en-name { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-top: 3px; }
.landing-links { display: flex; align-items: center; gap: 26px; }
.landing-links a { font-size: 13.5px; color: var(--ink-1); font-weight: 500; }
.landing-links a:hover { color: var(--brand); }
.landing-nav-actions { display: flex; align-items: center; gap: 10px; }

.hero {
  padding: 80px 32px 64px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 80% 0%, rgba(33,109,34,0.09), transparent 60%),
    radial-gradient(700px 400px at 10% 100%, rgba(33,109,34,0.06), transparent 60%);
}
.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero .eyebrow { margin-bottom: 18px; }
.hero h1 {
  font-size: 64px;
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: -0.03em;
  max-width: 620px;
}
.hero h1 .italic { color: var(--brand); font-weight: 500; }
.hero .bn-lead {
  font-family: var(--font-bangla-display);
  font-size: 22px;
  color: var(--ink-1);
  margin-top: 18px;
  line-height: 1.35;
  max-width: 560px;
}
.hero .lead {
  font-size: 16px;
  color: var(--ink-2);
  margin-top: 20px;
  line-height: 1.6;
  max-width: 520px;
}
.hero-cta { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats {
  margin-top: 48px;
  display: grid; grid-template-columns: repeat(3, auto);
  gap: 40px;
  max-width: 520px;
}
.hero-stats .stat { display: flex; flex-direction: column; }
.hero-stats .stat strong { font-family: var(--font-display); font-size: 28px; color: var(--brand); font-weight: 500; }
.hero-stats .stat span { font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 4px; }

.hero-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hero-visual::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 32px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.hero-visual::after {
  content: "● ● ●";
  position: absolute; top: 6px; left: 14px;
  letter-spacing: 4px;
  color: var(--line-strong);
  font-size: 10px;
  line-height: 1;
}
.hero-visual-body { padding: 48px 28px 28px; display: grid; gap: 14px; }

.section {
  padding: 80px 32px;
  max-width: var(--container);
  margin: 0 auto;
}
.section-head { text-align: center; margin-bottom: 48px; max-width: 760px; margin-left: auto; margin-right: auto; }
.section-head h2 { font-size: 40px; margin-top: 10px; font-weight: 500; letter-spacing: -0.02em; }
.section-head p { margin-top: 14px; color: var(--ink-2); font-size: 15.5px; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.2s;
}
.feature:hover { border-color: var(--brand); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feature-icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--brand-100);
  color: var(--brand);
  border-radius: 10px;
  margin-bottom: 18px;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature h3 { font-family: var(--font-display); font-size: 19px; margin-bottom: 8px; }
.feature p { color: var(--ink-2); font-size: 13.5px; line-height: 1.6; }
.feature .tag {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.band {
  background: linear-gradient(160deg, var(--brand), var(--brand-700));
  color: #fff;
  position: relative;
  overflow: hidden;
}
.band::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 80px, rgba(255,255,255,0.03) 80px 81px),
    repeating-linear-gradient(90deg, transparent 0 80px, rgba(255,255,255,0.03) 80px 81px);
  pointer-events: none;
}
.band-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 72px 32px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
}
.band h2 { color: #fff; font-size: 40px; font-weight: 500; line-height: 1.1; }
.band h2 .italic { color: #d4f5d9; }
.band p { color: rgba(255,255,255,0.85); font-size: 15.5px; margin-top: 16px; max-width: 520px; }
.band-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.band-kpis .kpi-mini { border-left: 2px solid rgba(255,255,255,0.3); padding-left: 16px; }
.band-kpis strong { font-family: var(--font-display); font-size: 32px; font-weight: 500; display: block; line-height: 1; color: #fff; }
.band-kpis span { font-size: 12px; opacity: 0.8; letter-spacing: 0.08em; text-transform: uppercase; font-family: var(--font-mono); }

.modules-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.module-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px;
  transition: all 0.15s;
}
.module-card:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.module-card .num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.module-card h4 { font-family: var(--font-display); font-size: 16px; font-weight: 500; color: var(--ink-0); margin-bottom: 6px; }
.module-card:hover h4 { color: var(--brand); }
.module-card p { font-size: 12.5px; color: var(--ink-2); }

.cta-final {
  padding: 80px 32px;
  text-align: center;
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.cta-final h2 { font-size: 40px; max-width: 760px; margin: 0 auto; font-weight: 500; }
.cta-final p { margin-top: 16px; color: var(--ink-2); font-size: 15.5px; max-width: 520px; margin-left: auto; margin-right: auto; }
.cta-final .hero-cta { justify-content: center; margin-top: 28px; }

.landing-footer {
  background: var(--ink-0);
  color: rgba(255,255,255,0.65);
  padding: 48px 32px 24px;
}
.landing-footer-inner {
  max-width: var(--container);
  margin: 0 auto;
}
.landing-footer .top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.landing-footer h5 { color: #fff; font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 14px; }
.landing-footer ul { display: flex; flex-direction: column; gap: 8px; }
.landing-footer a { font-size: 13px; color: rgba(255,255,255,0.65); }
.landing-footer a:hover { color: #fff; }
.landing-footer .brand img { width: 40px; height: 40px; background: #fff; padding: 4px; border-radius: 6px; }
.landing-footer .brand p { margin-top: 14px; font-size: 13px; max-width: 340px; line-height: 1.6; color: rgba(255,255,255,0.7); }
.landing-footer .bottom {
  display: flex; justify-content: space-between;
  padding-top: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.45);
}

/* ---- 21. Page head (inner pages, non-app shell) ---- */
.pagehead {
  padding: 40px 32px 28px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.pagehead .container { padding: 0; max-width: var(--container); }
.pagehead h1 { font-size: 36px; font-weight: 500; }
.pagehead h1 .italic { color: var(--brand); }
.pagehead .sub { margin-top: 10px; color: var(--ink-2); font-size: 14.5px; max-width: 720px; }
.pagehead .bn-sub { font-family: var(--font-bangla); color: var(--ink-3); margin-top: 4px; font-size: 13.5px; }

.bread {
  display: flex; gap: 8px; align-items: center;
  font-size: 12px;
  color: var(--ink-3);
  margin-bottom: 14px;
}
.bread a:hover { color: var(--brand); }
.bread .sep { color: var(--ink-4); }

/* ---- 22. Public (citizen) light-paper theme override ---- */
.theme-public {
  --bg: #fafaf8;
  --surface: #ffffff;
  --brand: #216d22;
}
.theme-public .map-shell {
  background:
    radial-gradient(600px 300px at 40% 50%, rgba(33,109,34,0.06), transparent 60%),
    var(--surface);
}

/* ---- 23. Responsive ---- */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 44px; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .modules-grid { grid-template-columns: 1fr 1fr; }
  .band-inner { grid-template-columns: 1fr; gap: 32px; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-brand { padding: 32px; }
  .landing-footer .top { grid-template-columns: 1fr 1fr; }
  .app { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .topbar, .main { grid-column: 1; }
  .form-grid.cols-2, .form-grid.cols-3 { grid-template-columns: 1fr; }
  .col-3, .col-4, .col-6, .col-8 { grid-column: span 12; }
}
@media (max-width: 680px) {
  .features-grid, .modules-grid { grid-template-columns: 1fr; }
  .hero { padding: 48px 20px 40px; }
  .hero h1 { font-size: 36px; }
  .section { padding: 56px 20px; }
  .landing-links { display: none; }
  .topbar, .main { padding-left: 16px; padding-right: 16px; }
}

/* ---- 23b. Selectable plan cards (registration · fee plan) ---- */
.plan-card {
  padding: 16px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  cursor: pointer;
  position: relative;
  transition: border-color 0.12s, background-color 0.12s;
}
.plan-card:hover { border-color: var(--ink-3); }
.plan-card.is-active {
  border-color: var(--brand);
  background: var(--brand-50);
}
.plan-card .plan-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.plan-card .plan-title { font-weight: 600; color: var(--ink-0); }
.plan-card .plan-meta { font-size: 12.5px; color: var(--ink-2); }
.plan-card .plan-price {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  color: var(--ink-0);
  margin-top: 10px;
}
.plan-card.is-active .plan-price { color: var(--brand); }
.plan-card .plan-price .per {
  font-size: 13px;
  color: var(--ink-2);
  font-weight: 400;
}
.plan-card .plan-footnote { font-size: 12px; margin-top: 4px; color: var(--ink-2); }
.plan-card .plan-recommend {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 9.5px;
}
.plan-card .radio-dot {
  width: 18px;
  height: 18px;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  flex-shrink: 0;
}
.plan-card.is-active .radio-dot {
  border-color: var(--brand);
  background: var(--brand);
  box-shadow: inset 0 0 0 3px #fff;
}

/* ---- 24. Mobile mockup showcase (hawker + inspector app preview pages) ---- */
.showcase {
  min-height: 100vh;
  background:
    radial-gradient(800px 400px at 20% 10%, rgba(33,109,34,0.08), transparent 60%),
    radial-gradient(900px 500px at 85% 90%, rgba(33,109,34,0.05), transparent 60%),
    #0f1410;
  color: #e8efe8;
  padding: 48px 32px 80px;
}
.showcase-head {
  max-width: 1400px;
  margin: 0 auto 48px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.showcase-head .eyebrow { color: #8ed491; }
.showcase-head h1 {
  color: #fff;
  font-size: 44px;
  margin-top: 10px;
  max-width: 720px;
}
.showcase-head h1 .italic { color: #8ed491; }
.showcase-head .lead {
  color: rgba(255,255,255,0.7);
  font-size: 15px;
  max-width: 560px;
  margin-top: 14px;
}
.showcase-head .bn-lead {
  font-family: var(--font-bangla);
  color: rgba(255,255,255,0.55);
  font-size: 14px;
  margin-top: 6px;
}
.showcase-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.showcase-nav a {
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.85);
  transition: all 0.18s;
}
.showcase-nav a:hover { background: rgba(255,255,255,0.06); }
.showcase-nav a.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }

.phone-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 48px 32px;
  align-items: start;
}
.phone-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.phone-cell .phone-label {
  text-align: center;
  max-width: 260px;
}
.phone-cell .phone-label .num {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #8ed491;
}
.phone-cell .phone-label h4 {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  margin-top: 4px;
}
.phone-cell .phone-label p {
  color: rgba(255,255,255,0.55);
  font-size: 12.5px;
  margin-top: 4px;
  line-height: 1.5;
}

/* iPhone-style frame */
.phone {
  width: 300px;
  height: 620px;
  background: #000;
  border-radius: 38px;
  padding: 10px;
  box-shadow:
    0 30px 60px rgba(0,0,0,0.4),
    0 0 0 1px rgba(255,255,255,0.08),
    inset 0 0 0 2px rgba(255,255,255,0.05);
  position: relative;
  flex-shrink: 0;
}
.phone::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 24px;
  background: #000;
  border-radius: 999px;
  z-index: 3;
}
.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--bg);
  border-radius: 30px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}
.phone-status {
  padding: 14px 22px 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-0);
  background: var(--surface);
  position: relative;
  z-index: 1;
}
.phone-status-right { display: flex; gap: 5px; align-items: center; }
.phone-status-right svg { width: 13px; height: 13px; }

.phone-body {
  flex: 1;
  overflow-y: auto;
  background: var(--bg);
  padding: 0;
  font-size: 12.5px;
}
.phone-body::-webkit-scrollbar { width: 0; display: none; }

.app-header {
  background: var(--surface);
  padding: 14px 18px 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.app-header .back {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--surface-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-1);
}
.app-header .title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  color: var(--ink-0);
  flex: 1;
}
.app-header .title small {
  display: block;
  font-family: var(--font-bangla);
  font-size: 11px;
  color: var(--ink-3);
  font-weight: 400;
  margin-top: 1px;
}
.app-header .icon-action {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--surface-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-1);
}
.app-header .icon-action svg { width: 16px; height: 16px; }

.app-section {
  padding: 16px 18px;
}
.app-section + .app-section { padding-top: 4px; }
.app-section h5 {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  font-weight: 500;
  margin-bottom: 10px;
}

.app-card {
  background: var(--surface);
  border-radius: 14px;
  padding: 16px;
  border: 1px solid var(--line);
}
.app-card + .app-card { margin-top: 10px; }
.app-card .hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.app-card .hd h6 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-0);
}
.app-card .big {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 500;
  color: var(--ink-0);
  letter-spacing: -0.02em;
}
.app-card .big .unit { font-size: 14px; color: var(--ink-2); font-weight: 400; margin-left: 3px; }
.app-card .sub { font-size: 11.5px; color: var(--ink-2); margin-top: 4px; }

.app-hero {
  background: linear-gradient(135deg, var(--brand-600), var(--brand));
  color: #fff;
  padding: 18px 18px 20px;
  border-radius: 0 0 20px 20px;
}
.app-hero .hello {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
}
.app-hero h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: #fff;
  margin-top: 4px;
  line-height: 1.15;
}
.app-hero .bn {
  font-family: var(--font-bangla);
  font-size: 12px;
  color: rgba(255,255,255,0.75);
  margin-top: 2px;
}

.app-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.app-row:last-child { border-bottom: 0; }
.app-row .ico {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--brand-50);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.app-row .ico svg { width: 16px; height: 16px; }
.app-row .ico.ok { background: var(--ok-bg); color: var(--ok); }
.app-row .ico.warn { background: var(--warn-bg); color: var(--warn); }
.app-row .ico.danger { background: var(--danger-bg); color: var(--danger); }
.app-row .txt { flex: 1; min-width: 0; }
.app-row .txt strong { font-size: 13px; color: var(--ink-0); display: block; }
.app-row .txt span { font-size: 11.5px; color: var(--ink-2); display: block; margin-top: 1px; }
.app-row .tail { text-align: right; }
.app-row .tail strong { font-size: 13px; color: var(--ink-0); display: block; }
.app-row .tail span { font-size: 10.5px; color: var(--ink-3); display: block; margin-top: 1px; }

.quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}
.quick-grid .quick {
  background: rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 10px 6px;
  color: #fff;
  text-align: center;
  font-size: 10.5px;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,0.08);
}
.quick-grid .quick svg { width: 16px; height: 16px; margin: 0 auto 6px; display: block; }

.app-btn {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--brand);
  color: #fff;
  border-radius: 12px;
  text-align: center;
  font-weight: 600;
  font-size: 13.5px;
}
.app-btn.ghost {
  background: var(--surface);
  color: var(--brand);
  border: 1px solid var(--line);
}
.app-btn + .app-btn { margin-top: 8px; }

.pay-method {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.pay-method + .pay-method { margin-top: 8px; }
.pay-method.is-active { border-color: var(--brand); background: var(--brand-50); }
.pay-method .logo {
  width: 38px; height: 38px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
}
.pay-method .logo.bkash { background: #e2136e; }
.pay-method .logo.nagad { background: #ec1c24; }
.pay-method .logo.card { background: #1e293b; }
.pay-method .info { flex: 1; }
.pay-method .info strong { display: block; font-size: 13px; color: var(--ink-0); }
.pay-method .info span { display: block; font-size: 11px; color: var(--ink-2); margin-top: 1px; }
.pay-method .radio {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  flex-shrink: 0;
}
.pay-method.is-active .radio {
  border-color: var(--brand);
  background: var(--brand);
  box-shadow: inset 0 0 0 3px #fff;
}

.app-tabbar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 8px 4px 14px;
}
.app-tabbar .tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 9.5px;
  color: var(--ink-3);
  font-weight: 500;
}
.app-tabbar .tab-item svg { width: 18px; height: 18px; }
.app-tabbar .tab-item.is-active { color: var(--brand); }

.qr-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
}
.qr-img {
  width: 160px; height: 160px;
  margin: 0 auto;
  background:
    linear-gradient(45deg, #000 25%, transparent 25%) 0 0/12px 12px,
    linear-gradient(-45deg, #000 25%, transparent 25%) 0 6px/12px 12px,
    linear-gradient(45deg, transparent 75%, #000 75%) 6px -6px/12px 12px,
    linear-gradient(-45deg, transparent 75%, #000 75%) -6px 0/12px 12px,
    #fff;
  border: 8px solid #fff;
  border-radius: 8px;
  outline: 1px solid var(--line);
  position: relative;
}
.qr-img::after {
  content: '';
  position: absolute;
  inset: 30%;
  background: var(--brand);
  border-radius: 8px;
  border: 4px solid #fff;
}
.qr-id {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-0);
  letter-spacing: 0.1em;
  margin-top: 14px;
  font-weight: 600;
}
.qr-name {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--ink-0);
  margin-top: 8px;
}
.qr-meta {
  font-size: 11px;
  color: var(--ink-2);
  margin-top: 4px;
}

.stall-map {
  background:
    linear-gradient(0deg, var(--surface-3) 1px, transparent 1px) 0 0/16px 16px,
    linear-gradient(90deg, var(--surface-3) 1px, transparent 1px) 0 0/16px 16px,
    var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  height: 140px;
  position: relative;
  overflow: hidden;
}
.stall-map .spot {
  position: absolute;
  width: 16px; height: 16px;
  border-radius: 4px;
  background: var(--brand);
  box-shadow: 0 0 0 3px rgba(33,109,34,0.18);
}
.stall-map .spot.free { background: var(--ok); box-shadow: 0 0 0 3px rgba(22,163,74,0.18); }
.stall-map .spot.taken { background: var(--ink-3); box-shadow: 0 0 0 3px rgba(139,145,142,0.18); }

.showcase-foot {
  max-width: 1400px;
  margin: 80px auto 0;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}
.showcase-foot a { color: #8ed491; }

/* Scanner overlay for inspector QR scan screen */
.scanner {
  flex: 1;
  background: #0a0e0a;
  position: relative;
  overflow: hidden;
}
.scanner::before {
  content: '';
  position: absolute;
  inset: 20% 15%;
  border: 2px solid rgba(255,255,255,0.25);
  border-radius: 16px;
}
.scanner-corners {
  position: absolute;
  inset: 20% 15%;
}
.scanner-corners span {
  position: absolute;
  width: 24px; height: 24px;
  border: 3px solid #8ed491;
}
.scanner-corners span:nth-child(1) { top: -2px; left: -2px; border-right: 0; border-bottom: 0; border-top-left-radius: 12px; }
.scanner-corners span:nth-child(2) { top: -2px; right: -2px; border-left: 0; border-bottom: 0; border-top-right-radius: 12px; }
.scanner-corners span:nth-child(3) { bottom: -2px; left: -2px; border-right: 0; border-top: 0; border-bottom-left-radius: 12px; }
.scanner-corners span:nth-child(4) { bottom: -2px; right: -2px; border-left: 0; border-top: 0; border-bottom-right-radius: 12px; }
.scanner-line {
  position: absolute;
  left: 15%; right: 15%;
  top: 50%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #8ed491, transparent);
  box-shadow: 0 0 12px #8ed491;
}
.scanner-hint {
  position: absolute;
  left: 0; right: 0;
  bottom: 40px;
  text-align: center;
  color: rgba(255,255,255,0.7);
  font-size: 12px;
}
.scanner-hint strong { color: #fff; display: block; margin-bottom: 4px; }

.violation-photo {
  height: 120px;
  background:
    linear-gradient(135deg, #2b3331 25%, #5b6360 25%, #5b6360 50%, #2b3331 50%, #2b3331 75%, #5b6360 75%) 0 0/20px 20px;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
}
.violation-photo::after {
  content: 'GEO · 23.7103, 90.4125';
  position: absolute;
  bottom: 8px; left: 10px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: #fff;
  background: rgba(0,0,0,0.6);
  padding: 3px 7px;
  border-radius: 4px;
}

.map-track {
  height: 160px;
  background:
    linear-gradient(0deg, var(--surface-3) 1px, transparent 1px) 0 0/20px 20px,
    linear-gradient(90deg, var(--surface-3) 1px, transparent 1px) 0 0/20px 20px,
    var(--surface);
  border-radius: 12px;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.map-track svg { width: 100%; height: 100%; }

@media (max-width: 620px) {
  .phone { width: 280px; height: 580px; }
  .showcase { padding: 32px 16px; }
  .showcase-head h1 { font-size: 32px; }
}

/* ---- OpenStreetMap (Leaflet) integration ---- */
.map-shell .osm-map { position: absolute; inset: 0; border-radius: inherit; }
.map-shell .osm-map .leaflet-container {
  height: 100%;
  width: 100%;
  background: var(--surface-2);
  font-family: inherit;
  border-radius: inherit;
}
.map-shell .leaflet-control-attribution {
  background: rgba(255, 255, 255, 0.9);
  font-size: 10px;
  color: var(--ink-3);
  padding: 2px 8px;
  border-top-left-radius: 4px;
}
.map-shell .leaflet-control-attribution a { color: var(--brand); }
.map-shell .leaflet-control-zoom a {
  background: #fff;
  color: var(--ink-1);
  border-color: var(--line);
}
.map-shell .leaflet-control-zoom a:hover {
  background: var(--brand-50);
  color: var(--brand);
}
.map-shell .map-overlay,
.map-shell .map-legend { z-index: 500; }
@keyframes osmPulse {
  0%, 100% { opacity: 0.9; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(1.08); }
}
