/* PATH: assets/css/style.css */
/* जनमत पोल — डिज़ाइन सिस्टम v2
   सिद्धांत: एक भरोसेमंद हरा + एक कार्रवाई-रंग (केसरिया); कम शोर, साफ़ पदानुक्रम;
   हर टैप-योग्य चीज़ ≥44px; मोबाइल-फ़र्स्ट (नीचे नेविगेशन); पुराने ब्राउज़र के लिए सुरक्षित CSS;
   स्पष्ट focus; reduced-motion का सम्मान; डार्क मोड tokens से। */

/* ---------- Tokens ---------- */
:root {
    --brand: #0b7a49;
    --brand-dark: #08613a;
    --brand-deep: #064a2f;
    --brand-text: #0b7a49;
    --brand-soft: #e6f3ec;
    --saffron: #c25a00;
    --saffron-dark: #a34b00;
    --saffron-soft: #fff1e0;
    --gold: #d4a017;
    --ink: #1b2733;
    --muted: #536172;
    --bg: #f4f6f4;
    --surface: #ffffff;
    --surface-2: #f6f8f7;
    --line: #dfe5e1;
    --danger: #b42318;
    --danger-soft: #fdecea;
    --info: #1d6fd8;
    --focus: #1d6fd8;

    --sh-1: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
    --sh-2: 0 4px 14px rgba(16, 24, 40, .08);
    --sh-3: 0 14px 36px rgba(16, 24, 40, .2);
    --shadow: var(--sh-1);
    --shadow-pop: var(--sh-3);
    --r-xl: 20px;
    --r-lg: 16px;
    --r-md: 12px;
    --r-sm: 8px;
    --header-h: 64px;
    --bottom-nav-h: 64px;

    /* पुराने नाम (संगतता) */
    --primary-green: var(--brand); --text-main: var(--ink); --text-light: var(--muted);
    --bg-color: var(--bg); --white: var(--surface); --border-color: var(--line);
    --input-bg: var(--surface-2); --nav-bg: var(--surface-2); --orange: var(--saffron);
    --light-green: var(--brand-soft); --border-radius-lg: var(--r-lg); --border-radius-md: var(--r-md);
    color-scheme: light;
}
:root.dark-theme {
    --brand-text: #4cc38a;
    --brand-soft: #14352a;
    --brand-deep: #06261a;
    --saffron-dark: #d96a00;
    --saffron-soft: #3a2410;
    --ink: #e7edf3;
    --muted: #9db0c4;
    --bg: #0d1520;
    --surface: #16212f;
    --surface-2: #1c2a3a;
    --line: #2b3b4e;
    --danger: #ff8a80;
    --danger-soft: #3a1f1f;
    --info: #7cb7ff;
    --focus: #7cb7ff;
    --sh-1: 0 1px 2px rgba(0, 0, 0, .4);
    --sh-2: 0 4px 14px rgba(0, 0, 0, .35);
    --sh-3: 0 14px 36px rgba(0, 0, 0, .55);
    color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
    font-family: 'Hind', system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans Devanagari', sans-serif;
    font-size: 16px; line-height: 1.65;
    background: var(--bg); color: var(--ink);
    overflow-x: hidden; min-height: 100vh;
    padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right);
}
body.modal-open { overflow: hidden; }
h1, h2, h3, h4 { line-height: 1.35; font-weight: 700; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--brand-text); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; width: 100%; }
.mt-10 { margin-top: 10px; } .mt-20 { margin-top: 20px; } .mt-30 { margin-top: 30px; } .mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; } .mb-40 { margin-bottom: 40px; } .w-100 { width: 100%; }
.text-orange { color: var(--saffron); } .text-blue { color: var(--info); }
.hidden { display: none !important; }
.muted-text, .hint { color: var(--muted); font-size: 14px; }
.center-text { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 5000; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: var(--r-sm); text-decoration: none; font-weight: 600; }
.skip-link:focus { top: 12px; }
.noscript-msg { background: var(--danger-soft); color: var(--danger); padding: 14px; text-align: center; font-weight: 600; }
.field-error { color: var(--danger); font-size: 14px; margin-top: 6px; }
.field-error:empty { display: none; }

