/* ═══════════════════════════════════════════════════════
   LICO – Report Leader  |  App Stylesheet
   Mobile-first PWA · Matches JantaConnect UI
═══════════════════════════════════════════════════════ */

/* ── Reset & Variables ──────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:      #1247C4;
  --primary-dark: #0E3A9A;
  --primary-light:#E8EFFE;
  --saffron:      #FF6B35;
  --success:      #16A34A;
  --success-bg:   #DCFCE7;
  --warning:      #D97706;
  --warning-bg:   #FEF3C7;
  --danger:       #DC2626;
  --danger-bg:    #FEE2E2;
  --info:         #0891B2;
  --gray-50:      #F9FAFB;
  --gray-100:     #F3F4F6;
  --gray-200:     #E5E7EB;
  --gray-300:     #D1D5DB;
  --gray-400:     #9CA3AF;
  --gray-500:     #6B7280;
  --gray-600:     #4B5563;
  --gray-700:     #374151;
  --gray-900:     #111827;
  --white:        #FFFFFF;
  --bg:           #F0F2F7;
  --card-bg:      #FFFFFF;
  --border:       #E5E7EB;
  --text:         #1F2937;
  --text-muted:   #6B7280;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.08);
  --shadow:       0 2px 8px rgba(0,0,0,.10);
  --shadow-lg:    0 4px 16px rgba(0,0,0,.12);
  --radius-sm:    8px;
  --radius:       12px;
  --radius-lg:    16px;
  --radius-full:  9999px;
  --nav-h:        64px;
  --header-h:     56px;
  --font:         'Noto Sans', system-ui, sans-serif;
  --font-dev:     'Noto Sans Devanagari', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  padding-bottom: env(safe-area-inset-bottom);
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ── Flash Toast ──────────────────────────────────────── */
.flash-toast {
  position: fixed; top: 70px; left: 50%; transform: translateX(-50%);
  z-index: 9999; padding: 10px 20px; border-radius: var(--radius-full);
  font-weight: 600; font-size: 13px; min-width: 200px; text-align: center;
  box-shadow: var(--shadow-lg); transition: opacity .4s ease;
  white-space: normal; max-width: 92%; line-height: 1.4;
}
.flash-success { background: var(--success); color: #fff; }
.flash-error   { background: var(--danger);  color: #fff; }
.flash-info    { background: var(--primary); color: #fff; }

/* ── Install Banner ───────────────────────────────────── */
.install-banner {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px; background: var(--primary);
  color: #fff; z-index: 10000; padding: 10px 16px;
}
.install-banner-inner {
  display: flex; align-items: center; gap: 10px;
}
.install-banner-inner div { flex: 1; }
.install-banner-inner strong { display: block; font-size: 14px; }
.install-banner-inner small { font-size: 11px; opacity: .85; }
.btn-install { background: #fff; color: var(--primary); border: none; padding: 6px 14px;
  border-radius: var(--radius-full); font-weight: 700; font-size: 12px; }
.btn-dismiss { background: transparent; border: none; color: #fff; font-size: 18px; padding: 4px; }

/* ── App Header ───────────────────────────────────────── */
.app-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--primary); color: #fff;
  height: var(--header-h); display: flex; align-items: center;
  padding: 0 16px; gap: 10px;
  box-shadow: 0 2px 8px rgba(18,71,196,.3);
}
.app-header .back-btn {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.15); border-radius: 50%; border: none; color: #fff; font-size: 18px;
}
.app-header .logo-wrap { display: flex; align-items: center; gap: 8px; }
.app-header .logo-icon { width: 32px; height: 32px; background: #fff; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.app-header .logo-icon svg { width: 22px; height: 22px; }
.app-header .logo-text { font-size: 17px; font-weight: 700; letter-spacing: -.3px; }
.app-header .logo-sub  { font-size: 10px; opacity: .8; }
.header-spacer { flex: 1; }
.app-header .header-actions { display: flex; gap: 8px; align-items: center; }
.header-icon-btn {
  width: 36px; height: 36px; background: rgba(255,255,255,.15); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; border: none; color: #fff;
  position: relative;
}
.header-icon-btn svg { width: 20px; height: 20px; fill: currentColor; }
.notif-dot {
  position: absolute; top: 6px; right: 6px; width: 8px; height: 8px;
  background: var(--saffron); border-radius: 50%; border: 1.5px solid var(--primary);
}

/* Location bar */
.location-bar {
  background: var(--primary-dark); padding: 6px 16px;
  display: flex; align-items: center; gap: 6px; font-size: 12px; color: rgba(255,255,255,.9);
}
.location-bar svg { width: 14px; height: 14px; fill: var(--saffron); flex-shrink: 0; }
.location-bar .loc-name { font-weight: 600; color: #fff; }
.location-bar .loc-change { margin-left: auto; color: var(--saffron); font-weight: 600; font-size: 11px; }
.verified-chip {
  display: inline-flex; align-items: center; gap: 3px;
  background: var(--success-bg); color: var(--success);
  border-radius: var(--radius-full); padding: 2px 8px; font-size: 11px; font-weight: 600;
  border: 1px solid #86EFAC;
}
.verified-chip::before { content: '✓'; }

/* ── Bottom Nav ───────────────────────────────────────── */
.bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px; height: var(--nav-h);
  background: var(--white); border-top: 1px solid var(--border);
  display: flex; align-items: center; z-index: 1000;
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -2px 12px rgba(0,0,0,.08);
}
.nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; color: var(--gray-400); font-size: 10px; font-weight: 500;
  padding: 6px 0; transition: color .2s;
}
.nav-item svg { width: 22px; height: 22px; fill: currentColor; }
.nav-item.active { color: var(--primary); }
.nav-item.active svg { fill: var(--primary); }
.nav-fab { margin-top: -20px; }
.fab-circle {
  width: 52px; height: 52px; background: var(--primary); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(18,71,196,.45);
  border: 3px solid #fff;
}
.nav-fab span { font-size: 9px; color: var(--gray-400); margin-top: 2px; }

/* ── Page Container ───────────────────────────────────── */
.page { padding: 0 0 16px; }
.page-content { padding: 0 12px; }

/* ── Section Headers ──────────────────────────────────── */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 8px; 
}
.section-title { font-size: 15px; font-weight: 700; color: var(--gray-900); }
.section-link  { font-size: 12px; color: var(--primary); font-weight: 600; }

