@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');
:root{--navy:#174b32;--blue:#267443;--green:#23834b;--green-dark:#155b35;--gold:#e0b52f;--ink:#1d2b22;--muted:#68786d;--line:#e1eae2;--bg:#f4f8f4}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:Manrope,Arial,sans-serif;line-height:1.55}.wrap{width:min(980px,calc(100% - 32px));margin:auto}.hero{background:linear-gradient(120deg,#174b32,#287a46);color:white;padding:56px 0 62px}.eyebrow{font-size:12px;letter-spacing:2px;font-weight:800;color:#f0d46b}.hero h1{font-size:clamp(32px,5vw,52px);line-height:1.1;margin:15px 0 8px}.hero p{font-size:18px;color:#dce8f2;margin:0}.dates{display:inline-block;margin-top:22px;padding:8px 14px;border:1px solid #ffffff55;border-radius:30px;font-weight:700}.main{padding:32px 0 60px}.intro{margin-bottom:24px}.intro h2{font-size:28px;margin:12px 0 5px}.intro p,.muted{color:var(--muted)}.pill{font-size:11px;letter-spacing:1.3px;color:#805b16;background:#f7e9c9;padding:7px 11px;border-radius:20px;font-weight:800}.panel{background:white;border:1px solid var(--line);border-radius:16px;padding:26px;margin:18px 0;box-shadow:0 8px 26px #183a5610}.panel h3,.panel h2{margin:0 0 8px}.panel h2{font-size:21px}.panel form{display:grid;gap:10px;margin-top:18px}label{font-weight:700;font-size:14px;margin-top:5px}input,select{width:100%;padding:13px 14px;border:1px solid #ccd7e1;border-radius:9px;background:white;font:inherit;color:var(--ink)}input:focus,select:focus{outline:3px solid #d9eaf7;border-color:var(--green)}button,.button{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:9px;background:var(--green);color:white;padding:13px 19px;font:700 14px Manrope,Arial;cursor:pointer;text-decoration:none;margin-top:8px}button:disabled{opacity:.45;cursor:not-allowed}.alert{padding:14px 17px;border-radius:10px;margin:16px 0}.success{background:#e5f5ec;color:#17643b}.error{background:#fff0ed;color:#a33b2d}.info{background:#eaf3fb;color:#24577e}.privacy{padding:17px 20px;background:#edf2f6;border-radius:12px;color:#536475;font-size:13px}.privacy strong{color:var(--ink)}footer{text-align:center;padding:24px;color:#718092;font-size:12px;border-top:1px solid var(--line)}.adminhead{background:var(--green-dark);color:white;padding:16px 0}.adminhead .wrap,.sectionhead{display:flex;justify-content:space-between;align-items:center;gap:15px}.adminhead a{color:white}.stats{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:20px 0}.stat{background:white;border:1px solid var(--line);border-radius:13px;padding:19px}.stat span{display:block;color:var(--muted);font-size:13px}.stat b{font-size:30px}.tablewrap{overflow-x:auto}table{border-collapse:collapse;width:100%;margin-top:12px}th,td{text-align:left;padding:12px 10px;border-bottom:1px solid var(--line);white-space:nowrap}th{font-size:12px;color:var(--muted)}td small{display:block;color:var(--muted)}.secondary{background:#e9f3eb;color:var(--green-dark);margin:0}.candidateedit{display:grid;grid-template-columns:1fr 1fr;gap:10px}.login{max-width:480px;padding-top:8vh}.small{font-size:12px}.login a{color:var(--green)}@media(max-width:600px){.hero{padding:40px 0}.panel{padding:19px}.stats{grid-template-columns:1fr 1fr}.candidateedit{grid-template-columns:1fr}.sectionhead{align-items:flex-start;flex-direction:column}}

.brand{display:flex;align-items:center;gap:24px}.brand img{width:104px;height:122px;object-fit:contain;background:white;border-radius:12px;padding:5px}.brand h1{margin-top:9px}.testflag{display:inline-block;margin-top:14px;padding:7px 12px;border-radius:7px;background:#fff1d5;color:#754c00;font-size:12px;font-weight:800;letter-spacing:.5px}.loginbrand{display:flex;align-items:center;gap:14px;margin-bottom:15px}.loginbrand img{width:58px;height:68px;object-fit:contain}.adminbrand{display:flex;align-items:center;gap:12px}.adminbrand img{width:36px;height:42px;object-fit:contain;background:#fff;border-radius:5px}.periodstatus{display:flex;align-items:center;gap:9px;flex-wrap:wrap;background:#f3f6f8;padding:12px;border-radius:9px;margin:16px 0}.statusdot{width:10px;height:10px;border-radius:50%;display:inline-block}.statusdot.on{background:#23945b}.statusdot.off{background:#b94a48}.periodform{display:grid;grid-template-columns:1fr 1fr;gap:12px}.periodform>div{display:grid;gap:7px}.periodform .checkline{grid-column:1/-1;display:flex;align-items:center;gap:8px;font-weight:500}.periodform .checkline input{width:auto}.periodform button{justify-self:start}@media(max-width:600px){.brand{align-items:flex-start;gap:13px}.brand img{width:72px;height:86px}.brand h1{font-size:29px}.periodform{grid-template-columns:1fr}.periodform .checkline{grid-column:auto}}

.brandmark{width:92px;height:92px;flex:0 0 92px;border:2px solid #ffffffaa;border-radius:50%;display:flex;align-items:center;justify-content:center;font-family:Georgia,serif;font-size:58px;font-weight:700;color:#fff;background:#ffffff12}
.brandmark.smallmark{width:54px;height:54px;flex-basis:54px;font-size:34px;border-color:#267443;color:#267443;background:#e8f3e9}
.brandmark.tiny{width:34px;height:34px;flex-basis:34px;font-size:22px;border-width:1px}
.demo-code{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 17px;margin:16px 0;background:#fff5d9;border:1px solid #f0d28a;border-radius:11px;color:#654b12}
.demo-code div{display:grid;gap:3px}.demo-code span{font-size:12px}.demo-code>b{font-size:28px;letter-spacing:5px;white-space:nowrap;color:#173b59}
.resendform{margin-top:5px!important}.resendform .secondary{background:#e9f3eb;color:#174b32}
.municipal-crest{width:88px;height:104px;object-fit:contain;flex:0 0 auto;background:#fff;border-radius:10px;padding:5px}.brand{display:flex;align-items:center;gap:22px}.adminbrand{display:flex;align-items:center;gap:12px}.adminbrand .municipal-crest{width:38px;height:46px}.loginbrand .municipal-crest{width:64px;height:76px}.demo-code{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px 18px;background:#fff7df;border:1px solid #efd58d;border-radius:12px;margin:16px 0}.demo-code span{display:block;color:#78612c;font-size:13px}.demo-code b{font-size:25px;letter-spacing:4px;color:#63470b}.testflag{display:inline-block;margin-top:12px;padding:6px 11px;background:#fff0c7;color:#76520a;border-radius:6px;font-weight:800;font-size:11px;letter-spacing:.5px}@media(max-width:560px){.municipal-crest{width:64px;height:78px}.brand{gap:12px}.hero h1{font-size:28px}}

.smtpform{display:grid;grid-template-columns:2fr 1fr 1fr 2fr;gap:12px;align-items:end}.smtpform>div{display:grid;gap:7px}.smtpform button{grid-column:1/-1;justify-self:start}.smtp-test{margin-top:22px;padding-top:16px;border-top:1px solid #e4eaf0}.smtp-test form{display:grid;grid-template-columns:2fr auto;gap:10px;align-items:end}.smtp-test form label{grid-column:1/-1}.smtp-test button{margin:0}@media(max-width:700px){.smtpform{grid-template-columns:1fr 1fr}.smtp-test form{grid-template-columns:1fr}}@media(max-width:480px){.smtpform{grid-template-columns:1fr}}


/* V6: vote confirmation and admin refresh */
.vote-success{margin:22px 0;padding:28px 24px;text-align:center;background:#e9f7ef;border:1px solid #b9e2c9;border-radius:16px;color:#155d37;box-shadow:0 8px 24px #183a5610}
.vote-success-icon{width:58px;height:58px;margin:0 auto 12px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#238653;color:#fff;font-size:34px;font-weight:800}
.vote-success h2{margin:0 0 8px;font-size:25px}.vote-success p{margin:0 0 15px;color:#386b50}.vote-success .button{display:inline-flex;margin:4px auto 0}
.admin-actions{display:flex;align-items:center;gap:18px}.admin-actions a{white-space:nowrap}.refresh-button{margin:0;padding:9px 14px;background:#fff;color:#173b59;border:1px solid #ffffff88;border-radius:8px;font-weight:800}.refresh-button span{font-size:19px;line-height:12px;margin-right:5px}@media(max-width:560px){.adminhead .wrap{align-items:flex-start}.adminbrand b{font-size:13px}.admin-actions{gap:10px}.refresh-button{padding:8px 10px;font-size:12px}.vote-success{padding:22px 15px}.vote-success h2{font-size:21px}}

/* V7 – Botevgrad green identity and separated test/official result controls */
.adminhead{background:linear-gradient(110deg,#16482f,#246b3e)}
.hero{background:linear-gradient(120deg,#174b32 0%,#267443 65%,#36864e 100%)}
button,.button{background:#267443}
button:hover,.button:hover{background:#195c36}
input:focus,select:focus{outline:3px solid #d9eddd;border-color:#267443}
.periodstatus{background:#edf5ee}
.statusdot.on{background:#25834b}
.success{background:#e7f4e9;color:#155b35}
.privacy{background:#edf4ed}
.testflag{background:#fff0c4;color:#74520a}
.refresh-button{color:#174b32}
.reset-panel{border-top:4px solid #267443}
.reset-modes{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:18px}
.reset-card{border:1px solid #dfe8df;border-radius:12px;padding:18px;background:#fbfdfb;display:flex;flex-direction:column;justify-content:space-between;gap:12px}
.reset-card h3{margin:10px 0 5px}
.reset-card p{margin:0;color:#68786d}
.mode-label{display:inline-block;padding:5px 9px;border-radius:6px;font-size:11px;font-weight:800;letter-spacing:.5px}
.test-label{background:#fff0c4;color:#74520a}
.live-label{background:#e5f3e8;color:#155b35}
.danger{background:#a83d36}
.danger:hover{background:#852e29}
.official-reset{border-color:#e8d5d2;background:#fffdfd}
@media(max-width:700px){.reset-modes{grid-template-columns:1fr}}