/* ---------- Buttons ---------- */
.btn-primary, .btn-dark, .btn-outline-green, .btn-create-poll, .btn-whatsapp, .btn-comment, .btn-report, .btn-search, .btn-google, .btn-hero-ghost {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 10px 20px; border-radius: 999px; border: 1px solid transparent;
    font-weight: 600; line-height: 1.2; text-decoration: none; transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s, transform .1s;
}
.btn-primary:active, .btn-create-poll:active, .btn-whatsapp:active, .btn-search:active { transform: scale(.98); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--sh-1); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-primary.logged-in { background: var(--surface-2); color: var(--brand-text); border-color: var(--line); box-shadow: none; }
.btn-primary.logged-in:hover { background: var(--brand-soft); }
.btn-dark { background: var(--ink); color: var(--bg); border-radius: var(--r-md); }
.btn-dark:hover { opacity: .9; }
.btn-dark:disabled { opacity: .5; cursor: not-allowed; }
.btn-outline-green { background: transparent; color: var(--brand-text); border-color: var(--brand-text); }
.btn-outline-green:hover { background: var(--brand-soft); }
.btn-small { min-height: 40px; padding: 6px 16px; font-size: 14px; }
.btn-create-poll { background: var(--saffron); color: #fff; padding: 12px 26px; font-size: 16px; box-shadow: 0 4px 12px rgba(194, 90, 0, .28); }
.btn-create-poll:hover { background: var(--saffron-dark); }
.btn-create-poll.compact { padding: 8px 18px; font-size: 14px; min-height: 40px; box-shadow: none; }
.btn-hero-ghost { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .6); padding: 12px 26px; font-size: 16px; }
.btn-hero-ghost:hover { background: rgba(255, 255, 255, .22); }
.btn-whatsapp { background: #1a8f45; color: #fff; }
.btn-whatsapp:hover { background: #15763a; }
/* दूसरे दर्जे की कार्रवाइयाँ शांत रखें, ताकि "शेयर" पर ध्यान जाए */
.btn-comment, .btn-report { background: transparent; color: var(--muted); border-color: transparent; padding: 8px 14px; }
.btn-comment:hover { background: var(--surface-2); color: var(--info); }
.btn-report:hover { background: var(--danger-soft); color: var(--danger); }
.disabled-btn, .btn-primary:disabled { background: var(--line) !important; color: var(--muted) !important; cursor: not-allowed !important; box-shadow: none !important; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: none; background: transparent; border-radius: 50%; font-size: 18px; color: var(--ink); position: relative; }
.icon-btn:hover { background: var(--surface-2); color: var(--brand-text); }

/* ---------- Header ---------- */
.navbar { background: var(--surface); position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--line); box-shadow: 0 1px 8px rgba(16, 24, 40, .05); padding-top: env(safe-area-inset-top); }
.nav-container { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; min-height: var(--header-h); padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; min-height: 44px; }
.logo-icon { background: var(--brand); color: #fff; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; flex: none; }
.logo-icon.small { width: 32px; height: 32px; font-size: 16px; border-radius: 9px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { color: var(--brand-text); font-size: 22px; font-weight: 700; }
.tagline { font-size: 12px; color: var(--muted); }
.nav-links { display: flex; gap: 4px; justify-self: center; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px; padding: 10px 16px; border-radius: 999px; display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; transition: background-color .15s, color .15s; }
.nav-links a:hover { background: var(--surface-2); color: var(--ink); }
.nav-links a.active { color: var(--brand-text); background: var(--brand-soft); }
.nav-actions { display: flex; align-items: center; gap: 6px; }
.location-dropdown-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); font-weight: 600; font-size: 14px; }
.location-dropdown-btn:hover { border-color: var(--brand-text); color: var(--brand-text); }
.notification-wrapper { position: relative; }
.notif-badge { position: absolute; top: 4px; right: 2px; background: var(--danger); color: #fff; font-size: 10px; font-weight: 700; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; display: grid; place-items: center; border: 2px solid var(--surface); line-height: 1; }
.notif-dropdown-menu { position: absolute; top: calc(100% + 8px); right: 0; width: 340px; width: min(340px, calc(100vw - 24px)); background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--sh-3); z-index: 1000; overflow: hidden; border: 1px solid var(--line); }
.notif-header { padding: 14px 16px; background: var(--surface-2); font-weight: 700; border-bottom: 1px solid var(--line); font-size: 14px; }
.notif-list { max-height: 340px; overflow-y: auto; }
.notif-item { display: flex; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.notif-item.unread { background: var(--brand-soft); }
.notif-icon { width: 36px; height: 36px; background: var(--brand-soft); color: var(--brand-text); border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 14px; }
.notif-text p { font-size: 14px; line-height: 1.5; }
.notif-text span { font-size: 12px; color: var(--muted); }
.notif-empty { padding: 28px 16px; text-align: center; color: var(--muted); }
.notif-empty i { font-size: 28px; display: block; margin-bottom: 8px; opacity: .6; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; text-align: center; padding: 56px 0 56px; background-color: var(--brand-deep);
    background-image: radial-gradient(circle at 15% 20%, rgba(76, 195, 138, .28), transparent 45%), radial-gradient(circle at 85% 80%, rgba(194, 90, 0, .22), transparent 40%), radial-gradient(rgba(255, 255, 255, .07) 1.5px, transparent 1.5px);
    background-size: auto, auto, 22px 22px; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: linear-gradient(90deg, #c25a00 0, #c25a00 33.3%, #ffffff 33.3%, #ffffff 66.6%, #138808 66.6%, #138808 100%); }
.hero-content { position: relative; z-index: 1; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .28); padding: 4px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.hero-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #ff6b5c; animation: blinker 1.6s ease-in-out infinite; }
.hero h1 { font-size: 30px; font-size: clamp(28px, 5.2vw, 46px); margin-bottom: 10px; }
.hero p { font-size: 17px; font-size: clamp(16px, 2.2vw, 20px); color: rgba(255, 255, 255, .92); max-width: 36em; margin: 0 auto; }
.hero-cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-stats { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-stats:empty { display: none; }
.hero-stat { min-width: 120px; padding: 10px 18px; border-radius: var(--r-md); background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); }
.hero-stat strong { display: block; font-size: 24px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.hero-stat span { font-size: 13px; color: rgba(255, 255, 255, .85); }
.filter-toggle-container { margin-top: 22px; }
.btn-glass-toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; background: transparent; border: none; color: rgba(255, 255, 255, .95); padding: 8px 16px; border-radius: 999px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.btn-glass-toggle:hover { background: rgba(255, 255, 255, .12); }
#filter-arrow { transition: transform .2s; }
.expandable-filter { max-height: 0; opacity: 0; overflow: hidden; visibility: hidden; transition: max-height .3s ease, opacity .25s ease, margin-top .3s; margin-top: 0; }
.expandable-filter.show { max-height: 420px; opacity: 1; visibility: visible; margin-top: 14px; padding: 14px; }
.glass-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); color: var(--ink); }
.search-filter-inner { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; align-items: stretch; text-align: left; }
.filter-col-wide { grid-column: span 3; }
.filter-col select:disabled { opacity: .5; }
.filter-col { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 8px 14px; background: var(--surface-2); border-radius: var(--r-md); border: 1px solid var(--line); min-width: 0; }
.filter-col:focus-within { border-color: var(--brand-text); }
.filter-label { font-size: 12px; color: var(--muted); }
.filter-col select, .filter-col input { border: none; background: transparent; font-weight: 600; font-size: 16px; outline: none; width: 100%; min-height: 28px; }
.filter-col select option { color: #1b2733; }
.btn-search { background: var(--saffron); color: #fff; border-radius: var(--r-md); padding: 10px 28px; }
.btn-search:hover { background: var(--saffron-dark); }

/* ---------- "कैसे काम करता है" पट्टी ---------- */
.highlights-section { background: var(--surface); border-bottom: 1px solid var(--line); padding: 18px 0; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.step { display: flex; align-items: center; gap: 12px; padding: 8px 4px; }
.step-num { width: 40px; height: 40px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-text); display: grid; place-items: center; font-weight: 700; font-size: 18px; flex: none; }
.step strong { display: block; line-height: 1.3; }
.step span { font-size: 14px; color: var(--muted); line-height: 1.4; display: block; }

/* ---------- Layout ---------- */
.main-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; width: 100%; align-items: start; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; flex-wrap: wrap; gap: 8px; }
.section-header h2 { font-size: 20px; position: relative; padding-left: 14px; }
.section-header h2::before { content: ""; position: absolute; left: 0; top: .25em; bottom: .25em; width: 4px; border-radius: 4px; background: var(--saffron); }
.view-all-btn { background: none; border: none; color: var(--brand-text); font-weight: 600; font-size: 14px; min-height: 44px; padding: 0 6px; border-radius: var(--r-sm); }
.view-all-btn:hover { text-decoration: underline; }
.screen-view:focus { outline: none; }

/* ---------- Poll card ---------- */
.poll-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-1); margin-bottom: 20px; transition: box-shadow .2s, border-color .2s; }
.poll-card:hover { box-shadow: var(--sh-2); border-color: #c4d2c9; }
:root.dark-theme .poll-card:hover { border-color: #3a4d63; }
.poll-card-top { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
.poll-media { position: relative; isolation: isolate; overflow: hidden; background: var(--surface-2); min-height: 200px; }
.poll-media > img { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.poll-media::after { content: ""; z-index: 1; position: absolute; left: 0; right: 0; bottom: 0; height: 55%; background: linear-gradient(to top, rgba(8, 14, 22, .65), transparent); pointer-events: none; }
.location-tag { position: absolute; z-index: 2; left: 12px; bottom: 12px; max-width: calc(100% - 24px); background: rgba(255, 255, 255, .95); color: #1b2733; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; line-height: 1.45; }
.poll-body { padding: 22px 24px; display: flex; flex-direction: column; min-width: 0; }
.poll-meta { min-height: 30px; margin-bottom: 8px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.timer-badge { display: inline-flex; align-items: center; gap: 6px; color: #fff; padding: 3px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; line-height: 1.6; }
.timer-badge:empty { display: none; }
.badge-green { background: #1a7f45; } .badge-orange { background: #b45309; } .badge-red { background: #b42318; }
.badge-dark { background: #26323f; color: #f5d56a; }
.blink-danger { animation: blinker 1.6s ease-in-out infinite; }
@keyframes blinker { 50% { opacity: .5; } }
.trending-badge { position: absolute; top: 12px; right: 12px; z-index: 2; background: var(--danger); color: #fff; padding: 3px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; box-shadow: var(--sh-2); }
.poll-question { font-size: 22px; margin-bottom: 16px; overflow-wrap: anywhere; }
.poll-question a { color: var(--ink); text-decoration: none; }
.poll-question a:hover { color: var(--brand-text); text-decoration: underline; }

.party-row { position: relative; isolation: isolate; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 8px 14px 8px 10px; margin-bottom: 10px; text-align: left; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; color: var(--ink); cursor: default; transition: border-color .15s, background-color .15s, transform .1s; }
.party-row:disabled { color: var(--ink); opacity: 1; }
.progress-fill { position: absolute; top: 0; bottom: 0; left: 0; width: 0; width: var(--pct, 0%); background: var(--opt-color, var(--brand)); opacity: .16; z-index: -1; transition: width .7s cubic-bezier(.2, .8, .2, 1); }
.party-row.leading .progress-fill { opacity: .28; }
.party-row.clickable { cursor: pointer; }
.party-row.clickable:hover { border-color: var(--opt-color, var(--brand)); background: var(--surface); }
.party-row.clickable:active { transform: scale(.992); }
.party-row.selected { border-color: var(--brand-text); box-shadow: inset 0 0 0 1px var(--brand-text); }
.party-row.dimmed { opacity: .85; }
.party-row.winner-row { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.party-row.dimmed-result { opacity: .72; }
.progress-fill.gold-bar { background: var(--gold); opacity: .3; }
.party-logo { width: 38px; height: 38px; border-radius: 50%; background: var(--opt-color, var(--brand)); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; overflow: hidden; }
.party-logo img { width: 100%; height: 100%; object-fit: cover; }
.party-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.party-name { font-weight: 600; overflow-wrap: anywhere; line-height: 1.4; }
.party-votes { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.your-vote { color: var(--brand-text); font-weight: 700; }
.party-pct { font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums; flex: none; }
.winner-crown { color: #c58a00; }
.vote-hint { font-size: 14px; color: var(--muted); margin: 4px 0 0; display: flex; gap: 8px; align-items: flex-start; }
.vote-hint::before { content: "\f05a"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: var(--info); font-size: 13px; line-height: 1.9; }
.poll-action-bar { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.poll-body > .vote-hint + .poll-action-bar { margin-top: 16px; }
.total-votes-highlight { font-weight: 600; color: var(--muted); font-size: 14px; }
.total-votes-highlight span { color: var(--brand-text); font-size: 22px; font-weight: 700; margin-left: 4px; font-variant-numeric: tabular-nums; }
.poll-actions { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.poll-actions > button { font-size: 14px; }
.poll-actions > .btn-whatsapp { padding: 8px 18px; margin-left: 4px; }
.watermark { display: none; font-size: 12px; color: var(--muted); font-weight: 700; text-align: right; margin-top: 8px; }
.poll-card.generating .watermark { display: block; }
.poll-card.generating .poll-action-bar, .poll-card.generating .trending-badge, .poll-card.generating .comments-container { display: none; }
.load-more-wrap { text-align: center; margin: 4px 0 20px; }


/* ---------- फोटो ऑटो-स्लाइडर (डिफ़ॉल्ट पोल-फोटो) ---------- */
.poll-slider { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; }
.poll-slider-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1); transition: opacity 1.2s ease-in-out, transform 6s ease-out; }
.poll-slider-img.active { opacity: 1; transform: scale(1.05); }
@media (prefers-reduced-motion: reduce) { .poll-slider-img, .poll-slider-img.active { transition: none; transform: none; } }

/* ---------- Comments ---------- */
.comments-container { border-top: 1px solid var(--line); background: var(--surface-2); padding: 16px 20px; }
.comments-note { font-size: 13px; color: var(--muted); margin-bottom: 12px; display: flex; gap: 8px; align-items: flex-start; }
.comments-list { max-height: 260px; overflow-y: auto; margin-bottom: 12px; }
.comment-item { display: flex; gap: 12px; margin-bottom: 10px; background: var(--surface); padding: 12px; border-radius: var(--r-md); border: 1px solid var(--line); }
.comment-avatar { width: 36px; height: 36px; background: var(--line); color: var(--ink); border-radius: 50%; display: grid; place-items: center; font-weight: 700; flex: none; }
.comment-avatar.own { background: var(--brand); color: #fff; }
.comment-body { min-width: 0; flex: 1; }
.comment-header { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.comment-name { font-weight: 700; font-size: 14px; }
.comment-date { font-size: 12px; color: var(--muted); }
.comment-text { font-size: 15px; overflow-wrap: anywhere; }
.comment-input-area { display: flex; gap: 8px; align-items: center; background: var(--surface); padding: 6px 6px 6px 10px; border-radius: 999px; border: 1px solid var(--line); }
.comment-input-area:focus-within { border-color: var(--brand-text); }
.comment-input { flex: 1; min-width: 0; border: none; background: transparent; outline: none; font-size: 16px; padding: 8px 4px; }
.btn-post { background: var(--brand); color: #fff; border: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.btn-post:hover { background: var(--brand-dark); }

/* ---------- Lists, stats, empty ---------- */
.empty-state { text-align: center; padding: 40px 20px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--r-xl); color: var(--muted); }
.empty-state > i { width: 72px; height: 72px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-text); display: inline-grid; place-items: center; font-size: 30px; margin-bottom: 14px; opacity: 1; }
.empty-state p { font-weight: 600; margin-bottom: 14px; }
.empty-state > :last-child { margin-bottom: 0; }
#recent-polls-list { padding: 0; }
.recent-item { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; min-height: 44px; }
.recent-item:last-child { border-bottom: none; }
.recent-info { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.recent-loc { font-size: 13px; color: var(--brand-text); font-weight: 600; overflow-wrap: anywhere; }
.recent-q { font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.recent-votes { font-size: 13px; color: var(--muted); }
.recent-item:hover .recent-q { color: var(--brand-text); text-decoration: underline; }
.recent-item > i { color: var(--muted); }
.regional-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.region-card { display: flex; flex-direction: column; align-items: center; gap: 2px; background: var(--surface); padding: 18px 12px; border-radius: var(--r-lg); border: 1px solid var(--line); text-align: center; min-height: 44px; transition: border-color .15s, box-shadow .15s, transform .15s; }
.region-card i { color: var(--saffron); font-size: 20px; margin-bottom: 2px; }
.region-card span { font-size: 13px; color: var(--muted); }
.region-card:hover { border-color: var(--brand-text); box-shadow: var(--sh-2); transform: translateY(-2px); }
.top-state-card { padding: 18px; }
.top-state-inner { display: flex; align-items: center; gap: 14px; }
.top-state-inner > i { font-size: 22px; color: var(--saffron); width: 48px; height: 48px; border-radius: 14px; background: var(--saffron-soft); display: grid; place-items: center; flex: none; }
.top-state-inner span { display: block; font-size: 13px; color: var(--muted); }
.top-state-inner strong { font-size: 20px; display: block; line-height: 1.3; }
.top-state-inner small { color: var(--muted); }
.stats-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.stat-card { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px; }
.stat-card > i { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-text); display: grid; place-items: center; font-size: 18px; flex: none; }
.stat-card strong { font-size: 22px; display: block; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat-card span { font-size: 13px; color: var(--muted); }
.newsletter-box { padding: 18px; }
.newsletter-header { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.newsletter-header > i { font-size: 24px; color: var(--brand-text); }
.newsletter-header h3 { font-size: 17px; }
.newsletter-header p { font-size: 13px; color: var(--muted); }
.newsletter-box input { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2); margin-bottom: 10px; font-size: 16px; }
.newsletter-box input:disabled { opacity: .6; }
.related-panel { padding: 18px; }
.related-panel h2 { font-size: 17px; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.related-item { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; min-height: 44px; }
.related-item:last-child { border-bottom: none; }
.related-item:hover { color: var(--brand-text); text-decoration: underline; }

/* ---------- Skeleton ---------- */
.skeleton { background: linear-gradient(90deg, var(--surface-2) 25%, var(--line) 37%, var(--surface-2) 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: 8px; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.skeleton-card { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
.skeleton-img { min-height: 200px; border-radius: 0; }
.skeleton-body { padding: 24px; display: grid; gap: 14px; align-content: start; }
.skeleton-line { height: 20px; } .skeleton-line.w-80 { width: 80%; height: 26px; } .skeleton-line.w-50 { width: 50%; }

/* ---------- Back button / profile ---------- */
.back-link-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; font-weight: 600; }
.back-link-btn:hover { color: var(--brand-text); border-color: var(--brand-text); }
#search-results-title { font-weight: 500; font-size: 20px; color: var(--muted); }
#search-results-title strong { color: var(--ink); }
.profile-header { position: relative; overflow: hidden; padding: 40px 20px 24px; text-align: center; display: grid; justify-items: center; gap: 6px; }
.profile-header::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 84px; background-color: var(--brand-deep); background-image: radial-gradient(circle at 20% 30%, rgba(76, 195, 138, .3), transparent 50%), radial-gradient(rgba(255, 255, 255, .08) 1.5px, transparent 1.5px); background-size: auto, 20px 20px; }
.profile-header > * { position: relative; z-index: 1; }
.profile-header h2 { color: var(--ink); margin-top: 6px; overflow-wrap: anywhere; }
.profile-header .btn-dark { margin-top: 12px; }
.profile-avatar { width: 88px; height: 88px; background: var(--brand-soft); color: var(--brand-text); font-size: 36px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; border: 4px solid var(--surface); box-shadow: var(--sh-2); }
.profile-stats { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.profile-stat { min-width: 110px; padding: 8px 16px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); }
.profile-stat strong { display: block; font-size: 20px; line-height: 1.2; }
.profile-stat span { font-size: 13px; color: var(--muted); }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.my-polls-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.my-poll-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--sh-1); }
.my-poll-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.my-poll-head h3 { font-size: 16px; overflow-wrap: anywhere; }
.my-poll-stats { display: flex; gap: 6px 16px; flex-wrap: wrap; font-size: 13px; font-weight: 600; color: var(--muted); }
.my-poll-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.status-badge { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; flex: none; }
.status-live { background: #fff1d6; color: #8a4b00; } .status-done { background: var(--brand-soft); color: var(--brand-text); } .status-review { background: var(--danger-soft); color: var(--danger); }
:root.dark-theme .status-live { background: #3a2a10; color: #ffc46b; }
.status-badge .fa-circle { font-size: 8px; }

/* ---------- Modals ---------- */
.modal-overlay { position: fixed; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; background: rgba(8, 14, 22, .62); display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; -webkit-box-align: center; -ms-flex-align: center; align-items: center; padding: 12px; z-index: 1000; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.modal-content { background: var(--surface); padding: 28px; position: relative; width: 100%; max-height: 90vh; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow-y: auto; border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh-3); animation: popIn .22s ease-out; }
@keyframes popIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-narrow { max-width: 420px; text-align: center; }
.modal-medium { max-width: 560px; }
.modal-wide { max-width: 800px; padding: 0; }
.close-modal { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; display: grid; place-items: center; background: none; border: none; font-size: 20px; color: var(--muted); border-radius: 50%; z-index: 10; }
.close-modal:hover { color: var(--danger); background: var(--surface-2); }
.close-modal.static { position: static; margin-left: auto; }
.modal-header { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 5; border-radius: var(--r-xl) var(--r-xl) 0 0; }
.modal-header h3 { font-size: 18px; }
.modal-body { padding: 28px; }
.modal-header-custom { position: relative; text-align: center; margin-bottom: 24px; padding-top: 40px; }
.modal-header-custom h2 { color: var(--brand-text); font-size: 24px; margin-bottom: 4px; }
.modal-header-custom p { color: var(--muted); }
.back-btn { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 4px 10px; background: none; border: none; color: var(--muted); font-weight: 600; border-radius: var(--r-sm); }
.back-btn:hover { color: var(--brand-text); background: var(--surface-2); }
.auth-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-text); display: inline-grid; place-items: center; font-size: 32px; margin-bottom: 10px; }
.auth-text { color: var(--muted); margin: 8px 0 16px; font-size: 15px; }
.auth-perks { list-style: none; text-align: left; display: grid; gap: 8px; margin: 0 0 20px; padding: 14px 16px; background: var(--surface-2); border-radius: var(--r-md); font-size: 14.5px; }
.auth-perks li { display: flex; gap: 10px; align-items: flex-start; }
.auth-perks i { color: var(--brand-text); margin-top: 6px; font-size: 13px; }
.auth-note { font-size: 13px; color: var(--muted); margin-top: 14px; }
.btn-google { background: #fff; border-color: #c9d0cc; color: #1b2733; width: 100%; font-size: 16px; box-shadow: var(--sh-1); }
.btn-google:hover { background: #f4f7f5; }
.btn-google:disabled { opacity: .7; cursor: wait; }
.cropper-box { max-height: 400px; overflow: hidden; background: var(--surface-2); border-radius: var(--r-sm); margin: 14px 0; }
.cropper-box img { max-width: 100%; display: block; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

/* ---------- Forms ---------- */
.form-group label, .form-group .group-label { display: block; font-weight: 600; margin-bottom: 6px; }
.custom-input, .location-form select { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); font-size: 16px; background: var(--surface-2); color: var(--ink); outline: none; transition: border-color .15s, box-shadow .15s; }
.custom-input:focus, .location-form select:focus { border-color: var(--brand-text); box-shadow: 0 0 0 3px rgba(11, 122, 73, .22); }
textarea.custom-input { resize: vertical; }
.location-form .form-group { margin-bottom: 16px; }
.option-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.option-input-wrapper { display: flex; align-items: center; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); flex: 1; min-width: 0; overflow: hidden; }
.option-input-wrapper:focus-within { border-color: var(--brand-text); box-shadow: 0 0 0 3px rgba(11, 122, 73, .22); }
.option-number { padding: 0 12px; align-self: stretch; display: grid; place-items: center; background: var(--line); font-weight: 700; color: var(--muted); min-width: 44px; }
.option-input-wrapper .custom-input { border: none; border-radius: 0; box-shadow: none !important; }
.btn-remove-option { background: var(--danger-soft); color: var(--danger); border: none; width: 48px; height: 48px; border-radius: var(--r-sm); flex: none; }
.btn-remove-option:hover { background: var(--danger); color: #fff; }
.toggle-group { display: flex; justify-content: space-between; align-items: center; gap: 14px; background: var(--surface-2); padding: 14px; border-radius: var(--r-sm); border: 1px solid var(--line); }
.toggle-text label { margin-bottom: 0 !important; }
.switch { position: relative; display: inline-block; width: 52px; height: 30px; flex: none; }
.switch input { opacity: 0; width: 100%; height: 100%; position: absolute; top: 0; left: 0; margin: 0; cursor: pointer; z-index: 1; }
.slider { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: #8896a5; transition: .2s; border-radius: 30px; }
.slider::before { content: ""; position: absolute; height: 22px; width: 22px; left: 4px; bottom: 4px; background: #fff; transition: .2s; border-radius: 50%; }
.switch input:checked + .slider { background: var(--brand); }
.switch input:checked + .slider::before { transform: translateX(22px); }
.switch input:focus-visible + .slider { outline: 3px solid var(--focus); outline-offset: 2px; }
.category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.category-card { background: var(--surface); border: 1px solid var(--line); padding: 22px 16px; border-radius: var(--r-lg); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; transition: transform .15s, border-color .15s, box-shadow .15s; }
.category-card:hover { border-color: var(--brand-text); box-shadow: var(--sh-2); transform: translateY(-2px); }
.category-card h4 { font-size: 17px; }
.category-card p { font-size: 13px; color: var(--muted); line-height: 1.45; }
.cat-icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; margin-bottom: 8px; }
.step-subtitle { font-size: 16px; margin-bottom: 14px; }
.photo-upload-row { display: flex; align-items: center; gap: 16px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 12px; background: var(--surface-2); }
.photo-preview { position: relative; width: 80px; height: 80px; border-radius: var(--r-md); overflow: hidden; flex: none; border: 2px solid var(--line); padding: 0; background: var(--surface); }
.opt-thumbnail { width: 100%; height: 100%; object-fit: cover; display: block; }
.edit-overlay { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: rgba(0, 0, 0, .5); display: grid; place-items: center; color: #fff; opacity: 0; transition: opacity .15s; }
.photo-preview:hover .edit-overlay, .photo-preview:focus-visible .edit-overlay { opacity: 1; }
.photo-details { min-width: 0; flex: 1; }
.photo-details h4 { font-size: 16px; overflow-wrap: anywhere; }
.disclaimer-box { background: #fff7e0; border-left: 4px solid #e0a800; padding: 16px 18px; border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: 14px; line-height: 1.65; }
:root.dark-theme .disclaimer-box { background: #3a3114; }
.disclaimer-box h4 { margin-bottom: 6px; }
.agreement-checkbox { display: flex; align-items: center; gap: 10px; font-size: 16px; min-height: 44px; cursor: pointer; }
.agreement-checkbox input { width: 22px; height: 22px; accent-color: var(--brand); flex: none; }
.agreement-checkbox span { font-weight: 700; color: var(--brand-text); }

/* ---------- Footer ---------- */
.footer { background: var(--brand-deep); color: rgba(255, 255, 255, .85); padding: 32px 0 calc(32px + env(safe-area-inset-bottom)); border-top: 5px solid var(--saffron); }
.footer-content { display: grid; gap: 14px; }
.footer-brand { display: flex; flex-direction: column; }
.footer-brand strong { color: #fff; font-size: 22px; }
.footer-brand span { color: rgba(255, 255, 255, .75); font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; color: #fff; }
.footer-links a:hover { text-decoration: underline; }
.footer-note { font-size: 13px; color: rgba(255, 255, 255, .72); max-width: 70ch; }
.footer-copy { font-size: 13px; color: rgba(255, 255, 255, .6); }

/* ---------- Mobile bottom navigation ---------- */
.bottom-nav { display: none; }

/* ---------- Toast ---------- */
.toast-region { position: fixed; left: 0; right: 0; bottom: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); display: flex; justify-content: center; padding: 0 12px; z-index: 3000; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; max-width: 520px; padding: 12px 20px; border-radius: 14px; color: #fff; font-weight: 600; font-size: 15px; line-height: 1.45; box-shadow: var(--sh-3); opacity: 0; transform: translateY(16px); transition: opacity .25s, transform .25s; }
.toast.show { opacity: 1; transform: none; }
.toast-success { background: #0b7a49; } .toast-error { background: #b42318; } .toast-info { background: #26323f; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .main-grid { grid-template-columns: minmax(0, 1fr); }
    .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .search-filter-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .filter-col-wide, .btn-search { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
    body { padding-bottom: 64px; padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom)); }
    .nav-container { grid-template-columns: 1fr auto; }
    .nav-links, .location-dropdown-btn { display: none; }
    html { scroll-padding-top: 80px; }
    .toast-region { bottom: 76px; bottom: calc(var(--bottom-nav-h) + 12px + env(safe-area-inset-bottom)); }
    .notif-dropdown-menu { position: fixed; left: 12px; right: 12px; width: auto; top: 72px; }
    .poll-card-top, .skeleton-card { grid-template-columns: minmax(0, 1fr); }
    .poll-media, .skeleton-img { min-height: 0; height: 150px; }
    .poll-body { padding: 18px 16px; }
    .poll-question { font-size: 20px; }
    .steps { grid-template-columns: minmax(0, 1fr); gap: 0; }

    .bottom-nav { display: flex; align-items: stretch; justify-content: space-around; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -2px 12px rgba(16, 24, 40, .08); padding: 0 4px env(safe-area-inset-bottom); min-height: var(--bottom-nav-h); }
    .bottom-nav a, .bottom-nav button.bn-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 56px; background: none; border: none; text-decoration: none; color: var(--muted); font-size: 12px; font-weight: 600; line-height: 1.2; position: relative; }
    .bottom-nav a i, .bottom-nav button.bn-item i { font-size: 20px; }
    .bottom-nav a.active, .bottom-nav button.bn-item.active { color: var(--brand-text); }
    .bottom-nav a.active::before, .bottom-nav button.bn-item.active::before { content: ""; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--brand-text); }
    .bn-create { flex: none; align-self: flex-start; width: 56px; height: 56px; margin-top: -18px; border-radius: 50%; border: 4px solid var(--bg); background: var(--saffron); color: #fff; font-size: 22px; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(194, 90, 0, .4); }
    .bn-create:active { transform: scale(.94); }
}
@media (max-width: 640px) {
    .hero { padding: 40px 0 44px; }
    .hero-stat { min-width: 0; flex: 1 1 28%; padding: 8px 10px; }
    .hero-stat strong { font-size: 20px; }
    .hero-cta > a, .hero-cta > button { flex: 1 1 100%; }
    .modal-content { padding: 22px 16px; }
    .modal-wide { padding: 0; }
    #poll-creator-modal { padding: 0; align-items: stretch; }
    #poll-creator-modal .modal-content { max-width: none; max-height: none; height: 100%; border-radius: 0; border: none; animation: sheetUp .25s ease-out; }
    #poll-creator-modal .modal-header { border-radius: 0; padding-top: calc(10px + env(safe-area-inset-top)); }
    .modal-body { padding: 20px 16px; }
    .category-grid { grid-template-columns: minmax(0, 1fr); }
    .category-card { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 14px; row-gap: 0; align-items: center; text-align: left; padding: 14px; }
    .category-card .cat-icon { grid-row: 1 / span 2; margin: 0; width: 52px; height: 52px; }
    .category-card h4 { align-self: end; }
    .category-card p { align-self: start; }
    .search-filter-inner { grid-template-columns: minmax(0, 1fr); }
    .filter-col-wide { grid-column: auto; }
    .photo-upload-row { flex-direction: column; align-items: stretch; }
    .photo-preview { width: 100%; height: 150px; }
    .mobile-upload-btn { width: 100%; }
    .poll-action-bar { flex-direction: column; align-items: stretch; }
    .poll-actions { width: 100%; justify-content: space-between; }
    .poll-actions > .btn-whatsapp { margin-left: auto; }
    .comments-container { padding: 14px 12px; }
    .modal-actions > button { flex: 1; }
}
@media (max-width: 420px) {
    .container { padding: 0 12px; }
    .tagline { display: none; }
    .brand-name { font-size: 20px; }
    #login-btn { width: 44px; padding: 0; border-radius: 50%; }
    #login-btn .btn-text { display: none; }
    .party-logo { width: 34px; height: 34px; }
    .section-header h2 { font-size: 18px; }
    .poll-actions > button { padding: 8px 10px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------- हमसे जुड़ें ड्रॉपडाउन ---------- */
.social-toggle-btn { border: none; padding: 8px 12px; min-height: 44px; }
.social-toggle-btn .btn-text { margin-left: 2px; }
.social-dropdown { width: 220px; }
.social-link-item { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 16px; color: var(--ink); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--line); }
.social-link-item:last-child { border-bottom: none; }
.social-link-item:hover { background: var(--surface-2); color: var(--brand-text); }
.social-link-item i { font-size: 18px; width: 22px; text-align: center; }
.social-empty { font-size: 13px; text-align: center; padding: 15px; color: var(--muted); }

/* ---------- प्रोफ़ाइल: डिलीट बटन / लॉक बटन ---------- */
.btn-danger-outline { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; border: 1px solid var(--danger); background: transparent; color: var(--danger); font-weight: 600; line-height: 1.2; }
.btn-danger-outline:hover { background: var(--danger-soft); }
.btn-outline-green:disabled { opacity: .55; cursor: not-allowed; background: transparent; }
@media (max-width: 860px) { .social-dropdown { width: auto; } }
@media (max-width: 420px) {
    .social-toggle-btn { width: 44px; padding: 0; border-radius: 50%; }
    .social-toggle-btn .btn-text { display: none; }
}

/* ---------- Picker (लिखो और चुनो) + लोकेशन फ़ॉर्म ---------- */
.loc-field .form-group { margin-bottom: 16px; }
.opt-tag { font-weight: 400; font-size: 13px; color: var(--muted); }
.picker-box { position: relative; }
.picker-input { padding-right: 44px; }
.picker-clear { position: absolute; top: 2px; right: 2px; width: 44px; height: 44px; border: none; background: none; color: var(--muted); border-radius: var(--r-sm); }
.picker-clear:hover { color: var(--danger); }
.picker-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20; max-height: 260px; overflow-y: auto; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--sh-3); }
.picker-opt { padding: 11px 14px; min-height: 44px; cursor: pointer; border-bottom: 1px solid var(--line); line-height: 1.4; }
.picker-opt:last-child { border-bottom: none; }
.picker-opt:hover, .picker-opt.active { background: var(--brand-soft); color: var(--brand-text); }
.picker-new { color: var(--saffron); font-weight: 700; }
.picker-msg { padding: 12px 14px; color: var(--muted); font-size: 14px; }
.picker-hint { margin-top: 6px; font-size: 13px; }
.auto-note { margin: -8px 0 14px; font-size: 14px; color: var(--brand-text); display: flex; gap: 8px; align-items: baseline; }

/* ---------- फुटर v3 (3 कॉलम + अस्वीकरण) ---------- */
.footer { background: #04231a; color: rgba(255, 255, 255, .86); border-top: 4px solid var(--saffron); padding: 40px 0 calc(24px + env(safe-area-inset-bottom)); }
.footer-content { display: block; }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-col h2 { font-size: 18px; color: #4cc38a; padding-bottom: 10px; margin-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, .14); display: flex; align-items: center; gap: 10px; }
.footer-col h2 i { font-size: 15px; color: #f5c46b; }
.footer-list { list-style: none; display: grid; gap: 2px; }
.footer-list a { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; color: rgba(255, 255, 255, .9); text-decoration: none; font-size: 15px; }
.footer-list a i { font-size: 12px; color: rgba(255, 255, 255, .55); }
.footer-list a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-socials { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.footer-social { width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .08); display: grid; place-items: center; font-size: 20px; transition: background-color .15s, transform .15s; }
.footer-social:hover { background: rgba(255, 255, 255, .16); transform: translateY(-2px); }
.btn-wa-channel { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 10px 16px; border-radius: 12px; background: #22c55e; color: #052e16; font-weight: 700; text-decoration: none; margin-bottom: 16px; }
.btn-wa-channel:hover { background: #16a34a; color: #fff; }
.btn-wa-channel i { font-size: 20px; }
.footer-newsletter { background: rgba(255, 255, 255, .04); border: 1px solid rgba(76, 195, 138, .35); border-radius: 14px; padding: 14px; }
.footer-newsletter h3 { font-size: 15px; color: #fff; margin-bottom: 10px; display: flex; gap: 8px; align-items: center; }
.footer-newsletter form { display: grid; gap: 8px; }
.footer-newsletter input { width: 100%; min-height: 44px; padding: 10px 14px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(0, 0, 0, .35); color: #fff; font-size: 16px; }
.footer-newsletter input::placeholder { color: rgba(255, 255, 255, .55); }
.footer-newsletter button { min-height: 44px; border: none; border-radius: 10px; background: #10b981; color: #052e16; font-weight: 700; }
.footer-newsletter button:hover { background: #34d399; }
.footer-fine, .footer-muted { font-size: 12.5px; color: rgba(255, 255, 255, .6); margin-top: 8px; line-height: 1.5; }
.footer-fine a, .footer-disclaimer a, .footer-bottom a { color: #9be7c3; }
.footer-disclaimer { margin-top: 32px; padding: 16px 18px; border-radius: 12px; background: rgba(0, 0, 0, .28); border: 1px solid rgba(255, 255, 255, .1); font-size: 13.5px; line-height: 1.7; color: rgba(255, 255, 255, .8); }
.footer-disclaimer strong { color: #fff; }
.footer-disclaimer i { color: #f5c46b; }
.footer-source { margin-top: 6px; font-size: 12.5px; color: rgba(255, 255, 255, .6); }
.footer-bottom { margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 13px; color: rgba(255, 255, 255, .6); }
@media (max-width: 860px) {
    .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-col:last-child { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
    .footer-cols { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}

/* ---------- जानकारी वाले पेज ---------- */
.page-wrap { max-width: 860px; }
.info-page { padding: 28px 32px; line-height: 1.8; }
.info-page h1 { font-size: 28px; color: var(--brand-text); margin-bottom: 14px; }
.info-page h2 { font-size: 19px; margin: 22px 0 8px; }
.info-page p { margin-bottom: 10px; }
.info-page ul, .info-page ol { padding-left: 22px; margin-bottom: 12px; display: grid; gap: 6px; }
.info-page .lead { font-size: 17px; }
.info-page a { font-weight: 600; }
.steps-list li { padding-left: 4px; }
.info-box { background: var(--surface-2); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: var(--r-sm); padding: 14px 16px; font-size: 15px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 10px; background: var(--surface); }
.faq-item summary { cursor: pointer; padding: 14px 16px; font-weight: 700; min-height: 48px; list-style-position: inside; }
.faq-item[open] summary { border-bottom: 1px solid var(--line); color: var(--brand-text); }
.faq-item p { padding: 12px 16px; margin: 0; }
.contact-socials { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 6px; }
.social-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); background: var(--surface-2); }
.feedback-form { margin-top: 10px; }
.feedback-form .form-group { margin-bottom: 14px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.success-box { background: var(--brand-soft); color: var(--brand-text); border-radius: var(--r-md); padding: 16px; font-weight: 600; display: flex; gap: 10px; align-items: flex-start; }
@media (max-width: 640px) {
    .info-page { padding: 20px 16px; }
    .info-page h1 { font-size: 23px; }
    .form-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
}

/* ---------- चुनावी मौन अवधि: नतीजे छिपे ---------- */
.results-hidden-banner { background: #fff4d6; color: #6b4300; border-bottom: 1px solid #f0d58a; padding: 10px 0; font-size: 14.5px; font-weight: 600; }
.results-hidden-banner .container { display: flex; gap: 10px; align-items: flex-start; }
:root.dark-theme .results-hidden-banner { background: #3a2f12; color: #ffd98a; border-color: #5a4a1d; }
.poll-card.results-masked .party-pct,
.poll-card.results-masked .party-votes .pv-num,
.poll-card.results-masked .progress-fill,
.poll-card.results-masked .total-votes-highlight,
.poll-card.results-masked .winner-mark { display: none !important; }
.poll-card.results-masked .party-votes { font-size: 0; }
.poll-card.results-masked .party-votes .your-vote { font-size: 12.5px; }
.poll-card.results-masked .party-row.winner-row { border-color: var(--line); box-shadow: none; }
.poll-card.results-masked .party-row.dimmed-result { opacity: 1; }
.poll-card.results-masked .poll-action-bar::before { content: "नतीजे अभी छिपे हैं"; font-size: 13px; font-weight: 700; color: var(--muted); }
.results-hidden .recent-votes { visibility: hidden; }

/* ---------- हीरो: पीछे बदलती तस्वीरें ---------- */
.hero { isolation: isolate; }
.hero-slides { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: -2; overflow: hidden; }
.hero-slide { position: absolute; top: 0; right: 0; bottom: 0; left: 0; opacity: 0; transition: opacity 1.4s ease-in-out; }
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); transform: scale(1.02); transition: transform 7s ease-out; }
.hero-slide.active img { transform: scale(1.08); }
/* टेक्स्ट साफ़ पढ़ा जाए: ऊपर गहरी हरी परत */
.hero::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(180deg, rgba(4, 35, 26, .55) 0%, rgba(4, 35, 26, .62) 45%, rgba(4, 35, 26, .82) 100%); }
.hero h1, .hero p, .hero-eyebrow { text-shadow: 0 2px 12px rgba(0, 0, 0, .45); }
.hero-dots { position: absolute; left: 0; right: 0; bottom: 12px; z-index: 2; display: flex; justify-content: center; gap: 4px; }
.hero-dots button { width: 28px; height: 28px; border: none; background: none; display: grid; place-items: center; padding: 0; }
.hero-dots button::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .5); transition: width .2s, background-color .2s; }
.hero-dots button.active::after { width: 22px; border-radius: 4px; background: #fff; }
@media (prefers-reduced-motion: reduce) { .hero-slide, .hero-slide img { transition: none; transform: none; } .hero-slide.active img { transform: none; } }

/* ---------- विज्ञापन की जगहें (AdSense / घर के विज्ञापन) ---------- */
.ad-slot { margin: 8px 0 28px; }
.ad-slot.ad-pending { height: 0; margin: 0; overflow: hidden; }   /* भरने से पहले कोई जगह नहीं (पर स्क्रीन पर आने का पता चलता रहे) */
.ad-slot.ad-adsense { min-height: 280px; }
.ad-slot.ad-in-article { margin: 22px 0; }
.ad-label { font-size: 11px; letter-spacing: .04em; color: var(--muted); text-align: center; margin-bottom: 4px; text-transform: none; }
.ad-label.house { text-align: left; }
.grid-col-large > .ad-slot { margin-top: 28px; }   /* पोल पेज: वोट बटन से अच्छी दूरी */
.house-ad { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px dashed var(--line); border-radius: var(--r-lg); background: var(--surface); }
.house-ad > i { font-size: 26px; color: var(--saffron); flex: none; width: 36px; text-align: center; }
.house-ad > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.house-ad strong { line-height: 1.35; }
.house-ad span { font-size: 14px; color: var(--muted); }
@media (max-width: 640px) { .house-ad { flex-wrap: wrap; } .house-ad > a { width: 100%; } .ad-slot.ad-adsense { min-height: 250px; } }

/* ---------- प्रायोजित बैनर (लोगों के विज्ञापन) + अस्वीकरण ---------- */
.sponsor-wrap { margin-top: 32px; }
.sponsor-label { font-size: 12px; color: var(--muted); margin-bottom: 4px; font-weight: 600; }
.sponsor-banner { border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); max-width: 1000px; margin: 0 auto; }
.sponsor-banner img { display: block; width: 100%; height: auto; max-height: 260px; object-fit: contain; background: var(--surface-2); }
.sponsor-disclaimer { max-width: 1000px; margin: 8px auto 0; font-size: 12.5px; line-height: 1.6; color: var(--muted); }
.sponsor-disclaimer a { font-weight: 600; }
.sponsor-invite { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; padding: 12px 16px; border: 1px dashed var(--line); border-radius: var(--r-md); color: var(--muted); font-size: 14px; text-align: center; }
.sponsor-invite i { color: var(--saffron); }

/* ---------- विज्ञापन दें: फ़ॉर्म ---------- */
.ad-preview { margin-top: 10px; }
.ad-preview img { width: 100%; max-height: 220px; object-fit: contain; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2); }
.my-ad { display: flex; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 10px; }
.my-ad img { width: 140px; height: 46px; object-fit: cover; border-radius: 6px; flex: none; }
.my-ad > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.my-ad small { color: var(--muted); }
.ad-status { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 1px 10px; border-radius: 999px; background: var(--surface-2); }
.ad-status.st-pending { background: #fff1d6; color: #8a4b00; }
.ad-status.st-ok { background: var(--brand-soft); color: var(--brand-text); }
.ad-status.st-no { background: var(--danger-soft); color: var(--danger); }

/* ---------- पोल-कार्ड: श्रेणी बैज / संपादित ---------- */
.cat-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; line-height: 1.6;
    color: var(--cat, var(--brand)); background: var(--cat-bg, var(--surface-2)); border: 1px solid var(--cat-line, var(--line)); }
:root.dark-theme .cat-badge { color: #e7edf3; }
.cat-badge strong { font-weight: 700; }
.edited-mark { font-size: 12px; color: var(--muted); border: 1px dashed var(--line); border-radius: 999px; padding: 1px 8px; }

/* ---------- प्रोफ़ाइल: हटाने का अनुरोध ---------- */
.profile-btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }
.profile-header .profile-btns .btn-dark { margin-top: 0; }
.req-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: #8a4b00; background: #fff1d6; padding: 6px 12px; border-radius: 999px; }
:root.dark-theme .req-chip { background: #3a2a10; color: #ffc46b; }
.req-note { font-size: 13px; color: var(--danger); }
.del-form { margin-top: 4px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2); display: grid; gap: 6px; }
.del-form label { font-weight: 600; font-size: 14px; }
.del-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 6px; }
.removed-list { padding: 6px 16px; list-style: none; margin: 0; }
.removed-item { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.removed-item:last-child { border-bottom: none; }
/* ---------- शेयर: फोटो की झलक वाली खिड़की (features/share/image_generator.js _openSheet) ---------- */
.share-sheet h2 { font-size: 19px; margin: 4px 36px 12px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.share-sheet h2 i { color: var(--brand); }
.share-preview { display: block; width: 100%; max-height: 46vh; object-fit: contain; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); }
.share-hint { color: var(--muted); font-size: 14px; margin: 10px 0 12px; }
.share-actions { display: grid; gap: 8px; }
.share-actions button { min-height: 46px; border-radius: 12px; font-weight: 600; font-size: 15px; display: flex; align-items: center; justify-content: center; gap: 8px; border: none; cursor: pointer; font-family: inherit; }
.share-actions .share-main { font-size: 16px; min-height: 52px; }
.share-actions .share-alt { background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); }
.share-actions .share-alt:hover { border-color: var(--brand); }

