/* ═══════════════════════════════════════════════════════════════════════════
   e-Pouroshava — Citizen Web
   The citizen portal is skinned with the legacy admin design system
   (assets/css/admin.css): the same tokens, the same card / table / badge /
   button / form values, and the same sidebar + topbar shell. The only
   difference is the brand line under the logo ("নাগরিক পোর্টাল") and the
   nav links a citizen sees. No build step: plain CSS.
   ═══════════════════════════════════════════════════════════════════════════ */

/* Legacy palette lives in tokens.css (same values as admin.css's :root).
   The --c-* names below are aliases kept so views written earlier keep
   working; new rules should use the admin token names directly. */
:root {
  --c-primary: var(--primary);
  --c-primary-hover: var(--primary-hover);
  --c-primary-surface: var(--primary-light);
  --c-primary-faint: var(--primary-50);
  --c-grad: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  --c-service: #0E7490;
  --c-service-surface: #E6F6FA;
  --c-surface: var(--bg-card);
  --c-bg: var(--bg-page);
  --c-text: var(--text-primary);
  --c-text-secondary: var(--text-secondary);
  --c-text-muted: var(--text-muted);
  --c-border: var(--border);
  --c-divider: var(--border-light);
  --c-error: var(--danger);
  --c-error-surface: var(--danger-light);
  --c-success: var(--success);
  --c-success-surface: var(--success-light);
  --c-warning: var(--warning);
  --c-warning-surface: var(--warning-light);
  --c-info: var(--info);
  --c-info-surface: var(--info-light);
  --c-radius: var(--radius-md);
  --c-radius-lg: var(--radius-lg);
  --c-radius-sm: var(--radius-sm);
  --c-radius-pill: var(--radius-full);
  --c-shadow-sm: var(--shadow-sm);
  --c-shadow-lg: var(--shadow-lg);
}

/* ── Reset & Base (same values as the legacy panel) ─────────────────────── */

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

html { font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
}

.c-main { min-width: 0; }

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }

img { max-width: 100%; }

.c-skip { position: absolute; left: -9999px; }
.c-skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; border-radius: var(--radius-sm); z-index: 2000; }

/* ── Shell (redesigned: sticky top navbar, no sidebar) ────────────────────
   The citizen portal now runs the mockup layout: one top nav for every page
   (guest and signed-in), a plain content column below it, and the dark site
   footer. The sidebar/topbar geometry lives on only in the staff panel. */

.c-page { padding: 26px 0 44px; }
@media (min-width: 768px) { .c-page { padding: 30px 0 56px; } }

.c-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ── Main Content Area ──────────────────────────────────────────────────── */

.c-main { min-height: auto; }

/* ── Cards ──────────────────────────────────────────────────────────────── */

.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}

.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-header h5, .card-header h6 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.card-body { padding: 20px; }
.card-body.p-0 { padding: 0; }

.c-card {
  /* Full legacy .card treatment, since citizen views use .c-card directly */
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  padding: 20px;
}
.c-card + .c-card, .card + .card, .card + .c-card, .c-card + .card { margin-top: 14px; }
.c-card-tight { padding: 14px; }
.c-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.c-card-title { font-size: 16px; font-weight: 700; margin: 0; color: var(--text-primary); }
.c-card-sub { font-size: 13px; color: var(--text-secondary); margin: 2px 0 0; }

/* ── Buttons (legacy values) ────────────────────────────────────────────── */

.btn, .c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  text-decoration: none;
}

.c-btn { background: var(--primary); color: #fff; border-color: var(--primary); }
.c-btn:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: #fff; text-decoration: none; }

.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }

.btn-outline, .c-btn-outline { background: transparent; color: var(--text-secondary); border-color: var(--border); }
.btn-outline:hover, .c-btn-outline:hover { background: var(--gray-50); border-color: var(--gray-300); color: var(--text-secondary); }

.btn-ghost, .c-btn-ghost { background: transparent; color: var(--text-secondary); border: none; padding: 6px 10px; }
.btn-ghost:hover, .c-btn-ghost:hover { background: var(--gray-100); color: var(--text-primary); }

.btn-danger, .c-btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger:hover { background: #b91c1c; border-color: #b91c1c; color: #fff; }

.btn-sm, .c-btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-lg, .c-btn-lg { padding: 10px 24px; font-size: 14px; }
.c-btn-block { width: 100%; }

.c-btn-service { background: var(--c-service); border-color: var(--c-service); }
.c-btn-service:hover { background: #0A5A6E; border-color: #0A5A6E; }

.c-btn-white { background: #fff; color: var(--primary); border-color: #fff; }
.c-btn-white:hover { background: var(--primary-50); color: var(--primary-hover); border-color: #fff; }
.c-btn-hero-ghost { background: rgba(255,255,255,.10); color: #fff; border-color: rgba(255,255,255,.35); }
.c-btn-hero-ghost:hover { background: rgba(255,255,255,.20); color: #fff; border-color: rgba(255,255,255,.5); }

.c-btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

.btn-icon { width: 36px; height: 36px; padding: 0; border-radius: var(--radius-sm); }

/* ── Forms (legacy values) ──────────────────────────────────────────────── */

.form-group, .c-field { margin-bottom: 16px; }

.form-label, .c-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 5px;
}

.form-label .c-req, .c-label .c-req { color: var(--danger); }

.form-control, .c-input, .c-select, .c-textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 13.5px;
  color: var(--text-primary);
  background: var(--bg-card);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-control:focus, .c-input:focus, .c-select:focus, .c-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,86,219,0.1);
}

.form-control::placeholder, .c-input::placeholder, .c-textarea::placeholder { color: var(--text-muted); }

.form-control.is-invalid, .c-input.is-invalid, .c-select.is-invalid { border-color: var(--danger); }

.form-select, select.c-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

textarea.c-textarea, textarea.form-control { min-height: 110px; resize: vertical; }

.c-hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.c-error { color: var(--danger); font-size: 12.5px; margin-top: 4px; }
.c-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--text-secondary); }

/* ── Badges (legacy colours, shared with the admin panel) ───────────────── */

.badge, .c-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  gap: 4px;
  background: var(--primary-light);
  color: var(--info);
}

.badge-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }

