@font-face { font-family: 'SolaimanLipi'; src: url('fonts/solaimanlipi-normal-v1.0.woff2') format('woff2'); font-weight: 100 500; font-display: swap; }
@font-face { font-family: 'SolaimanLipi'; src: url('fonts/solaimanlipi-bold-v1.0.woff2') format('woff2'); font-weight: 600 900; font-display: swap; }

:root {
  --green: #0b5d3b;
  --green-d: #063a25;
  --green-l: #e7f3ec;
  --red: #e63946;
  --red-d: #c1121f;
  --gold: #ffd166;
  --ink: #1b2a22;
  --muted: #5d6d64;
  --line: #dfe7e2;
  --bg: #f6f8f7;
  --card: #fff;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'SolaimanLipi', system-ui, sans-serif; font-size: 17px; line-height: 1.65; color: var(--ink); background: var(--bg); }
a { color: var(--green); }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.3; margin: 0 0 .5em; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.hidden { display: none !important; }
.h2 { font-size: 28px; }

/* top bar */
.topbar { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand strong { display: block; font-size: 21px; color: var(--green); line-height: 1.1; }
.brand small { display: block; font-size: 13px; color: var(--muted); }
.nav { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--ink); padding: 6px 10px; border-radius: 8px; font-weight: 500; }
.nav a:hover { background: var(--green-l); }
.nav .nav-cta { background: var(--green); color: #fff; }
.nav .nav-cta:hover { background: var(--green-d); }
@media (max-width: 760px) {
  .nav a:not(.nav-cta) { display: none; }
  .brand small { display: none; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 10px; padding: 11px 20px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; transition: transform .1s, background .15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-d); }
.btn-vote { background: var(--red); color: #fff; font-size: 19px; padding: 14px 24px; box-shadow: 0 6px 18px rgba(230, 57, 70, .35); }
.btn-vote:hover { background: var(--red-d); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: #fff; }
.btn-danger { background: #fff; color: var(--red-d); border: 1px solid #f3c4c8; }
.btn-danger:hover { background: #fdecee; }
.btn-sm { padding: 6px 12px; font-size: 15px; }
.btn-block { width: 100%; }

/* hero */
.hero { background: linear-gradient(160deg, var(--green-l), #fff 60%); padding: 48px 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 36px; align-items: start; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { font-size: clamp(32px, 5vw, 50px); color: var(--green-d); }
.lead { font-size: 19px; color: var(--muted); }
.eyebrow { display: inline-block; font-weight: 600; font-size: 14px; color: var(--green); background: var(--green-l); padding: 3px 12px; border-radius: 99px; margin-bottom: 12px; }
.eyebrow.light { background: rgba(255,255,255,.15); color: #fff; }
.vote-banner { margin: 28px 0; padding: 22px; border-radius: var(--radius); background: var(--green); color: #fff; display: flex; flex-direction: column; gap: 14px; }
.vote-banner h2 { font-size: 24px; margin: 0; }
.vote-banner p { margin: 0; opacity: .9; }
.vote-banner .btn-vote { align-self: flex-start; }
@media (max-width: 520px) { .vote-banner .btn-vote { align-self: stretch; font-size: 17px; } }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stats div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; text-align: center; }
.stats strong { display: block; font-size: 26px; color: var(--green); }
.stats span { font-size: 15px; color: var(--muted); }

/* cards & forms */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.reg-card { position: sticky; top: 88px; box-shadow: 0 10px 30px rgba(11, 93, 59, .08); border-top: 5px solid var(--red); }
.reg-card h2 { color: var(--green-d); margin-bottom: 2px; }
.form { display: grid; gap: 12px; }
.form label { display: grid; gap: 4px; font-weight: 500; font-size: 15px; }
.form input, .form select, .member-search { font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid #cdd8d1; border-radius: 9px; background: #fff; width: 100%; }
.form input:focus, .form select:focus { outline: 2px solid var(--green); outline-offset: 0; border-color: transparent; }
.form .check { display: flex; align-items: center; gap: 8px; }
.form .check input { width: auto; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }
.form-inline { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); align-items: end; }
.flash { padding: 10px 14px; border-radius: 9px; margin: 10px 0; font-size: 15px; }
.flash-success { background: var(--green-l); color: var(--green-d); border: 1px solid #b9dcc8; }
.flash-error { background: #fdecee; color: var(--red-d); border: 1px solid #f3c4c8; }

/* sections */
.section { padding: 48px 0; }
.section.alt { background: #fff; border-block: 1px solid var(--line); }
.section-title { text-align: center; font-size: 28px; color: var(--green-d); margin: 10px 0 22px; }
.section-title.left { text-align: left; margin-top: 40px; }
.work-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.work-ico { font-size: 34px; }
.work h3 { margin-top: 8px; color: var(--green-d); }
.work p { margin: 0; color: var(--muted); }

/* election */
.election-hero { background: linear-gradient(160deg, var(--green), var(--green-d)); color: #fff; padding: 56px 0; }
.election-hero h1 { font-size: clamp(30px, 5vw, 44px); }
.light { color: rgba(255,255,255,.9); }
.countdown { display: flex; justify-content: center; gap: 12px; margin: 22px 0; flex-wrap: wrap; }
.countdown div { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius); min-width: 104px; padding: 14px 8px; }
.countdown strong { display: block; font-size: 46px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.countdown span { font-size: 15px; opacity: .85; }
@media (max-width: 520px) { .countdown div { min-width: 72px; } .countdown strong { font-size: 32px; } }
.cand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 30px; }
.cand { text-align: center; padding: 16px; }
.cand img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; margin-bottom: 10px; background: var(--green-l); }
.cand h3 { font-size: 20px; margin: 0; }
.cand p { margin: 2px 0 0; font-size: 15px; }

/* ballot */
.ballot-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.ballot-post { border: 0; padding: 0; margin: 20px 0; }
.ballot-post legend { font-size: 22px; font-weight: 700; color: var(--green-d); margin-bottom: 12px; }
.pick { position: relative; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick .tick { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; background: var(--red); color: #fff; font-size: 22px; font-weight: 700; display: none; align-items: center; justify-content: center; }
.pick:has(input:checked) { border: 3px solid var(--red); box-shadow: 0 8px 22px rgba(230, 57, 70, .2); }
.pick:has(input:checked) .tick { display: flex; }
.pick:has(input:focus-visible) { outline: 3px solid var(--green); }
.auth { max-width: 460px; }

/* thanks */
.photocard { width: 100%; max-width: 540px; height: auto; margin: 20px auto; border-radius: var(--radius); box-shadow: 0 14px 40px rgba(0,0,0,.18); display: block; }

/* admin */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-top: 16px; }
.kpi span { display: block; color: var(--muted); font-size: 15px; }
.kpi strong { font-size: 28px; color: var(--green-d); }
.results-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.result-row { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.result-row img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.result-body { flex: 1; min-width: 0; }
.result-top { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 16px; }
.bar { height: 10px; background: var(--green-l); border-radius: 99px; overflow: hidden; margin-top: 4px; }
.bar i { display: block; height: 100%; background: var(--green); border-radius: 99px; }
.lead-row .bar i { background: var(--red); }
.sub { margin: 24px 0 12px; color: var(--green-d); }
.cand-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.cand-edit img { width: 110px; height: 110px; border-radius: 10px; object-fit: cover; margin-bottom: 10px; }
.cand-edit > form:last-child { margin-top: 8px; }
.member-search { margin: 18px 0 10px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--bg); }
.actions form { display: flex; gap: 6px; flex-wrap: wrap; }
.pill { font-size: 13px; padding: 2px 10px; border-radius: 99px; white-space: nowrap; }
.pill-approved { background: var(--green-l); color: var(--green-d); }
.pill-pending { background: #fff4d6; color: #8a5b00; }
.pill-rejected { background: #fdecee; color: var(--red-d); }

.footer { background: var(--green-d); color: #fff; padding: 26px 0; text-align: center; }
.footer p { margin: 2px 0; }
.footer .muted { color: rgba(255,255,255,.7); }

/* logo */
.logo { border-radius: 50%; background: #fff; object-fit: cover; }
.brand .logo { box-shadow: 0 0 0 1px var(--line); }
.footer-logo { margin: 0 auto 8px; }
.about-row { display: flex; gap: 28px; align-items: center; }
.about-logo { width: 180px; height: 180px; flex-shrink: 0; border-radius: 50%; box-shadow: 0 8px 24px rgba(11, 93, 59, .12); }
@media (max-width: 620px) { .about-row { flex-direction: column; text-align: center; } .about-logo { width: 150px; height: 150px; } }

/* election commission & schedule */
.banner-link { color: #fff; font-weight: 500; opacity: .9; }
.banner-link:hover { opacity: 1; }
.ec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.ec-card { text-align: center; }
.ec-card img { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; box-shadow: 0 0 0 4px var(--green-l); }
.ec-card h3 { margin: 0; color: var(--green-d); }
.ec-card p { margin: 0 0 10px; }
.ec-links { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.ec-links a { text-decoration: none; font-size: 15px; font-weight: 500; padding: 5px 12px; border-radius: 99px; background: var(--green-l); }
.timeline { list-style: none; margin: 0 0 28px; padding: 0 0 0 26px; border-left: 3px solid var(--line); }
.timeline li { position: relative; padding: 0 0 20px 8px; }
.timeline li::before { content: ''; position: absolute; left: -35px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--red); }
.timeline li.done::before { background: var(--green); border-color: var(--green); }
.timeline li.done { opacity: .7; }
.timeline strong { display: block; color: var(--green-d); }
.timeline span { color: var(--muted); font-size: 15px; }
.notice h3 { color: var(--green-d); margin: 18px 0 4px; font-size: 19px; }
.notice h3:first-child { margin-top: 0; }
.notice p { margin: 0; }
.notice .sign { margin-top: 20px; }
.banner-links { display: flex; gap: 18px; flex-wrap: wrap; }
.page-links { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 0; }
.ec-banner { width: 100%; max-width: 540px; height: auto; margin: 0 auto 24px; border-radius: var(--radius); box-shadow: 0 12px 32px rgba(0,0,0,.15); }
@media (max-width: 900px) { .nav a:not(.nav-cta) { padding: 6px 7px; } }

/* banner buttons (tofsil / commission) */
.banner-links { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .banner-links { grid-template-columns: 1fr; } }
.banner-btn { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; background: #fff; color: var(--green-d); text-decoration: none; border: 2px solid transparent; box-shadow: 0 4px 14px rgba(0,0,0,.12); transition: transform .12s, border-color .12s, box-shadow .12s; }
.banner-btn:hover { transform: translateY(-2px); border-color: var(--gold); box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.banner-btn svg { flex-shrink: 0; width: 40px; height: 40px; padding: 9px; border-radius: 10px; background: var(--green-l); color: var(--green); }
.banner-btn span { flex: 1; line-height: 1.3; }
.banner-btn strong { display: block; font-size: 17px; }
.banner-btn small { color: var(--muted); font-size: 13px; }
.banner-btn em { font-style: normal; font-size: 22px; color: var(--red); font-weight: 700; }

.hint { margin: -4px 0 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.pw-reset { margin-top: 6px; font-size: 14px; }
.pw-reset summary { cursor: pointer; color: var(--green); }
.pw-reset form { display: flex; gap: 6px; margin-top: 6px; }
.pw-reset input { font: inherit; font-size: 14px; padding: 5px 8px; border: 1px solid #cdd8d1; border-radius: 7px; min-width: 0; flex: 1; }
@media (min-width: 761px) and (max-width: 1100px) { .nav a:not(.nav-cta) { padding: 6px 6px; font-size: 15px; } .brand small { display: none; } }

/* member list */
.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.member { display: flex; gap: 14px; align-items: center; padding: 14px; }
.member[hidden] { display: none; }
.member img { width: 84px; height: 84px; border-radius: 12px; object-fit: cover; flex-shrink: 0; background: var(--green-l); }
.member div { min-width: 0; }
.member h3 { font-size: 18px; margin: 2px 0 0; color: var(--green-d); }
.member p { margin: 0; font-size: 14px; }
.member-no { display: inline-block; font-size: 12px; font-weight: 600; color: #fff; background: var(--green); padding: 1px 9px; border-radius: 99px; }
.member-phone a { color: var(--ink); text-decoration: none; font-weight: 500; }
.mcell { display: flex; gap: 8px; align-items: flex-start; }
.mcell img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }

/* larger candidate cards (election page + ballot) */
.cand-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 340px)); justify-content: center; gap: 24px; }
.cand { padding: 0; overflow: hidden; border-radius: 18px; box-shadow: 0 10px 28px rgba(11, 93, 59, .10); }
.cand img { border-radius: 0; margin: 0; background: #fff; border-bottom: 4px solid var(--green); }
.cand h3 { font-size: 24px; padding: 14px 14px 0; color: var(--green-d); }
.cand p { padding: 2px 14px 16px; font-size: 16px; }
.pick .tick { top: 14px; right: 14px; width: 44px; height: 44px; font-size: 26px; }
.pick:has(input:checked) img { border-bottom-color: var(--red); }

/* nav login */
.nav .nav-login { border: 1px solid var(--green); color: var(--green); }
@media (max-width: 760px) { .nav .nav-login { display: inline-block !important; } }

/* candidate cards as links */
a.cand { display: block; color: inherit; text-decoration: none; transition: transform .12s, box-shadow .12s; }
a.cand:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(11, 93, 59, .18); }
.cand-more { display: block; padding: 0 14px 16px; margin-top: -8px; color: var(--red); font-weight: 600; font-size: 15px; }
.btn-mock { background: #fff; color: var(--green-d); border: 2px solid var(--gold); font-size: 18px; }
.btn-mock:hover { background: var(--gold); }

/* member list links */
.member { cursor: pointer; transition: box-shadow .12s, transform .12s; }
.member:hover { box-shadow: 0 8px 22px rgba(11, 93, 59, .14); transform: translateY(-2px); }
.member h3 a { color: inherit; text-decoration: none; }
.member h3 a:hover { color: var(--red); }

/* public profile */
.profile-hero { background: linear-gradient(160deg, var(--green), var(--green-d)); color: #fff; padding: 44px 0; }
.profile-head { display: flex; gap: 28px; align-items: center; }
.profile-photo { width: 180px; height: 180px; border-radius: 50%; object-fit: cover; border: 6px solid #fff; box-shadow: 0 10px 30px rgba(0,0,0,.25); flex-shrink: 0; background: #fff; }
.profile-head h1 { font-size: clamp(28px, 5vw, 40px); margin: 6px 0 0; }
.name-en { margin: 0; opacity: .85; font-size: 18px; letter-spacing: .3px; }
.profile-bio { margin: 10px 0 12px; font-size: 18px; color: var(--gold); }
.profile-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.profile-hero .member-no { background: rgba(255,255,255,.18); }
.badge-cand { display: inline-block; font-size: 12px; font-weight: 600; background: var(--red); color: #fff; padding: 1px 9px; border-radius: 99px; }
.light-btn { color: #fff; border-color: rgba(255,255,255,.5); }
.light-btn:hover { background: rgba(255,255,255,.1); }
@media (max-width: 620px) { .profile-head { flex-direction: column; text-align: center; } .profile-badges { justify-content: center; } .profile-photo { width: 150px; height: 150px; } }
.profile-card { margin-bottom: 20px; }
.profile-dl { margin: 0; display: grid; gap: 0; }
.profile-dl div { display: grid; grid-template-columns: 160px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.profile-dl div:last-child { border-bottom: 0; }
.profile-dl dt { color: var(--muted); }
.profile-dl dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
@media (max-width: 520px) { .profile-dl div { grid-template-columns: 1fr; gap: 0; } }

/* member panel */
.h3 { font-size: 22px; color: var(--green-d); }
.photo-row { display: flex; gap: 16px; align-items: center; }
.photo-row img { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--green-l); }
.slug-field { display: flex; align-items: stretch; border: 1px solid #cdd8d1; border-radius: 9px; overflow: hidden; }
.slug-field span { padding: 10px; background: var(--bg); color: var(--muted); font-size: 14px; white-space: nowrap; display: flex; align-items: center; }
.slug-field input { border: 0 !important; border-radius: 0 !important; min-width: 0; }
@media (max-width: 520px) { .slug-field span { display: none; } }

/* mock vote */
.mock-layout { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 900px) { .mock-layout { grid-template-columns: 1fr; } }
.mock-steps ol { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.mock-steps li { counter-increment: s; position: relative; padding: 0 0 16px 44px; }
.mock-steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--green-l); color: var(--green-d); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.mock-steps li.active::before { background: var(--red); color: #fff; }
.mock-steps li.done::before { content: '✓'; background: var(--green); color: #fff; }
.mock-steps li strong { display: block; color: var(--green-d); }
.mock-steps li span { font-size: 15px; color: var(--muted); }
.mock-box { position: relative; scroll-margin-top: 90px; }
.mock-tag { position: absolute; top: -12px; right: 16px; background: var(--gold); color: #5a3d00; font-size: 13px; font-weight: 700; padding: 2px 12px; border-radius: 99px; }
.mock-cands { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.mock-cands .cand h3 { font-size: 18px; padding-bottom: 14px; }
.mock-summary { font-size: 18px; font-weight: 600; color: var(--green-d); }
.mock-done { width: 84px; height: 84px; margin: 0 auto 10px; border-radius: 50%; background: var(--green); color: #fff; font-size: 44px; display: flex; align-items: center; justify-content: center; }