/* ── Cards ────────────────────────────────────────────── */
.card {
  background: var(--card-bg); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden; margin-bottom: 10px;
  border: 1px solid rgba(0,0,0,.04);
}
.card-body { padding: 12px; }

/* ── Stats Bar ────────────────────────────────────────── */
.stats-bar {
  display: flex; gap: 8px; padding: 8px 12px 12px;
}
.stat-chip {
  flex: 1; text-align: center; padding: 8px 4px; border-radius: var(--radius);
  font-weight: 700;
}
.stat-chip .stat-num { font-size: 20px; display: block; line-height: 1; }
.stat-chip .stat-lbl { font-size: 10px; font-weight: 500; margin-top: 2px; display: block; }
.stat-chip.red    { background: var(--danger-bg);  color: var(--danger); }
.stat-chip.yellow { background: var(--warning-bg); color: var(--warning); }
.stat-chip.green  { background: var(--success-bg); color: var(--success); }
.stat-chip.blue   { background: var(--primary-light); color: var(--primary); }

/* ── Reps Scroll ──────────────────────────────────────── */
.reps-scroll-wrap { overflow-x: auto; padding: 0 12px 4px; scrollbar-width: none; }
.reps-scroll-wrap::-webkit-scrollbar { display: none; }
.reps-scroll {
  display: flex; gap: 12px; width: max-content;
}
.rep-thumb {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  cursor: pointer; min-width: 60px;
}
.rep-thumb:active { opacity: .8; }
.rep-avatar-wrap {
  position: relative; width: 54px; height: 54px;
}
.rep-avatar {
  width: 54px; height: 54px; border-radius: 50%; object-fit: cover;
  border: 2.5px solid var(--primary); background: var(--gray-100);
}
.rep-avatar-lg {
  width: 72px; height: 72px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--primary); background: var(--gray-100);
}
.rep-verified-dot {
  position: absolute; bottom: 1px; right: 1px; width: 14px; height: 14px;
  background: var(--success); border-radius: 50%; border: 2px solid #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 8px; color: #fff;
}
.rep-designation { font-size: 10px; color: var(--gray-500); font-weight: 500; }
.rep-name { font-size: 11px; color: var(--gray-700); font-weight: 600; text-align: center; max-width: 58px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* National leaders row */
.leaders-row {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; padding: 0 12px;
}
.leader-card {
  background: var(--card-bg); border-radius: var(--radius); padding: 10px 8px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border); text-align: center;
  cursor: pointer;
}
.leader-card:active { transform: scale(.97); }
.leader-avatar { width: 60px; height: 60px; border-radius: 50%; object-fit: cover;
  border: 2.5px solid var(--primary); background: var(--gray-200); }
