/* NexusSpira — public poll pages */

.polls-page {
  background: #F2F6FF;
  --poll-surface: #EEF3FC;
  --poll-surface-hover: #E4EDFA;
  --poll-surface-selected: rgba(26, 111, 191, 0.09);
}

.polls-page .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s ease, transform .5s ease;
}
.polls-page .reveal.visible {
  opacity: 1;
  transform: none;
}

/* ===== Shared poll page hero (extends base-public header) ===== */
.polls-page .page-hero{
  padding:var(--space-16) 5% var(--space-12);
  background:transparent;
  position:relative;
  overflow:hidden;
  text-align:center;
}
.polls-page .page-hero::before{
  content:'';
  position:absolute;
  inset:0;
  background:radial-gradient(ellipse 60% 60% at 80% 20%,rgba(255,107,53,0.1) 0%,transparent 70%),
    radial-gradient(ellipse 50% 50% at 15% 80%,rgba(26,111,191,0.1) 0%,transparent 60%);
}
.polls-page .page-hero>*{position:relative;z-index:1}
.polls-page .page-hero h1,
.polls-page .page-hero .page-hero__title{
  font-size:clamp(2.1rem,4.5vw,3.1rem);
  font-weight:800;
  color:var(--navy);
  margin-bottom:14px;
  line-height:1.15;
}
.polls-page .page-hero h1 .accent{
  background:linear-gradient(135deg,#FF6B35,#8B5CF6);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
}
.polls-page .page-hero p{font-size:16px;color:var(--muted);max-width:540px;margin:0 auto}
.polls-page .page-hero .breadcrumb{
  font-size:13px;
  margin-bottom:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  flex-wrap:wrap;
}
.polls-page .page-hero .breadcrumb a{
  color:var(--blue);
  text-decoration:none;
  font-weight:600;
}
.polls-page .page-hero .breadcrumb a:hover{text-decoration:underline}
.polls-page .page-hero .breadcrumb .breadcrumb-sep{
  color:var(--muted);
  opacity:.65;
  font-weight:400;
  user-select:none;
}
.polls-page .page-hero .breadcrumb .breadcrumb-label,
.polls-page .page-hero .breadcrumb .breadcrumb-current{
  color:var(--navy);
  font-weight:700;
}
.polls-page .page-hero .breadcrumb a.breadcrumb-label{
  color:var(--blue);
  font-weight:600;
}

.polls-page .hero-float{position:absolute;border-radius:24px;opacity:.45;pointer-events:none;animation:floatY 7s ease-in-out infinite}
.polls-page .hero-float.f1{top:20%;left:7%;width:42px;height:42px;background:linear-gradient(135deg,#FF6B35,#FF8B55);transform:rotate(12deg);animation-delay:0s}
.polls-page .hero-float.f2{top:65%;left:12%;width:28px;height:28px;border-radius:50%;background:linear-gradient(135deg,#1A6FBF,#00B8C8);animation-delay:1.1s}
.polls-page .hero-float.f3{top:22%;right:9%;width:34px;height:34px;background:linear-gradient(135deg,#8B5CF6,#B794F6);transform:rotate(-10deg);animation-delay:.7s}
.polls-page .hero-float.f4{top:68%;right:14%;width:22px;height:22px;border-radius:50%;background:linear-gradient(135deg,#10B981,#34D399);animation-delay:1.6s}
.polls-page .hero-float.f5{top:10%;right:30%;width:18px;height:18px;background:linear-gradient(135deg,#FF6B35,#FFB800);transform:rotate(45deg);animation-delay:.9s}
@keyframes floatY{0%,100%{transform:translateY(0)}50%{transform:translateY(-14px)}}

.polls-section{background:transparent;padding:20px 5% 40px}
.polls-wrap{max-width:1180px;margin:0 auto}

.featured-poll{position:relative;border-radius:28px;overflow:hidden;background:linear-gradient(135deg,#1A0A3A 0%,#3D1073 45%,#FF6B35 100%);padding:44px;margin-bottom:40px;display:flex;align-items:center;justify-content:space-between;gap:32px;flex-wrap:wrap;transition:transform .3s,box-shadow .3s;box-shadow:0 16px 50px -10px rgba(61,16,115,0.4)}
.featured-poll:not(.featured-poll--voted):hover{transform:translateY(-4px);box-shadow:0 22px 60px -8px rgba(61,16,115,0.5)}
.featured-poll::after{content:'';position:absolute;top:0;left:-60%;width:50%;height:100%;background:linear-gradient(105deg,transparent,rgba(255,255,255,0.1),transparent);animation:sweep 6s ease-in-out infinite;pointer-events:none}
@keyframes sweep{0%{left:-60%}50%{left:120%}100%{left:120%}}
.featured-poll-text{position:relative;z-index:1;color:#fff;max-width:520px;flex:1}
.featured-poll-pill{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:1px;color:#fff;background:rgba(255,255,255,0.18);backdrop-filter:blur(4px);padding:6px 14px;border-radius:50px;margin-bottom:16px}
.featured-poll-text h2{font-size:clamp(1.4rem,2.6vw,2rem);font-weight:800;line-height:1.25;margin-bottom:12px;color:#fff}
.featured-poll-text p{font-size:14px;color:rgba(255,255,255,0.82);line-height:1.65;margin-bottom:22px}
.featured-vote-btn{background:#fff;color:#3D1073;border:none;padding:13px 30px;border-radius:50px;font-size:14px;font-weight:800;cursor:pointer;font-family:inherit;transition:all .2s;display:inline-flex;align-items:center;gap:8px;box-shadow:0 8px 24px rgba(0,0,0,0.18)}
.featured-vote-btn:hover{transform:translateY(-2px);box-shadow:0 12px 32px rgba(0,0,0,0.26)}
.featured-vote-btn.loading,.featured-vote-btn:disabled{opacity:.7;cursor:wait;transform:none}
.featured-options{display:flex;flex-direction:column;gap:8px;margin-bottom:16px}
.featured-option{display:flex;align-items:flex-start;gap:10px;padding:10px 12px;border-radius:12px;background:rgba(255,255,255,0.1);border:1.5px solid rgba(255,255,255,0.16);cursor:pointer;transition:background .2s,border-color .2s}
.featured-option:hover,.featured-option.selected{background:rgba(255,255,255,0.16);border-color:rgba(255,255,255,0.35)}
.featured-option input{margin-top:2px;accent-color:#fff;cursor:pointer}
.featured-option-label{font-size:13px;font-weight:600;color:#fff;line-height:1.45}
.featured-captcha{margin-bottom:14px}
.featured-captcha label{display:block;font-size:12px;font-weight:700;color:rgba(255,255,255,0.9);margin-bottom:8px}
.featured-captcha input{width:100%;max-width:160px;padding:10px 12px;border-radius:10px;border:1.5px solid rgba(255,255,255,0.25);background:rgba(255,255,255,0.95);font-family:inherit;font-size:14px;font-weight:700;color:#3D1073}
.featured-error{font-size:12px;font-weight:700;color:#FECACA;margin:0 0 12px}
.featured-actions{display:flex;flex-direction:column;align-items:flex-start;gap:10px}
.featured-thanks{margin:0;font-size:13px;font-weight:700;color:rgba(255,255,255,0.92)}
.featured-results-link{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:800;color:#fff;text-decoration:none;padding:10px 18px;border-radius:50px;background:rgba(255,255,255,0.16);border:1.5px solid rgba(255,255,255,0.28);transition:all .2s}
.featured-results-link:hover{background:rgba(255,255,255,0.24);transform:translateY(-1px)}
.featured-poll-visual{position:relative;z-index:1;flex-shrink:0;display:flex;flex-direction:column;gap:10px;width:200px}
.featured-bar-row{display:flex;flex-direction:column;gap:4px}
.featured-bar-label-row{display:flex;align-items:center;justify-content:space-between;gap:8px}
.featured-bar-label{font-size:12px;color:#fff;font-weight:600;opacity:0.9;line-height:1.35}
.featured-bar-pct{font-size:11px;font-weight:800;color:#fff;opacity:.95;flex-shrink:0}
.featured-bar-track{height:10px;background:rgba(255,255,255,0.2);border-radius:50px;overflow:hidden}
.featured-bar-fill{height:100%;border-radius:50px;background:rgba(255,255,255,0.85);transition:width .45s ease}
.featured-bar-fill--equal{opacity:.55}
.featured-results-mobile{display:none;flex-direction:column;gap:10px;width:100%;margin-top:4px}
.poll-preview-fill--equal{opacity:.45}

.cat-pills-row{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;margin-bottom:36px}
.cat-pill{display:inline-flex;align-items:center;gap:7px;font-size:13px;font-weight:700;color:var(--muted);padding:9px 18px;border-radius:50px;border:1.5px solid var(--border);background:var(--bg);cursor:default;transition:all .25s}
.cat-pill .cat-emoji{font-size:14px;line-height:1}
.cat-pill.filterable{cursor:pointer}
.cat-pill.filterable:hover{border-color:var(--teal);color:var(--blue);background:var(--white);transform:translateY(-2px);box-shadow:0 4px 14px rgba(0,184,200,0.14)}
.cat-pill.filterable.active{background:var(--navy);border-color:var(--navy);color:#fff;transform:translateY(-2px);box-shadow:0 6px 18px rgba(15,31,92,0.22)}
a.cat-pill{text-decoration:none}

.polls-page--category .page-hero--category::after{content:'';position:absolute;left:0;right:0;bottom:0;height:3px;background:var(--cat-gradient,linear-gradient(90deg,#1A6FBF,#00B8C8))}
.polls-page--category .page-hero--category .hero-eyebrow{color:var(--cat-color,#1A6FBF);border-color:color-mix(in srgb,var(--cat-color,#1A6FBF) 35%,transparent);background:color-mix(in srgb,var(--cat-color,#1A6FBF) 10%,transparent)}
.polls-page--category .page-hero--category h1 .accent{background:none;-webkit-text-fill-color:var(--cat-color,#1A6FBF);color:var(--cat-color,#1A6FBF)}

.polls-row-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px;flex-wrap:wrap;gap:10px}
.polls-row-head h2{font-size:20px;font-weight:800;color:var(--navy)}
.view-all-link{display:inline-flex;align-items:center;gap:8px;font-size:13.5px;font-weight:700;color:var(--blue);text-decoration:none;transition:gap .2s}
.view-all-link:hover{gap:12px}

.polls-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;margin-bottom:50px}
.polls-grid.list-grid{margin-bottom:40px}
.poll-card{position:relative;background:var(--white);border:1.5px solid var(--border);border-radius:22px;overflow:hidden;cursor:pointer;transition:all .3s cubic-bezier(.22,.68,0,1.2);display:flex;flex-direction:column}
.poll-card::before{content:'';position:absolute;top:0;left:0;right:0;height:4px;background:var(--grad);transform:scaleX(0);transform-origin:left;transition:transform .3s ease;z-index:2}
.poll-card:hover{transform:translateY(-6px);box-shadow:0 18px 42px -8px rgba(26,46,107,0.16);border-color:transparent}
.poll-card:hover::before{transform:scaleX(1)}
.poll-card-bar{height:6px;width:100%}
.poll-card-body{padding:22px;flex:1;display:flex;flex-direction:column}
.poll-card-meta{display:flex;align-items:center;gap:8px;margin-bottom:12px;flex-wrap:wrap}
.poll-cat-badge{font-size:10.5px;font-weight:800;text-transform:uppercase;letter-spacing:.6px;padding:4px 11px;border-radius:50px}
.poll-type-badge{font-size:10px;font-weight:700;color:var(--muted);background:var(--bg2);padding:3px 9px;border-radius:50px;display:inline-flex;align-items:center;gap:4px}
.poll-ends-badge{font-size:10px;font-weight:700;color:#D97706;background:rgba(217,119,6,0.1);border:1px solid rgba(217,119,6,0.25);padding:3px 9px;border-radius:50px;margin-left:auto}
.poll-card-body h3{font-size:15.5px;font-weight:700;color:var(--navy);margin-bottom:10px;line-height:1.4;flex:1;transition:color .2s}
.poll-card:hover .poll-card-body h3{color:var(--blue)}
.poll-preview-bars{display:flex;flex-direction:column;gap:7px;margin-bottom:16px}
.poll-preview-row{display:flex;flex-direction:column;gap:3px}
.poll-preview-label{font-size:11.5px;font-weight:600;color:var(--muted)}
.poll-preview-track{height:7px;background:var(--bg2);border-radius:50px;overflow:hidden}
.poll-preview-fill{height:100%;border-radius:50px;transition:width .4s ease}
.poll-card-foot{display:flex;align-items:center;justify-content:space-between;padding-top:14px;border-top:1px solid var(--border)}
.poll-vote-count{font-size:12px;color:var(--muted);font-weight:600;display:flex;align-items:center;gap:5px}
.poll-vote-count svg{width:13px;height:13px;stroke:var(--muted);fill:none;stroke-width:2}
.poll-vote-btn{display:inline-flex;align-items:center;gap:5px;background:var(--grad);color:#fff;border:none;border-radius:50px;padding:8px 18px;font-size:12px;font-weight:700;cursor:pointer;font-family:inherit;transition:all .2s}
.poll-vote-btn:hover{box-shadow:0 4px 16px rgba(26,111,191,0.3);transform:scale(1.03)}
.poll-card.hidden-card{display:none}
.polls-empty{text-align:center;padding:60px 20px;color:var(--muted);display:none}
.polls-empty.show{display:block}
.polls-empty .emoji{font-size:48px;margin-bottom:14px}
.polls-empty h3{font-size:16px;font-weight:700;color:var(--navy);margin-bottom:6px}
.polls-page--list .polls-pagination{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-top:28px;padding-top:20px;border-top:1px solid var(--border)}
.polls-page--list .polls-page-info{font-size:13px;color:var(--muted);font-weight:600}
.polls-page--list .polls-page-btns{display:flex;gap:6px;flex-wrap:wrap}
.polls-page--list .polls-page-btn{width:38px;height:38px;border-radius:10px;border:1.5px solid var(--border);background:var(--white);color:var(--navy);font-family:inherit;font-size:13px;font-weight:700;cursor:pointer;transition:all .2s;display:flex;align-items:center;justify-content:center}
.polls-page--list .polls-page-btn:hover:not(:disabled){border-color:var(--teal);color:var(--teal)}
.polls-page--list .polls-page-btn.active{background:var(--navy);border-color:var(--navy);color:#fff}
.polls-page--list .polls-page-btn:disabled{opacity:.35;cursor:not-allowed}
.polls-page--list .polls-page-btn svg{width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:2.5}
.polls-page--list .polls-grid.is-loading{opacity:.55;pointer-events:none}
.polls-actions{display:flex;flex-direction:column;align-items:center;gap:16px;margin-top:8px}
.load-more-btn{background:var(--white);border:1.5px solid var(--border);color:var(--navy);padding:13px 32px;border-radius:50px;font-size:14px;font-weight:700;cursor:pointer;font-family:inherit;transition:all .2s}
.load-more-btn:hover{border-color:var(--teal);color:var(--blue);box-shadow:0 4px 18px rgba(0,184,200,0.15)}
.polls-stats-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:40px}
.polls-stat{background:var(--bg);border:1.5px solid var(--border);border-radius:18px;padding:20px;text-align:center}
.polls-stat .num{font-size:clamp(1.6rem,2.5vw,2.2rem);font-weight:800;color:var(--navy);display:block;line-height:1}
.polls-stat .lbl{font-size:11px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.7px;margin-top:6px;display:block}

@media(max-width:1000px){.polls-grid{grid-template-columns:repeat(2,1fr)}.featured-poll{padding:30px}.featured-poll-visual{display:none}.featured-results-mobile{display:flex}.polls-stats-strip{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.polls-grid{grid-template-columns:1fr}.featured-poll{flex-direction:column}}

.detail-section{background:transparent;padding:0 5% 80px;display:flex;justify-content:center}
.detail-wrap{max-width:640px;width:100%;margin-top:-40px;position:relative;z-index:2}

/* Poll card */
.poll-detail-card{
  background:var(--white);border:1px solid rgba(209,218,234,0.6);border-radius:28px;
  box-shadow:0 24px 60px -12px rgba(15,31,92,0.16),0 4px 16px rgba(15,31,92,0.06);
  overflow:hidden;
}
.poll-detail-card::before{content:'';display:block;height:5px;background:linear-gradient(90deg,#FF6B35,#8B5CF6,#1A6FBF)}

.poll-detail-body{padding:36px}

/* Meta */
.poll-detail-meta{display:flex;align-items:center;gap:10px;margin-bottom:20px;flex-wrap:wrap}
.pd-cat-badge{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.6px;padding:5px 13px;border-radius:50px}
.pd-type-badge{font-size:11px;font-weight:700;color:var(--muted);background:var(--bg2);padding:4px 10px;border-radius:50px}
.pd-status{font-size:11px;font-weight:700;padding:4px 10px;border-radius:50px}
.pd-status.active{background:rgba(16,185,129,0.1);color:#0D7A56}
.pd-status.closed{background:rgba(255,107,53,0.1);color:#C04A1A}
.pd-ends{font-size:11px;font-weight:700;color:#D97706;background:rgba(217,119,6,0.1);border:1px solid rgba(217,119,6,0.25);padding:4px 10px;border-radius:50px;margin-left:auto}

.poll-detail-body h1{font-size:clamp(1.3rem,2.5vw,1.8rem);font-weight:800;color:var(--navy);line-height:1.3;margin-bottom:10px}
.poll-detail-desc{font-size:14px;color:var(--muted);line-height:1.7;margin-bottom:28px}

/* Options */
.poll-options{display:flex;flex-direction:column;gap:11px;margin-bottom:26px}
.poll-option{
  position:relative;cursor:pointer;
  border:1.5px solid var(--border);border-radius:14px;
  padding:14px 16px 14px 48px;
  background:var(--poll-surface);transition:all .2s;
  display:flex;align-items:center;justify-content:space-between;
}
.poll-option:hover{border-color:var(--teal);background:var(--poll-surface-hover);box-shadow:0 3px 12px rgba(0,184,200,0.1)}
.poll-option.selected{border-color:var(--blue);background:var(--poll-surface-selected);box-shadow:0 3px 14px rgba(26,111,191,0.12)}
.poll-option input[type="radio"],.poll-option input[type="checkbox"]{
  position:absolute;left:16px;top:50%;transform:translateY(-50%);
  width:18px;height:18px;accent-color:var(--blue);cursor:pointer;
}
.poll-option-label{font-size:14px;font-weight:600;color:var(--text);flex:1}
.poll-option.selected .poll-option-label{color:var(--navy)}

/* Results shown before voting (when show_results_before_vote=true) */
.poll-option-pct{font-size:12px;font-weight:700;color:var(--muted);margin-left:12px;min-width:36px;text-align:right}
.poll-option-bar{
  position:absolute;bottom:0;left:0;height:3px;border-radius:0 0 0 12px;
  background:linear-gradient(90deg,#1A6FBF,#00B8C8);
  transition:width .5s ease;
}

/* Type hint */
.poll-type-hint{
  font-size:12px;color:var(--muted);font-weight:600;margin-bottom:18px;
  display:flex;align-items:center;gap:6px;
}
.poll-type-hint svg{width:14px;height:14px;stroke:var(--muted);fill:none;stroke-width:2}

/* Captcha */
.captcha-block{
  background:var(--poll-surface);border:1.5px solid var(--border);border-radius:16px;
  padding:18px;margin-bottom:22px;
}
.captcha-block label{font-size:12.5px;font-weight:700;color:var(--navy);display:block;margin-bottom:10px}
.captcha-row{display:flex;gap:10px;align-items:center}
.captcha-question{
  font-size:17px;font-weight:800;color:var(--navy);
  background:var(--white);border:1.5px solid var(--border);border-radius:10px;
  padding:10px 16px;min-width:140px;text-align:center;letter-spacing:.5px;
}
.captcha-input{
  flex:1;padding:11px 14px;border-radius:10px;border:1.5px solid var(--border);
  font-size:15px;font-weight:700;font-family:inherit;color:var(--text);
  background:var(--white);outline:none;transition:all .2s;text-align:center;
}
.captcha-input:focus{border-color:var(--teal);box-shadow:0 0 0 3px rgba(0,184,200,0.12)}
.captcha-refresh{
  background:none;border:1.5px solid var(--border);border-radius:10px;
  padding:10px 13px;cursor:pointer;font-size:16px;transition:all .2s;color:var(--muted);
}
.captcha-refresh:hover{border-color:var(--teal);color:var(--blue)}

/* Error & success messages */
.vote-error{
  display:none;align-items:center;gap:8px;
  background:rgba(255,107,53,0.08);border:1.5px solid rgba(255,107,53,0.3);
  border-radius:12px;padding:12px 16px;margin-bottom:18px;
  font-size:13px;font-weight:600;color:#C04A1A;
}
.vote-error.show{display:flex}

/* Submit row */
.vote-submit-row{display:flex;gap:12px;align-items:center}
.vote-btn{
  flex:1;background:var(--grad);color:#fff;border:none;
  padding:14px;border-radius:14px;font-size:15px;font-weight:700;
  cursor:pointer;font-family:inherit;transition:all .2s;
  box-shadow:0 6px 22px rgba(26,111,191,0.28);
  display:flex;align-items:center;justify-content:center;gap:8px;
}
.vote-btn:hover{transform:translateY(-2px);box-shadow:0 10px 30px rgba(26,111,191,0.38)}
.vote-btn:disabled{opacity:.5;cursor:not-allowed;transform:none}
.vote-btn .spinner{
  width:16px;height:16px;border:2px solid rgba(255,255,255,0.4);
  border-top-color:#fff;border-radius:50%;
  animation:spin .7s linear infinite;display:none;
}
.vote-btn.loading .btn-label{display:none}
.vote-btn.loading .spinner{display:block}
@keyframes spin{to{transform:rotate(360deg)}}

/* Vote count footer */
.poll-detail-footer{
  display:flex;align-items:center;justify-content:space-between;
  padding:18px 36px;background:var(--bg);border-top:1px solid var(--border);
  flex-wrap:wrap;gap:10px;
}
.pd-vote-total{font-size:13px;color:var(--muted);font-weight:600;display:flex;align-items:center;gap:6px}
.pd-vote-total svg{width:14px;height:14px;stroke:var(--muted);fill:none;stroke-width:2}
.pd-share{display:flex;align-items:center;gap:8px;font-size:12.5px;font-weight:700;color:var(--muted)}
.share-btn{
  width:30px;height:30px;border-radius:50%;background:var(--white);
  border:1.5px solid var(--border);display:flex;align-items:center;justify-content:center;
  cursor:pointer;font-size:13px;transition:all .2s;text-decoration:none;color:var(--navy);
}
.share-btn:hover{border-color:var(--teal);color:var(--blue)}

/* Related polls */
.related-section{background:var(--bg2);padding:60px 5%}
.related-wrap{max-width:640px;margin:0 auto}
.related-wrap h3{font-size:18px;font-weight:800;color:var(--navy);margin-bottom:20px}
.related-list{display:flex;flex-direction:column;gap:12px}
.related-item{
  background:var(--white);border:1.5px solid var(--border);border-radius:16px;
  padding:16px 20px;display:flex;align-items:center;justify-content:space-between;
  gap:14px;cursor:pointer;transition:all .22s;text-decoration:none;
}
.related-item:hover{border-color:var(--teal);box-shadow:0 4px 16px rgba(0,184,200,0.12);transform:translateY(-2px)}
.related-item h4{font-size:14px;font-weight:700;color:var(--navy);line-height:1.35;flex:1}
.related-item:hover h4{color:var(--blue)}
.related-item .ri-arrow{font-size:16px;color:var(--muted);flex-shrink:0;transition:transform .2s}
.related-item:hover .ri-arrow{transform:translateX(4px);color:var(--blue)}
.related-item .ri-votes{font-size:11px;color:var(--muted);font-weight:600;margin-top:3px;display:block}

@media(max-width:600px){
  .poll-detail-body{padding:26px 20px}
  .poll-detail-footer{padding:16px 20px}
  .captcha-row{flex-wrap:wrap}
  .vote-submit-row{flex-direction:column}
  .vote-btn{width:100%}
}

/* Thank you banner — shown only if coming from a vote */
.thankyou-banner{
  max-width:640px;margin:0 auto 0;position:relative;z-index:1;
}
.thankyou-pill{
  display:inline-flex;align-items:center;gap:8px;
  background:rgba(16,185,129,0.12);border:1.5px solid rgba(16,185,129,0.3);
  border-radius:50px;padding:10px 20px;font-size:13.5px;font-weight:700;color:#0D7A56;
}

.results-section{background:transparent;padding:0 5% 80px;display:flex;justify-content:center}
.results-wrap{max-width:640px;width:100%;margin-top:-30px;position:relative;z-index:2}

/* Results card */
.results-card{
  background:var(--white);border:1px solid rgba(209,218,234,0.6);border-radius:28px;
  box-shadow:0 24px 60px -12px rgba(15,31,92,0.16),0 4px 16px rgba(15,31,92,0.06);
  overflow:hidden;
}
.results-card::before{content:'';display:block;height:5px;background:linear-gradient(90deg,#8B5CF6,#1A6FBF,#00B8C8)}
.results-body{padding:36px}

/* Meta */
.results-meta{display:flex;align-items:center;gap:10px;margin-bottom:20px;flex-wrap:wrap}
.r-cat-badge{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.6px;padding:5px 13px;border-radius:50px}
.r-type-badge{font-size:11px;font-weight:700;color:var(--muted);background:var(--bg2);padding:4px 10px;border-radius:50px}
.r-status{font-size:11px;font-weight:700;padding:4px 10px;border-radius:50px;background:rgba(16,185,129,0.1);color:#0D7A56}

.results-body h1{font-size:clamp(1.3rem,2.5vw,1.75rem);font-weight:800;color:var(--navy);line-height:1.3;margin-bottom:22px}

/* Result bars */
.result-bars{display:flex;flex-direction:column;gap:16px;margin-bottom:28px}
.result-row{position:relative}
.result-row-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:7px;gap:10px}
.result-label{font-size:13.5px;font-weight:600;color:var(--text);flex:1;line-height:1.35}
.result-label.winner{font-weight:800;color:var(--navy)}
.result-pct{font-size:13.5px;font-weight:800;color:var(--navy);flex-shrink:0;min-width:40px;text-align:right}
.result-count{font-size:11.5px;color:var(--muted);font-weight:600;margin-left:6px}
.result-track{height:12px;background:var(--bg2);border-radius:50px;overflow:hidden;position:relative}
.result-fill{height:100%;border-radius:50px;width:0;transition:width 1.2s cubic-bezier(.22,.68,0,1)}
.result-row.winner-row .result-fill{box-shadow:0 2px 8px rgba(26,111,191,0.35)}
.result-row .winner-crown{
  position:absolute;top:-2px;right:0;
  font-size:14px;opacity:0;transform:translateY(4px);
  transition:opacity .4s .8s,transform .4s .8s;
}
.result-row.winner-row .winner-crown{opacity:1;transform:translateY(0)}

/* Your vote indicator */
.result-row.your-vote .result-label::after{
  content:'← Your vote';font-size:10px;font-weight:700;color:var(--blue);
  margin-left:8px;background:rgba(26,111,191,0.1);padding:2px 8px;border-radius:50px;
}

/* Poll stats row */
.results-stats{
  display:grid;grid-template-columns:repeat(3,1fr);gap:12px;
  margin-bottom:28px;padding-top:22px;border-top:1px solid var(--border);
}
.results-stat{text-align:center}
.results-stat .num{font-size:clamp(1.2rem,2vw,1.6rem);font-weight:800;color:var(--navy);display:block;line-height:1}
.results-stat .lbl{font-size:11px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.7px;margin-top:4px;display:block}

/* Action buttons */
.results-actions{display:flex;gap:12px;flex-wrap:wrap}
.btn-vote-again{
  flex:1;background:var(--grad);color:#fff;border:none;
  padding:13px;border-radius:14px;font-size:14px;font-weight:700;
  cursor:pointer;font-family:inherit;transition:all .2s;
  box-shadow:0 6px 22px rgba(26,111,191,0.26);
}
.btn-vote-again:hover{transform:translateY(-2px);box-shadow:0 10px 30px rgba(26,111,191,0.36)}
.btn-share-results{
  flex:1;background:var(--bg);border:1.5px solid var(--border);color:var(--navy);
  padding:13px;border-radius:14px;font-size:14px;font-weight:700;
  cursor:pointer;font-family:inherit;transition:all .2s;
}
.btn-share-results:hover{border-color:var(--teal);color:var(--blue)}

/* Results card footer */
.results-card-footer{
  display:flex;align-items:center;justify-content:space-between;
  padding:18px 36px;background:var(--bg);border-top:1px solid var(--border);
  flex-wrap:wrap;gap:10px;
}
.rcf-left{font-size:13px;color:var(--muted);font-weight:600;display:flex;align-items:center;gap:6px}
.rcf-left svg{width:14px;height:14px;stroke:var(--muted);fill:none;stroke-width:2}
.rcf-right{display:flex;align-items:center;gap:8px;font-size:12.5px;font-weight:700;color:var(--muted)}
.share-btn{width:30px;height:30px;border-radius:50%;background:var(--white);border:1.5px solid var(--border);display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:13px;transition:all .2s;text-decoration:none;color:var(--navy)}
.share-btn:hover{border-color:var(--teal);color:var(--blue)}

@media(max-width:600px){
  .results-body{padding:26px 20px}
  .results-card-footer{padding:16px 20px}
  .results-stats{grid-template-columns:repeat(3,1fr);gap:8px}
  .results-actions{flex-direction:column}
}