/* ==========================================================
   Nagar Mitra — theme on top of Bootstrap 5.3
   ========================================================== */
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url(../vendor/fonts/inter-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url(../vendor/fonts/inter-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url(../vendor/fonts/inter-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url(../vendor/fonts/inter-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 800; font-display: swap; src: url(../vendor/fonts/inter-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "Noto Sans Devanagari"; font-weight: 400; font-display: swap; src: url(../vendor/fonts/noto-sans-devanagari-devanagari-400-normal.woff2) format("woff2"); unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: "Noto Sans Devanagari"; font-weight: 500; font-display: swap; src: url(../vendor/fonts/noto-sans-devanagari-devanagari-500-normal.woff2) format("woff2"); unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: "Noto Sans Devanagari"; font-weight: 600; font-display: swap; src: url(../vendor/fonts/noto-sans-devanagari-devanagari-600-normal.woff2) format("woff2"); unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: "Noto Sans Devanagari"; font-weight: 700; font-display: swap; src: url(../vendor/fonts/noto-sans-devanagari-devanagari-700-normal.woff2) format("woff2"); unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; }

:root {
  --brand: #4f46e5;
  --brand-2: #7c3aed;
  --brand-rgb: 79, 70, 229;
  --ink: #0f172a;
  --muted: #64748b;
  --surface: #f4f6fb;
  --line: #e7eaf3;
  --sidebar-w: 268px;
  --radius: 1rem;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 6px 20px rgba(16, 24, 40, .06);
  --shadow-lg: 0 10px 40px rgba(16, 24, 40, .12);

  --bs-body-font-family: "Inter", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bs-body-color: #1e293b;
  --bs-primary: var(--brand);
  --bs-primary-rgb: var(--brand-rgb);
  --bs-link-color: var(--brand);
  --bs-link-color-rgb: var(--brand-rgb);
  --bs-link-hover-color: var(--brand-2);
  --bs-border-color: var(--line);
  --bs-border-radius: .65rem;
  --bs-border-radius-lg: 1rem;
}

body { background: var(--surface); font-size: .95rem; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6, .fw-display { font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.text-muted { color: var(--muted) !important; }
.small-caps { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
a { text-decoration: none; }

/* ---------- Bootstrap overrides ---------- */
.btn { --bs-btn-font-weight: 600; --bs-btn-padding-y: .55rem; --bs-btn-padding-x: 1rem; border-radius: .7rem; }
.btn-sm { --bs-btn-padding-y: .35rem; --bs-btn-padding-x: .7rem; border-radius: .55rem; }
.btn-lg { border-radius: .9rem; }
.btn-primary { --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-hover-bg: var(--brand-2); --bs-btn-hover-border-color: var(--brand-2); --bs-btn-active-bg: var(--brand-2); --bs-btn-active-border-color: var(--brand-2); --bs-btn-disabled-bg: var(--brand); --bs-btn-disabled-border-color: var(--brand); box-shadow: 0 6px 18px rgba(var(--brand-rgb), .28); }
.btn-gradient { color: #fff; border: 0; background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 8px 22px rgba(var(--brand-rgb), .32); }
.btn-gradient:hover { color: #fff; filter: brightness(1.06); }
.btn-outline-primary { --bs-btn-color: var(--brand); --bs-btn-border-color: rgba(var(--brand-rgb), .35); --bs-btn-hover-bg: var(--brand); --bs-btn-hover-border-color: var(--brand); --bs-btn-active-bg: var(--brand); }
.btn-soft { background: rgba(var(--brand-rgb), .09); color: var(--brand); border: 0; }
.btn-soft:hover { background: rgba(var(--brand-rgb), .16); color: var(--brand); }
.btn-white { background: #fff; border: 1px solid var(--line); color: var(--ink); }
.btn-white:hover { background: #f8fafc; border-color: #d7dce8; }
.form-control, .form-select { border-radius: .7rem; padding: .6rem .85rem; border-color: #dfe3ee; }
.form-control:focus, .form-select:focus { border-color: rgba(var(--brand-rgb), .55); box-shadow: 0 0 0 .22rem rgba(var(--brand-rgb), .14); }
.form-label { font-weight: 600; font-size: .86rem; color: #334155; margin-bottom: .35rem; }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.input-group-text { border-color: #dfe3ee; background: #f8fafc; border-radius: .7rem; }
.card { border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }
.card-header { background: transparent; border-bottom: 1px solid var(--line); padding: 1rem 1.25rem; }
.card-body { padding: 1.25rem; }
.card-title { font-size: 1rem; font-weight: 700; margin: 0; }
.table { --bs-table-bg: transparent; margin: 0; }
.table > :not(caption) > * > * { padding: .85rem 1rem; border-color: var(--line); }
.table thead th { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; background: #f8fafc; white-space: nowrap; }
.table-hover > tbody > tr:hover > * { --bs-table-bg-state: rgba(var(--brand-rgb), .035); }
.badge { font-weight: 600; padding: .42em .7em; border-radius: .5rem; }
.nav-pills .nav-link { border-radius: .65rem; color: #475569; font-weight: 600; }
.nav-pills .nav-link.active { background: var(--brand); }
.pagination { --bs-pagination-border-radius: .6rem; --bs-pagination-active-bg: var(--brand); --bs-pagination-active-border-color: var(--brand); --bs-pagination-color: var(--brand); margin: 0; }
.modal-content { border: 0; border-radius: 1.2rem; box-shadow: var(--shadow-lg); }
.modal-header { border-bottom-color: var(--line); }
.modal-footer { border-top-color: var(--line); }
.dropdown-menu { border: 0; border-radius: .9rem; box-shadow: var(--shadow-lg); padding: .4rem; }
.dropdown-item { border-radius: .55rem; padding: .5rem .75rem; }
.progress { border-radius: 99px; background: #eef1f7; }
.progress-bar { border-radius: 99px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); }
.alert { border: 0; border-radius: .9rem; }

/* soft colour badges */
.bg-soft-primary { background: rgba(var(--brand-rgb), .1) !important; color: var(--brand) !important; }
.bg-soft-success { background: #dcfce7 !important; color: #15803d !important; }
.bg-soft-warning { background: #fef3c7 !important; color: #b45309 !important; }
.bg-soft-danger { background: #fee2e2 !important; color: #b91c1c !important; }
.bg-soft-info { background: #cffafe !important; color: #0e7490 !important; }
.bg-soft-secondary { background: #eef2f7 !important; color: #475569 !important; }

/* ==========================================================
   PANEL LAYOUT (sidebar + topbar)
   ========================================================== */
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); z-index: 1040;
  background: radial-gradient(120% 60% at 0% 0%, rgba(var(--brand-rgb), .45), transparent 60%), linear-gradient(180deg, #0f172a 0%, #151a3a 100%);
  color: #cbd5e1; display: flex; flex-direction: column; transition: transform .25s ease;
}
.sidebar .brand { display: flex; align-items: center; gap: .75rem; padding: 1.25rem 1.25rem 1rem; color: #fff; }
.sidebar .brand .logo { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 8px 20px rgba(var(--brand-rgb), .45); font-size: 1.25rem; overflow: hidden; flex-shrink: 0; }
.sidebar .brand .logo img { width: 100%; height: 100%; object-fit: cover; }
.sidebar .brand b { display: block; font-size: .98rem; line-height: 1.2; }
.sidebar .brand small { color: #94a3b8; font-size: .74rem; }
.sidebar .menu { flex: 1; overflow-y: auto; padding: .5rem .85rem 1rem; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.15) transparent; }
.sidebar .menu .label { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: #64748b; font-weight: 700; padding: 1rem .75rem .4rem; }
.sidebar .menu a { display: flex; align-items: center; gap: .75rem; padding: .62rem .8rem; border-radius: .75rem; color: #cbd5e1; font-weight: 500; font-size: .92rem; margin-bottom: 2px; transition: background .15s, color .15s; }
.sidebar .menu a i { font-size: 1.05rem; width: 1.2rem; text-align: center; opacity: .85; }
.sidebar .menu a:hover { background: rgba(255,255,255,.06); color: #fff; }
.sidebar .menu a.active { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: 0 6px 18px rgba(var(--brand-rgb), .35); }
.sidebar .menu a .badge { margin-left: auto; }
.sidebar .side-card { margin: .75rem; padding: 1rem; border-radius: 1rem; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); }

.main { margin-left: var(--sidebar-w); min-height: 100vh; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 1030; background: rgba(255,255,255,.85); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); }
.topbar .inner { display: flex; align-items: center; gap: .75rem; padding: .7rem 1.5rem; }
.topbar .search { position: relative; max-width: 360px; flex: 1; }
.topbar .search i { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: #94a3b8; }
.topbar .search input { padding-left: 2.4rem; background: #f4f6fb; border-color: transparent; }
.icon-btn { width: 42px; height: 42px; border-radius: .8rem; display: inline-grid; place-items: center; background: #f4f6fb; color: #334155; border: 0; position: relative; font-size: 1.1rem; }
.icon-btn:hover { background: #e9edf6; color: var(--ink); }
.icon-btn .dot { position: absolute; top: 8px; right: 9px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: #ef4444; color: #fff; font-size: .65rem; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; }
.avatar { width: 40px; height: 40px; border-radius: 12px; display: inline-grid; place-items: center; font-weight: 700; font-size: .85rem; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); flex-shrink: 0; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.sm { width: 32px; height: 32px; border-radius: 10px; font-size: .72rem; }
.avatar.lg { width: 64px; height: 64px; border-radius: 18px; font-size: 1.3rem; }
.avatar.xl { width: 96px; height: 96px; border-radius: 24px; font-size: 2rem; }
.content { padding: 1.5rem; flex: 1; }
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.page-head h1 { font-size: 1.55rem; margin: 0; }
.page-head .crumb { color: var(--muted); font-size: .85rem; margin-top: .2rem; }
.sidebar-backdrop { display: none; }

@media (max-width: 991.98px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: none; box-shadow: var(--shadow-lg); }
  .sidebar.open + .sidebar-backdrop { display: block; position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 1035; }
  .main { margin-left: 0; }
  .content { padding: 1rem; }
  .topbar .inner { padding: .6rem 1rem; }
}

/* ==========================================================
   COMPONENTS
   ========================================================== */
.stat-card { position: relative; overflow: hidden; padding: 1.2rem 1.25rem; }
.stat-card .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.35rem; }
.stat-card .value { font-size: 1.75rem; font-weight: 800; letter-spacing: -.03em; color: var(--ink); line-height: 1.1; margin-top: .8rem; }
.stat-card .label { color: var(--muted); font-weight: 500; font-size: .86rem; }
.stat-card .trend { font-size: .78rem; font-weight: 600; }
.stat-card::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: currentColor; opacity: .05; }
.ico-indigo { background: rgba(99, 102, 241, .12); color: #4f46e5; }
.ico-violet { background: rgba(139, 92, 246, .12); color: #7c3aed; }
.ico-amber { background: #fef3c7; color: #d97706; }
.ico-green { background: #dcfce7; color: #16a34a; }
.ico-rose { background: #ffe4e6; color: #e11d48; }
.ico-sky { background: #e0f2fe; color: #0284c7; }
.ico-teal { background: #ccfbf1; color: #0d9488; }

.hero-card { color: #fff; border-radius: 1.25rem; padding: 1.6rem; position: relative; overflow: hidden; background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%); box-shadow: 0 16px 40px rgba(var(--brand-rgb), .3); }
.hero-card::before { content: ""; position: absolute; width: 320px; height: 320px; right: -80px; top: -120px; border-radius: 50%; background: rgba(255,255,255,.12); }
.hero-card::after { content: ""; position: absolute; width: 200px; height: 200px; right: 120px; bottom: -120px; border-radius: 50%; background: rgba(255,255,255,.08); }
.hero-card > * { position: relative; z-index: 1; }
.hero-card h2, .hero-card h3 { color: #fff; }
.glass { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); border-radius: 1rem; backdrop-filter: blur(6px); }

.chart-box { position: relative; height: 290px; }
.chart-box.sm { height: 220px; }
.chart-box.xs { height: 180px; }

.list-clean { list-style: none; margin: 0; padding: 0; }
.list-row { display: flex; align-items: center; gap: .9rem; padding: .85rem 1.25rem; border-bottom: 1px solid var(--line); color: inherit; }
.list-row:last-child { border-bottom: 0; }
a.list-row:hover { background: #fafbff; }
.thumb { width: 56px; height: 56px; border-radius: .8rem; object-fit: cover; flex-shrink: 0; background: #eef1f7; display: grid; place-items: center; color: #94a3b8; font-size: 1.3rem; }
.thumb.lg { width: 84px; height: 84px; }
.cat-chip { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 600; padding: .25rem .6rem; border-radius: .5rem; }
.cat-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 1.1rem; flex-shrink: 0; }

/* status steps */
.steps { display: flex; align-items: flex-start; }
.steps .st { flex: 1; text-align: center; position: relative; font-size: .76rem; font-weight: 600; color: #94a3b8; }
.steps .st .dot { width: 30px; height: 30px; margin: 0 auto .4rem; border-radius: 50%; display: grid; place-items: center; background: #eef1f7; color: #94a3b8; position: relative; z-index: 1; font-size: .85rem; }
.steps .st::before { content: ""; position: absolute; top: 15px; left: -50%; right: 50%; height: 3px; background: #eef1f7; }
.steps .st:first-child::before { display: none; }
.steps .st.done { color: var(--ink); }
.steps .st.done .dot { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: 0 4px 12px rgba(var(--brand-rgb), .35); }
.steps .st.done::before { background: linear-gradient(90deg, var(--brand), var(--brand-2)); }
.steps.rejected .st.done:last-child .dot { background: #ef4444; box-shadow: none; }

/* timeline */
.timeline { position: relative; padding-left: 1.6rem; }
.timeline::before { content: ""; position: absolute; left: .45rem; top: .3rem; bottom: .3rem; width: 2px; background: var(--line); }
.timeline .tl { position: relative; padding-bottom: 1.25rem; }
.timeline .tl:last-child { padding-bottom: 0; }
.timeline .tl .tdot { position: absolute; left: -1.6rem; top: .15rem; width: 1.1rem; height: 1.1rem; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--line); }
.timeline .internal { background: #fffbeb; border: 1px dashed #fcd34d; border-radius: .7rem; padding: .5rem .7rem; }

/* category picker */
.cat-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; }
.cat-pick input { display: none; }
.cat-pick label { display: flex; flex-direction: column; gap: .6rem; padding: 1rem; border-radius: 1rem; background: #fff; border: 2px solid var(--line); cursor: pointer; font-weight: 600; transition: all .15s; height: 100%; }
.cat-pick label:hover { border-color: rgba(var(--brand-rgb), .35); transform: translateY(-2px); }
.cat-pick input:checked + label { border-color: var(--brand); background: rgba(var(--brand-rgb), .05); box-shadow: 0 8px 20px rgba(var(--brand-rgb), .15); }

/* dropzone */
.dropzone { border: 2px dashed #cbd5e1; border-radius: 1rem; background: #fafbff; padding: 1.75rem; text-align: center; cursor: pointer; transition: all .15s; }
.dropzone:hover, .dropzone.over { border-color: var(--brand); background: rgba(var(--brand-rgb), .04); }
.dropzone .big { width: 64px; height: 64px; border-radius: 18px; margin: 0 auto .75rem; display: grid; place-items: center; font-size: 1.8rem; background: rgba(var(--brand-rgb), .1); color: var(--brand); }
.previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .6rem; margin-top: .9rem; }
.previews .pv { position: relative; aspect-ratio: 1; border-radius: .8rem; overflow: hidden; background: #eef1f7; }
.previews .pv img { width: 100%; height: 100%; object-fit: cover; }
.previews .pv button { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(15,23,42,.7); color: #fff; font-size: .8rem; display: grid; place-items: center; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .6rem; }
.gallery a { display: block; aspect-ratio: 4/3; border-radius: .8rem; overflow: hidden; position: relative; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.gallery a:hover img { transform: scale(1.05); }
.gallery .tag { position: absolute; left: 8px; bottom: 8px; font-size: .68rem; }

.empty-state { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty-state .ico { width: 76px; height: 76px; border-radius: 22px; margin: 0 auto 1rem; display: grid; place-items: center; font-size: 2rem; background: rgba(var(--brand-rgb), .08); color: var(--brand); }
.rating-stars { display: inline-flex; flex-direction: row-reverse; gap: .2rem; }
.rating-stars input { display: none; }
.rating-stars label { font-size: 1.8rem; color: #e2e8f0; cursor: pointer; }
.rating-stars input:checked ~ label, .rating-stars label:hover, .rating-stars label:hover ~ label { color: #f59e0b; }
.stars { color: #f59e0b; letter-spacing: .05em; }
.poll-opt { position: relative; display: block; padding: .75rem 1rem; border-radius: .8rem; background: #f4f6fb; overflow: hidden; margin-bottom: .5rem; font-weight: 600; }
.poll-opt .fill { position: absolute; inset: 0 auto 0 0; background: rgba(var(--brand-rgb), .14); border-radius: .8rem; }
.poll-opt.mine .fill { background: rgba(var(--brand-rgb), .26); }
.poll-opt > span { position: relative; }
.mini-progress { height: 6px; }
.ward-num { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; background: linear-gradient(135deg, rgba(var(--brand-rgb), .14), rgba(var(--brand-rgb), .06)); color: var(--brand); flex-shrink: 0; }
.date-tile { width: 56px; border-radius: .9rem; text-align: center; overflow: hidden; background: #fff; border: 1px solid var(--line); flex-shrink: 0; }
.date-tile .m { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-size: .68rem; font-weight: 700; text-transform: uppercase; padding: .15rem 0; }
.date-tile .d { font-size: 1.25rem; font-weight: 800; padding: .2rem 0; color: var(--ink); }
.filter-bar { background: #fff; border-radius: 1rem; box-shadow: var(--shadow); padding: .9rem; margin-bottom: 1rem; }
.toast-container { z-index: 1090; }
.color-dot { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }

/* ==========================================================
   AUTH (split screen)
   ========================================================== */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; background: #fff; }
.auth-art { position: relative; overflow: hidden; color: #fff; padding: 3rem; display: flex; flex-direction: column; justify-content: space-between; background: radial-gradient(80% 60% at 100% 0%, rgba(255,255,255,.18), transparent 60%), linear-gradient(135deg, var(--brand), var(--brand-2) 70%, #db2777); }
.auth-art h1 { color: #fff; font-size: clamp(2rem, 3.2vw, 3rem); font-weight: 800; }
.auth-art .blob { position: absolute; border-radius: 50%; background: rgba(255,255,255,.1); }
.auth-form { display: grid; place-items: center; padding: 2.5rem 1.25rem; }
.auth-form .box { width: 100%; max-width: 440px; }
@media (max-width: 991.98px) { .auth-wrap { grid-template-columns: 1fr; } .auth-art { min-height: 240px; padding: 2rem 1.5rem; } .auth-art .hide-sm { display: none; } }

/* ==========================================================
   PUBLIC SITE
   ========================================================== */
.site-nav { background: rgba(255,255,255,.88); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); }
.site-nav .nav-link { font-weight: 600; color: #334155; padding: .5rem .85rem !important; border-radius: .6rem; }
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: var(--brand); background: rgba(var(--brand-rgb), .07); }
.site-hero { position: relative; overflow: hidden; color: #fff; padding: 5rem 0 7rem; background: radial-gradient(60% 80% at 85% 10%, rgba(255,255,255,.18), transparent 60%), radial-gradient(50% 60% at 0% 100%, rgba(236, 72, 153, .35), transparent 60%), linear-gradient(135deg, var(--brand), var(--brand-2)); }
.site-hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.03em; }
.site-hero .lead { color: rgba(255,255,255,.88); }
.site-hero .grid-bg { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px); background-size: 42px 42px; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); }
.overlap { margin-top: -4.5rem; position: relative; z-index: 2; }
.section { padding: 4rem 0; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }
.feature-ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 1.5rem; }
.leader-card img, .leader-card .avatar { width: 88px; height: 88px; border-radius: 24px; }
.site-footer { background: #0f172a; color: #94a3b8; padding: 3rem 0 2rem; }
.site-footer h6 { color: #fff; }
.site-footer a { color: #cbd5e1; }
.hover-lift { transition: transform .2s, box-shadow .2s; }
.hover-lift:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.cover-img { width: 100%; height: 190px; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; background: linear-gradient(135deg, rgba(var(--brand-rgb), .15), rgba(var(--brand-rgb), .08)); }

/* superadmin accent */
.theme-super { --brand: #0ea5e9; --brand-2: #6366f1; --brand-rgb: 14, 165, 233; }
.btn-check:checked + .btn-white { background: rgba(var(--brand-rgb), .1); border-color: var(--brand); color: var(--brand); }

/* Add to Home Screen popup */
.a2hs { position: fixed; left: 50%; bottom: 16px; z-index: 1080; width: min(440px, calc(100% - 24px)); background: #fff; border-radius: 1.25rem; padding: 1rem 1.1rem; transform: translate(-50%, 140%); transition: transform .3s ease; border: 1px solid var(--line); }
.a2hs.show { transform: translate(-50%, 0); }

/* Super admin impersonation bar */
.impersonate-bar { background: repeating-linear-gradient(45deg, #b45309, #b45309 14px, #c2410c 14px, #c2410c 28px); color: #fff; position: sticky; top: 61px; z-index: 1020; }

/* Subscription / read-only banners */
.sub-bar { border-bottom: 1px solid rgba(0,0,0,.06); }
.sub-danger { background: #fee2e2; color: #991b1b; }
.sub-warn { background: #fef3c7; color: #92400e; }
.sub-info { background: #e0f2fe; color: #075985; }

/* Landing CTA + footer */
.land-cta { padding: 0 0 4rem; }
.land-cta .cta-box { background: linear-gradient(135deg, #4f46e5, #7c3aed); color: #fff; border-radius: 1.25rem; padding: 2.25rem 2.5rem; box-shadow: 0 20px 40px -18px rgba(79,70,229,.55); }
.land-footer { padding-top: 3.5rem; }
.land-footer a { text-decoration: none; }
.land-footer a:hover { color: #fff; }
.land-footer h6 { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
.land-footer .foot-chip { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); color: #cbd5e1; border-radius: 999px; padding: .3rem .7rem; }
.land-footer .foot-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.land-cta .cta-box h3 { color: #fff; }
.consent-box { background: var(--bs-tertiary-bg, #f8fafc); border: 1px solid rgba(0,0,0,.06); border-radius: .75rem; padding: .85rem 1rem; }
.land-footer .foot-legal { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1rem; }
.legal-body h5 { font-weight: 700; margin-top: 1.75rem; font-size: 1.05rem; }
.legal-body p, .legal-body li { color: #334155; line-height: 1.75; }
.approval-card { box-shadow: 0 0 0 2px rgba(245,158,11,.45), var(--shadow); border: 0; }

/* Live alerts */
.live-toast { width: 340px; max-width: calc(100vw - 2rem); border: 0; border-radius: 1rem; box-shadow: 0 18px 40px -12px rgba(15,23,42,.35); background: #fff; animation: toastIn .35s ease; }
@keyframes toastIn { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
.alert-optin { position: fixed; left: 50%; top: 76px; transform: translateX(-50%); width: min(460px, calc(100vw - 2rem)); background: #fff; border-radius: 1rem; padding: 1rem 1.1rem; z-index: 1085; border: 1px solid rgba(0,0,0,.06); }
#bellBtn.ring i { display: inline-block; animation: ring .9s ease 2; }
@keyframes ring { 0%,100% { transform: rotate(0); } 20% { transform: rotate(18deg); } 40% { transform: rotate(-16deg); } 60% { transform: rotate(10deg); } 80% { transform: rotate(-6deg); } }
.otp-input { letter-spacing: .6em; text-align: center; font-size: 1.6rem; font-weight: 700; font-family: ui-monospace, monospace; }
.otp-badge { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 1.6rem; color: #4f46e5; background: #eef2ff; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Voice complaint */
.voice-box { border: 2px dashed rgba(var(--brand-rgb), .3); border-radius: 1rem; padding: 1rem 1.1rem; background: rgba(var(--brand-rgb), .04); }
.voice-btn { width: 58px; height: 58px; border-radius: 50%; border: 0; color: #fff; font-size: 1.5rem; background: linear-gradient(135deg, rgb(var(--brand-rgb)), #7c3aed); box-shadow: 0 8px 20px -6px rgba(var(--brand-rgb), .6); flex-shrink: 0; }
.voice-btn.rec { background: #dc2626; animation: recPulse 1.2s infinite; }
@keyframes recPulse { 0% { box-shadow: 0 0 0 0 rgba(220,38,38,.55); } 70% { box-shadow: 0 0 0 16px rgba(220,38,38,0); } 100% { box-shadow: 0 0 0 0 rgba(220,38,38,0); } }
.voice-timer { font-family: ui-monospace, monospace; font-weight: 700; color: #dc2626; font-size: 1.1rem; }

/* Leaders & ward member photos */
.leader-card { overflow: hidden; border: 0; }
.leader-card .leader-band { height: 70px; background: linear-gradient(135deg, rgb(var(--brand-rgb)), #7c3aed); }
.leader-card .leader-photo { width: 128px; height: 128px; margin-top: -64px; border-radius: 50%; border: 5px solid #fff; box-shadow: 0 10px 25px -10px rgba(15,23,42,.35); overflow: hidden; background: rgba(var(--brand-rgb), .12); display: grid; place-items: center; }
.leader-card .leader-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.leader-card .leader-photo span { font-size: 2.4rem; font-weight: 700; color: rgb(var(--brand-rgb)); }
.member-photo { width: 76px; height: 76px; border-radius: 50%; overflow: hidden; background: rgba(var(--brand-rgb), .12); display: grid; place-items: center; box-shadow: 0 0 0 3px #fff, 0 0 0 5px rgba(var(--brand-rgb), .2); }
.member-photo.sm { width: 56px; height: 56px; }
.member-photo img { width: 100%; height: 100%; object-fit: cover; }
.member-photo span { font-weight: 700; color: rgb(var(--brand-rgb)); font-size: 1.3rem; }

/* Duplicate complaint check */
.dup-box { border: 1px solid #fde68a; background: #fffbeb; border-radius: 1rem; padding: 1rem 1.1rem; }
.dup-item { display: flex; align-items: center; gap: .75rem; background: #fff; border-radius: .75rem; padding: .6rem .75rem; border: 1px solid #fef3c7; }
.dup-item img, .dup-item .dup-ph { width: 48px; height: 48px; border-radius: .6rem; object-fit: cover; flex-shrink: 0; display: grid; place-items: center; background: #f1f5f9; color: #94a3b8; }

/* Vendors */
.vendor-photo { width: 64px; height: 64px; border-radius: 16px; overflow: hidden; flex-shrink: 0; display: grid; place-items: center; background: rgba(var(--brand-rgb), .1); color: rgb(var(--brand-rgb)); font-size: 1.6rem; }
.vendor-photo img { width: 100%; height: 100%; object-fit: cover; }
.cat-chips { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .25rem; }
.cat-chips .chip { display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; padding: .45rem .9rem; border-radius: 999px; border: 1px solid #e2e8f0; background: #fff; color: #0f172a; text-decoration: none; font-size: .9rem; }
.cat-chips .chip.active { background: rgb(var(--brand-rgb)); color: #fff; border-color: transparent; }
.cat-chips .chip.active i { color: #fff !important; }
.vendor-join { background: linear-gradient(135deg, rgba(var(--brand-rgb), .08), rgba(124,58,237,.08)); border-radius: 1.25rem; padding: 1.5rem 1.75rem; }
.ward-pick { display: flex; flex-wrap: wrap; gap: .35rem; }
.ward-pick .wp input { display: none; }
.ward-pick .wp span { display: inline-grid; place-items: center; min-width: 40px; height: 36px; border-radius: 10px; border: 1px solid #e2e8f0; cursor: pointer; font-weight: 600; font-size: .85rem; padding: 0 .4rem; }
.ward-pick .wp input:checked + span { background: rgb(var(--brand-rgb)); color: #fff; border-color: transparent; }
.vendor-steps { display: flex; justify-content: space-between; position: relative; }
.vendor-steps::before { content: ''; position: absolute; top: 18px; left: 10%; right: 10%; height: 3px; background: #e2e8f0; }
.vendor-steps .vs { position: relative; text-align: center; flex: 1; }
.vendor-steps .vs span { width: 38px; height: 38px; border-radius: 50%; display: inline-grid; place-items: center; background: #e2e8f0; color: #64748b; font-weight: 700; }
.vendor-steps .vs.done span { background: #059669; color: #fff; }
.vendor-steps .vs small { display: block; margin-top: .35rem; font-size: .78rem; color: #475569; }

/* Ticket number + copy */
.ticket-chip { display: inline-flex; align-items: center; gap: .3rem; background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 8px; padding: 0 0 0 .45rem; font-size: .8rem; color: #334155; vertical-align: middle; }
.ticket-chip .ticket-copy { border: 0; background: transparent; color: rgb(var(--brand-rgb)); padding: .1rem .45rem; border-left: 1px solid #e2e8f0; border-radius: 0 8px 8px 0; line-height: 1.4; cursor: pointer; }
.ticket-chip .ticket-copy:hover { background: rgba(var(--brand-rgb), .1); }
.ticket-chip .ticket-copy.copied { color: #059669; }
.ticket-chip.lg { font-size: 1rem; font-weight: 700; padding-left: .7rem; gap: .5rem; background: #fff; border-color: rgba(var(--brand-rgb), .3); }
.ticket-chip.lg .ticket-copy { padding: .3rem .75rem; font-weight: 600; font-size: .9rem; }
.created-card { background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 1rem; padding: 1.1rem 1.25rem; }
.created-ticket { font-size: 1.6rem; font-weight: 800; letter-spacing: .04em; background: #fff; border: 2px dashed #10b981; border-radius: .75rem; padding: .25rem 1rem; color: #065f46; }

/* Rajnitik party badge */
.party-badge { display: inline-flex; align-items: center; gap: .35rem; font-size: .74rem; font-weight: 600; line-height: 1.2; padding: .22rem .6rem; border-radius: 999px; color: color-mix(in srgb, var(--party) 78%, #000); background: color-mix(in srgb, var(--party) 13%, #fff); border: 1px solid color-mix(in srgb, var(--party) 28%, #fff); white-space: nowrap; vertical-align: middle; }
.party-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--party); flex-shrink: 0; }
.party-summary { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.party-summary .party-badge { font-size: .82rem; padding: .35rem .8rem; }
.party-summary .party-badge b { font-weight: 800; margin-left: .15rem; }

/* Nagar Mitra logo mark */
.brand-mark { border-radius: 24%; flex-shrink: 0; }

/* Logo + naam + tagline */
.brand-lockup { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; padding: 0; margin: 0; }
.brand-lockup .brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-lockup .brand-text b { font-weight: 800; font-size: 1.2rem; color: #1e1b4b; letter-spacing: -.01em; }
.brand-lockup .brand-text small { font-size: .72rem; font-weight: 500; color: #64748b; margin-top: 2px; white-space: nowrap; }
.brand-lockup.brand-light .brand-text b { color: #fff; }
.brand-lockup.brand-light .brand-text small { color: rgba(255,255,255,.7); }
@media (max-width: 380px) { .brand-lockup .brand-text small { display: none; } }