.leader-name { font-size: 11px; font-weight: 700; color: var(--gray-900); }
.leader-desig { font-size: 10px; color: var(--gray-500); }
.leader-party { font-size: 9px; color: var(--primary); font-weight: 600;
  background: var(--primary-light); padding: 1px 6px; border-radius: 99px; }

/* ── Issue Card ───────────────────────────────────────── */
.issue-card { background: var(--card-bg); border-radius: var(--radius); margin-bottom: 8px; overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid rgba(0,0,0,.04); }
.issue-card-header { display: flex; align-items: center; gap: 8px; padding: 10px 12px 6px; }
.issue-card-header .time { margin-left: auto; font-size: 11px; color: var(--gray-400); white-space: nowrap; }
.issue-card-title { font-size: 14px; font-weight: 700; color: var(--gray-900); padding: 0 12px 4px; line-height: 1.3; }
.issue-card-loc { display: flex; align-items: center; gap: 4px; padding: 0 12px 8px; font-size: 12px; color: var(--gray-500); }
.issue-card-loc svg { width: 13px; height: 13px; fill: var(--gray-400); }

/* Media wall */
.issue-media-wrap { position: relative; background: var(--gray-100); }
.issue-media-thumb { width: 100%; max-height: 220px; object-fit: cover; display: block; }
.issue-no-media {
  height: 110px; background: linear-gradient(135deg,var(--primary-light),var(--gray-100));
  display: flex; align-items: center; justify-content: center; font-size: 36px;
}
.media-count-badge {
  position: absolute; bottom: 8px; right: 8px;
  background: rgba(0,0,0,.55); color: #fff; font-size: 11px; font-weight: 600;
  padding: 2px 8px; border-radius: var(--radius-full);
}
.issue-card-actions { display: flex; align-items: center; padding: 8px 12px 10px; gap: 16px; border-top: 1px solid var(--gray-100); }
.action-btn {
  display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--gray-500);
  background: none; border: none; padding: 4px 0; font-weight: 500;
}
.action-btn svg { width: 18px; height: 18px; fill: currentColor; }
.action-btn.supported, .action-btn:hover { color: var(--primary); }