.c-badge-lg { font-size: 12.5px; padding: 4px 12px; }
.c-badge-muted { background: var(--gray-100); color: var(--text-secondary); }
.c-badge-service { background: var(--c-service-surface); color: var(--c-service); }
.c-badge-success { background: var(--success-light); color: #065f46; }
.c-badge-warning { background: var(--warning-light); color: #92400e; }
.c-badge-error { background: var(--danger-light); color: #991b1b; }

/* Complaint statuses — identical pairs to the admin panel */
.status-submitted, .badge-submitted { background: #ede9fe; color: #6d28d9; }
.status-received, .badge-received { background: var(--info-light); color: #1e40af; }
.status-under_review, .badge-under_review { background: var(--warning-light); color: #92400e; }
.status-in_progress, .badge-in_progress { background: var(--success-light); color: #065f46; }
.status-resolved, .badge-resolved { background: #d1fae5; color: #065f46; }
.status-rejected, .badge-rejected { background: var(--danger-light); color: #991b1b; }

/* Citizen-service statuses */
.status-additional_info_required, .badge-service-additional_info_required { background: #ffedd5; color: #9a3412; }
.status-approved, .badge-service-approved { background: #dbeafe; color: #1e40af; }
.status-ready_for_collection, .badge-service-ready_for_collection { background: #e0f2fe; color: #075985; }
.status-completed, .badge-service-completed { background: #d1fae5; color: #065f46; }

.c-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; color: var(--text-secondary); }

/* ── Icon boxes (the .stat-icon treatment from the legacy dashboard) ────── */

.c-icon-box {
  width: 42px; height: 42px; border-radius: var(--radius-md); flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  background: var(--info-light); color: var(--info); font-weight: 700;
}
.c-icon-box svg { width: 20px; height: 20px; }
.c-icon-box-service { background: var(--c-service-surface); color: var(--c-service); }

/* ── Stats (home dashboard) — legacy .stat-card treatment ───────────────── */

.c-grid { display: grid; gap: 16px; }
.c-grid-2, .c-grid-3, .c-grid-4 { grid-template-columns: 1fr; }
/* Grid items shrink below their content's min-width (nowrap badges etc.),
   otherwise one wide tile pushes the whole page sideways. */
.c-grid > *, .c-svc-grid > *, .c-quick-grid > *, .c-steps > * { min-width: 0; }
@media (min-width: 720px) {
  .c-grid-2 { grid-template-columns: repeat(2, 1fr); }
  .c-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .c-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) { .c-grid-4 { grid-template-columns: repeat(4, 1fr); } }

.c-stat {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary);
  box-shadow: var(--shadow-xs);
}
.c-stat-value { font-size: 24px; font-weight: 800; color: var(--primary); line-height: 1.2; }
.c-stat-label { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }

/* ── Lists (rows inside cards) ──────────────────────────────────────────── */

.c-list { list-style: none; margin: 0; padding: 0; }
.c-list-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}
.c-list-item:last-child { border-bottom: 0; padding-bottom: 0; }
.c-list-item:first-child { padding-top: 0; }
.c-list-body { flex: 1; min-width: 0; }
.c-list-title { font-weight: 600; margin: 0 0 2px; color: var(--text-primary); font-size: 13.5px; }
.c-list-meta {
  font-size: 12.5px; color: var(--text-muted);
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
}

/* ── Flash messages (token colours, legacy radius) ──────────────────────── */

.c-flash {
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 13.5px;
  margin-bottom: 14px;
  border: 1px solid transparent;
}
.c-flash-success { background: var(--success-light); color: #065f46; border-color: #b9e7d5; }
.c-flash-error { background: var(--danger-light); color: #991b1b; border-color: #f8c4c4; }
.c-flash-info { background: var(--info-light); color: var(--info); border-color: #c7dbfb; }
.c-flash ul { margin: 6px 0 0; padding-left: 20px; }

/* ── Empty states (legacy component) ────────────────────────────────────── */

.c-empty { text-align: center; padding: 48px 24px; color: var(--text-muted); }
.c-empty-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--gray-100);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 14px; font-size: 24px;
}
.c-empty-title { font-size: 14px; font-weight: 600; color: var(--text-secondary); margin-bottom: 4px; }

/* ── Pagination (legacy .page-btn look) ─────────────────────────────────── */

.c-pagination { display: flex; gap: 4px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.c-pagination a, .c-pagination span {
  min-width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 8px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  background: var(--bg-card);
}
.c-pagination a:hover { background: var(--gray-50); color: var(--text-secondary); }
.c-pagination .is-current { background: var(--primary); color: #fff; border-color: var(--primary); font-weight: 600; }
.c-pagination .is-disabled { opacity: .5; }

/* ── Timeline (legacy component) ────────────────────────────────────────── */

.c-timeline { position: relative; padding-left: 24px; list-style: none; margin: 0; }
.c-timeline::before {
  content: '';
  position: absolute;
  left: 7px; top: 0; bottom: 0;
  width: 2px;
  background: var(--border);
}
.c-timeline li { position: relative; padding-bottom: 20px; }
.c-timeline li:last-child { padding-bottom: 0; }
.c-timeline li::before {
  content: '';
  position: absolute;
  left: -21px; top: 4px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--bg-card);
  box-shadow: 0 0 0 2px var(--primary);
}
.c-timeline-time { font-size: 11px; color: var(--text-muted); margin-bottom: 2px; }
.c-timeline-note {
  font-size: 12.5px; color: var(--text-secondary);
  background: var(--gray-50);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary);
  margin-top: 6px;
}

/* ── Detail tables (legacy .detail-row look) ────────────────────────────── */

.c-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.c-table th, .c-table td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: top;
}
.c-table th { color: var(--text-muted); font-weight: 600; font-size: 12px; width: 38%; }
.c-table tr:last-child th, .c-table tr:last-child td { border-bottom: none; }

/* ── Hero (signed-in dashboard) — indigo brand panel ────────────────────── */

.c-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #4F46E5 0%, #4338CA 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  border: none;
  padding: 26px 24px;
  box-shadow: 0 14px 34px -14px rgba(79, 70, 229, .55);
  margin-bottom: 14px;
}
.c-hero::after {
  content: '';
  position: absolute; right: -70px; top: -70px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.18), transparent 70%);
  pointer-events: none;
}
.c-hero h1 { margin: 0 0 6px; font-size: 22px; font-weight: 700; color: #fff; }
.c-hero > * { position: relative; z-index: 2; }
.c-hero p { margin: 0; color: #C7D2FE; font-size: 13.5px; max-width: 62ch; }

.c-hero-badge {
  display: inline-block; margin-bottom: 12px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.3);
  color: #E0E7FF;
  font-size: 11px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 11px;
  border-radius: var(--radius-full);
}
.c-hero-points { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.c-hero-points li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #E0E7FF; }
.c-hero-points li::before {
  content: '✓';
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(255,255,255,.18); color: #fff;
  font-size: 11px; font-weight: 800; flex-shrink: 0;
}

/* ── Section head ───────────────────────────────────────────────────────── */

.c-section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.c-section-title { font-size: 15px; font-weight: 700; color: var(--text-primary); margin: 0; }
.c-section-link { font-size: 13px; color: var(--primary); font-weight: 600; }
.c-section-link:hover { color: var(--primary-hover); }

/* ── Service cards (home + services index) ─────────────────────────────── */

.c-svc-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 720px) { .c-svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .c-svc-grid { grid-template-columns: repeat(3, 1fr); } }

.c-svc-card {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  padding: 14px;
  color: var(--text-primary);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.c-svc-card:hover {
  text-decoration: none;
  color: var(--text-primary);
  border-color: var(--gray-300);
  box-shadow: var(--shadow-md);
}
.c-svc-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.c-svc-name { font-size: 14px; font-weight: 700; line-height: 1.35; }
.c-svc-meta { font-size: 12px; color: var(--text-muted); }
.c-svc-body .c-badge { align-self: flex-start; margin-top: 3px; font-size: 11px; }
.c-svc-arrow { color: var(--primary); font-weight: 700; flex-shrink: 0; }
.c-svc-card:hover .c-svc-arrow { color: var(--primary-hover); }

/* ── Quick tiles (pastel, like the app home) ────────────────────────────── */

.c-quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (min-width: 480px) { .c-quick-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 680px) { .c-quick-grid { grid-template-columns: repeat(6, 1fr); } }

.c-quick-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 12px 8px;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  text-decoration: none;
  gap: 7px;
  transition: border-color .15s, box-shadow .15s;
  color: var(--text-primary);
}
.c-quick-tile:hover { text-decoration: none; color: var(--text-primary); box-shadow: var(--shadow-sm); border-color: var(--gray-300); }
.c-quick-tile-icon {
  width: 36px; height: 36px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.c-quick-tile-name { font-size: 11.5px; font-weight: 500; color: var(--text-secondary); text-align: center; line-height: 1.3; }
.c-quick-tile-all { background: var(--primary-50) !important; border-color: var(--primary-light) !important; }
.c-quick-tile-all .c-quick-tile-name { color: var(--primary); }

/* ── "How it works" steps ───────────────────────────────────────────────── */

.c-steps { display: grid; gap: 14px; }
@media (min-width: 720px) { .c-steps { grid-template-columns: repeat(3, 1fr); } }
.c-step { display: flex; gap: 12px; align-items: flex-start; }
.c-step strong { font-size: 14px; }
.c-step p { margin: 3px 0 0; color: var(--text-secondary); font-size: 12.5px; }
.c-step-num {
  width: 30px; height: 30px; flex-shrink: 0;
  border-radius: var(--radius-full);
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px;
}

/* ── Quick tile color variants (replaces inline styles) ─────────────────── */

.c-quick-tile-service { background: var(--c-service-surface); border-color: var(--c-service); }
.c-quick-tile-service .c-quick-tile-icon { background: rgba(14,116,144,0.1); color: var(--c-service); }

.c-quick-tile-health { background: #E0F2FE; border-color: #0284C7; }
.c-quick-tile-health .c-quick-tile-icon { background: rgba(2,132,199,0.1); color: #0284C7; }

.c-quick-tile-education { background: #F5F3FF; border-color: #7C3AED; }
.c-quick-tile-education .c-quick-tile-icon { background: rgba(124,58,237,0.1); color: #7C3AED; }

.c-quick-tile-utility { background: #FFF7ED; border-color: #D97706; }
.c-quick-tile-utility .c-quick-tile-icon { background: rgba(217,119,6,0.1); color: #D97706; }

.c-quick-tile-environment { background: #ECFDF5; border-color: #059669; }
.c-quick-tile-environment .c-quick-tile-icon { background: rgba(5,150,105,0.1); color: #059669; }

/* ── Google sign-in (auth pages) ────────────────────────────────────────── */

.c-google-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 10px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card); color: var(--text-primary);
  font-family: var(--font); font-size: 13.5px; font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.c-google-btn:hover { background: var(--gray-50); }
.c-google-btn svg { width: 18px; height: 18px; }
.c-divider-text { display: flex; align-items: center; gap: 12px; color: var(--text-muted); font-size: 12.5px; margin: 16px 0; }
.c-divider-text::before, .c-divider-text::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-google { margin-top: 4px; }
.g-signin-host { display: flex; justify-content: center; }
.g-signin-host > div { min-height: 44px; }
#authMessages .c-flash { margin-bottom: 14px; }
#authMessages:empty { display: none; }

/* ── Utilities ──────────────────────────────────────────────────────────── */

.c-muted { color: var(--text-muted); }
.c-secondary { color: var(--text-secondary); }
.c-small { font-size: 13px; }
.c-bold { font-weight: 700; }
.c-flex { display: flex; align-items: center; gap: 10px; }
.c-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.c-wrap { flex-wrap: wrap; }
.c-mt { margin-top: 14px; }
.c-mt-lg { margin-top: 24px; }
.c-mb { margin-bottom: 14px; }
.c-text-center { text-align: center; }
.c-hidden { display: none !important; }
.c-thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.c-thumb {
  width: 78px; height: 78px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border);
}
.c-photo {
  width: 84px; height: 84px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 3px solid var(--primary-light);
}
.c-footer { text-align: center; color: var(--text-muted); font-size: 12.5px; padding: 18px 0 28px; }
.c-footer a { color: var(--text-secondary); }

/* ── Container variants ───────────────────────────────────────────────────── */

.c-container-narrow { max-width: 640px; margin: 0 auto; }

/* ── Citizen auth pages (login / register): legacy sign-in design ───────── */

.login-card .card-header h1 { font-size: 21px; }
.login-card .c-grid-2 { gap: 12px; }
.login-card .field:last-of-type { margin-bottom: 0; }
.login-card .c-hint { margin-bottom: 12px; }

@media (max-width: 560px) {
  .login-card .c-grid-2 { grid-template-columns: 1fr; }
}

/* Password toggle sits inside the legacy .input-wrap */
.input-wrap .pwd-toggle { position: absolute; right: 12px; }

/* ── Branch (শাখা) sections on the services catalogue ────────────────────
   See the catalogue section at the foot of this file for the current
   markup (.c-svc-branch / .c-svc-item). */

.c-badge-accent { background: var(--primary-faint); color: var(--primary); }

/* A service whose form is not built yet — looks like a button but is not one. */
.c-btn-disabled { background: var(--gray-100); border-color: var(--border); color: var(--text-muted); }
.c-btn-disabled:hover { background: var(--gray-100); border-color: var(--border); color: var(--text-muted); }

/* ── Public (signed-out) chrome ──────────────────────────────────────────
   A visitor sees the two public links and the way in — never the personal
   menu — so the site reads as a landing page rather than a dashboard. */

.c-sidebar-note {
  margin: 14px 16px 0;
  padding: 12px 14px;
  font-size: 12.5px;
  line-height: 1.6;
  color: #cbd5e1;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-md);
}

/* Banner shown to visitors on pages that are readable but not actionable. */
.c-guest-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 18px;
  margin-bottom: 18px;
  background: var(--primary-faint);
  border: 1px solid rgba(79,70,229,.18);
  border-radius: var(--radius-md);
}

.c-guest-banner-text {
  flex: 1;
  min-width: 200px;
  font-size: 13.5px;
  color: var(--text-secondary);
}

.c-guest-banner-text strong { color: var(--text-primary); }

/* Closing call to action on the landing page. */
.c-cta-band {
  background: var(--bg-sidebar);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  text-align: center;
  color: #fff;
  margin-top: 8px;
}

.c-cta-band h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 6px;
  color: #fff;
}

.c-cta-band p {
  font-size: 13.5px;
  color: #94A3B8;
  margin: 0 0 18px;
}

.c-cta-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }


/* ═══════════════════════════════════════════════════════════════════════════
   Guest landing page (`/` for a visitor who is not signed in)
   Full width, no sidebar. Same brand family as the rest of the portal: the
   dark-navy hero (--bg-sidebar) with the --primary blue accent, white cards,
   soft borders. Everything is prefixed .c-lp-* so it cannot leak into the
   logged-in dashboard or any other page.
   ═══════════════════════════════════════════════════════════════════════════ */

body.c-landing { display: block; background: var(--bg-page); }
body.c-landing .admin-main { margin-left: 0; width: 100%; }

.c-lp-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px)  { .c-lp-wrap { padding: 0 24px; } }
@media (min-width: 1024px) { .c-lp-wrap { padding: 0 32px; } }

/* Visible keyboard focus (light surfaces first, then dark surfaces). */
.c-lp-btn:focus-visible, .c-lp-link:focus-visible, .c-lp-brand:focus-visible,
.c-lp-feature:focus-visible, .c-lp-footer a:focus-visible, .c-lp-hero-note a:focus-visible,
body.c-landing .c-svc-card:focus-visible, body.c-landing .c-quick-tile:focus-visible,
body.c-landing .c-section-link:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}
.c-lp-header :focus-visible, .c-lp-hero :focus-visible, .c-lp-cta :focus-visible, .c-lp-footer :focus-visible {
  outline-color: #93c5fd;
}

/* ── Header ─────────────────────────────────────────────────────────────── */

.c-lp-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(15, 23, 42, .97);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.c-lp-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 64px; }

.c-lp-brand { display: flex; align-items: center; gap: 10px; min-width: 0; color: #fff; }
.c-lp-brand:hover { color: #fff; text-decoration: none; }
.c-lp-brand img { width: 38px; height: 38px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.c-lp-brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.c-lp-brand-name { font-size: 15px; font-weight: 700; white-space: nowrap; }
.c-lp-brand-sub { display: none; font-size: 11.5px; color: var(--gray-300); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 480px) { .c-lp-brand-sub { display: block; max-width: 220px; } }

.c-lp-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.c-lp-link { display: none; color: var(--gray-200); font-size: 14px; font-weight: 500; padding: 8px 12px; border-radius: var(--radius-sm); }
.c-lp-link:hover { color: #fff; background: rgba(255,255,255,.08); text-decoration: none; }
.c-lp-link.is-active { color: #fff; background: rgba(255,255,255,.14); }
@media (min-width: 720px) { .c-lp-link { display: inline-block; } .c-lp-actions { gap: 8px; } }

/* ── Buttons ────────────────────────────────────────────────────────────── */

.c-lp-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 38px; padding: 0 11px;
  border: 1.5px solid transparent; border-radius: var(--radius-sm);
  font-family: var(--font); font-size: 13px; font-weight: 600; line-height: 1.2;
  white-space: nowrap; cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.c-lp-btn:hover { text-decoration: none; }
@media (min-width: 400px) { .c-lp-btn { padding: 0 16px; font-size: 14px; min-height: 40px; } }

.c-lp-btn-solid { background: var(--primary); border-color: var(--primary); color: #fff; }
.c-lp-btn-solid:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: #fff; }
.c-lp-btn-ghost { background: transparent; border-color: rgba(255,255,255,.35); color: #fff; }
.c-lp-btn-ghost:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.55); color: #fff; }
.c-lp-btn-white { background: #fff; border-color: #fff; color: var(--primary); }
.c-lp-btn-white:hover { background: var(--primary-50); border-color: var(--primary-50); color: var(--primary-hover); }
.c-lp-btn-outline { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.4); color: #fff; }
.c-lp-btn-outline:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.65); color: #fff; }
.c-lp-btn-lg { min-height: 48px; padding: 0 22px; font-size: 15.5px; }

.c-lp-cta-row { display: flex; flex-wrap: wrap; gap: 10px; }

.c-lp-flash .c-flash { margin: 14px 0 0; }

/* ── Hero ───────────────────────────────────────────────────────────────── */

.c-lp-hero {
  position: relative; overflow: hidden; color: #fff;
  padding: 44px 0 84px;
  background:
    radial-gradient(60% 80% at 88% 0%, rgba(59,130,246,.34), transparent 70%),
    radial-gradient(50% 70% at 0% 100%, rgba(26,86,219,.32), transparent 70%),
    var(--bg-sidebar);
}
.c-lp-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; align-items: center; }
@media (min-width: 640px) { .c-lp-hero { padding: 64px 0 100px; } }
@media (min-width: 960px) {
  .c-lp-hero { padding: 84px 0 120px; }
  .c-lp-hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; }
}

.c-lp-eyebrow {
  display: inline-block; margin-bottom: 16px; max-width: 100%;
  background: var(--bg-sidebar-active);
  border: 1px solid rgba(59,130,246,.4);
  color: #93c5fd;
  font-size: 12px; font-weight: 600; letter-spacing: .04em;
  padding: 5px 12px; border-radius: var(--radius-full);
}
.c-lp-hero h1 {
  margin: 0 0 14px; color: #fff; font-weight: 700; line-height: 1.25;
  font-size: clamp(28px, 6.4vw, 46px);
}
.c-lp-accent { color: #60a5fa; }
.c-lp-lead { margin: 0 0 24px; max-width: 54ch; color: var(--gray-200); font-size: 16px; line-height: 1.7; }
@media (min-width: 640px) { .c-lp-lead { font-size: 17.5px; } }
.c-lp-hero-note { margin: 18px 0 0; font-size: 13.5px; color: var(--gray-300); }
.c-lp-hero-note a { color: #93c5fd; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.c-lp-hero-note a:hover { color: #fff; }

/* Decorative progress card (aria-hidden in the markup; no real data). */
.c-lp-hero-visual { display: flex; justify-content: center; }
.c-lp-track {
  width: 100%; max-width: 400px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-xl);
  padding: 22px;
  box-shadow: 0 20px 40px -20px rgba(0,0,0,.5);
}
.c-lp-track-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.c-lp-track-icon {
  width: 42px; height: 42px; border-radius: var(--radius-md); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-sidebar-active); color: #93c5fd;
}
.c-lp-track-title { font-size: 15px; font-weight: 700; color: #fff; }
.c-lp-track-sub { font-size: 12.5px; color: var(--gray-300); }
.c-lp-track-steps { list-style: none; margin: 0; padding: 0; }
.c-lp-track-steps li { position: relative; padding: 0 0 18px 30px; font-size: 14px; color: var(--gray-300); }
.c-lp-track-steps li:last-child { padding-bottom: 0; }
.c-lp-track-steps li:not(:last-child)::after {
  content: ''; position: absolute; left: 7px; top: 18px; bottom: 0; width: 2px;
  background: rgba(255,255,255,.18);
}
.c-lp-track-steps li.is-done:not(:last-child)::after { background: var(--success); }
.c-lp-dot {
  position: absolute; left: 0; top: 3px; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.4); background: transparent;
}
.c-lp-track-steps li.is-done { color: #fff; }
.c-lp-track-steps li.is-done .c-lp-dot { background: var(--success); border-color: var(--success); }
.c-lp-track-steps li.is-now { color: #fff; font-weight: 600; }
.c-lp-track-steps li.is-now .c-lp-dot { background: #60a5fa; border-color: #60a5fa; box-shadow: 0 0 0 4px rgba(96,165,250,.25); }

/* ── Trust strip (overlaps the hero's bottom edge) ──────────────────────── */

.c-lp-strip { position: relative; z-index: 2; margin-top: -48px; }
.c-lp-strip-list {
  list-style: none; margin: 0; padding: 0; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px;
  background: var(--border);
  border: 1px solid var(--border); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}
.c-lp-strip-list li { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: var(--bg-card); }
.c-lp-strip-list strong { display: block; font-size: 14px; color: var(--text-primary); line-height: 1.35; }
.c-lp-strip-list small { display: block; font-size: 12.5px; color: var(--text-secondary); line-height: 1.4; }
.c-lp-strip-icon {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-50); color: var(--primary);
}
.c-lp-strip-icon svg { width: 20px; height: 20px; }
@media (min-width: 640px)  { .c-lp-strip-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .c-lp-strip-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ── Generic landing sections ───────────────────────────────────────────── */

.c-lp-section { padding: 48px 0; }
.c-lp-section-tint { background: var(--primary-50); }
.c-lp-section-tight { padding-top: 24px; }
@media (min-width: 768px) { .c-lp-section { padding: 68px 0; } .c-lp-section-tight { padding-top: 32px; } }

.c-lp-head { margin-bottom: 26px; }
.c-lp-head h2 { margin: 0 0 6px; font-size: clamp(21px, 3.6vw, 28px); font-weight: 700; color: var(--text-primary); line-height: 1.3; }
.c-lp-head p { margin: 0; color: var(--text-secondary); font-size: 15px; max-width: 60ch; }
.c-lp-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; }
.c-lp-head-row .c-section-link { padding-bottom: 2px; }

/* Feature cards */
.c-lp-feature-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 720px) { .c-lp-feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
.c-lp-feature {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--bg-card); color: var(--text-primary);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs); padding: 22px;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.c-lp-feature:hover { color: var(--text-primary); text-decoration: none; border-color: var(--primary-light); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.c-lp-feature h3 { margin: 4px 0 0; font-size: 17px; font-weight: 700; color: var(--text-primary); }
.c-lp-feature p { margin: 0; font-size: 14px; line-height: 1.65; color: var(--text-secondary); }
.c-lp-feature-more { margin-top: auto; padding-top: 4px; font-size: 13.5px; font-weight: 600; color: var(--primary); }

/* Services on the landing get a little more air than the dashboard card. */
body.c-landing .c-svc-card { padding: 16px; }
body.c-landing .c-svc-card:hover { transform: translateY(-1px); }
body.c-landing .c-empty { background: var(--bg-card); border: 1px dashed var(--border); border-radius: var(--radius-lg); }

/* Steps */
.c-lp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 768px) { .c-lp-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
.c-lp-step { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-xs); }
.c-lp-step-num {
  width: 40px; height: 40px; border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  background: var(--primary); color: #fff; font-size: 17px; font-weight: 800; margin-bottom: 12px;
}
.c-lp-step h3 { margin: 0 0 6px; font-size: 16.5px; font-weight: 700; color: var(--text-primary); }
.c-lp-step p { margin: 0; font-size: 14px; line-height: 1.65; color: var(--text-secondary); }

/* Closing CTA */
.c-lp-cta {
  display: flex; flex-direction: column; align-items: flex-start; gap: 20px;
  padding: 30px 22px; color: #fff; border-radius: var(--radius-xl); overflow: hidden;
  background:
    radial-gradient(60% 120% at 100% 0%, rgba(59,130,246,.32), transparent 70%),
    var(--bg-sidebar);
}
.c-lp-cta h2 { margin: 0 0 6px; font-size: clamp(21px, 3.6vw, 26px); font-weight: 700; color: #fff; }
.c-lp-cta p { margin: 0; color: var(--gray-300); font-size: 15px; }
@media (min-width: 900px) {
  .c-lp-cta { flex-direction: row; align-items: center; justify-content: space-between; padding: 40px 44px; }
}

/* Footer */
.c-lp-footer { background: var(--bg-sidebar); color: var(--gray-300); padding: 36px 0 22px; }
.c-lp-footer-inner { display: flex; flex-direction: column; gap: 22px; }
@media (min-width: 720px) { .c-lp-footer-inner { flex-direction: row; align-items: center; justify-content: space-between; } }
.c-lp-footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.c-lp-footer-brand img { width: 32px; height: 32px; border-radius: 7px; object-fit: cover; }
.c-lp-footer-brand strong { display: block; font-size: 14.5px; line-height: 1.3; }
.c-lp-footer-brand small { display: block; font-size: 12px; color: var(--gray-300); }
.c-lp-footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.c-lp-footer-links a { color: var(--gray-300); font-size: 14px; }
.c-lp-footer-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.c-lp-copy { margin-top: 26px; font-size: 12.5px; color: var(--gray-400); text-align: left; }

@media (prefers-reduced-motion: reduce) {
  .c-lp-feature, .c-lp-btn, body.c-landing .c-svc-card { transition: none; }
  .c-lp-feature:hover, body.c-landing .c-svc-card:hover { transform: none; }
}

/* ── Focus visible for keyboard navigation (signed-in shell + other pages) ── */

.c-btn:focus-visible, .c-svc-card:focus-visible, .c-quick-tile:focus-visible,
.c-list-title:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

/* ── Print styles ─────────────────────────────────────────────────────────── */

@media print {
  .c-topnav, .c-topnav-overlay, .c-ft, .c-lp-strip, .c-lp-cta,
  .c-btn, .c-btn-row, .c-pagination, .toast-container {
    display: none !important;
  }
  .c-page { padding: 0; }
  .c-container { max-width: 100%; }
  .card, .c-card { box-shadow: none; border: 1px solid var(--border); break-inside: avoid; }
  body { background: #fff; }
  a { text-decoration: none; color: #000; }
}

/* ── High contrast mode (Windows) ─────────────────────────────────────────── */

@media (forced-colors: active) {
  .card, .c-card, .c-svc-card, .c-quick-tile, .btn-submit, .c-btn,
  .input-wrap, .form-control, .c-input, .c-select, .c-textarea {
    border: 1px solid currentColor;
  }
  .btn-submit, .c-btn, .c-btn-primary { background: CanvasText; color: Canvas; }
  .c-btn-outline, .btn-outline { background: transparent; }
  .ring, .brand-badge .dot { border-color: currentColor; }
  .c-badge, .badge { border: 1px solid currentColor; }
  .c-icon-box, .feature-icon { background: CanvasText; color: Canvas; }
  .c-flash, .error-box { border: 2px solid currentColor; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Mockup redesign — indigo citizen portal
   citizen.css loads after admin.css on every citizen page, so the :root
   overrides below re-skin the shared tokens for this portal only (the staff
   panel never loads this file). Layout: one sticky top navbar for every
   page, then the content column, then the dark site footer.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  /* Brand */
  --primary: #4F46E5;
  --primary-hover: #4338CA;
  --primary-light: #EEF2FF;
  --primary-50: #F5F6FF;

  /* Semantic accents from the mockup */
  --success: #16A34A;
  --success-light: #DCFCE7;
  --info: #2563EB;
  --info-light: #DBEAFE;

  /* Text + surfaces */
  --text-primary: #1E293B;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  --bg-page: #F8FAFC;
  --border: #E5E7EB;
  --border-light: #F1F5F9;

  /* Radius: cards 16, inputs/buttons 10 */
  --radius-sm: 10px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

/* ── Top navbar ───────────────────────────────────────────────────────────── */

.c-topnav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.c-topnav-inner {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 14px;
  min-height: 68px;
}

.c-topnav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  align-self: center;
  min-width: 0;
  flex-shrink: 0;
  color: var(--text-primary);
}
.c-topnav-brand:hover { color: var(--text-primary); text-decoration: none; }
.c-topnav-brand img { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.c-topnav-brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.c-topnav-brand-text strong { font-size: 15px; font-weight: 700; white-space: nowrap; }
.c-topnav-brand-text small { font-size: 11.5px; color: var(--text-muted); white-space: nowrap; }

.c-topnav-links {
  display: flex;
  align-items: stretch;
  gap: 2px;
  margin: 0 auto;
}
.c-topnav-links a {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 13px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: color .15s ease, background .15s ease;
}
.c-topnav-links a:hover { color: var(--primary); background: var(--primary-light); text-decoration: none; }
.c-topnav-links a.is-active { color: var(--primary); font-weight: 600; }
.c-topnav-links a.is-active::after {
  content: '';
  position: absolute;
  left: 13px; right: 13px; bottom: 0;
  height: 3px;
  background: var(--primary);
  border-radius: 3px 3px 0 0;
}

.c-topnav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  align-self: center;
  flex-shrink: 0;
  margin-left: auto;
}

.c-topnav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  font-family: var(--font);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.c-topnav-btn:hover { text-decoration: none; }
.c-topnav-btn-ghost { background: #fff; border-color: var(--border); color: var(--text-secondary); }
.c-topnav-btn-ghost:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.c-topnav-btn-solid { background: var(--primary); border-color: var(--primary); color: #fff; }
.c-topnav-btn-solid:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: #fff; }

.c-topnav-bell {
  position: relative;
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}
.c-topnav-bell:hover { background: var(--primary-light); color: var(--primary); text-decoration: none; }
.c-topnav-dot {
  position: absolute;
  top: 4px; right: 4px;
  min-width: 16px; height: 16px;
  padding: 0 4px;
  border-radius: var(--radius-full);
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

/* Signed-in account menu */
.c-topnav-user { position: relative; }
.c-topnav-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1.5px var(--border);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.c-topnav-avatar:hover { background: var(--primary); color: #fff; }

.c-topnav-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 236px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 8px;
  display: none;
  z-index: 1200;
}
.c-topnav-menu.is-open { display: block; }
.c-topnav-menu-head { padding: 10px 12px; border-bottom: 1px solid var(--border-light); margin-bottom: 6px; }
.c-topnav-menu-head strong { display: block; font-size: 13.5px; color: var(--text-primary); }
.c-topnav-menu-head small { display: block; font-size: 12px; color: var(--text-muted); word-break: break-all; }
.c-topnav-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 500;
}
.c-topnav-menu a:hover { background: var(--primary-light); color: var(--primary); text-decoration: none; }

/* Mobile drawer */
.c-topnav-burger {
  display: none;
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text-secondary);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.c-topnav-burger:hover { border-color: var(--primary); color: var(--primary); }

.c-topnav-overlay { display: none; }

@media (max-width: 1000px) {
  .c-topnav-links {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 10px 16px 16px;
    z-index: 1001;
  }
  .c-topnav.is-open .c-topnav-links { display: flex; }
  .c-topnav-links a { padding: 12px 12px; font-size: 15px; border-radius: var(--radius-sm); }
  .c-topnav-links a.is-active { background: var(--primary-light); }
  .c-topnav-links a.is-active::after { left: auto; right: 12px; top: 50%; bottom: auto; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; }

  .c-topnav-burger { display: inline-flex; }
  .c-topnav-overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 999; }
  .c-topnav-overlay.is-open { display: block; }
}

@media (max-width: 560px) {
  .c-topnav-brand-text small { display: none; }
  .c-topnav-btn-ghost { display: none; }
  .c-topnav-inner { gap: 8px; }
}

/* ── Site footer (mockup: navy #0F172A, muted #94A3B8) ────────────────────── */

.c-ft {
  background: var(--bg-sidebar);
  color: #94A3B8;
  padding: 52px 0 0;
  margin-top: 40px;
}
.c-ft-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
@media (min-width: 640px) { .c-ft-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .c-ft-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; } }

.c-ft-brand { display: flex; align-items: center; gap: 10px; color: #fff; margin-bottom: 12px; }
.c-ft-brand img { width: 36px; height: 36px; border-radius: 9px; object-fit: cover; }
.c-ft-brand strong { display: block; font-size: 15.5px; line-height: 1.3; }
.c-ft-brand small { display: block; font-size: 12px; color: #94A3B8; font-weight: 400; }
.c-ft-about { margin: 0 0 16px; font-size: 13.5px; line-height: 1.7; color: #94A3B8; }

.c-ft h4 { margin: 0 0 14px; font-size: 14px; font-weight: 700; color: #fff; }
.c-ft-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.c-ft-links a { color: #94A3B8; font-size: 13.5px; }
.c-ft-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.c-ft-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.c-ft-contact li { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; line-height: 1.55; color: #94A3B8; }
.c-ft-contact svg { flex-shrink: 0; margin-top: 2px; color: #818CF8; }
.c-ft-contact a { color: #94A3B8; }
.c-ft-contact a:hover { color: #fff; }

.c-ft-apk {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1.5px solid rgba(255,255,255,.22);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
}
.c-ft-apk:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.4); color: #fff; text-decoration: none; }

.c-ft-bottom {
  margin-top: 44px;
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: #64748B;
}

/* ── Focus for the new chrome ─────────────────────────────────────────────── */

.c-topnav-links a:focus-visible, .c-topnav-btn:focus-visible, .c-topnav-bell:focus-visible,
.c-topnav-avatar:focus-visible, .c-topnav-menu a:focus-visible, .c-ft a:focus-visible,
.c-topnav-burger:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Guest landing — mockup sections
   Hero (light, indigo accents) → দ্রুত সেবা cards → track row → department
   cards → mint trust band → four steps. Everything prefixed .c-lp-* / .c-tl
   so it cannot leak into the signed-in dashboard.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Hero (light surface; navy headline, green second line) ──────────────── */

.c-lp-hero {
  position: relative;
  overflow: hidden;
  color: var(--text-primary);
  padding: 48px 0 44px;
  background:
    radial-gradient(55% 75% at 85% 8%, rgba(79, 70, 229, .10), transparent 70%),
    radial-gradient(45% 60% at 0% 100%, rgba(34, 197, 94, .07), transparent 70%),
    linear-gradient(180deg, #F5F6FF 0%, #FFFFFF 100%);
}
@media (min-width: 640px) { .c-lp-hero { padding: 60px 0 52px; } }
@media (min-width: 960px) { .c-lp-hero { padding: 76px 0 64px; } }

.c-lp-eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  max-width: 100%;
  background: #fff;
  border: 1px solid #C7D2FE;
  color: var(--primary);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .02em;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-xs);
}
.c-lp-hero h1 {
  margin: 0 0 14px;
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.22;
  font-size: clamp(30px, 6.4vw, 48px);
}
.c-lp-accent { color: #16A34A; display: block; }
.c-lp-lead { margin: 0 0 22px; max-width: 54ch; color: var(--text-secondary); font-size: 16px; line-height: 1.7; }
@media (min-width: 640px) { .c-lp-lead { font-size: 17.5px; } }
.c-lp-hero-note { margin: 18px 0 0; font-size: 13.5px; color: var(--text-muted); }
.c-lp-hero-note a { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.c-lp-hero-note a:hover { color: var(--primary-hover); }

.c-lp-btn-outline-dark { background: #fff; border-color: var(--border); color: var(--text-secondary); }
.c-lp-btn-outline-dark:hover { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }

/* ── Hero search bar ─────────────────────────────────────────────────────── */

.c-lp-search {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 540px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 6px 6px 6px 16px;
  box-shadow: var(--shadow-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.c-lp-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(79, 70, 229, .12); }
.c-lp-search svg { color: var(--text-muted); flex-shrink: 0; }
.c-lp-search-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font);
  font-size: 14.5px;
  color: var(--text-primary);
  padding: 9px 0;
}
.c-lp-search-input::placeholder { color: var(--text-muted); }
.c-lp-search-btn {
  flex-shrink: 0;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 22px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease;
}
.c-lp-search-btn:hover { background: var(--primary-hover); }

/* ── Hero illustration + floating chip card ──────────────────────────────── */

.c-lp-hero-visual { position: relative; display: flex; justify-content: center; }
.c-lp-hero-art { width: 100%; max-width: 480px; height: auto; display: block; }
.c-lp-float {
  position: absolute;
  left: 4%;
  bottom: 6%;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 12px 16px;
}
.c-lp-float strong { display: block; font-size: 13.5px; color: var(--text-primary); margin-bottom: 8px; }
.c-lp-float-chips { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.c-lp-float-chips li {
  background: #ECFDF5;
  border: 1px solid #BBF7D0;
  color: #16A34A;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 11px;
  border-radius: var(--radius-full);
}

/* ── দ্রুত সেবা service cards ────────────────────────────────────────────── */

.c-lp-svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 900px) { .c-lp-svc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }

.c-lp-svc {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  color: var(--text-primary);
  box-shadow: var(--shadow-xs);
  min-width: 0;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.c-lp-svc:hover {
  text-decoration: none;
  color: var(--text-primary);
  border-color: #C7D2FE;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.c-lp-svc-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 6px;
}
.c-lp-svc-name { font-size: 15.5px; font-weight: 700; line-height: 1.4; }
.c-lp-svc-meta { font-size: 12.5px; color: var(--text-muted); }
.c-lp-svc-foot {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-light);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.c-lp-svc-clock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--gray-50);
  border: 1px solid var(--border-light);
  padding: 4px 11px;
  border-radius: var(--radius-full);
}
.c-lp-svc-arrow { color: var(--primary); font-weight: 700; font-size: 16px; }

/* ── Track row (form card + sample timeline card) ────────────────────────── */

.c-lp-track-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 900px) { .c-lp-track-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }

.c-lp-track-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-xs);
}
.c-lp-track-card-title { margin: 0 0 14px; font-size: 16px; font-weight: 700; color: var(--text-primary); }
.c-lp-track-card .c-between .c-lp-track-card-title { margin-bottom: 0; }
.c-lp-track-form { display: flex; gap: 10px; flex-wrap: wrap; }
.c-lp-track-form .c-input { flex: 1; min-width: 190px; }
.c-lp-btn-track { min-height: 42px; padding: 0 22px; font-size: 14.5px; }

/* ── Horizontal status timeline (also used on the /track result page) ────── */

.c-tl { list-style: none; margin: 0; padding: 0; display: flex; }
.c-tl-item { flex: 1; position: relative; text-align: center; padding-top: 46px; min-width: 0; }
.c-tl-item::before,
.c-tl-item::after {
  content: '';
  position: absolute;
  top: 16px;
  height: 3px;
  background: var(--border);
}
.c-tl-item::before { left: 0; right: 50%; }
.c-tl-item::after { left: 50%; right: 0; }
.c-tl-item:first-child::before { content: none; }
.c-tl-item:last-child::after { content: none; }
.c-tl-item.is-done::before, .c-tl-item.is-done::after { background: #22C55E; }
.c-tl-item.is-active::before { background: #22C55E; }
.c-tl-item.is-active::after { background: var(--border); }

.c-tl-dot {
  position: absolute;
  top: 0;
  left: 50%;
  margin-left: -17px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: #CBD5E1;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  border: 3px solid #fff;
  box-shadow: 0 0 0 1.5px #CBD5E1;
}
.c-tl-item.is-done .c-tl-dot { background: #22C55E; box-shadow: 0 0 0 1.5px #22C55E; }
.c-tl-item.is-active .c-tl-dot { background: #3B82F6; box-shadow: 0 0 0 1.5px #3B82F6, 0 0 0 6px rgba(59, 130, 246, .15); }

.c-tl-label { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-secondary); line-height: 1.4; margin-top: 8px; }
.c-tl-item.is-done .c-tl-label { color: #16A34A; }
.c-tl-item.is-active .c-tl-label { color: #3B82F6; }
.c-tl-time { display: block; font-size: 11.5px; font-weight: 400; color: var(--text-muted); margin-top: 2px; }

/* ── Department (শাখা) cards ─────────────────────────────────────────────── */

.c-lp-dept-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }

.c-lp-dept {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  color: var(--text-primary);
  box-shadow: var(--shadow-xs);
  min-width: 0;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.c-lp-dept:hover {
  text-decoration: none;
  color: var(--text-primary);
  border-color: #C7D2FE;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.c-lp-dept-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 6px;
}
.c-lp-dept-name { font-size: 15px; font-weight: 700; line-height: 1.4; padding-right: 22px; }
.c-lp-dept-count { font-size: 12.5px; color: var(--text-muted); }
.c-lp-dept-arrow { position: absolute; top: 20px; right: 16px; color: var(--primary); font-weight: 700; }

/* ── Mint trust band ─────────────────────────────────────────────────────── */

.c-lp-mint {
  background: #ECFDF5;
  border-top: 1px solid #D1FAE5;
  border-bottom: 1px solid #D1FAE5;
  padding: 34px 0;
}
.c-lp-mint-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}
@media (min-width: 640px) { .c-lp-mint-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .c-lp-mint-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; } }

.c-lp-mint-list li { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.c-lp-mint-icon {
  width: 42px; height: 42px;
  flex-shrink: 0;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #D1FAE5;
  color: #16A34A;
  display: flex;
  align-items: center;
  justify-content: center;
}
.c-lp-mint-list strong { display: block; font-size: 14.5px; color: var(--text-primary); line-height: 1.4; }
.c-lp-mint-list small { display: block; font-size: 12.5px; color: var(--text-secondary); line-height: 1.5; }

/* ── Four steps (indigo / indigo / green / orange circles + arrows) ──────── */

.c-lp-head-center { text-align: center; }
.c-lp-head-center p { margin-left: auto; margin-right: auto; }

.c-lp-steps4 {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}
@media (min-width: 720px) { .c-lp-steps4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1000px) { .c-lp-steps4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } }

.c-lp-step4 {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  box-shadow: var(--shadow-xs);
  min-width: 0;
}
.c-lp-step4-num {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
}
.c-lp-step4.is-indigo .c-lp-step4-num { background: #4F46E5; }
.c-lp-step4.is-green .c-lp-step4-num { background: #22C55E; }
.c-lp-step4.is-orange .c-lp-step4-num { background: #F97316; }
.c-lp-step4 h3 { margin: 0 0 6px; font-size: 16px; font-weight: 700; color: var(--text-primary); }
.c-lp-step4 p { margin: 0; font-size: 13.5px; line-height: 1.65; color: var(--text-secondary); }

@media (min-width: 1000px) {
  .c-lp-step4:not(:last-child)::after {
    content: '→';
    position: absolute;
    right: -18px;
    top: 50%;
    transform: translateY(-50%);
    color: #A5B4FC;
    font-size: 18px;
    font-weight: 700;
    z-index: 2;
  }
}

/* ── Focus + reduced motion for the landing cards ────────────────────────── */

.c-lp-svc:focus-visible, .c-lp-dept:focus-visible, .c-lp-search-btn:focus-visible,
.c-lp-float-chips li:focus-visible, .c-tl-item:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .c-lp-svc, .c-lp-dept { transition: none; }
  .c-lp-svc:hover, .c-lp-dept:hover { transform: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Inner pages — /track, /help and the catalogue search
   ═══════════════════════════════════════════════════════════════════════════ */

.c-page-head { max-width: 760px; }
.c-page-title { margin: 0 0 6px; font-size: clamp(22px, 3.6vw, 28px); font-weight: 700; color: var(--text-primary); line-height: 1.3; }
.c-page-sub { margin: 0; color: var(--text-secondary); font-size: 15px; line-height: 1.65; }

/* Tracker search form */
.c-track-form { display: flex; gap: 10px; flex-wrap: wrap; }
.c-track-form .c-input { flex: 1; min-width: 210px; }

/* Timeline notes under a node */
.c-tl-note {
  font-size: 12.5px;
  color: var(--text-secondary);
  background: var(--gray-50);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 7px 11px;
  margin: 8px 0 0;
  text-align: left;
}

/* Timeline goes vertical on narrow screens so labels stay readable. */
@media (max-width: 700px) {
  .c-tl { flex-direction: column; }
  .c-tl-item { text-align: left; padding: 0 0 24px 46px; }
  .c-tl-item::before {
    content: '';
    left: 16px;
    right: auto;
    top: 36px;
    bottom: 0;
    width: 3px;
    height: auto;
  }
  .c-tl-item::after { content: none; }
  .c-tl-item:first-child::before { content: ''; }
  .c-tl-item:last-child::before { content: none; }
  .c-tl-dot { left: 0; top: 0; margin-left: 0; }
  .c-tl-label { margin-top: 4px; }
}

/* FAQ (native details/summary — works without JS) */
.c-faq { display: grid; gap: 10px; }
.c-faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  overflow: hidden;
}
.c-faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 44px 14px 16px;
  position: relative;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}
.c-faq-item summary::-webkit-details-marker { display: none; }
.c-faq-item summary::after {
  content: '+';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}
.c-faq-item[open] summary::after { content: '−'; }
.c-faq-item[open] summary { border-bottom: 1px solid var(--border-light); color: var(--primary); }
.c-faq-item p { margin: 0; padding: 14px 16px; font-size: 13.5px; line-height: 1.7; color: var(--text-secondary); }
.c-faq-item summary:focus-visible { outline: 3px solid var(--primary); outline-offset: -3px; }


/* ═══════════════════════════════════════════════════════════════════════════
   Auth pages — login / register
   citizen.css loads after login.css here, and the staff sign-in page does
   not load citizen.css at all, so these re-themes stay citizen-only.
   Several login.css declarations also pass hex tokens into rgba() (invalid
   CSS), which left the chips with no background — fixed with literals.
   ═══════════════════════════════════════════════════════════════════════════ */

.brand-badge {
  background: rgba(34, 197, 94, .14);
  border: 1px solid rgba(34, 197, 94, .32);
  color: #BBF7D0;
}
.fi-1 { background: rgba(79, 70, 229, .30); color: #C7D2FE; }
.fi-2 { background: rgba(34, 197, 94, .20); color: #BBF7D0; }
.fi-3 { background: rgba(249, 115, 22, .20); color: #FED7AA; }
.ring { border-color: rgba(165, 180, 252, .18); }

.input-wrap:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79, 70, 229, .15); }

.btn-submit { background: var(--primary); border-radius: var(--radius-sm); }
.btn-submit:hover { background: var(--primary-hover); box-shadow: 0 6px 16px rgba(79, 70, 229, .35); }

.login-card { border: 1px solid var(--border); }
.login-card .card-header h1 { color: var(--text-primary); }
.login-card .card-header p { color: var(--text-secondary); }





/* ── Guest login popup ─────────────────────────────────────────────────── */

.c-modal { position: fixed; inset: 0; z-index: 2100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.c-modal[hidden] { display: none; }
.c-modal-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: c-fade-in .18s ease; }
.c-modal-card { position: relative; width: 100%; max-width: 400px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px 24px 22px; box-shadow: 0 30px 70px -24px rgba(15, 23, 42, .5); animation: c-modal-in .2s ease; }
.c-modal-close { position: absolute; top: 8px; right: 10px; border: 0; background: none; font-size: 26px; line-height: 1; color: var(--text-muted); cursor: pointer; padding: 4px 8px; border-radius: var(--radius-sm); }
.c-modal-close:hover { background: var(--primary-light); color: var(--primary); }
.c-modal-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 18px; padding-right: 22px; }
.c-modal-head h2 { margin: 0 0 4px; font-size: 18px; font-weight: 700; color: var(--text-primary); }
.c-modal-head p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--text-secondary); }
.c-modal-ic { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px; background: var(--primary-light); color: var(--primary); }
.c-modal-error { background: var(--danger-light); color: #991b1b; border: 1px solid #f8c4c4; border-radius: var(--radius-sm); padding: 9px 12px; font-size: 13px; line-height: 1.5; margin-bottom: 14px; }
.c-modal-error[hidden] { display: none; }
.c-modal .c-field { margin-bottom: 14px; }
.c-modal .c-field:nth-of-type(2) { margin-bottom: 18px; }
.c-modal-foot { margin: 16px 0 0; text-align: center; font-size: 13px; color: var(--text-secondary); }
.c-modal-foot a { color: var(--primary); font-weight: 600; }
.c-modal-foot a:hover { color: var(--primary-hover); }
body.c-modal-open { overflow: hidden; }

@keyframes c-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes c-modal-in { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }

@media (max-width: 480px) {
    .c-modal { padding: 16px; align-items: flex-end; }
    .c-modal-card { max-width: none; border-radius: var(--radius-lg) var(--radius-lg) 0 0; padding: 24px 18px 20px; }
}

@media (prefers-reduced-motion: reduce) {
    .c-modal-backdrop, .c-modal-card { animation: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Service catalogue — /services
   A full-bleed continuation of the guest homepage: the same 1200px wrap,
   the same hero gradient, the same search bar and button language, so the
   two pages read as one site rather than a landing page plus an admin
   screen. The whole catalogue ships in the markup and assets/js/citizen.js
   flips the `hidden` attribute — every rule below has to keep working on
   cards that come and go, and the page has to stay readable with JS off.
   ═══════════════════════════════════════════════════════════════════════════ */

[hidden] { display: none !important; }

/* ── Hero (compact take on the homepage hero) ───────────────────────────── */

.c-svc-hero {
  position: relative;
  color: var(--text-primary);
  padding: 28px 0 26px;
  background:
    radial-gradient(55% 75% at 85% 8%, rgba(79, 70, 229, .10), transparent 70%),
    radial-gradient(45% 60% at 0% 100%, rgba(34, 197, 94, .07), transparent 70%),
    linear-gradient(180deg, #F5F6FF 0%, #FFFFFF 100%);
}
@media (min-width: 640px) { .c-svc-hero { padding: 40px 0 38px; } }

.c-crumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 12.5px;
  color: var(--text-muted);
}
.c-crumb a { color: var(--text-muted); font-weight: 500; }
.c-crumb a:hover { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.c-crumb [aria-current='page'] { color: var(--text-secondary); }

.c-svc-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(26px, 5vw, 38px);
  font-weight: 700;
  line-height: 1.22;
  color: var(--text-primary);
}
.c-svc-hero .c-lp-lead { margin-bottom: 20px; }
/* The bar spans the whole hero column so its edges line up with the branch
   chips and the catalogue grid below it. */
.c-svc-searchbar { max-width: 100%; }

/* ── Branch chips (a facet of the search, never a replacement for it) ───── */

.c-svc-chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin-top: 14px;
  padding: 6px 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.c-svc-chips::-webkit-scrollbar { display: none; }

.c-svc-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 15px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-family: var(--font);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.c-svc-chip:hover {
  text-decoration: none;
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}
.c-svc-chip.is-active,
.c-svc-chip.is-active:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

.c-svc-status { margin: 12px 0 0; font-size: 12.5px; color: var(--text-muted); }

/* ── Empty states ───────────────────────────────────────────────────────── */

.c-svc-empty {
  margin: 8px 0;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
}

/* ── Branch (শাখা) sections ─────────────────────────────────────────────── */

.c-svc-list { padding-top: 10px; }

.c-svc-branch { margin-bottom: 40px; }
.c-svc-branch:last-of-type { margin-bottom: 4px; }

.c-svc-branch-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
}
.c-svc-branch-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
}
.c-svc-branch-titles { flex: 1; min-width: 0; }
.c-svc-branch-titles h2 { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.35; color: var(--text-primary); }
.c-svc-branch-titles p { margin: 2px 0 0; font-size: 13px; line-height: 1.5; color: var(--text-secondary); }
.c-svc-branch-count { flex-shrink: 0; font-size: 12.5px; color: var(--text-muted); }

/* ── Service cards: 1 → 2 → 3 columns ───────────────────────────────────── */

.c-svc-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 640px) { .c-svc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .c-svc-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }

.c-svc-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.c-svc-item:hover { border-color: #C7D2FE; box-shadow: var(--shadow-md); transform: translateY(-2px); }

.c-svc-item-head { display: flex; align-items: flex-start; gap: 12px; }
.c-svc-item-icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 23px;
  border-radius: 12px;
  background: var(--primary-light);
}
.c-svc-item-titles { min-width: 0; }
.c-svc-item-titles h3 { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.35; color: var(--text-primary); }
.c-svc-item-titles p { margin: 2px 0 0; font-size: 12.5px; line-height: 1.4; color: var(--text-muted); }

.c-svc-item-desc { margin: 12px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--text-secondary); }

.c-svc-facts {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}
.c-svc-facts li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
}
.c-svc-facts svg { flex-shrink: 0; }

.c-svc-fee {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 14px 0 0;
  padding: 9px 11px;
  background: var(--gray-50);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-secondary);
}
.c-svc-fee svg { flex-shrink: 0; margin-top: 1px; color: var(--primary); }
.c-svc-fee-label { font-weight: 700; color: var(--text-primary); }

/* The action sits on the card's bottom edge whatever the content above it. */
.c-svc-item-foot { margin-top: auto; padding-top: 16px; }
.c-svc-cta { width: 100%; gap: 6px; }
.c-svc-soon {
  width: 100%;
  background: var(--gray-100);
  border-color: var(--border);
  color: var(--text-muted);
  cursor: default;
}

/* ── How to apply ───────────────────────────────────────────────────────── */

.c-svc-help {
  margin: 26px 0 0;
  text-align: center;
  font-size: 13.5px;
  color: var(--text-secondary);
}
.c-svc-help a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.c-svc-help a:hover { color: var(--primary-hover); }

/* ── Filtering feedback + focus ─────────────────────────────────────────── */

@media (prefers-reduced-motion: no-preference) {
  #cSvcList { transition: opacity .18s ease; }
  #cSvcPage[data-filtering] #cSvcList { opacity: .6; }
  .c-svc-branch { transition: opacity .18s ease; }
}

.c-svc-chip:focus-visible,
.c-crumb a:focus-visible,
.c-svc-item-foot .c-lp-btn:focus-visible,
.c-svc-empty .c-btn:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .c-svc-item, .c-svc-chip { transition: none; }
  .c-svc-item:hover { transform: none; }
}

@media print {
  .c-svc-chips, .c-svc-status, .c-svc-item-foot { display: none !important; }
  .c-svc-item { break-inside: avoid; box-shadow: none; }
}

/* ── Help centre: Irembo-style cards in the portal design language ─────── */

.c-help-searchbar { max-width: 100%; }

.c-help-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 20px 0 8px; }
@media (min-width: 640px) { .c-help-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .c-help-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }

.c-help-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 26px 20px 20px; position: relative;
  box-shadow: var(--shadow-sm);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.c-help-card:hover { border-color: #C7D2FE; box-shadow: var(--shadow-md); transform: translateY(-2px); }
.c-help-card[open] { border-color: #C7D2FE; }

.c-help-ic {
  width: 64px; height: 64px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 14px; flex-shrink: 0;
}
.c-help-ic.is-indigo { background: #EEF2FF; color: #4F46E5; }
.c-help-ic.is-blue { background: #EFF6FF; color: #2563EB; }
.c-help-ic.is-green { background: #F0FDF4; color: #16A34A; }
.c-help-ic.is-orange { background: #FFF7ED; color: #EA580C; }

.c-help-card > summary { padding: 0 30px 6px; font-size: 15px; color: var(--primary); }
.c-help-card > summary::after { right: 8px; top: 2px; transform: none; }
.c-help-card[open] > summary { border-bottom: none; }
.c-help-card > p { text-align: left; align-self: stretch; padding: 10px 4px 4px; border-top: 1px solid var(--border-light); }

.c-help-empty { margin: 20px 0; }

.c-help-contact { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 12px; }
.c-help-contact-item {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 14px 16px;
}
.c-help-contact-item p { margin: 0; }
.c-help-contact-item a { color: var(--primary); font-weight: 600; }
@media (min-width: 720px) { .c-help-contact { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.c-help-cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  .c-help-card { transition: none; }
  .c-help-card:hover { transform: none; }
}

@media print {
  .c-help-searchbar, .c-svc-status, .c-help-empty, .c-help-cta-row { display: none !important; }
  .c-help-card { break-inside: avoid; box-shadow: none; }
}

/* ── Profile photo in the top nav + home account card ─────────────────── */

.c-topnav-avatar { overflow: hidden; }
.c-topnav-avatar-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.c-list-photo {
  width: 40px; height: 40px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  border: 2px solid var(--primary-light);
}
