
:root {
    --primary: #0052cc;
    --primary-light: #4d8fff;
    --primary-dark: #003d99;
    --accent: #00b894;
    --accent-light: #55efc4;
    --secondary: #e17055;
    --bg: #f7f9fc;
    --surface: #ffffff;
    --text: #0b1b2b;
    --text-secondary: #4a5568;
    --border: #e1e8ed;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 4px 24px rgba(0,0,0,0.06);
    --shadow-hover: 0 12px 40px rgba(0,82,204,0.12);
    --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    /* Elevation scale */
    --elevation-1: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
    --elevation-2: 0 4px 6px rgba(0,0,0,0.04), 0 2px 4px rgba(0,0,0,0.06);
    --elevation-3: 0 10px 20px rgba(0,0,0,0.04), 0 4px 8px rgba(0,0,0,0.06);
    --elevation-4: 0 15px 30px rgba(0,0,0,0.06), 0 5px 15px rgba(0,0,0,0.04);
    --elevation-5: 0 20px 40px rgba(0,0,0,0.08), 0 8px 20px rgba(0,0,0,0.06);
    /* Fluid Typography */
    --fs-display: clamp(2rem, 4vw, 3.2rem);
    --fs-h1: clamp(1.5rem, 3vw, 2.2rem);
    --fs-h2: clamp(1.2rem, 2.5vw, 1.6rem);
    --fs-h3: clamp(1rem, 2vw, 1.25rem);
    --fs-body: 0.95rem;
    --fs-small: 0.85rem;
    --fs-caption: 0.75rem;
    /* Card bg (separate from surface for dark mode) */
    --bg-card: #ffffff;
    --bg-secondary: #f0f2f5;
}
/* ── Dark Mode ── */
[data-theme="dark"] {
    --bg: #0f1117;
    --surface: #1a1d27;
    --bg-card: #1e2130;
    --bg-secondary: #252836;
    --text: #e4e6eb;
    --text-secondary: #9aa0a6;
    --border: #2d3139;
    --shadow: 0 4px 24px rgba(0,0,0,0.4);
    --shadow-hover: 0 12px 40px rgba(0,82,204,0.25);
    --elevation-1: 0 1px 3px rgba(0,0,0,0.2);
    --elevation-2: 0 4px 6px rgba(0,0,0,0.25);
    --elevation-3: 0 10px 20px rgba(0,0,0,0.3);
    --elevation-4: 0 15px 30px rgba(0,0,0,0.35);
    --elevation-5: 0 20px 40px rgba(0,0,0,0.4);
    --primary-light: #5a9bff;
    --accent-light: #3dddab;
}
[data-theme="dark"] .navbar-cr { background: rgba(15,17,23,0.92); border-bottom-color: var(--border); }
[data-theme="dark"] .footer-cr { background: #0a0c12; }
[data-theme="dark"] .card-cr { background: var(--bg-card); border-color: var(--border); }
[data-theme="dark"] .hero { background: linear-gradient(135deg, #001a4d 0%, #2d1b69 40%, #004d3d 100%); }
[data-theme="dark"] input, [data-theme="dark"] select, [data-theme="dark"] textarea {
    background: var(--bg-secondary); color: var(--text); border-color: var(--border);
}
[data-theme="dark"] .autocomplete-results { background: var(--bg-card); }
[data-theme="dark"] .ac-item:hover { background: var(--bg-secondary); }
[data-theme="dark"] .btn-cr.btn-outline-cr { border-color: var(--border); color: var(--text); }
[data-theme="dark"] .btn-cr.btn-outline-cr:hover { background: rgba(0,82,204,0.15); border-color: var(--primary); color: var(--primary-light); }
[data-theme="dark"] .star-rating-input label { color: var(--border); }
[data-theme="dark"] .alert-cr { border-color: var(--border); }
[data-theme="dark"] .party-badge { opacity: 0.92; filter: brightness(1.15) saturate(0.9); }
[data-theme="dark"] .rating-badge.good { background: rgba(0,184,148,0.15); color: #3dddab; }
[data-theme="dark"] .rating-badge.average { background: rgba(214,137,16,0.15); color: #f0c040; }
[data-theme="dark"] .rating-badge.poor { background: rgba(214,48,49,0.15); color: #ff7675; }
[data-theme="dark"] .ut-badge { background: rgba(0,184,148,0.2); color: #3dddab; }
[data-theme="dark"] .state-card { background: var(--bg-card); border-color: var(--border); }
[data-theme="dark"] .state-card:hover { border-color: var(--primary-light); }
[data-theme="dark"] .state-card.ut-card { border-left-color: var(--accent-light); }
[data-theme="dark"] .related-leader-link { border-color: var(--border); background: var(--bg-card); }
[data-theme="dark"] .related-leader-link:hover { border-color: var(--primary-light); }
[data-theme="dark"] .legal-disclaimer { background: rgba(77,143,255,0.06); border-color: rgba(77,143,255,0.15); }
[data-theme="dark"] .data-source-badge.source-myneta { background: rgba(46,125,50,0.15); color: #66bb6a; }
[data-theme="dark"] .data-source-badge.source-prs { background: rgba(21,101,192,0.15); color: #64b5f6; }
[data-theme="dark"] .data-source-badge.source-eci { background: rgba(230,81,0,0.15); color: #ffb74d; }
[data-theme="dark"] .data-source-badge.source-data { background: var(--bg); }
[data-theme="dark"] .hero-search { background: var(--bg-card); box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
[data-theme="dark"] .hero-search input { color: var(--text); }
[data-theme="dark"] .section-title { color: var(--text); }
[data-theme="dark"] .activity-item { border-bottom-color: var(--border); }
[data-theme="dark"] .content-page { color: var(--text); }
[data-theme="dark"] .content-page h1, [data-theme="dark"] .content-page h2, [data-theme="dark"] .content-page h3 { color: var(--text); }
[data-theme="dark"] .cr-score-badge { filter: brightness(1.1); }
[data-theme="dark"] .summary-card { background: var(--bg-card); color: var(--text-secondary); border-left-color: var(--accent-light); }
[data-theme="dark"] .donate-tier { background: var(--bg-card); border-color: var(--border); }
[data-theme="dark"] .donate-tier.featured { border-color: var(--primary-light); }
[data-theme="dark"] table { color: var(--text); }
[data-theme="dark"] table td, [data-theme="dark"] table th { border-color: var(--border); }
[data-theme="dark"] .pulse-card { background: var(--bg-card); }
[data-theme="dark"] .nav-dropdown-menu { background: var(--bg-card); border-color: var(--border); }
[data-theme="dark"] .nav-dropdown-menu a:hover { background: var(--bg-secondary); }
[data-theme="dark"] .bottom-nav { background: var(--surface); border-top-color: var(--border); }
@media (prefers-color-scheme: dark) {
    html:not([data-theme="light"]) {
        --bg: #0f1117; --surface: #1a1d27; --bg-card: #1e2130; --bg-secondary: #252836;
        --text: #e4e6eb; --text-secondary: #9aa0a6; --border: #2d3139;
        --elevation-1: 0 2px 4px rgba(0,0,0,0.3);
        --elevation-2: 0 4px 6px rgba(0,0,0,0.25);
        --elevation-4: 0 15px 30px rgba(0,0,0,0.35);
        --primary-light: #5a9bff; --accent-light: #3dddab;
    }
    html:not([data-theme="light"]) .navbar-cr { background: rgba(15,17,23,0.92); border-bottom-color: var(--border); }
    html:not([data-theme="light"]) .footer-cr { background: #0a0c12; }
    html:not([data-theme="light"]) .card-cr { background: var(--bg-card); border-color: var(--border); }
    html:not([data-theme="light"]) .hero { background: linear-gradient(135deg, #001a4d 0%, #2d1b69 40%, #004d3d 100%); }
    html:not([data-theme="light"]) input, html:not([data-theme="light"]) select, html:not([data-theme="light"]) textarea { background: var(--bg-secondary); color: var(--text); border-color: var(--border); }
    html:not([data-theme="light"]) .autocomplete-results { background: var(--bg-card); }
    html:not([data-theme="light"]) .nav-dropdown-menu { background: var(--bg-card); border-color: var(--border); }
    html:not([data-theme="light"]) .bottom-nav { background: var(--surface); border-top-color: var(--border); }
    html:not([data-theme="light"]) .party-badge { opacity: 0.92; filter: brightness(1.15) saturate(0.9); }
    html:not([data-theme="light"]) .rating-badge.good { background: rgba(0,184,148,0.15); color: #3dddab; }
    html:not([data-theme="light"]) .rating-badge.average { background: rgba(214,137,16,0.15); color: #f0c040; }
    html:not([data-theme="light"]) .rating-badge.poor { background: rgba(214,48,49,0.15); color: #ff7675; }
    html:not([data-theme="light"]) .state-card { background: var(--bg-card); border-color: var(--border); }
    html:not([data-theme="light"]) .hero-search { background: var(--bg-card); }
    html:not([data-theme="light"]) .hero-search input { color: var(--text); }
    html:not([data-theme="light"]) .section-title { color: var(--text); }
    html:not([data-theme="light"]) .content-page { color: var(--text); }
}
*, *::before, *::after { box-sizing: border-box; }
/* Touch optimization — eliminate 300ms tap delay */
a, button, input, select, textarea, .btn-cr, .star-rating-input label, .poll-card, .leader-card, .bottom-nav-item, .trust-tab { touch-action: manipulation; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    margin: 0;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
    /* Safe area insets for notched phones */
    padding-top: env(safe-area-inset-top);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}
/* Touch targets minimum 44px for iOS/Android accessibility */
button, a.btn-cr, .state-card, .ac-item, input[type="radio"] + label {
    min-height: 44px;
}
/* Prevent iOS zoom on focus */
@media (max-width: 768px) {
    input, select, textarea { font-size: 16px !important; }
}
/* Smooth scrolling */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

/* ── Content visibility for performance ── */
.observe-animate { content-visibility: auto; contain-intrinsic-size: auto 300px; }

/* ── Long name truncation ── */
.leader-card h3, .state-card h3 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.leader-card .position { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-light); }

/* ── Navbar ── */
.navbar-cr {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 0.6rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.navbar-cr .nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.logo {
    font-weight: 900;
    font-size: 1.6rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.logo-icon { flex-shrink: 0; }
.logo i { color: var(--accent); }
.nav-search {
    flex: 1;
    max-width: 420px;
    position: relative;
}
.nav-search input {
    width: 100%;
    padding: 0.55rem 1rem 0.55rem 2.5rem;
    border: 2px solid var(--border);
    border-radius: 50px;
    font-size: 0.9rem;
    transition: var(--transition);
    background: var(--bg);
    outline: none;
}
.nav-search input:focus { border-color: var(--primary); background: white; box-shadow: 0 0 0 4px rgba(0,82,204,0.1); }
.nav-search .search-icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--text-secondary); }
.nav-links { display: flex; gap: 1.2rem; align-items: center; }
.mobile-drawer-controls { display: none !important; }
.nav-links a { color: var(--text-secondary); font-weight: 500; font-size: 0.9rem; }
.nav-links a:hover { color: var(--primary); }
.nav-dropdown { position: relative; }
.nav-dropdown-trigger { cursor: pointer; }
.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 180px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--elevation-4);
    padding: 6px 0;
    z-index: 1002;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu { display: block; }
.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
}
.nav-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
}
.nav-dropdown-menu a:hover { background: var(--bg-secondary); color: var(--primary); }
.autocomplete-results {
    position: absolute;
    top: calc(100% + 4px);
    left: 0; right: 0;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    z-index: 9999;
    max-height: 60vh;
    overflow-y: auto;
    display: none;
    -webkit-overflow-scrolling: touch;
}
.autocomplete-results.show { display: block; }
.ac-item {
    padding: 0.85rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border-bottom: 1px solid var(--bg);
    transition: var(--transition);
    min-height: 44px;
    text-decoration: none;
    color: var(--text);
    font-size: 0.9rem;
}
.ac-item:hover, .ac-item:active { background: var(--bg-secondary, #f0f2f5); color: var(--primary); }
.ac-item .ac-type { font-size: 0.65rem; color: var(--primary); background: rgba(0,82,204,0.08); padding: 2px 8px; border-radius: 12px; font-weight: 600; text-transform: uppercase; flex-shrink: 0; }

/* ── Hero Section ── */
.hero {
    background: linear-gradient(135deg, #0052cc 0%, #6c5ce7 40%, #00b894 100%);
    color: white;
    padding: 5rem 1.5rem 4rem;
    text-align: center;
    position: relative;
    overflow: visible;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    overflow: hidden;
    background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255,255,255,0.06) 0%, transparent 40%);
    animation: heroBg 20s ease-in-out infinite;
    pointer-events: none;
}
@keyframes heroBg {
    0%, 100% { transform: translate(0,0) rotate(0deg); }
    50% { transform: translate(-3%,2%) rotate(2deg); }
}
.hero-content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.hero h1 {
    font-size: var(--fs-display);
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
}
.hero .subtitle { font-size: 1.2rem; opacity: 0.9; margin-bottom: 2.5rem; line-height: 1.6; }
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 1.5rem 2.5rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.hero-stat-item { text-align: center; min-width: 80px; }
.hero-stat-num { font-size: 2.2rem; font-weight: 900; display: block; }
.hero-stat-label { font-size: 0.75rem; opacity: 0.7; text-transform: uppercase; letter-spacing: 1px; }

/* ── City Hero ── */
.city-hero {
    position: relative;
    min-height: 340px;
    overflow: hidden;
    border-radius: 0 0 var(--radius) var(--radius);
    display: flex;
    flex-direction: column;
}
.city-hero img { width: 100%; height: 220px; object-fit: cover; flex-shrink: 0; }
.city-hero .overlay {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 1.5rem 2rem 1.8rem;
    color: white;
}
.city-hero .overlay h1 { font-size: 2rem; font-weight: 900; margin: 0.3rem 0 0.3rem; }
.city-hero .overlay .breadcrumb-line { font-size: 0.9rem; opacity: 0.8; }

/* ── Container ── */
.container-cr { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section-title {
    font-size: var(--fs-h1);
    font-weight: 800;
    margin: 2.5rem 0 1.5rem;
    color: var(--text);
    letter-spacing: -0.01em;
}

/* ── Cards ── */
.card-cr {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--elevation-2);
    overflow: hidden;
}
.card-body-cr { padding: 1.5rem; }

/* ── State Cards ── */
.state-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: var(--text);
}
.state-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
    color: var(--text);
}
.state-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
    font-weight: 800;
    flex-shrink: 0;
}
.state-card h3 { margin: 0; font-size: 1.05rem; font-weight: 700; }
.state-card .state-meta { font-size: 0.8rem; color: var(--text-secondary); margin-top: 2px; }
/* ── Union Territory Card Variant ── */
.state-card.ut-card { border-left: 3px solid var(--accent); }
.state-card.ut-card .state-icon { border-radius: 50%; }
.ut-badge { display: inline-block; font-size: 0.55rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; padding: 1px 6px; border-radius: 8px; background: rgba(0,184,148,0.12); color: var(--accent); margin-left: 0.4rem; vertical-align: middle; }

/* ── Leader Cards ── */
.leader-card {
    text-align: center;
    padding: 2rem 1.5rem;
    position: relative;
}
.leader-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border);
    margin-bottom: 1rem;
    transition: var(--transition);
}
.card-cr:hover .leader-avatar { border-color: var(--primary-light); transform: scale(1.05); }
.leader-card h3 { font-size: 1.05rem; font-weight: 700; margin: 0 0 0.3rem; }
.leader-card .position { font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 0.5rem; }
.party-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
}
.rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 14px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-top: 0.8rem;
}
.rating-badge.good { background: #d4f5e9; color: #00b894; }
.rating-badge.average { background: #ffeaa7; color: #d68910; }
.rating-badge.poor { background: #fab1a0; color: #d63031; }

/* ── CR Score Badge ── */
.cr-score-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 800;
    font-size: 1rem;
    padding: 6px 16px;
    border-radius: 20px;
    color: white;
    letter-spacing: 0.3px;
    white-space: nowrap;
}
.cr-score-badge.cs-good { background: linear-gradient(135deg, #16a34a, #22c55e); }
.cr-score-badge.cs-avg  { background: linear-gradient(135deg, #f59e0b, #eab308); }
.cr-score-badge.cs-poor { background: linear-gradient(135deg, #dc2626, #ef4444); }
.cr-score-badge i { font-size: 0.85em; }
.cr-score-badge.cr-mini { font-size: 0.8rem; padding: 3px 10px; font-weight: 700; }

/* ── Leader Info Facts ── */
.info-facts-card { padding: 1.5rem; }
.info-facts-title { margin: 0 0 1rem; font-size: 1.15rem; color: var(--primary); }
.info-facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}
.info-fact {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.info-fact:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.info-fact i { font-size: 1.2rem; color: var(--primary); margin-top: 2px; flex-shrink: 0; }
.info-fact span { font-size: 0.7rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; display: block; }
.info-fact strong { display: block; font-size: 0.95rem; margin-top: 2px; }
.info-bio { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 1rem; }
.info-source { font-size: 0.7rem; color: var(--text-secondary); margin-top: 0.75rem; font-style: italic; }
.info-fact.criminal-highlight { background: #fff5f5; border: 1px solid #fed7d7; }
.info-fact.criminal-highlight i { color: #e53e3e; }
.info-fact.clean-record { background: #f0fdf4; border: 1px solid #bbf7d0; }
.info-fact.clean-record i { color: #16a34a; }
.info-fact--empty strong { color: var(--text-secondary); font-weight: 500; font-style: italic; font-size: 0.85rem; }
.info-fact--empty i { color: var(--text-secondary); opacity: 0.5; }

/* ── Criminal Alert Banner ── */
.criminal-alert-banner {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white; padding: 0.85rem 1.25rem; border-radius: var(--radius);
    margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.75rem;
    font-size: 0.9rem; font-weight: 600; box-shadow: 0 2px 8px rgba(220,38,38,0.25);
}
.criminal-alert-banner i { font-size: 1.3rem; }
.criminal-alert-banner .source { font-size: 0.7rem; font-weight: 400; opacity: 0.85; margin-left: auto; }

/* ── Clean Record Badge ── */
.clean-record-badge {
    display: inline-flex; align-items: center; gap: 0.35rem;
    background: #f0fdf4; color: #15803d; font-size: 0.75rem; font-weight: 700;
    padding: 3px 10px; border-radius: 1rem; border: 1px solid #bbf7d0;
}

/* ── Leader Page Extracted Classes ── */
.leader-position { font-size: 0.8rem; color: var(--text-secondary); text-transform: uppercase; font-weight: 600; letter-spacing: 0.5px; }
.share-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; color: white; text-decoration: none; font-size: 1rem; transition: var(--transition); border: none; cursor: pointer; touch-action: manipulation; }
.share-btn:hover { transform: scale(1.1); filter: brightness(1.1); }
.share-btn-twitter { background: #1DA1F2; } .share-btn-fb { background: #1877F2; }
.share-btn-wa { background: #25D366; } .share-btn-tg { background: #0088cc; }
.share-btn-copy { background: #636e72; }
.data-source-badge { font-size: 0.6rem; padding: 2px 8px; border-radius: 1rem; font-weight: 600; display: inline-flex; align-items: center; gap: 0.25rem; }
.data-sources-row { display: flex; gap: 0.3rem; flex-wrap: wrap; margin-top: 0.5rem; }
.trust-panel-content { padding: 1.5rem; }
.election-card { display: flex; align-items: flex-start; gap: 1rem; padding: 0.75rem; border: 1px solid var(--border); border-radius: 0.5rem; }
.election-year-badge { padding: 0.4rem 0.6rem; border-radius: 0.5rem; font-weight: 800; font-size: 0.85rem; min-width: 45px; text-align: center; }
.election-year-won { background: #e8f5e9; color: #2e7d32; }
.election-year-lost { background: #fee2e2; color: #dc2626; }
.election-result-badge { font-size: 0.7rem; padding: 2px 8px; border-radius: 1rem; font-weight: 700; }
.badge-won { background: #e8f5e9; color: #2e7d32; } .badge-lost { background: #fee2e2; color: #dc2626; }
.election-history-list { display: flex; flex-direction: column; gap: 0.75rem; }
.election-constituency { font-weight: 700; font-size: 0.9rem; }
.election-meta { font-size: 0.75rem; color: var(--text-secondary); }
.election-results-row { display: flex; gap: 0.5rem; align-items: center; margin-top: 0.3rem; flex-wrap: wrap; }
.election-detail { font-size: 0.75rem; color: var(--text-secondary); }
.election-opponent { font-size: 0.72rem; color: var(--text-secondary); margin-top: 0.2rem; }
.trust-dashboard-title { margin: 0 0 1rem; font-size: 1.15rem; padding: 1.5rem 1.5rem 0; }
.trust-dashboard-title i { color: var(--primary); }
.trust-last-updated { padding: 0 1.5rem 1rem; font-size: 0.7rem; color: var(--text-secondary); }
.case-details-box { margin-top: 1rem; padding: 1rem; background: var(--bg-secondary); border-radius: 0.5rem; font-size: 0.85rem; color: var(--text-secondary); }
.corruption-header { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
.corruption-count { font-size: 2rem; font-weight: 800; color: #dc2626; }
.corruption-label { font-size: 0.85rem; color: var(--text-secondary); }
.corruption-report-card { padding: 0.6rem; border: 1px solid var(--border); border-radius: 0.5rem; margin-bottom: 0.5rem; }
.corruption-badges { display: flex; gap: 0.4rem; align-items: center; }
.corruption-date { font-size: 0.65rem; color: var(--text-secondary); }
.corruption-title { font-weight: 600; font-size: 0.85rem; margin-top: 0.3rem; }
.corruption-amount { font-size: 0.75rem; color: #dc2626; }

/* ── Empty State ── */
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem 1rem; text-align: center; }
.empty-state-icon { font-size: 2rem; color: var(--text-secondary); opacity: 0.3; margin-bottom: 0.75rem; }
.empty-state p { font-size: 0.85rem; color: var(--text-secondary); margin: 0; font-weight: 500; }
.empty-state-sub { font-size: 0.72rem; color: var(--text-secondary); opacity: 0.7; margin-top: 0.3rem; }

/* ── Fix 5: Submit Button Loading + Character Counter ── */
.btn-submit-rating { width: 100%; justify-content: center; padding: 0.9rem; }
.btn-cr[disabled], .btn-cr.btn-loading { pointer-events: none; opacity: 0.6; cursor: not-allowed; }
.comment-footer { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-top: 0.25rem; }
.char-counter { font-size: 0.72rem; font-weight: 600; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.char-counter.near-limit { color: #f59e0b; }
.char-counter.at-limit { color: #dc2626; font-weight: 700; }

/* ── Fix 7: Extracted Inline Style Classes ── */
.leader-header-card { margin-bottom: 2rem; }
.leader-h1 { margin: 0.3rem 0 0.5rem; font-size: clamp(1.3rem, 5vw, 1.8rem); }
.leader-badges-row { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.leader-gauge-row { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.75rem; }
.leader-votes-sub { font-size: 0.85rem; color: var(--text-secondary); }
.leader-votes-pending { font-size: 0.8rem; color: var(--text-secondary); margin-left: 0.5rem; margin-top: 0.5rem; display: inline-block; }
.gamification-bar { margin-top: 0.75rem; width: 100%; }
.gamification-bar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.3rem; }
.gamification-bar-label { font-size: 0.72rem; font-weight: 600; color: var(--text-secondary); }
.gamification-bar-progress { font-size: 0.68rem; color: var(--accent); }
.gamification-bar-track { background: var(--bg); border-radius: 1rem; height: 6px; overflow: hidden; }
.gamification-bar-fill { background: linear-gradient(90deg, var(--primary), var(--accent)); height: 100%; border-radius: 1rem; transition: width 1s ease; }
.report-issue-btn { margin-top: 0.5rem; }
.action-btn-row { display: flex; gap: 0.5rem; margin-top: 0.5rem; }
.action-btn-row .btn-cr { flex: 1; font-size: 0.8rem; justify-content: center; }
.issue-count-text { font-size: 0.75rem; color: var(--text-secondary); margin-top: 0.3rem; }
.data-source-badge { font-size: 0.6rem; padding: 2px 8px; border-radius: 1rem; font-weight: 600; display: inline-flex; align-items: center; gap: 3px; }
.data-source-badge.source-myneta { background: #e8f5e9; color: #2e7d32; }
.data-source-badge.source-prs { background: #e3f2fd; color: #1565c0; }
.data-source-badge.source-eci { background: #fff3e0; color: #e65100; }
.data-source-badge.source-data { background: var(--bg); color: var(--text-secondary); }
.legal-disclaimer { background: rgba(37,99,235,0.05); border: 1px solid rgba(37,99,235,0.15); border-radius: 10px; padding: 0.75rem 1rem; margin-bottom: 1.5rem; font-size: 0.78rem; color: var(--text-secondary); line-height: 1.6; }
.legal-disclaimer i { color: var(--primary); }
.legal-disclaimer a { color: var(--primary); }
.info-bio { font-size: 0.9rem; line-height: 1.7; color: var(--text-secondary); margin: 0 0 1rem; padding: 0.75rem 1rem; background: var(--bg-secondary); border-radius: 8px; border-left: 3px solid var(--primary); }
.related-leaders-card { margin-top: 2rem; padding: 1.5rem; }
.related-leaders-title { margin: 0 0 1rem; font-size: 1.1rem; font-weight: 700; }
.related-leaders-title i { color: var(--primary); }
.related-leaders-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 0.75rem; }
.related-leader-link { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem; border-radius: var(--radius-sm); border: 1px solid var(--border); text-decoration: none; color: inherit; transition: var(--transition); }
.related-leader-link:hover { border-color: var(--primary); }
.related-leader-avatar { width: 40px; height: 40px; border-radius: 50%; }
.related-leader-name { font-weight: 600; font-size: 0.85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.related-leader-info { font-size: 0.7rem; color: var(--text-secondary); }
.related-leader-rating { font-size: 0.75rem; flex-shrink: 0; }
.faq-section-card { margin-top: 2rem; padding: 1.5rem; }
.faq-section-title { margin: 0 0 1.2rem; font-size: 1.1rem; font-weight: 700; }
.faq-section-title i { color: var(--primary); }
.trust-panel-inner { padding: 1.5rem; }
.view-all-link { text-align: center; margin-top: 1rem; }
.view-all-link a { font-size: 0.85rem; font-weight: 600; }

/* ── Data Completeness Bar ── */
.data-completeness { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.75rem; }
.completeness-bar { flex: 1; height: 4px; background: var(--bg-secondary); border-radius: 2px; overflow: hidden; }
.completeness-fill { height: 100%; border-radius: 2px; transition: width 0.5s ease; }
.completeness-label { font-size: 0.7rem; color: var(--text-secondary); font-weight: 600; white-space: nowrap; }

/* ── Button disabled state ── */
.btn-cr[disabled], .btn-cr.disabled { pointer-events: none; opacity: 0.6; cursor: not-allowed; }

/* ── Character Counter ── */
.char-counter { font-size: 0.72rem; color: var(--text-secondary); text-align: right; margin-top: 0.25rem; }
.char-counter.near-limit { color: #f59e0b; } .char-counter.at-limit { color: #dc2626; }

/* ── Accessibility: Focus-Visible Outlines ── */
*:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
.btn-cr:focus-visible { box-shadow: 0 0 0 3px rgba(0,82,204,0.3); outline: none; }
.star-rating-input label:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.otp-inputs input:focus-visible { outline: 2px solid var(--primary); outline-offset: 0; }
a:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ── Skip to Content (Screen Readers) ── */
.skip-to-content { position: absolute; top: -100px; left: 0; background: var(--primary); color: #fff;
    padding: 0.75rem 1.5rem; z-index: 10000; font-weight: 600; transition: top 0.2s; }
.skip-to-content:focus { top: 0; }

/* ── Feedback Options (Wikisurvey) ── */
.feedback-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.feedback-options label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition);
    border: 2px solid transparent;
}
.feedback-options label:hover { background: #e8f4fd; }
.feedback-options input[type="checkbox"]:checked + span,
.feedback-options label:has(input:checked) { border-color: var(--primary); background: #e8f4fd; }
@media (max-width: 600px) { .feedback-options { grid-template-columns: 1fr; } }

/* ── Citizen Perception Tags ── */
.perception-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.perception-tag {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 600;
}
.perception-tag.positive { background: #d4f5e9; color: #00b894; }
.perception-tag.negative { background: #fab1a0; color: #d63031; }
.perception-tag .tag-pct { font-weight: 800; }

/* ── Reputation Timeline ── */
.trend-badge { display: inline-flex; align-items: center; gap: 0.3rem; padding: 4px 12px; border-radius: 20px; font-size: 0.78rem; font-weight: 600; }
.trend-up { background: rgba(22,163,74,0.1); color: #16a34a; }
.trend-down { background: rgba(220,38,38,0.1); color: #dc2626; }
.trend-stable { background: rgba(245,158,11,0.1); color: #f59e0b; }

/* ── Trust Dashboard ── */
.trust-tabs { display: flex; gap: 0; padding: 0 1.5rem; border-bottom: 2px solid var(--bg); overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; flex-wrap: nowrap; scroll-snap-type: x mandatory; }
.trust-tab { scroll-snap-align: start; }
.trust-tabs::-webkit-scrollbar { display: none; }
.trust-tab { background: none; border: none; padding: 0.75rem 1.2rem; font-size: 0.82rem; font-weight: 600; color: var(--text-secondary); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: var(--transition); white-space: nowrap; }
.trust-tab:hover { color: var(--primary); }
.trust-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.trust-panel { display: none; }
.trust-panel.active { display: block; }
.alert-cr { padding: 0.75rem 1rem; border-radius: var(--radius-sm); font-size: 0.85rem; display: flex; align-items: center; gap: 0.5rem; }
.alert-danger { background: rgba(220,38,38,0.08); color: #dc2626; border: 1px solid rgba(220,38,38,0.2); }
.alert-success { background: rgba(22,163,74,0.08); color: #16a34a; border: 1px solid rgba(22,163,74,0.2); }
.alert-info { background: rgba(0,82,204,0.08); color: var(--primary); border: 1px solid rgba(0,82,204,0.2); }

/* ── Events Timeline ── */
.events-timeline { position: relative; padding-left: 2rem; }
.events-timeline::before { content: ''; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: var(--border); }
.event-item { position: relative; margin-bottom: 1.5rem; }
.event-dot { position: absolute; left: -2rem; top: 0.3rem; width: 14px; height: 14px; border-radius: 50%; border: 2px solid white; z-index: 1; }
.event-dot.controversy { background: #dc2626; }
.event-dot.promise { background: #3498db; }
.event-dot.fact_check { background: #f59e0b; }
.event-content { padding: 1rem; background: var(--bg); border-radius: var(--radius-sm); }
.event-meta { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.event-type-badge { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 0.7rem; font-weight: 600; }
.event-type-badge.event-controversy { background: rgba(220,38,38,0.1); color: #dc2626; }
.event-type-badge.event-promise { background: rgba(52,152,219,0.1); color: #3498db; }
.event-type-badge.event-fact_check { background: rgba(245,158,11,0.1); color: #f59e0b; }
.event-date { font-size: 0.75rem; color: var(--text-secondary); }
.event-status-badge { font-size: 0.7rem; padding: 2px 8px; border-radius: 10px; font-weight: 600; }
.status-fulfilled { background: rgba(22,163,74,0.1); color: #16a34a; }
.status-broken, .status-debunked { background: rgba(220,38,38,0.1); color: #dc2626; }
.status-confirmed { background: rgba(22,163,74,0.1); color: #16a34a; }
.event-title { margin: 0; font-size: 0.9rem; font-weight: 600; }
.event-desc { margin: 0.3rem 0 0; font-size: 0.82rem; color: var(--text-secondary); }
.event-source { font-size: 0.75rem; display: inline-block; margin-top: 0.3rem; }

/* ── Issue Reporting ── */
.issue-cat-badge { display: inline-flex; align-items: center; gap: 0.3rem; padding: 3px 10px; border-radius: 12px; font-size: 0.72rem; font-weight: 600; }
.issue-status-pill { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 0.7rem; font-weight: 600; }
.status-reported { background: rgba(108,117,125,0.1); color: #6c757d; }
.status-acknowledged { background: rgba(245,158,11,0.1); color: #f59e0b; }
.status-in_progress { background: rgba(52,152,219,0.1); color: #3498db; }
.status-resolved { background: rgba(22,163,74,0.1); color: #16a34a; }
.category-radio { display: flex; }
.category-radio input[type="radio"] { display: none; }
.category-radio span { display: flex; align-items: center; gap: 0.3rem; padding: 0.5rem 0.8rem; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 0.78rem; cursor: pointer; transition: var(--transition); width: 100%; }
.category-radio input:checked + span { background: var(--primary); color: white; border-color: var(--primary); }
.category-radio input:checked + span i { color: white !important; }
.issue-card:hover { border-left-width: 6px !important; }

/* ── Homepage: Trending / Spotlight / Activity ── */
.hero-search {
    display: flex;
    max-width: 500px;
    margin: 1.5rem auto 0;
    background: white;
    border-radius: 50px;
    overflow: visible;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    position: relative;
}
.hero-search input { border-radius: 50px 0 0 50px; }
.hero-search button { border-radius: 0 50px 50px 0; }
.hero-search input {
    flex: 1;
    border: none;
    padding: 0.8rem 1.3rem;
    font-size: 1rem;
    outline: none;
    background: transparent;
}
.hero-search button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.8rem 1.3rem;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}
.hero-search button:hover { background: var(--primary-dark); }
.trending-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}
.trending-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}
.trending-card:hover { transform: translateY(-3px); }
.trending-rank {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    width: 2rem;
    text-align: center;
    flex-shrink: 0;
}
.spotlight-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
@media (max-width: 768px) { .spotlight-grid { grid-template-columns: 1fr; } }
.spotlight-col h3 { margin: 0 0 1rem; font-size: 1rem; }
.spotlight-item {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.6rem; border-radius: 0.5rem;
    text-decoration: none; color: inherit;
    border-bottom: 1px solid var(--bg);
}
.spotlight-item:hover { background: var(--bg); }
.activity-feed { max-width: 600px; margin: 0 auto; }
.activity-item {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.6rem 0; border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
}
.activity-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--accent); flex-shrink: 0;
}
.activity-time { font-size: 0.7rem; color: var(--text-secondary); white-space: nowrap; }

/* ── Stat Cards ── */
.stat-card {
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--surface);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}
.stat-number {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
}
.stat-label {
    font-size: 0.78rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: 0.3rem;
}

/* ── Rating Bars ── */
.rating-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.7rem;
}
.rating-row .param-label { width: 180px; font-size: 0.85rem; font-weight: 500; flex-shrink: 0; }
.rating-bar-wrap { flex: 1; background: var(--bg); border-radius: 8px; height: 10px; overflow: hidden; }
.rating-bar { height: 100%; border-radius: 8px; transition: width 1s cubic-bezier(0.4,0,0.2,1); }
.rating-row .val { font-weight: 700; font-size: 0.9rem; width: 35px; text-align: right; }

/* ── Star Rating Input ── */
.star-input-group { margin-bottom: 1.2rem; }
.star-input-group label.param-name {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
}
.star-rating-input {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 2px;
}
.star-rating-input input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.star-rating-input label {
    font-size: 1.8rem;
    color: var(--border);
    cursor: pointer;
    transition: color 0.15s, transform 0.15s;
    user-select: none;
}
.star-rating-input label:hover,
.star-rating-input label:hover ~ label,
.star-rating-input input:checked ~ label {
    color: #f1c40f;
    transform: scale(1.1);
}
.star-value { font-weight: 600; font-size: 0.85rem; color: var(--text-secondary); margin-left: 0.5rem; }

/* ── Buttons ── */
.btn-cr {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.8rem;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}
.btn-primary-cr {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 16px rgba(0,82,204,0.25);
}
.btn-primary-cr:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,82,204,0.35); color: white; }
.btn-accent-cr {
    background: linear-gradient(135deg, var(--accent), #00a884);
    color: white;
    box-shadow: 0 4px 16px rgba(0,184,148,0.25);
}
.btn-accent-cr:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,184,148,0.35); color: white; }
.btn-outline-cr {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-outline-cr:hover { background: var(--primary); color: white; }

/* ── Form Styles ── */
.form-cr input, .form-cr textarea, .form-cr select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    transition: var(--transition);
    background: white;
    font-family: inherit;
    outline: none;
}
.form-cr input:focus, .form-cr textarea:focus, .form-cr select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0,82,204,0.1);
}
.form-cr label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    color: var(--text);
}
.form-cr .help-text { font-size: 0.8rem; color: var(--text-secondary); margin-top: 0.3rem; }

/* ── OTP Input ── */
.otp-inputs { display: flex; gap: 0.5rem; justify-content: center; }
.otp-inputs input {
    width: 52px;
    height: 58px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.otp-inputs input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(0,82,204,0.1); }

/* ── Toast / Alert ── */
.alert-cr {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.alert-success { background: #d4f5e9; color: #00875a; border: 1px solid #b8e6d0; }
.alert-danger { background: #fde8e8; color: #d63031; border: 1px solid #f5c6cb; }
.alert-info { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }
.alert-warning { background: #fef9c3; color: #a16207; border: 1px solid #fde68a; }

/* ── How It Works ── */
.steps-row { display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap; margin: 2rem 0; }
.step-item { text-align: center; flex: 1; min-width: 180px; max-width: 250px; }
.step-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin-bottom: 1rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.step-icon i { font-size: inherit; color: inherit; text-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.step-item h4 { font-size: 1rem; font-weight: 700; margin: 0 0 0.3rem; }
.step-item p { font-size: 0.85rem; color: var(--text-secondary); margin: 0; }

/* ── Footer ── */
.footer-cr {
    background: var(--text);
    color: rgba(255,255,255,0.7);
    padding: 3rem 1.5rem 2rem;
    margin-top: 4rem;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 2rem;
}
.footer-cr h4 { color: white; font-size: 1rem; margin: 0 0 1rem; font-weight: 700; }
.footer-cr a { color: rgba(255,255,255,0.6); transition: color 0.2s; }
.footer-cr a:hover { color: white; }
.footer-cr ul { list-style: none; padding: 0; margin: 0; }
.footer-cr li { margin-bottom: 0.15rem; font-size: 0.9rem; }
.footer-cr li a { display: inline-block; padding: 0.35rem 0; min-height: 44px; line-height: 1.5; }
.footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 0.8rem;
}

/* ── Grid layouts ── */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; }
.grid-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; margin: 1.5rem 0; }

/* ── Animations ── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeInUp 0.6s ease forwards; }
.delay-1 { animation-delay: 0.1s; opacity: 0; }
.delay-2 { animation-delay: 0.2s; opacity: 0; }
.delay-3 { animation-delay: 0.3s; opacity: 0; }
.delay-4 { animation-delay: 0.4s; opacity: 0; }

@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.pulse { animation: pulse 2s ease-in-out infinite; }

@keyframes countUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ── Chart container ── */
.chart-container { position: relative; width: 100%; max-width: 450px; margin: 1.5rem auto; }

/* ── Hamburger Menu ── */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    z-index: 1002;
    background: none;
    border: none;
}
.hamburger span {
    width: 24px;
    height: 2.5px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 999;
    backdrop-filter: blur(4px);
}
.mobile-menu-overlay.show { display: block; }
.nav-links { overscroll-behavior: contain; }

/* ── Mobile-specific layout helpers ── */
.leader-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.leaderboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.cm-card-inner { display: flex; align-items: center; gap: 1.5rem; padding: 1.5rem; }
.cm-card-btn { margin-left: auto; }
.leader-header-inner { display: flex; align-items: center; gap: 2rem; padding: 2rem; flex-wrap: wrap; }
.leader-header-info { flex: 1; min-width: 200px; }
.leader-header-action { flex-shrink: 0; }
.share-row { display: flex; gap: 0.5rem; padding: 0 2rem 1.5rem; flex-wrap: wrap; align-items: center; }
.filter-tabs { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2rem; scroll-snap-type: x mandatory; }
.filter-tabs .btn-cr { scroll-snap-align: start; }
.filter-tabs .btn-cr { font-size: 0.85rem; }

/* ── Responsive — Tablet (≤1024px) ── */
@media (max-width: 1024px) {
    .nav-search { max-width: 280px; }
    .hero h1 { font-size: 2.6rem; }
    .hero { padding: 4rem 1.5rem 3rem; }
    .container-cr { padding: 0 1rem; }
}

/* ── Responsive — Mobile (≤768px) ── */
@media (max-width: 768px) {
    /* Navbar */
    .hamburger { display: flex; }
    .nav-links {
        position: fixed;
        top: 0; right: -280px;
        width: 270px;
        height: 100vh;
        background: var(--surface, white);
        flex-direction: column;
        padding: 5rem 1.5rem 2rem;
        gap: 0;
        box-shadow: -4px 0 24px rgba(0,0,0,0.15);
        transition: right 0.3s ease;
        z-index: 1001;
        overflow-y: auto;
    }
    .nav-links.open { right: 0; }
    .nav-links a {
        padding: 0.9rem 0;
        font-size: 1rem;
        border-bottom: 1px solid var(--bg);
        color: var(--text);
        width: 100%;
    }
    .nav-links a:hover { color: var(--primary); background: var(--bg); padding-left: 0.5rem; }
    /* Mobile dropdowns — inline expand instead of absolute */
    .nav-dropdown { width: 100%; }
    .nav-dropdown-trigger {
        display: flex; align-items: center; justify-content: space-between;
        padding: 0.9rem 0; font-size: 1rem; border-bottom: 1px solid var(--bg);
        color: var(--text); width: 100%;
    }
    .nav-dropdown-trigger .fa-chevron-down { transition: transform 0.2s; }
    .nav-dropdown.open .nav-dropdown-trigger .fa-chevron-down { transform: rotate(180deg); }
    .nav-dropdown-menu {
        position: static !important;
        transform: none !important;
        box-shadow: none !important;
        border: none !important;
        background: var(--bg) !important;
        border-radius: 0 !important;
        padding: 0 !important;
        display: none;
    }
    .nav-dropdown.open .nav-dropdown-menu { display: block !important; }
    .nav-dropdown:hover .nav-dropdown-menu { display: none; }
    .nav-dropdown.open:hover .nav-dropdown-menu { display: block !important; }
    .nav-dropdown-menu::before { display: none; }
    .nav-dropdown-menu a {
        padding: 0.75rem 0 0.75rem 1.5rem !important;
        font-size: 0.9rem !important;
        border-bottom: 1px solid var(--border) !important;
    }
    .nav-search { max-width: none; flex: 1; min-width: 0; }
    .nav-inner { gap: 0.5rem; }
    .logo { font-size: 1.3rem; }
    /* Hide theme+lang toggles from navbar — moved into mobile drawer */
    .navbar-cr .theme-toggle,
    .navbar-cr .lang-toggle { display: none !important; }
    /* Show mobile drawer controls inside nav-links drawer */
    .mobile-drawer-controls { display: flex !important; margin-top: auto; padding-top: 1.5rem; border-top: 1px solid var(--border); gap: 0.75rem; align-items: center; }

    /* Hero */
    .hero { padding: 3rem 1rem 2.5rem; }
    .hero h1 { font-size: 1.8rem; line-height: 1.25; }
    .hero .subtitle { font-size: 0.95rem; margin-bottom: 1.5rem; }
    .hero-stats { gap: 0.8rem 1.2rem; display: grid; grid-template-columns: repeat(3, 1fr); justify-items: center; }
    .hero-stat-item { min-width: auto; }
    .hero-stat-item:nth-child(4), .hero-stat-item:nth-child(5) { grid-column: span 1; }
    .hero-stats > :nth-child(4) { grid-column: 1 / 2; justify-self: end; }
    .hero-stats > :nth-child(5) { grid-column: 2 / 3; justify-self: start; }
    .hero-stat-num { font-size: 1.5rem; }
    .hero-stat-label { font-size: 0.65rem; }

    /* City hero */
    .city-hero { min-height: auto; border-radius: 0; }
    .city-hero img { height: 160px; }
    .city-hero .overlay h1 { font-size: 1.3rem; }
    .city-hero .overlay { padding: 1rem 1rem 1.2rem; }

    /* Grids */
    .grid-2 { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-stats { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }

    /* Leader detail / Leaderboard 2-col → 1-col */
    .leader-detail-grid { grid-template-columns: 1fr; }
    .leaderboard-grid { grid-template-columns: 1fr; }

    /* Cards */
    .section-title { font-size: 1.3rem; margin: 1.5rem 0 1rem; }
    .card-body-cr { padding: 1rem; }

    /* CM card */
    .cm-card-inner { flex-direction: column; text-align: center; gap: 1rem; padding: 1.2rem; }
    .cm-card-btn { margin-left: 0; margin-top: 0.5rem; }

    /* Leader header */
    .leader-header-inner { flex-direction: column; text-align: center; gap: 1rem; padding: 1.5rem; }
    .leader-header-info { text-align: center; min-width: 0; }
    .leader-header-action { width: 100%; }
    .leader-header-action .btn-cr { width: 100%; justify-content: center; }
    .share-row { justify-content: center; padding: 0 1.5rem 1.2rem; }

    /* Rating bars */
    .rating-row { gap: 0.5rem; }
    .rating-row .param-label { width: 90px; font-size: 0.75rem; }
    .rating-row .val { font-size: 0.8rem; width: 30px; }

    /* OTP */
    .otp-inputs input { width: 42px; height: 48px; font-size: 1.1rem; }

    /* State card */
    .state-card { padding: 0.9rem 1rem; }
    .state-icon { width: 40px; height: 40px; font-size: 1rem; border-radius: 10px; }
    .state-card h3 { font-size: 0.9rem; }
    .state-card .state-meta { font-size: 0.7rem; }

    /* Steps */
    .steps-row { flex-direction: column; align-items: center; gap: 1.5rem; }
    .step-item { max-width: 100%; }
    .step-icon { width: 64px; height: 64px; font-size: 1.6rem; }

    /* Footer */
    .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
    .footer-cr { padding: 2rem 1rem 1.5rem; margin-top: 2.5rem; }

    /* Buttons */
    .btn-cr { padding: 0.6rem 1.4rem; font-size: 0.85rem; }

    /* Admin table */
    .admin-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .admin-table th, .admin-table td { font-size: 0.8rem; padding: 0.6rem 0.7rem; white-space: nowrap; }

    /* Filter tabs — horizontal scroll on mobile */
    .filter-tabs { gap: 0.4rem; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; justify-content: flex-start; padding-bottom: 0.3rem; scrollbar-width: none; }
    .filter-tabs::-webkit-scrollbar { display: none; }
    .filter-tabs .btn-cr { font-size: 0.75rem; padding: 0.45rem 0.9rem; white-space: nowrap; flex-shrink: 0; }

    /* Star input — bigger touch targets on mobile */
    .star-rating-input label { font-size: 2.2rem; }
    .star-rating-input { gap: 4px; }

    /* Content page */
    .content-page h1 { font-size: 1.5rem; }
}

/* ── Responsive — Small Mobile (≤480px) ── */
@media (max-width: 480px) {
    .container-cr { padding: 0 0.75rem; }
    .nav-inner { gap: 0.4rem; }
    .nav-search { flex: 1; min-width: 0; max-width: none; order: 0; }
    .nav-search input { font-size: 0.8rem; padding: 0.45rem 0.5rem 0.45rem 2rem; }
    .nav-search .search-icon { left: 0.6rem; font-size: 0.75rem; }
    .logo { font-size: 1.1rem; flex-shrink: 0; }
    .hero { padding: 2.5rem 0.75rem 2rem; }
    .hero h1 { font-size: 1.5rem; }
    .hero .subtitle { font-size: 0.85rem; }
    .hero-stats { gap: 0.5rem 0.8rem; margin-top: 1.5rem; }
    .hero-stat-num { font-size: 1.3rem; }
    .hero-stat-label { font-size: 0.6rem; }
    .grid-3 { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-stats { grid-template-columns: 1fr 1fr; }
    .leader-avatar { width: 70px; height: 70px; }
    .leader-card { padding: 1.2rem 1rem; }
    .leader-card h3 { font-size: 0.95rem; }
    .otp-inputs input { width: 38px; height: 44px; font-size: 1rem; }
    .otp-inputs { gap: 0.3rem; }
    .state-icon { width: 36px; height: 36px; font-size: 0.85rem; }
    .state-card.ut-card .state-icon { width: 36px; height: 36px; }
    .ut-badge { font-size: 0.5rem; padding: 1px 4px; }
    .stat-number { font-size: 1.6rem; }
    .stat-label { font-size: 0.7rem; }
    .chart-container { max-width: 300px; }
    .rating-row .param-label { width: 80px; font-size: 0.75rem; }
    .rating-row { flex-wrap: wrap; }
    .summary-card { padding: 1rem; font-size: 0.85rem; }
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .section-title { font-size: 1.15rem; }
}

/* ── Summary card ── */
.summary-card {
    background: white;
    border-left: 4px solid var(--accent);
    padding: 1.5rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin: 1.5rem 0;
}

/* ── Constituency Pulse ── */
.pulse-card { padding: 1.5rem 1.5rem 1rem; margin-bottom: 1.5rem; border-top: 3px solid var(--primary); }
.pulse-title { margin: 0 0 0.2rem; font-size: 1.15rem; font-weight: 700; }
.pulse-subtitle { margin: 0 0 1rem; font-size: 0.8rem; color: var(--text-secondary); }
.pulse-overall { margin-bottom: 1.2rem; }
.pulse-params { margin-bottom: 1.5rem; }
.pros-cons-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 0.5rem; }
.feedback-col { padding: 1rem; border-radius: var(--radius-sm); }
.feedback-col h4 { margin: 0 0 0.8rem; font-size: 0.9rem; font-weight: 700; display: flex; align-items: center; gap: 0.4rem; }
.feedback-pro { background: #f0fdf4; }
.feedback-pro h4 { color: #16a34a; }
.feedback-con { background: #fef2f2; }
.feedback-con h4 { color: #dc2626; }
.feedback-item { font-size: 0.82rem; color: var(--text-secondary); padding: 0.5rem 0; border-bottom: 1px solid rgba(0,0,0,0.05); line-height: 1.5; }
.feedback-item:last-child { border-bottom: none; }
.fb-quote { font-size: 0.65rem; color: var(--border); margin-right: 0.3rem; }
.feedback-empty { font-size: 0.82rem; color: var(--border); font-style: italic; }
@media (max-width: 768px) { .pros-cons-grid { grid-template-columns: 1fr; } }

/* ── Admin styles ── */
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}
.admin-table th { background: var(--bg); font-weight: 700; position: sticky; top: 0; }
.admin-table tr:hover td { background: var(--bg); }

/* ── Privacy / FAQ ── */
.content-page { max-width: 800px; margin: 2rem auto; padding: 0 1.5rem; }
.content-page h1 { font-size: 2rem; font-weight: 900; margin-bottom: 1.5rem; }
.content-page h2 { font-size: 1.3rem; font-weight: 700; margin: 2rem 0 0.8rem; color: var(--primary); }
.content-page p, .content-page li { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.8; }

/* ── Breadcrumb ── */
.breadcrumb-cr {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 1rem 0;
    flex-wrap: wrap;
}
.breadcrumb-cr a { color: var(--primary); }
.breadcrumb-cr .sep { color: var(--border); }

/* ── Success animation ── */
@keyframes checkmark {
    0% { stroke-dashoffset: 100; }
    100% { stroke-dashoffset: 0; }
}
.success-check {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
}
.success-check circle { fill: #d4f5e9; }
.success-check path {
    stroke: #00b894;
    stroke-width: 3;
    fill: none;
    stroke-dasharray: 100;
    animation: checkmark 0.8s ease forwards;
}
/* ── Party Poll ── */
.poll-section { padding: 2.5rem 0; }
.poll-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; margin: 1.5rem 0; }
.poll-card {
    background: var(--surface); border-radius: var(--radius); padding: 1.5rem 1rem;
    text-align: center; cursor: pointer; border: 3px solid var(--border);
    transition: var(--transition); position: relative; overflow: hidden;
}
.poll-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.poll-card.voted { border-color: var(--accent); }
.poll-card .party-circle {
    width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 0.75rem;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; color: #fff; font-size: 1.1rem; letter-spacing: 0.5px;
}
.poll-card .party-name { font-weight: 700; font-size: 0.95rem; margin-bottom: 0.25rem; }
.poll-card .party-full { font-size: 0.75rem; color: var(--text-secondary); line-height: 1.3; }
.poll-card .vote-check {
    position: absolute; top: 8px; right: 8px; width: 28px; height: 28px;
    background: var(--accent); border-radius: 50%; display: none;
    align-items: center; justify-content: center; color: #fff; font-size: 14px;
}
.poll-card.voted .vote-check { display: flex; }
.poll-results { margin-top: 2rem; }
.poll-bar-row { display: flex; align-items: center; margin-bottom: 0.75rem; gap: 0.75rem; }
.poll-bar-label { width: 50px; font-weight: 700; font-size: 0.9rem; text-align: center; flex-shrink: 0; }
.poll-bar-track { flex: 1; height: 36px; background: #e8ecf1; border-radius: 18px; overflow: hidden; position: relative; }
.poll-bar-fill { height: 100%; border-radius: 18px; transition: width 1s ease; display: flex; align-items: center; padding-left: 12px; min-width: 40px; }
.poll-bar-fill span { color: #fff; font-weight: 700; font-size: 0.85rem; text-shadow: 0 1px 2px rgba(0,0,0,0.3); }
.poll-bar-count { width: 70px; text-align: right; font-size: 0.85rem; color: var(--text-secondary); flex-shrink: 0; }
.poll-total { text-align: center; margin-top: 1rem; font-size: 0.9rem; color: var(--text-secondary); }
.poll-share { display: flex; gap: 0.75rem; justify-content: center; margin-top: 1.5rem; flex-wrap: wrap; }
.poll-share a {
    display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px;
    border-radius: 25px; font-weight: 600; font-size: 0.85rem; color: #fff; text-decoration: none;
    transition: var(--transition);
}
.poll-share a:hover { transform: translateY(-2px); opacity: 0.9; color: #fff; }
.poll-share .wa { background: #25D366; }
.poll-share .tw { background: #1DA1F2; }
.poll-share .fb { background: #1877F2; }
.poll-msg { text-align: center; padding: 0.75rem; border-radius: var(--radius-sm); margin-top: 1rem; font-weight: 600; font-size: 0.9rem; }
.poll-msg.success { background: #d4f5e9; color: #00864e; }
.poll-msg.error { background: #ffe0e0; color: #c0392b; }
@media (max-width: 768px) {
    .poll-grid { grid-template-columns: repeat(3, 1fr); }
    .poll-card { padding: 1rem 0.5rem; }
    .poll-card .party-circle { width: 48px; height: 48px; font-size: 0.85rem; }
}
@media (max-width: 480px) {
    .poll-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
}

/* ── Language Toggle ── */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 2px;
    background: linear-gradient(135deg, #f0f4ff, #e8eeff);
    border: 2px solid var(--primary);
    border-radius: 50px;
    padding: 0.3rem 0.7rem;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.8rem;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}
.lang-toggle:hover {
    background: linear-gradient(135deg, #e0e8ff, #d0dcff);
    box-shadow: 0 2px 8px rgba(0,82,204,0.2);
    transform: translateY(-1px);
}
.lang-active {
    color: white;
    background: var(--primary);
    border-radius: 50px;
    padding: 2px 8px;
    font-size: 0.75rem;
}
.lang-inactive {
    color: var(--primary);
    padding: 2px 6px;
    font-size: 0.8rem;
}
.lang-sep {
    color: var(--border);
    font-weight: 400;
    font-size: 0.85rem;
}
@media (max-width: 768px) {
    .lang-toggle {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
        min-width: 44px; min-height: 44px;
        display: inline-flex; align-items: center; justify-content: center;
    }
    .lang-active { padding: 2px 6px; font-size: 0.75rem; }
    .lang-inactive { font-size: 0.8rem; padding: 2px 5px; }
}

/* ── Leader Comparison Tool ── */
.compare-grid { display: grid; gap: 1.5rem; }
.compare-grid-2 { grid-template-columns: 1fr 1fr; }
.compare-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.compare-leader-card { text-align: center; }
.compare-leader-card .leader-avatar { width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 0.75rem; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 700; color: #fff; }
.compare-param-row { display: grid; gap: 0.5rem; align-items: center; padding: 0.6rem 0; border-bottom: 1px solid var(--border); }
.compare-param-row-2 { grid-template-columns: 1fr 2fr 2fr; }
.compare-param-row-3 { grid-template-columns: 1fr 2fr 2fr 2fr; }
.compare-param-label { font-weight: 600; font-size: 0.85rem; color: var(--text-secondary); }
.compare-score { text-align: center; font-weight: 700; font-size: 1.1rem; }
.compare-bar { height: 8px; border-radius: 4px; background: var(--bg-secondary); overflow: hidden; }
.compare-bar-fill { height: 100%; border-radius: 4px; transition: width 0.6s ease; }
.compare-winner { background: rgba(22, 163, 74, 0.08); border-radius: 8px; padding: 0.3rem; }
.compare-select-card { border: 2px dashed var(--border); border-radius: 12px; padding: 2rem; text-align: center; cursor: pointer; transition: all 0.2s; }
.compare-select-card:hover { border-color: var(--primary); background: rgba(37, 99, 235, 0.03); }
.compare-selector-grid { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 0.75rem; align-items: end; }
@media (max-width: 768px) {
    .compare-grid-2, .compare-grid-3 { grid-template-columns: 1fr; }
    .compare-param-row-2 { grid-template-columns: auto 1fr 1fr; gap: 0.3rem; }
    .compare-param-row-3 { grid-template-columns: auto 1fr 1fr 1fr; gap: 0.3rem; }
    .compare-param-row { padding: 0.8rem 0; font-size: 0.8rem; }
    .compare-selector-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .compare-selector-grid { grid-template-columns: 1fr; }
}

/* ── Community Discussions ── */
.discussion-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 1.2rem; margin-bottom: 0.75rem; transition: box-shadow 0.2s; }
.discussion-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.discussion-meta { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 0.4rem; flex-wrap: wrap; }
.discussion-title { font-size: 1.05rem; font-weight: 600; color: var(--text-primary); text-decoration: none; display: block; margin-bottom: 0.3rem; }
.discussion-title:hover { color: var(--primary); }
.discussion-stats { display: flex; gap: 1rem; font-size: 0.8rem; color: var(--text-secondary); margin-top: 0.5rem; }
.discussion-stats span { display: flex; align-items: center; gap: 0.25rem; }
.vote-btn { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.3rem 0.7rem; border-radius: 20px; border: 1px solid var(--border); background: var(--bg-card); cursor: pointer; font-size: 0.85rem; transition: all 0.2s; }
.vote-btn:hover { border-color: var(--primary); color: var(--primary); }
.vote-btn.voted { background: var(--primary); color: white; border-color: var(--primary); }
.reply-card { background: var(--bg-secondary); border-radius: 10px; padding: 1rem; margin-bottom: 0.5rem; margin-left: 1.5rem; border-left: 3px solid var(--primary); }
.reply-form { background: var(--bg-secondary); border-radius: 12px; padding: 1.2rem; margin-top: 1rem; }
.reply-form textarea { width: 100%; border: 1px solid var(--border); border-radius: 8px; padding: 0.75rem; font-size: 0.9rem; resize: vertical; min-height: 80px; }
.pinned-badge { background: #f59e0b; color: white; font-size: 0.7rem; padding: 0.15rem 0.4rem; border-radius: 4px; font-weight: 600; }
.leader-tag { display: inline-flex; align-items: center; gap: 0.3rem; background: rgba(37, 99, 235, 0.08); color: var(--primary); padding: 0.15rem 0.5rem; border-radius: 12px; font-size: 0.75rem; font-weight: 500; text-decoration: none; }
.leader-tag:hover { background: rgba(37, 99, 235, 0.15); }
@media (max-width: 768px) {
    .reply-card { margin-left: 0.5rem; border-left: 3px solid var(--primary); padding-left: 0.75rem; }
}

/* ── Skeleton Shimmer ── */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.skeleton {
    background: linear-gradient(90deg, var(--bg-secondary) 25%, rgba(255,255,255,0.4) 50%, var(--bg-secondary) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: var(--radius-sm);
}
.skeleton-text { height: 14px; margin-bottom: 8px; border-radius: 6px; }
.skeleton-text:last-child { width: 60%; }
.skeleton-circle { width: 48px; height: 48px; border-radius: 50%; }
.skeleton-card { height: 200px; border-radius: var(--radius); }

/* ── Micro Animations ── */
.card-cr {
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}
.card-cr:hover {
    transform: translateY(-6px);
    box-shadow: var(--elevation-4);
}
.card-cr:active {
    transform: translateY(-2px) scale(0.985);
    box-shadow: var(--elevation-2);
}
.stagger-children > *:nth-child(1) { animation-delay: 0ms; }
.stagger-children > *:nth-child(2) { animation-delay: 60ms; }
.stagger-children > *:nth-child(3) { animation-delay: 120ms; }
.stagger-children > *:nth-child(4) { animation-delay: 180ms; }
.stagger-children > *:nth-child(5) { animation-delay: 240ms; }
.stagger-children > *:nth-child(6) { animation-delay: 300ms; }
@keyframes revealUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.revealed { opacity: 1; transform: translateY(0); }
.btn-cr:active { transform: scale(0.96); }

/* ── Scroll Progress Bar ── */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    z-index: 1100;
    transition: width 0.1s linear;
}

/* ── Toast Notifications ── */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.toast {
    pointer-events: auto;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #fff;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--elevation-4);
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 380px;
    animation: toastIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.toast.toast-exit { animation: toastOut 0.3s ease forwards; }
.toast--error { background: rgba(214, 48, 49, 0.92); }
.toast--success { background: rgba(0, 184, 148, 0.92); }
.toast--info { background: rgba(0, 82, 204, 0.92); }
.toast--warning { background: rgba(253, 203, 110, 0.92); color: #2d3436; }
@keyframes toastIn { from { opacity: 0; transform: translateX(60px) scale(0.9); } to { opacity: 1; transform: translateX(0) scale(1); } }
@keyframes toastOut { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(60px); } }
@media (max-width: 480px) {
    .toast-container { right: 10px; left: 10px; }
    .toast { max-width: 100%; }
}

/* ── Mobile Bottom Nav ── */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0; right: 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    z-index: 999;
    padding: 6px 0 env(safe-area-inset-bottom, 6px);
    box-shadow: 0 -2px 16px rgba(0,0,0,0.06);
}
.bottom-nav-inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
}
.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 8px 14px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-height: 44px;
    justify-content: center;
}
.bottom-nav-item i { font-size: 1.2rem; }
.bottom-nav-item.active { color: var(--primary); }
.bottom-nav-item:hover { color: var(--primary); }
@media (max-width: 768px) {
    .bottom-nav { display: block; }
    body { padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px)); }
    .footer-cr { margin-bottom: calc(70px + env(safe-area-inset-bottom, 0px)); }
    /* Fix 6: Leader page mobile polish */
    .leader-header-inner { flex-direction: column; text-align: center; }
    .leader-header-info { align-items: center; }
    .leader-header-info > div { justify-content: center; }
    .leader-header-action { width: 100%; flex-direction: row; flex-wrap: wrap; }
    .leader-header-action .btn-cr { flex: 1; min-width: 130px; justify-content: center; }
    .info-facts-grid { grid-template-columns: 1fr; }
    .leader-detail-grid { grid-template-columns: 1fr; }
    .share-row { justify-content: center; }
    .trust-dashboard-title { font-size: 1rem; padding: 1rem 1rem 0; }
    .trust-tabs { padding: 0 1rem !important; }
    .trust-panel-content { padding: 1rem; }
    .trust-tab { padding: 0.6rem 0.8rem; font-size: 0.75rem; }
    .criminal-alert-banner { font-size: 0.82rem; flex-wrap: wrap; }
    .criminal-alert-banner .source { margin-left: 0; margin-top: 0.3rem; }
    .election-card { flex-direction: row; gap: 0.75rem; }
    .corruption-report-card { padding: 0.5rem; }
}

/* ── Focus Visible (Fix 9: Accessibility) ── */
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 2px; }
.btn-cr:focus-visible, .share-btn:focus-visible, .trust-tab:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ── Dark Mode Toggle ── */
.theme-toggle {
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--bg-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition);
    flex-shrink: 0;
    color: var(--text);
}
.theme-toggle:hover {
    border-color: var(--primary);
    background: rgba(0,82,204,0.08);
    transform: rotate(15deg);
}

/* ── Social Proof Bar ── */
.social-proof-bar {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 1.5rem 1rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}
.social-proof-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}
.social-proof-item i {
    color: var(--accent);
    font-size: 1.1rem;
}

/* ── CR Gauge Ring ── */
.cr-gauge {
    width: 72px; height: 72px;
    position: relative;
    flex-shrink: 0;
}
.cr-gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.cr-gauge-track { fill: none; stroke: var(--bg-secondary); stroke-width: 6; }
.cr-gauge-fill { fill: none; stroke-width: 6; stroke-linecap: round; transition: stroke-dashoffset 1.2s cubic-bezier(0.22, 1, 0.36, 1); }
.cr-gauge-text {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1rem;
    font-weight: 800;
    color: var(--text);
}
.cr-gauge-label {
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    margin-top: 2px;
}

/* ── Confetti ── */
@keyframes confetti-fall {
    0% { transform: translateY(-100vh) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}
.confetti-piece {
    position: fixed;
    width: 10px; height: 10px;
    top: -10px;
    z-index: 9998;
    border-radius: 2px;
    animation: confetti-fall 3s ease-in forwards;
}

/* ── Form Step Indicator ── */
.form-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 2rem;
}
.form-step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}
.form-step.active { color: var(--primary); }
.form-step.completed { color: var(--accent); }
.form-step-num {
    width: 28px; height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 2px solid var(--border);
}
.form-step.active .form-step-num { background: var(--primary); color: white; border-color: var(--primary); }
.form-step.completed .form-step-num { background: var(--accent); color: white; border-color: var(--accent); }
.form-step-line {
    width: 40px; height: 2px;
    background: var(--border);
    margin: 0 8px;
}
.form-step.completed + .form-step-line,
.form-step.completed ~ .form-step-line { background: var(--accent); }

/* ── Mobile-responsive utility classes (replace common inline styles) ── */
.responsive-grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1.5rem; }
.responsive-padding { padding: clamp(1rem, 4vw, 2rem); }
.text-center-mobile { text-align: left; }
@media (max-width: 768px) { .text-center-mobile { text-align: center; } }
.content-visibility-auto { content-visibility: auto; contain-intrinsic-size: auto 500px; }

/* ── Enhanced Empty States ── */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
}
.empty-state svg { width: 120px; height: 120px; margin-bottom: 1.5rem; opacity: 0.7; }
.empty-state h3 { font-size: var(--fs-h2); font-weight: 700; margin-bottom: 0.5rem; }
.empty-state p { color: var(--text-secondary); font-size: var(--fs-body); margin-bottom: 1.5rem; }

/* ── Utility Classes ── */
.text-center { text-align: center; }
.text-muted { color: var(--text-secondary); }
.text-sm { font-size: var(--fs-small); }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.subtitle-muted { color: var(--text-secondary); font-size: var(--fs-body); }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Page Load Transition (safe: visible by default, enhanced if JS loads) ── */
body { opacity: 1; }
body.loading { opacity: 0; transition: opacity 0.3s ease; }
body.loaded { opacity: 1; transition: opacity 0.3s ease; }

/* ── Hero Curve ── */
.hero::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0; right: 0;
    height: 50px;
    background: var(--bg);
    clip-path: ellipse(55% 100% at 50% 100%);
    z-index: 2;
}

/* ── Sprint 1B: FAQ Accordion ── */
.faq-accordion { display: flex; flex-direction: column; gap: 0; }
.faq-item {
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}
.faq-item:last-child { border-bottom: none; }
.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
    list-style: none;
    transition: color 0.2s;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question:hover { color: var(--primary); }
.faq-arrow {
    font-size: 0.7rem;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}
.faq-item[open] .faq-arrow { transform: rotate(180deg); }
.faq-answer {
    padding: 0 0 1rem;
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* ── Sprint 1C: Enhanced Activity Feed ── */
.activity-feed-live { position: relative; }
.activity-feed-live .activity-item {
    animation: fadeInSlide 0.5s ease forwards;
    opacity: 0;
}
.activity-feed-live .activity-item:nth-child(1) { animation-delay: 0s; }
.activity-feed-live .activity-item:nth-child(2) { animation-delay: 0.1s; }
.activity-feed-live .activity-item:nth-child(3) { animation-delay: 0.15s; }
.activity-feed-live .activity-item:nth-child(4) { animation-delay: 0.2s; }
.activity-feed-live .activity-item:nth-child(5) { animation-delay: 0.25s; }
.activity-feed-live .activity-item:nth-child(n+6) { animation-delay: 0.3s; }
@keyframes fadeInSlide {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}
.live-pulse {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: #16a34a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.live-dot {
    width: 8px;
    height: 8px;
    background: #16a34a;
    border-radius: 50%;
    animation: livePulse 2s infinite;
}
@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

/* ── Sprint 1D: Post-Rating Share Card ── */
.share-card {
    background: linear-gradient(135deg, #0052cc 0%, #00b894 100%);
    border-radius: 16px;
    padding: 2rem;
    color: white;
    text-align: center;
    margin: 1.5rem 0;
}
.share-card h3 { font-size: 1.1rem; margin: 0 0 0.3rem; font-weight: 800; }
.share-card p { font-size: 0.85rem; opacity: 0.9; margin: 0 0 1.2rem; }
.share-card .share-score {
    font-size: 2.5rem;
    font-weight: 900;
    display: block;
    margin: 0.5rem 0;
}
.share-card .share-params {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
.share-card .share-param {
    background: rgba(255,255,255,0.15);
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}
.share-btns-row {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}
.share-btns-row a, .share-btns-row button {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    color: white;
    border: none;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    min-height: 44px;
}
.share-btns-row a:hover, .share-btns-row button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* ── Sprint 1E: Election Landing Pages ── */
.election-hero {
    background: linear-gradient(135deg, #FF9933 0%, #ffffff 50%, #138808 100%);
    padding: 3rem 1.5rem;
    text-align: center;
    border-radius: 16px;
    margin-bottom: 2rem;
    color: #1a1a2e;
}
.election-hero h1 { font-size: clamp(1.5rem, 5vw, 2.2rem); font-weight: 900; margin: 0 0 0.5rem; }
.election-hero p { font-size: 0.95rem; opacity: 0.8; margin: 0; }
.election-state-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}
.election-state-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 20px rgba(0,82,204,0.1);
    transform: translateY(-2px);
}
.election-state-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1rem;
    color: white;
    flex-shrink: 0;
}
.election-meta { font-size: 0.8rem; color: var(--text-secondary); margin-top: 0.2rem; }
.election-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: #fff3e0;
    color: #e65100;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 1rem;
}

/* ── Sprint 1G: Donation & Support ── */
.donate-hero {
    background: linear-gradient(135deg, var(--primary), #00b894);
    color: white;
    padding: 3rem 1.5rem;
    border-radius: 16px;
    text-align: center;
    margin-bottom: 2rem;
}
.donate-hero h1 { font-size: clamp(1.5rem, 5vw, 2rem); font-weight: 900; margin: 0 0 0.5rem; }
.donate-hero p { opacity: 0.9; margin: 0; }
.donate-tiers {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
    gap: 1rem;
}
.donate-tier {
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
}
.donate-tier:hover { border-color: var(--primary); }
.donate-tier.featured { border-color: var(--primary); background: rgba(0,82,204,0.03); }
.donate-amount { font-size: 2rem; font-weight: 900; color: var(--primary); }
.donate-label { font-size: 0.85rem; color: var(--text-secondary); margin: 0.3rem 0 1rem; }