/* ── Badges ───────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 3px 9px; border-radius: var(--radius-full); font-size: 11px; font-weight: 600; white-space: nowrap;
}
.badge-pending    { background: var(--danger-bg);  color: var(--danger); }
.badge-in-progress{ background: var(--warning-bg); color: var(--warning); }
.badge-resolved   { background: var(--success-bg); color: var(--success); }

/* ── Tab Bar ──────────────────────────────────────────── */
.tab-bar { display: flex; background: var(--white); border-bottom: 1px solid var(--border); padding: 0 12px; overflow-x: auto; scrollbar-width: none; position: sticky; top: 56px; z-index: 90; }
.tab-bar::-webkit-scrollbar { display: none; }
.tab-btn { flex-shrink: 0; padding: 12px 14px; font-size: 13px; font-weight: 600; color: var(--gray-500); border: none; background: none; border-bottom: 2.5px solid transparent; cursor: pointer; white-space: nowrap; }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ── Search Bar ───────────────────────────────────────── */
.search-bar { padding: 10px 12px; background: var(--white); border-bottom: 1px solid var(--border); }
.search-input-wrap { position: relative; }
.search-input {
  width: 100%; padding: 9px 36px 9px 12px; border: 1.5px solid var(--border);
  border-radius: var(--radius-full); font-size: 13px; background: var(--gray-50);
  outline: none; transition: border-color .2s;
}
.search-input:focus { border-color: var(--primary); background: #fff; }
.search-icon { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: var(--gray-400); }
.search-icon svg { width: 18px; height: 18px; fill: currentColor; }

/* ── Forms ────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--gray-700); margin-bottom: 6px; }
.form-control {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border);
  border-radius: var(--radius); font-size: 14px; background: #fff;
  outline: none; transition: border-color .2s, box-shadow .2s; color: var(--text);
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(18,71,196,.12); }
.form-control.error { border-color: var(--danger); }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-hint { font-size: 11px; color: var(--gray-400); margin-top: 4px; }
.form-error { font-size: 12px; color: var(--danger); margin-top: 4px; font-weight: 500; }

/* Category grid */
.category-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.cat-option input { display: none; }
.cat-label {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 10px 6px; border: 2px solid var(--border); border-radius: var(--radius);
  cursor: pointer; font-size: 12px; font-weight: 600; color: var(--gray-600);
  background: #fff; text-align: center; transition: all .2s;
}
.cat-label .cat-icon { font-size: 24px; }
.cat-option input:checked + .cat-label {
  border-color: var(--primary); background: var(--primary-light); color: var(--primary);
}

/* Media upload */
.media-upload-area {
  border: 2px dashed var(--border); border-radius: var(--radius); padding: 20px;
  text-align: center; background: var(--gray-50); cursor: pointer;
}
.media-upload-area:hover { border-color: var(--primary); background: var(--primary-light); }
.upload-btns { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.upload-btn {
  display: flex; align-items: center; gap: 6px; padding: 8px 16px;
  border: 1.5px solid var(--border); border-radius: var(--radius-full);
  background: #fff; font-size: 12px; font-weight: 600; color: var(--gray-600);
}
.upload-btn:hover { border-color: var(--primary); color: var(--primary); }
.upload-btn svg { width: 16px; height: 16px; fill: currentColor; }
.media-preview-wrap { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.media-preview-item { position: relative; width: 72px; height: 72px; border-radius: var(--radius-sm); overflow: hidden; }
.media-preview-item img, .media-preview-item video { width: 100%; height: 100%; object-fit: cover; }
.media-preview-remove { position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; background: rgba(0,0,0,.65); border-radius: 50%; color: #fff; font-size: 11px; display: flex; align-items: center; justify-content: center; border: none; cursor: pointer; }

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 20px; border-radius: var(--radius); font-size: 14px; font-weight: 700;
  border: none; cursor: pointer; transition: all .2s; width: 100%;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-primary:active { transform: scale(.98); }
.btn-outline { background: #fff; color: var(--primary); border: 2px solid var(--primary); }
.btn-success { background: var(--success); color: #fff; }
.btn-danger  { background: var(--danger);  color: #fff; }
.btn-gray    { background: var(--gray-100); color: var(--gray-700); }
.btn-sm { padding: 7px 14px; font-size: 12px; border-radius: var(--radius-sm); width: auto; }
.btn:disabled { opacity: .6; cursor: not-allowed; }

/* ── Issue Detail ─────────────────────────────────────── */
.issue-detail-media { position: relative; background: #000; }
.issue-detail-media img { width: 100%; max-height: 280px; object-fit: cover; display: block; }
.issue-detail-media video { width: 100%; max-height: 280px; }
.media-slider-dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 5px; }
.media-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.5); }
.media-dot.active { background: #fff; width: 18px; border-radius: 99px; }
.issue-meta { padding: 12px; background: var(--white); }
.issue-meta-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.issue-reporter { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--gray-500); }
.issue-reporter strong { color: var(--gray-800); font-weight: 600; }
.issue-description { padding: 12px; background: var(--white); font-size: 13.5px; line-height: 1.6; color: var(--gray-700); }

/* Responsible reps section */
.reps-tagged { padding: 12px; background: var(--white); margin-top: 8px; }
.reps-tagged-title { font-size: 13px; font-weight: 700; color: var(--gray-800); margin-bottom: 10px; }
.reps-tagged-list { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.reps-tagged-list::-webkit-scrollbar { display: none; }

/* Timeline */
.timeline { padding: 12px; background: var(--white); margin-top: 8px; }
.timeline-title { font-size: 13px; font-weight: 700; color: var(--gray-800); margin-bottom: 12px; }
.timeline-item { display: flex; gap: 10px; padding-bottom: 14px; position: relative; }
.timeline-item:not(:last-child)::after {
  content: ''; position: absolute; left: 6px; top: 16px; bottom: 0;
  width: 2px; background: var(--gray-200);
}
.timeline-dot {
  width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; margin-top: 2px;
  border: 2px solid #fff; box-shadow: 0 0 0 2px currentColor;
}
.timeline-dot.pending    { color: var(--danger);  background: var(--danger); }
.timeline-dot.in_progress{ color: var(--warning); background: var(--warning); }
.timeline-dot.resolved   { color: var(--success); background: var(--success); }
.timeline-dot.default    { color: var(--primary); background: var(--primary); }
.timeline-text { font-size: 12.5px; color: var(--gray-700); }
.timeline-time { font-size: 11px; color: var(--gray-400); margin-top: 2px; }

/* Comments */
.comments-section { background: var(--white); margin-top: 8px; }
.comments-header { padding: 12px 12px 8px; display: flex; align-items: center; justify-content: space-between; }
.comment-item { padding: 10px 12px; border-top: 1px solid var(--gray-100); }
.comment-author { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.comment-author img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.comment-author .name { font-size: 12px; font-weight: 700; }
.comment-author .time { margin-left: auto; font-size: 11px; color: var(--gray-400); }
.comment-text { font-size: 13px; color: var(--gray-700); line-height: 1.4; padding-left: 36px; }
.comment-form { padding: 10px 12px; border-top: 1px solid var(--gray-100); display: flex; gap: 8px; }
.comment-form input { flex: 1; padding: 9px 12px; border: 1.5px solid var(--border); border-radius: var(--radius-full); font-size: 13px; outline: none; }
.comment-form input:focus { border-color: var(--primary); }
.comment-submit { background: var(--primary); color: #fff; border: none; border-radius: 50%; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.comment-submit svg { width: 18px; height: 18px; fill: currentColor; }

/* ── Representative Profile ───────────────────────────── */
.rep-profile-header {
  background: linear-gradient(160deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 20px 16px 16px; color: #fff;
}
.rep-profile-header-inner { display: flex; align-items: center; gap: 14px; }
.rep-profile-avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255,255,255,.4); flex-shrink: 0; }
.rep-profile-name { font-size: 18px; font-weight: 700; }
.rep-profile-desig { font-size: 13px; opacity: .85; margin-top: 2px; }
.rep-profile-party {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(255,255,255,.18); padding: 3px 10px; border-radius: 99px; font-size: 12px; margin-top: 6px;
}
.rep-profile-tabs { display: flex; background: var(--white); border-bottom: 1px solid var(--border); }
.rep-tab { flex: 1; padding: 12px 6px; text-align: center; font-size: 12px; font-weight: 600; color: var(--gray-500); border-bottom: 2.5px solid transparent; cursor: pointer; border: none; background: none; }
.rep-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* Performance stats */
.perf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px; }
.perf-card { background: var(--gray-50); border-radius: var(--radius); padding: 14px; text-align: center; }
.perf-num { font-size: 26px; font-weight: 800; line-height: 1; }
.perf-lbl { font-size: 11px; color: var(--gray-500); margin-top: 4px; }
.attendance-circle { display: flex; align-items: center; gap: 14px; padding: 12px 16px; }
.circle-chart { position: relative; width: 70px; height: 70px; flex-shrink: 0; }
.circle-chart svg { transform: rotate(-90deg); }
.circle-bg { fill: none; stroke: var(--gray-200); stroke-width: 8; }
.circle-fg { fill: none; stroke: var(--primary); stroke-width: 8; stroke-linecap: round; transition: stroke-dasharray .8s ease; }
.circle-pct { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); font-size: 14px; font-weight: 800; color: var(--primary); }

/* Political journey */
.journey-item { display: flex; gap: 10px; padding: 10px 12px; }
.journey-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--primary); margin-top: 4px; flex-shrink: 0; }
.journey-year { font-size: 12px; font-weight: 700; color: var(--primary); min-width: 50px; }
.journey-role { font-size: 13px; color: var(--gray-700); }

/* ── Profile Page ─────────────────────────────────────── */
.profile-header { background: var(--primary); color: #fff; padding: 20px 16px 16px; }
.profile-header-inner { display: flex; gap: 12px; align-items: center; }
.profile-avatar { width: 64px; height: 64px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.5); object-fit: cover; }
.profile-name { font-size: 16px; font-weight: 700; }
.profile-mobile { font-size: 13px; opacity: .8; margin-top: 2px; }
.profile-activity-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; background: var(--border); margin-top: 8px; }
.activity-item { background: var(--white); padding: 14px; text-align: center; }
.activity-num { font-size: 20px; font-weight: 800; color: var(--primary); }
.activity-lbl { font-size: 11px; color: var(--gray-500); margin-top: 2px; }

/* Settings list */
.settings-list { background: var(--white); }
.settings-item {
  display: flex; align-items: center; padding: 14px 16px; gap: 12px;
  border-bottom: 1px solid var(--gray-100); text-decoration: none; color: inherit;
}
.settings-item:last-child { border-bottom: none; }
.settings-icon { width: 36px; height: 36px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.settings-label { font-size: 14px; font-weight: 500; }
.settings-sub { font-size: 11px; color: var(--gray-400); margin-top: 1px; }
.settings-arrow { margin-left: auto; color: var(--gray-300); font-size: 18px; }
.settings-item.danger .settings-label { color: var(--danger); }

/* ── Login Page ───────────────────────────────────────── */
.login-hero {
  background: linear-gradient(160deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 40px 24px 28px; text-align: center; color: #fff;
}
.login-logo-circle {
  width: 72px; height: 72px; background: rgba(255,255,255,.2); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; font-size: 32px;
}
.login-title { font-size: 22px; font-weight: 800; }
.login-sub   { font-size: 13px; opacity: .85; margin-top: 4px; }
.login-card  { background: #fff; margin: -16px 16px 0; border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-lg); }
.otp-boxes   { display: flex; gap: 8px; justify-content: center; margin: 16px 0; }
.otp-box     { width: 44px; height: 50px; border: 2px solid var(--border); border-radius: var(--radius-sm); text-align: center; font-size: 22px; font-weight: 700; color: var(--primary); outline: none; }
.otp-box:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(18,71,196,.15); }
.otp-test-box { background: var(--warning-bg); border: 1px solid var(--warning); color: var(--warning); padding: 10px 14px; border-radius: var(--radius); font-size: 13px; text-align: center; margin: 8px 0; }
.otp-test-box strong { font-size: 22px; letter-spacing: 6px; display: block; color: var(--danger); }

/* ── Area Select ──────────────────────────────────────── */
.area-option { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--white); border: 2px solid var(--border); border-radius: var(--radius); margin-bottom: 8px; cursor: pointer; }
.area-option:hover, .area-option.selected { border-color: var(--primary); background: var(--primary-light); }
.area-option .area-icon { font-size: 22px; }
.area-option .area-info { flex: 1; }
.area-option .area-name { font-size: 14px; font-weight: 600; }
.area-option .area-sub { font-size: 11px; color: var(--gray-500); }

/* ── Representatives list ─────────────────────────────── */
.rep-list-card { background: var(--white); border-radius: var(--radius); margin-bottom: 8px; display: flex; align-items: center; gap: 12px; padding: 12px; box-shadow: var(--shadow-sm); }
.rep-list-info { flex: 1; }
.rep-list-name { font-size: 14px; font-weight: 700; }
.rep-list-desig { font-size: 12px; color: var(--gray-500); }
.rep-list-party { font-size: 11px; color: var(--primary); font-weight: 600; }
.rep-list-stats { text-align: right; }
.rep-list-stats .stat { font-size: 11px; color: var(--gray-500); }
.rep-list-stats .num  { font-size: 15px; font-weight: 800; color: var(--primary); }

/* ── Announcement / Home Hero ─────────────────────────── */
.home-hero {
  background: linear-gradient(160deg, var(--primary) 30%, #0E3A9A 100%);
  padding: 14px 16px; color: #fff;
}
.home-header-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.home-logo { display: flex; align-items: center; gap: 8px; }
.home-logo-mark { width: 36px; height: 36px; background: rgba(255,255,255,.2); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 16px; color: #fff; }
.home-app-name { font-size: 17px; font-weight: 800; }
.home-app-sub  { font-size: 10px; opacity: .75; }
.home-actions  { display: flex; gap: 8px; }
.home-icon-btn { width: 36px; height: 36px; background: rgba(255,255,255,.15); border-radius: 50%; display: flex; align-items: center; justify-content: center; position: relative; }
.home-icon-btn svg { width: 20px; height: 20px; fill: #fff; }

/* ── Empty state ──────────────────────────────────────── */
.empty-state { text-align: center; padding: 40px 20px; color: var(--gray-400); }
.empty-state .empty-icon { font-size: 48px; margin-bottom: 12px; }
.empty-state h3 { font-size: 15px; color: var(--gray-600); margin-bottom: 6px; }
.empty-state p  { font-size: 13px; }

/* ── Loading spinner ──────────────────────────────────── */
.spinner { display: flex; justify-content: center; padding: 30px; }
.spinner::after { content: ''; width: 32px; height: 32px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Utility ──────────────────────────────────────────── */
.d-flex   { display: flex; align-items: center; }
.gap-8    { gap: 8px; }
.gap-12   { gap: 12px; }
.mt-8     { margin-top: 8px; }
.mt-12    { margin-top: 12px; }
.mt-16    { margin-top: 16px; }
.mb-8     { margin-bottom: 8px; }
.mb-16    { margin-bottom: 16px; }
.p-12     { padding: 12px; }
.p-16     { padding: 16px; }
.text-center { text-align: center; }
.text-muted  { color: var(--gray-500); font-size: 12px; }
.fw-700  { font-weight: 700; }
.fw-600  { font-weight: 600; }
.divider { height: 8px; background: var(--bg); }
.section-label { font-size: 11px; font-weight: 700; color: var(--gray-400); text-transform: uppercase; letter-spacing: .7px; padding: 12px 12px 4px; }
.scroll-x { overflow-x: auto; scrollbar-width: none; }
.scroll-x::-webkit-scrollbar { display: none; }

/* ── Pagination ───────────────────────────────────────── */
.pagination { display: flex; justify-content: center; gap: 6px; padding: 16px 12px; flex-wrap: wrap; }
.page-btn { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); background: var(--white); color: var(--gray-600); font-size: 13px; font-weight: 600; border: 1px solid var(--border); }
.page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ── Filter chips ─────────────────────────────────────── */
.filter-chips { display: flex; gap: 6px; padding: 8px 12px; overflow-x: auto; scrollbar-width: none; }
.filter-chips::-webkit-scrollbar { display: none; }
.chip { padding: 5px 12px; border-radius: var(--radius-full); font-size: 12px; font-weight: 600; border: 1.5px solid var(--border); background: var(--white); color: var(--gray-600); white-space: nowrap; cursor: pointer; flex-shrink: 0; }
.chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ── Admin redirect ───────────────────────────────────── */
.login-type-btns { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.login-type-btn { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--radius); border: 2px solid var(--border); background: #fff; font-size: 14px; font-weight: 600; color: var(--gray-700); cursor: pointer; }
.login-type-btn .login-type-icon { width: 36px; height: 36px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.login-type-btn:hover { border-color: var(--primary); color: var(--primary); }

/* ── Tag overlay on issue image ───────────────────────── */
.tag-overlay {
  background: rgba(0,0,0,.72); color: #fff; padding: 8px 10px;
  font-size: 11px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.tag-rep-mini { display: flex; align-items: center; gap: 3px; }
.tag-rep-mini img { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5); }

/* ── Responsive tweaks ────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media (max-width: 360px) {
  .leaders-row { grid-template-columns: repeat(3,1fr); }
  .leader-avatar { width: 52px; height: 52px; }
}
