:root{color:#0f172a;background:#eef2ff;font-family:Inter,sans-serif}*{box-sizing:border-box}body{background:radial-gradient(circle at 100% 0,#dbeafe 0%,#eef2ff 45%,#f8fafc 100%);margin:0}a{text-decoration:none}.results-page{min-height:100vh;padding:28px}.topbar,.results-hero,.results-actions,.section-title,.election-grid,.stats-grid,.position-results,.verify-panel,.quick-actions{max-width:1450px;margin-left:auto;margin-right:auto}.topbar{justify-content:space-between;align-items:center;margin-bottom:24px;display:flex}.back-btn{color:#0f172a;background:#fff;border-radius:999px;padding:14px 22px;font-weight:800;box-shadow:0 10px 30px #0f172a14}.results-hero{color:#fff;background:linear-gradient(135deg,#020617,#1d4ed8);border-radius:34px;margin-bottom:30px;padding:52px;box-shadow:0 40px 90px #0f172a47}.results-hero.split{grid-template-columns:1fr 280px;align-items:center;gap:30px;display:grid}.results-hero span{color:#bfdbfe;text-transform:uppercase;letter-spacing:.12em;background:#ffffff24;border-radius:999px;padding:8px 14px;font-size:12px;font-weight:900;display:inline-block}.results-hero h1{margin:18px 0 14px;font-size:clamp(38px,5vw,68px);line-height:1}.results-hero p{color:#dbeafe;max-width:780px;font-size:18px;line-height:1.8}.hero-actions{flex-wrap:wrap;gap:14px;margin-top:26px;display:flex}.primary-action,.secondary-action{border-radius:999px;padding:14px 22px;font-weight:900}.primary-action{color:#1d4ed8;background:#fff}.secondary-action{color:#fff;border:1px solid #ffffff4d}.hero-summary-card{text-align:center;background:#ffffff24;border:1px solid #ffffff38;border-radius:28px;padding:28px}.hero-summary-card span{color:#bfdbfe;text-transform:uppercase;font-size:12px;font-weight:900}.status-pill{text-transform:capitalize;border-radius:999px;margin-top:22px;padding:12px 18px;font-weight:800;display:inline-flex}.status-pill.open{color:#bbf7d0;background:#22c55e2e}.status-pill.closed{color:#fecaca;background:#ef44442e}.status-pill.not_open,.status-pill.inactive{color:#fde68a;background:#f59e0b2e}.quick-actions{grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:22px;margin-bottom:34px;display:grid}.quick-card{color:#0f172a;cursor:pointer;background:#fff;border:1px solid #e2e8f0;border-radius:30px;align-items:center;gap:18px;padding:26px;transition:all .25s;display:flex;box-shadow:0 20px 60px #0f172a14}.quick-card:hover{transform:translateY(-6px)}.quick-icon{color:#fff;background:linear-gradient(135deg,#2563eb,#1d4ed8);border-radius:24px;place-items:center;width:70px;height:70px;font-size:34px;display:grid}.section-title{margin-bottom:22px}.section-title h2{margin:0 0 8px;font-size:34px}.section-title p{color:#64748b;margin:0}.election-grid{grid-template-columns:repeat(auto-fit,minmax(340px,1fr));gap:26px;display:grid}.election-card{color:#0f172a;background:#fff;border:1px solid #dbeafe;border-radius:30px;padding:34px;transition:all .25s;box-shadow:0 25px 70px #0f172a14}.election-card:hover{transform:translateY(-8px)}.premium-election-card{position:relative;overflow:hidden}.locked-card{opacity:.94}.election-card-top,.election-card-footer{justify-content:space-between;align-items:center;display:flex}.election-card h2{margin:0 0 12px;font-size:30px}.election-card p{color:#64748b;margin-bottom:22px;line-height:1.7}.election-card-icon{background:#eff6ff;border-radius:18px;place-items:center;width:54px;height:54px;font-size:28px;display:grid}.active-pill,.inactive-pill{text-transform:uppercase;border-radius:999px;margin-bottom:18px;padding:8px 14px;font-size:12px;font-weight:900;display:inline-block}.active-pill{color:#166534;background:#dcfce7}.inactive-pill{color:#991b1b;background:#fee2e2}.results-status-row{color:#64748b;margin:18px 0;font-size:14px;font-weight:700}.results-action-row{grid-template-columns:1fr 1fr;align-items:stretch;gap:16px;margin-top:18px;display:grid}.fancy-results-btn,.fancy-stats-btn{box-sizing:border-box;border:none;border-radius:18px;justify-content:space-between;align-items:center;width:100%;min-height:64px;padding:0 22px;font-size:14px;font-weight:900;text-decoration:none;transition:all .22s;display:flex}.fancy-results-btn{color:#fff;background:linear-gradient(135deg,#16a34a,#15803d);box-shadow:0 18px 40px #16a34a47}.fancy-stats-btn{color:#fff;background:linear-gradient(135deg,#2563eb,#1d4ed8);box-shadow:0 18px 40px #2563eb3d}.fancy-results-btn:hover,.fancy-stats-btn:hover{transform:translateY(-3px)}.fancy-results-btn b,.fancy-stats-btn b{font-size:20px}.locked-results-btn{cursor:not-allowed;opacity:.92;color:#fff!important;box-shadow:none!important;background:linear-gradient(135deg,#ed0707,#64748b)!important}.locked-stats-btn{cursor:not-allowed;opacity:.92;color:#ed0707!important;background:linear-gradient(135deg,#95ed07,#3b82f6)!important;box-shadow:0 10px 24px #3b82f62e!important}.locked-results-btn:hover,.locked-stats-btn:hover{transform:none}.stats-grid{grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:24px;margin-bottom:36px;display:grid}.stat-card{background:#fff;border-radius:28px;padding:30px;box-shadow:0 20px 60px #19172a14}.stat-card span{color:#64748b;text-transform:uppercase;margin-bottom:12px;font-size:14px;font-weight:700;display:block}.stat-card strong{font-size:52px;line-height:1}.stats-candidate-row{background:#f8fafc;border-radius:18px;justify-content:space-between;gap:14px;margin-top:14px;padding:16px;display:flex}.stats-candidate-row span{color:#64748b;margin-top:4px;display:block}.position-results{margin-bottom:36px}.position-header{background:#fff;border-radius:28px;margin-bottom:20px;padding:28px;box-shadow:0 20px 60px #0f172a14}.position-header span{color:#2563eb;text-transform:uppercase;font-size:12px;font-weight:900}.position-header h2{margin:10px 0 0;font-size:40px}.chart-card{background:#fff;border-radius:30px;margin-bottom:24px;padding:30px;box-shadow:0 20px 60px #0f172a14}.candidate-result-grid{grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:22px;display:grid}.candidate-result-card{background:#fff;border-radius:28px;padding:28px;box-shadow:0 20px 60px #0f172a14}.candidate-result-card h3{margin:0 0 8px;font-size:28px}.candidate-result-card p{color:#64748b;margin-bottom:18px}.candidate-result-card strong{color:#2563eb;font-size:40px}.verify-card{color:#0f172a;background:#fff;border-radius:28px;align-items:center;gap:18px;margin-bottom:34px;padding:28px;display:flex;box-shadow:0 20px 60px #0f172a14}.verify-icon{color:#fff;background:linear-gradient(135deg,#2563eb,#1d4ed8);border-radius:24px;place-items:center;width:72px;height:72px;font-size:34px;display:grid}.verify-panel{background:#fff;border-radius:34px;padding:40px;box-shadow:0 25px 70px #0f172a14}.verify-panel form{flex-direction:column;gap:18px;display:flex}.verify-panel label{font-weight:800}.verify-panel input{border:1px solid #cbd5e1;border-radius:18px;width:100%;min-height:58px;padding:0 18px;font-size:16px}.verify-panel button{color:#fff;cursor:pointer;background:linear-gradient(135deg,#2563eb,#1d4ed8);border:none;border-radius:18px;min-height:58px;font-size:16px;font-weight:900}.success-box,.error-box{border-radius:18px;width:fit-content;max-width:560px;margin:22px auto;padding:16px 20px;font-weight:800;box-shadow:0 12px 30px #0f172a14}.success-box{color:#166534;background:#dcfce7}.error-box{color:#991b1b;background:#fee2e2}@media (width<=900px){.results-page{padding:18px}.results-hero{padding:34px 24px}.results-hero h1{font-size:42px}.position-header h2{font-size:30px}.stat-card strong{font-size:40px}}@media (width<=800px){.results-hero.split,.results-action-row{grid-template-columns:1fr}}.result-progress-fill{background:#7741be;border-radius:999px;height:100%}.winner-badge{color:#fff;background:#16a34a;border-radius:999px;align-items:center;margin-top:14px;padding:8px 14px;font-weight:800;display:inline-flex}.results-page{background:#f3f6fb;min-height:100vh;padding:32px}.results-hero.split{color:#fff;background:linear-gradient(135deg,#081c5c,#1d4ed8);border-radius:28px;justify-content:space-between;align-items:center;gap:24px;margin-bottom:32px;padding:40px;display:flex}.results-hero h1{color:#f20000;margin-top:10px;margin-bottom:16px;font-size:52px}.results-status-row{flex-wrap:wrap;gap:14px;margin-top:20px;display:flex}.results-status-row span{background:#ffffff24;border-radius:999px;padding:10px 18px;font-weight:700}.hero-summary-card{text-align:center;background:#ffffff1f;border:1px solid #ffffff2e;border-radius:24px;min-width:220px;padding:24px}.hero-summary-card strong{margin:12px 0;font-size:48px;display:block}.history-summary-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:20px;margin-bottom:36px;display:grid}.history-summary-card{background:#fff;border-radius:22px;padding:24px;box-shadow:0 10px 30px #0f172a0f}.history-summary-card span{color:#64748b;margin-bottom:10px;display:block}.history-summary-card strong{color:#0f172a;font-size:36px;font-weight:900}.premium-card{background:#fff;border-radius:28px;margin-bottom:30px;padding:28px;box-shadow:0 16px 40px #0f172a14}.premium-header{margin-bottom:24px}.premium-header h1{margin-bottom:8px}.wide-candidate-list{flex-direction:column;gap:22px;display:flex}.wide-candidate-card{background:#f8fafc;border:1px solid #e2e8f0;border-radius:24px;overflow:hidden}.winner-card{background:linear-gradient(135deg,#ecfdf5,#fff);border:2px solid #16a34a;box-shadow:0 20px 50px #16a34a29}.wide-position-title{color:#fff;letter-spacing:.04em;background:#0f172a;padding:12px 18px;font-size:14px;font-weight:800}.winner-card .wide-position-title{background:linear-gradient(90deg,#15803d,#22c55e)}.wide-candidate-content{grid-template-columns:320px 1fr;gap:28px;padding:28px;display:grid}.wide-photo-box{flex-direction:column;gap:18px;display:flex}.wide-photo-box img{object-fit:cover;border-radius:22px;width:100%;height:320px}.wide-photo-empty{color:#1e3a8a;background:#dbeafe;border-radius:22px;justify-content:center;align-items:center;width:100%;height:320px;font-size:90px;font-weight:900;display:flex}.wide-candidate-name h2{margin-bottom:8px;font-size:34px}.wide-candidate-name p{color:#64748b;font-size:17px}.manifesto-inner{flex-direction:column;justify-content:center;height:100%;display:flex}.manifesto-inner h3{color:#0f172a;margin-bottom:14px;font-size:34px}.manifesto-inner p{color:#475569;font-size:17px;line-height:1.7}.result-progress-track{background:#e2e8f0;border-radius:999px;width:100%;height:16px;margin-top:20px;overflow:hidden}.result-progress-fill{background:#1d4ed8;border-radius:999px;height:100%;transition:width .4s}.result-progress-fill.winner-fill{background:linear-gradient(90deg,#16a34a,#22c55e)}.winner-badge{color:#fff;background:#16a34a;border-radius:999px;align-items:center;gap:10px;margin-top:22px;padding:12px 20px;font-size:15px;font-weight:800;display:inline-flex}.receipt-actions{justify-content:center;margin-top:36px;display:flex}.receipt-home-btn{color:#fff;background:#0f172a;border-radius:14px;padding:14px 24px;font-weight:700;text-decoration:none}@media (width<=900px){.results-page{padding:18px}.results-hero.split{flex-direction:column;align-items:flex-start;padding:28px}.wide-candidate-content{grid-template-columns:1fr}.wide-photo-box img,.wide-photo-empty{height:260px}.wide-candidate-name h2,.manifesto-inner h3{font-size:28px}}.stats-two-column{grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:24px;margin-bottom:28px;display:grid}.gender-stats{gap:20px;display:flex}.gender-card{color:#fff;border-radius:22px;flex:1;padding:26px}.gender-card.male{background:linear-gradient(135deg,#2563eb,#1d4ed8)}.gender-card.female{background:linear-gradient(135deg,#db2777,#ec4899)}.gender-card strong{margin-top:12px;font-size:42px;display:block}.turnout-circle{background:linear-gradient(135deg,#16a34a,#22c55e);border-radius:999px;justify-content:center;align-items:center;width:220px;height:220px;margin:auto;display:flex}.turnout-inner{background:#fff;border-radius:999px;flex-direction:column;justify-content:center;align-items:center;width:170px;height:170px;display:flex}.turnout-inner strong{font-size:42px}.stats-row{border-bottom:1px solid #e2e8f0;justify-content:space-between;padding:16px 0;display:flex}.stats-candidate-row.enhanced{border-bottom:1px solid #e2e8f0;justify-content:space-between;align-items:center;padding:18px 0;display:flex}.stats-candidate-row.enhanced strong{font-size:18px;display:block}.stats-candidate-row.enhanced span{color:#64748b}.insight-card{background:#fff;border-top:5px solid;border-radius:24px;padding:28px 24px;box-shadow:0 12px 35px #0f172a14}.insight-card span{color:#64748b;text-transform:uppercase;letter-spacing:.08em;margin-bottom:16px;font-size:13px;font-weight:900;display:block}.insight-card strong{font-size:42px;font-weight:900}.stats-bar-row,.candidate-vote-bar{margin-bottom:24px}.stats-bar-top,.candidate-vote-top{justify-content:space-between;align-items:center;margin-bottom:8px;display:flex}.candidate-vote-top strong{font-size:18px;display:block}.candidate-vote-top span{color:#64748b;font-size:14px}.stats-bar-track{background:#e5e7eb;border-radius:999px;width:100%;height:15px;overflow:hidden}.stats-bar-fill{background:linear-gradient(90deg,#2563eb,#7741be);border-radius:999px;height:100%}.stats-bar-fill.green{background:linear-gradient(90deg,#059669,#22c55e)}.stats-bar-fill.winner-fill{background:linear-gradient(90deg,#16a34a,#22c55e)}.insight-card-grid{grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:18px;margin-bottom:32px;display:grid}.insight-card{background:#fff;border-top:4px solid;border-radius:26px;padding:28px 26px;position:relative;overflow:hidden;box-shadow:0 16px 45px #0f172a14}.insight-card:after{content:"";opacity:.12;filter:blur(8px);border-radius:999px;width:120px;height:120px;position:absolute;top:-40px;right:-40px}.insight-card span{text-transform:uppercase;letter-spacing:.08em;color:#64748b;margin-bottom:18px;font-size:13px;font-weight:900;display:block}.insight-card strong{font-size:52px;font-weight:900;line-height:1}.insight-card.orange{background:linear-gradient(135deg,#fff7ed,#fff);border-color:#f59e0b}.insight-card.orange strong{color:#f59e0b}.insight-card.orange:after{background:#f59e0b}.insight-card.green{background:linear-gradient(135deg,#ecfdf5,#fff);border-color:#059669}.insight-card.green strong{color:#059669}.insight-card.green:after{background:#22c55e}.insight-card.blue{background:linear-gradient(135deg,#eef2ff,#fff);border-color:#4f46e5}.insight-card.blue strong{color:#4f46e5}.insight-card.blue:after{background:#6366f1}.insight-card.red{background:linear-gradient(135deg,#fff1f2,#fff);border-color:#e11d48}.insight-card.red strong{color:#e11d48}.insight-card.red:after{background:#f43f5e}
