/* ===================================================================
   NOTIFICATIONS · POLLS · ELECTIONS
   =================================================================== */

/* ---- bell ---- */
.bell-drop{position:relative}
.bell{position:relative;background:none;border:none;cursor:pointer;color:var(--ink);padding:.3rem;display:grid;place-items:center}
.bell svg{width:21px;height:21px}
.bell-dot{position:absolute;top:-3px;right:-4px;background:var(--red);color:#fff;font-size:.6rem;font-weight:800;
  min-width:16px;height:16px;border-radius:50px;display:grid;place-items:center;padding:0 4px;border:2px solid var(--paper)}
.bell-menu{width:340px;left:auto;right:0;transform:translateY(8px)}
.pbar-drop.bell-drop:hover .bell-menu,.pbar-drop.bell-drop:focus-within .bell-menu{transform:translateY(0)}
.bell-menu::before{left:0;right:0}
.bell-head{display:flex;align-items:center;justify-content:space-between;padding:.5rem .7rem .4rem}
.bell-head b{font-size:.95rem}
.bell-clear{background:none;border:none;color:var(--green);font-weight:700;font-size:.8rem;cursor:pointer}
.bell-item{display:flex;gap:.7rem;align-items:flex-start;padding:.6rem .7rem;border-radius:12px}
.bell-item:hover{background:rgba(1,122,66,.08)}
.bell-item.unread{background:rgba(246,149,29,.09)}
.bell-ic{flex:none;width:38px;height:38px;border-radius:11px;display:grid;place-items:center;color:#fff}
.bell-ic svg{width:18px;height:18px}
.c-green{background:var(--green)}.c-orange{background:var(--orange);color:var(--ink)}.c-red{background:var(--red)}.c-ink{background:var(--ink)}
.bell-item b{display:block;font-size:.88rem;line-height:1.25}
.bell-item small{display:block;color:var(--ink-soft);font-size:.78rem}
.bell-item em{display:block;color:var(--ink-soft);font-size:.7rem;font-style:normal;margin-top:.15rem}
.bell-empty{display:flex;flex-direction:column;align-items:center;gap:.4rem;color:var(--ink-soft);padding:1.6rem;text-align:center;font-size:.85rem}
.bell-empty svg{width:26px;height:26px}
.bell-empty.big{padding:3rem}
.bell-all{display:block;text-align:center;font-weight:700;color:var(--green);padding:.6rem;border-top:1px solid var(--line);margin-top:.3rem}

/* ---- notifications page ---- */
.notif-list{border-radius:18px;padding:.5rem 1rem}
.notif-row{display:flex;gap:.9rem;align-items:flex-start;padding:.9rem .3rem;border-bottom:1px solid rgba(26,23,16,.07)}
.notif-row:last-child{border:none}
.notif-body b{display:block;font-size:.96rem}
.notif-body span{display:block;color:var(--ink-soft);font-size:.86rem;margin-top:.1rem}
.notif-body em{display:block;color:var(--ink-soft);font-size:.75rem;font-style:normal;margin-top:.2rem}

/* ---- polls ---- */
.voice-polls{display:grid;grid-template-columns:repeat(auto-fill,minmax(330px,1fr));gap:1.3rem}
.poll{border-radius:20px;padding:1.4rem}
.poll-head{display:flex;justify-content:space-between;align-items:flex-start;gap:.6rem}
.poll-head h3{font-family:var(--f-disp);font-weight:400;font-size:1.2rem;line-height:1.2}
.poll-tag{display:inline-flex;align-items:center;gap:.3rem;background:rgba(246,149,29,.15);color:#8a5a00;font-weight:700;font-size:.7rem;padding:.25rem .6rem;border-radius:50px;white-space:nowrap}
.poll-tag svg{width:12px;height:12px}
.poll-desc{color:var(--ink-soft);font-size:.9rem;margin:.4rem 0 1rem}
.poll-opts{display:flex;flex-direction:column;gap:.55rem;margin-top:.9rem}
.poll-opt{text-align:left;background:#fff;border:1.5px solid var(--line);border-radius:12px;padding:.75rem 1rem;font:inherit;font-weight:600;cursor:pointer;transition:.18s;color:var(--ink)}
.poll-opt:hover{border-color:var(--green);background:rgba(1,122,66,.04);transform:translateX(3px)}
.poll-results{margin-top:.9rem;display:flex;flex-direction:column;gap:.7rem}
.poll-res .pr-top{display:flex;justify-content:space-between;font-weight:600;font-size:.9rem;margin-bottom:.25rem}
.poll-res .pr-top svg{width:14px;height:14px;color:var(--green);vertical-align:middle}
.pr-bar{height:9px;background:var(--paper-2);border-radius:9px;overflow:hidden}
.pr-bar span{display:block;height:100%;border-radius:9px;background:linear-gradient(90deg,var(--green),var(--green-l));transition:width .6s var(--ease)}
.poll-res.mine .pr-bar span{background:linear-gradient(90deg,var(--orange),#ffce80)}
.poll-total{color:var(--ink-soft);font-size:.8rem;margin-top:.6rem}

/* ---- elections ---- */
.voice-elections{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:1.3rem}
.vote-el{border-radius:20px;overflow:hidden;display:flex;flex-direction:column;transition:transform .3s var(--ease),box-shadow .3s}
.vote-el:hover{transform:translateY(-5px);box-shadow:0 28px 50px -30px rgba(26,23,16,.5)}
.vel-cover{position:relative;height:120px;background:#cdd6cf center/cover no-repeat}
.vel-status{position:absolute;top:.8rem;left:.8rem;font-weight:700;font-size:.72rem;padding:.3rem .7rem;border-radius:50px;background:#fff;color:var(--ink)}
.s-voting{background:var(--green);color:#fff}.s-nominations{background:var(--orange);color:var(--ink)}.s-closed{background:var(--ink);color:#fff}
.vel-body{padding:1.2rem;flex:1;display:flex;flex-direction:column}
.vel-body h3{font-family:var(--f-disp);font-weight:400;font-size:1.2rem;margin-bottom:.3rem}
.vel-body p{color:var(--ink-soft);font-size:.88rem;flex:1;margin-bottom:.8rem}
.vel-cta{display:inline-flex;align-items:center;gap:.4rem;font-weight:700;color:var(--green)}
.vel-cta svg{width:16px;height:16px}

.el-hero{border-radius:22px;padding:clamp(1.5rem,4vw,2.4rem);margin-bottom:1.2rem}
.el-hero .vel-status{position:static;display:inline-block;margin-bottom:.7rem}
.el-deadline{display:inline-flex;align-items:center;gap:.4rem;color:var(--ink-soft);font-weight:600;font-size:.9rem;margin-top:.6rem}
.el-deadline svg{width:16px;height:16px}
.el-pos{margin-bottom:2rem}
.el-pos-head h2{font-family:var(--f-disp);font-weight:400;font-size:1.5rem}
.el-pos-head p{color:var(--ink-soft);margin-bottom:1rem}
.cand-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:1rem;margin-top:.8rem}
.cand{border-radius:18px;padding:1.2rem;display:flex;gap:.9rem}
.cand.mine{box-shadow:0 0 0 2px var(--green)}
.cand-av{width:60px;height:60px;border-radius:14px;flex:none;background:var(--green) center/cover no-repeat;display:grid;place-items:center;color:#fff;font-weight:800;font-size:1.3rem}
.cand-body{flex:1;min-width:0}
.cand-body b{display:flex;align-items:center;gap:.3rem;font-size:1.02rem}
.cand-body b svg{width:16px;height:16px;color:var(--green)}
.cand-body p{color:var(--ink-soft);font-size:.85rem;margin:.3rem 0 .7rem}
.cand .pr-top{display:flex;justify-content:space-between;font-weight:700;font-size:.82rem;margin-bottom:.25rem}
.cand .btn-block{width:100%;justify-content:center}
.el-nominate{margin-top:1.2rem;background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden}
.el-nominate summary{display:flex;align-items:center;gap:.5rem;padding:.9rem 1.1rem;font-weight:700;cursor:pointer;list-style:none}
.el-nominate summary::-webkit-details-marker{display:none}
.el-nominate summary svg{width:18px;height:18px;color:var(--green)}
.el-nom-form{padding:1.1rem;border-top:1px solid var(--line)}
.el-nom-form .field input,.el-nom-form .field textarea{width:100%;font:inherit;padding:.7rem .9rem;border:1.5px solid var(--line);border-radius:10px;background:#fff}
.el-nom-form .field input:focus,.el-nom-form .field textarea:focus{outline:none;border-color:var(--green)}

/* ===================================================================
   BALLOT — election that looks like an election
   =================================================================== */
.ballot{max-width:920px;margin:0 auto;padding:1.4rem clamp(1rem,4vw,2rem) 4rem;position:relative}
.ballot-hero{position:relative;text-align:center;background:#fff;border:1px solid var(--line);border-radius:24px;
  padding:clamp(2rem,5vw,3rem) 1.5rem 2rem;margin-bottom:1.6rem;overflow:hidden;
  box-shadow:0 24px 50px -34px rgba(26,23,16,.4)}
.ballot-hero::before{content:"";position:absolute;top:0;left:0;right:0;height:6px;background:linear-gradient(90deg,var(--green),var(--orange),var(--red))}
.bh-seal{width:72px;height:72px;border-radius:50%;margin:0 auto 1rem;display:grid;place-items:center;color:#fff;
  background:radial-gradient(circle at 35% 30%,var(--green-l),var(--green-d));box-shadow:0 10px 24px -10px var(--green)}
.bh-seal svg{width:34px;height:34px}
.ballot-hero .vel-status{position:static;display:inline-block;margin-bottom:.7rem}
.ballot-hero h1{font-family:var(--f-disp);font-weight:400;font-size:clamp(1.8rem,4.5vw,2.8rem);line-height:1.05}
.bh-desc{color:var(--ink-soft);max-width:560px;margin:.6rem auto 0}
.bh-meta{display:flex;gap:1.4rem;justify-content:center;flex-wrap:wrap;margin-top:1rem;color:var(--ink-soft);font-weight:600;font-size:.85rem}
.bh-meta span{display:inline-flex;align-items:center;gap:.4rem}
.bh-meta svg{width:15px;height:15px}
.bh-progress{max-width:380px;margin:1.4rem auto 0}
.bhp-bar{height:8px;background:var(--paper-2);border-radius:8px;overflow:hidden}
.bhp-bar span{display:block;height:100%;border-radius:8px;background:linear-gradient(90deg,var(--green),var(--green-l));transition:width .5s var(--ease)}
.bh-progress small{display:block;margin-top:.5rem;color:var(--ink-soft);font-size:.82rem}

.ballot-flash{display:flex;align-items:center;gap:.5rem;border-radius:14px;padding:.85rem 1.1rem;margin-bottom:1.2rem;font-weight:600}
.ballot-flash.ok{background:#e3f5ec;color:var(--green-d)}
.ballot-flash svg{width:18px;height:18px}

.ballot-pos{background:#fff;border:1px solid var(--line);border-radius:20px;padding:clamp(1.3rem,3vw,1.8rem);margin-bottom:1.4rem;
  box-shadow:0 18px 40px -34px rgba(26,23,16,.35)}
.bp-head{border-bottom:1px dashed var(--line);padding-bottom:1rem;margin-bottom:1.2rem}
.bp-no{font-weight:800;letter-spacing:.1em;text-transform:uppercase;font-size:.7rem;color:var(--orange)}
.bp-head h2{font-family:var(--f-disp);font-weight:400;font-size:1.5rem;line-height:1.1;margin:.2rem 0}
.bp-head>p{color:var(--ink-soft);font-size:.92rem}
.bp-state{display:inline-flex;align-items:center;gap:.4rem;margin-top:.6rem;font-weight:700;font-size:.84rem;color:var(--green)}
.bp-state svg{width:15px;height:15px}

/* ballot grid + selectable candidate */
.ballot-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:1rem}
.ballot-cand{position:relative;display:flex;flex-direction:column;border:2px solid var(--line);border-radius:16px;
  overflow:hidden;cursor:pointer;transition:.2s;background:#fff}
.ballot-cand input{position:absolute;opacity:0;pointer-events:none}
.ballot-cand:hover{border-color:var(--green);transform:translateY(-3px);box-shadow:0 16px 30px -20px rgba(1,122,66,.5)}
.ballot-cand:has(input:checked){border-color:var(--green);box-shadow:0 0 0 3px rgba(1,122,66,.18)}
.ballot-cand.static{cursor:default}
.bc-check{position:absolute;top:.6rem;right:.6rem;z-index:3;width:26px;height:26px;border-radius:50%;background:#fff;
  border:2px solid var(--line);display:grid;place-items:center;color:transparent;transition:.2s}
.ballot-cand:has(input:checked) .bc-check{background:var(--green);border-color:var(--green);color:#fff}
.bc-check svg{width:15px;height:15px}
.bc-photo{position:relative;height:150px;background:linear-gradient(145deg,var(--green),var(--ink)) center/cover no-repeat;
  display:grid;place-items:center;color:#fff;font-family:var(--f-disp);font-size:2.2rem}
.bc-no{position:absolute;bottom:.5rem;left:.5rem;width:26px;height:26px;border-radius:8px;background:rgba(0,0,0,.55);
  color:#fff;display:grid;place-items:center;font-weight:800;font-size:.85rem;backdrop-filter:blur(4px)}
.bc-body{padding:.9rem 1rem 1.1rem}
.bc-body b{display:block;font-size:1.02rem;line-height:1.2}
.bc-body small{display:block;color:var(--ink-soft);font-size:.82rem;margin-top:.3rem}
.ballot-cast{margin-top:1.2rem;width:100%;justify-content:center;font-size:1.02rem;padding:.95rem}

/* results */
.result-cands{display:flex;flex-direction:column;gap:.8rem}
.rcand{display:flex;align-items:center;gap:.9rem;padding:.8rem;border-radius:14px;border:1px solid var(--line)}
.rcand.lead{border-color:var(--green);background:color-mix(in srgb,var(--green) 5%,#fff)}
.rcand.mine{box-shadow:inset 4px 0 0 var(--orange)}
.rc-pos{width:24px;text-align:center;font-family:var(--f-disp);font-size:1.1rem;color:var(--ink-soft);flex:none}
.rc-av{width:48px;height:48px;border-radius:12px;flex:none;background:var(--green) center/cover no-repeat;display:grid;place-items:center;color:#fff;font-weight:800}
.rc-body{flex:1;min-width:0}
.rc-top{display:flex;justify-content:space-between;align-items:center;gap:.5rem}
.rc-top b{font-size:.98rem}
.rc-badges{display:flex;gap:.4rem;flex:none}
.rc-badges em{font-style:normal;font-weight:800;font-size:.66rem;text-transform:uppercase;letter-spacing:.05em;padding:.2rem .5rem;border-radius:50px}
.rb-you{background:var(--orange);color:var(--ink)}
.rb-lead{background:var(--green);color:#fff}
.rc-bar{height:8px;background:var(--paper-2);border-radius:8px;overflow:hidden;margin:.45rem 0 .35rem}
.rc-bar span{display:block;height:100%;border-radius:8px;background:linear-gradient(90deg,var(--green),var(--green-l));transition:width .6s var(--ease)}
.rcand.mine .rc-bar span{background:linear-gradient(90deg,var(--orange),#ffce80)}
.rc-stat{font-size:.8rem;color:var(--ink-soft);font-weight:600}
.bp-total{text-align:center;color:var(--ink-soft);font-size:.85rem;margin-top:1rem}
