:root {
  --brand-primary: #2f6fed;
  --brand-secondary: #19c2a0;
  --brand-dark: #0f172a;
  --brand-muted: #64748b;
  --brand-soft: #eef4ff;
  --brand-line: rgba(148, 163, 184, .16);
  --brand-success-soft: #ecfdf5;
  --brand-warning-soft: #fff7ed;
  --shadow-soft: 0 20px 60px rgba(15, 23, 42, .08);
  --radius-xl: 24px;
  --radius-lg: 18px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 35%, #f8fafc 100%);
  color: var(--brand-dark);
}
.navbar {
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,.78);
  border-bottom: 1px solid rgba(226,232,240,.8);
}
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  text-decoration: none;
  color: var(--brand-dark);
  font-weight: 800;
  letter-spacing: -.03em;
}
.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  box-shadow: 0 12px 28px rgba(47,111,237,.25);
}
.brand-text small {
  display: block;
  color: var(--brand-muted);
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: -2px;
}
.nav-link {
  color: #334155;
  font-weight: 600;
}
.nav-link:hover,
.nav-link.active { color: var(--brand-primary); }
.btn-brand {
  background: linear-gradient(135deg, var(--brand-primary), #4f7cf0);
  color: #fff;
  border: 0;
  box-shadow: 0 14px 30px rgba(47,111,237,.22);
}
.btn-brand:hover,
.btn-brand:focus {
  color: #fff;
  transform: translateY(-1px);
}
.btn-soft {
  background: #fff;
  border: 1px solid rgba(100,116,139,.16);
  color: var(--brand-dark);
}
.hero {
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(60px);
  z-index: -1;
}
.hero::before {
  width: 280px;
  height: 280px;
  background: rgba(47,111,237,.18);
  top: -60px;
  left: -60px;
}
.hero::after {
  width: 320px;
  height: 320px;
  background: rgba(25,194,160,.14);
  right: -90px;
  top: 40px;
}
.hero-badge,
.soft-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(100,116,139,.15);
  padding: .6rem .9rem;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  color: var(--brand-muted);
  font-weight: 600;
  font-size: .92rem;
}
.display-hero {
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.02;
  font-size: clamp(2.3rem, 5vw, 4.6rem);
  margin: 1.25rem 0 1rem;
}
.lead-hero,
.section-subtitle,
.muted-copy {
  color: var(--brand-muted);
  line-height: 1.75;
}
.lead-hero {
  max-width: 42rem;
  font-size: 1.08rem;
}
.hero-card,
.ui-card,
.candidate-card,
.sidebar-card,
.summary-card,
.metric-card,
.list-card,
.cta-card,
.feature-card,
.stat-card {
  background: rgba(255,255,255,.9);
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}
.hero-card,
.ui-card,
.cta-card,
.feature-card,
.stat-card,
.sidebar-card,
.summary-card,
.metric-card,
.list-card { padding: 1.5rem; }
.section { padding: 5rem 0; }
.section-title {
  font-size: clamp(1.75rem, 3vw, 2.55rem);
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: .8rem;
}
.vote-shell,
.dashboard-shell { padding: 1rem 0; }
.section-label {
  display: inline-block;
  margin-bottom: .9rem;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 800;
  color: var(--brand-primary);
}
.mock-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.dot-group { display: flex; gap: .45rem; }
.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #cbd5e1;
}
.pill-status {
  padding: .45rem .7rem;
  border-radius: 999px;
  background: var(--brand-success-soft);
  color: #047857;
  font-weight: 700;
  font-size: .82rem;
}
.vote-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid var(--brand-line);
  border-radius: 20px;
  padding: 1.1rem;
  margin-bottom: 1rem;
}
.progress-soft {
  height: 10px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}
.progress-soft span {
  display: block;
  height: 100%;
  width: 72%;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
  border-radius: 999px;
}
.feature-card h5,
.cta-card h3,
.stat-card h6,
.ui-card h4,
.summary-card h5,
.sidebar-card h5,
.list-card h5 {
  font-weight: 700;
  letter-spacing: -.02em;
}
.icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  background: var(--brand-soft);
}
.stat-value,
.metric-value {
  font-weight: 800;
  letter-spacing: -.03em;
}
.stat-value { font-size: 2rem; }
.metric-value { font-size: 2.1rem; margin-bottom: .25rem; }
.vote-page {
  background: linear-gradient(180deg, #f8fbff 0%, #f4f8ff 100%);
  border-top: 1px solid rgba(226,232,240,.75);
  border-bottom: 1px solid rgba(226,232,240,.75);
}
.dashboard-page { background: #f8fafc; }
.candidate-card {
  position: relative;
  padding: 1.2rem;
  border-radius: 22px;
  transition: .2s ease;
  cursor: pointer;
  height: 100%;
}
.candidate-card:hover {
  transform: translateY(-2px);
  border-color: rgba(47,111,237,.35);
  box-shadow: 0 18px 40px rgba(15,23,42,.08);
}
.candidate-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.candidate-card .candidate-ring {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 2px solid #cbd5e1;
  flex: 0 0 auto;
  position: relative;
  margin-top: 2px;
}
.candidate-card input:checked + .candidate-content .candidate-ring {
  border-color: var(--brand-primary);
  background: rgba(47,111,237,.08);
}
.candidate-card input:checked + .candidate-content .candidate-ring::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--brand-primary);
  position: absolute;
  inset: 0;
  margin: auto;
}
.candidate-card input:checked + .candidate-content { border-color: rgba(47,111,237,.35); }
.candidate-content {
  display: block;
  border: 1px solid transparent;
  border-radius: 18px;
}
.candidate-avatar {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--brand-primary);
  background: var(--brand-soft);
  flex: 0 0 auto;
}
.candidate-meta { font-size: .92rem; color: var(--brand-muted); }
.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .9rem 0;
  border-bottom: 1px solid rgba(226,232,240,.8);
}
.summary-item:last-child { border-bottom: 0; padding-bottom: 0; }
.summary-label { color: var(--brand-muted); font-weight: 600; }
.summary-value { font-weight: 700; }
.token-box {
  background: #0f172a;
  color: #fff;
  border-radius: 18px;
  padding: 1rem 1.1rem;
  font-size: .95rem;
}
.token-box code { color: #93c5fd; font-size: .95rem; }
.dashboard-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
}
.dashboard-sidebar {
  position: sticky;
  top: 96px;
  align-self: start;
}
.sidebar-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .85rem 1rem;
  border-radius: 14px;
  text-decoration: none;
  color: #334155;
  font-weight: 600;
  margin-bottom: .35rem;
}
.sidebar-nav a.active,
.sidebar-nav a:hover {
  background: var(--brand-soft);
  color: var(--brand-primary);
}
.metric-card small,
.list-row small,
.muted-label { color: var(--brand-muted); font-weight: 600; }
.list-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(226,232,240,.8);
}
.list-row:last-child { border-bottom: 0; padding-bottom: 0; }
.badge-soft-primary,
.badge-soft-success,
.badge-soft-warning,
.badge-soft-neutral {
  border-radius: 999px;
  padding: .45rem .75rem;
  font-weight: 700;
  font-size: .8rem;
}
.badge-soft-primary { background: rgba(47,111,237,.10); color: var(--brand-primary); }
.badge-soft-success { background: var(--brand-success-soft); color: #047857; }
.badge-soft-warning { background: var(--brand-warning-soft); color: #c2410c; }
.badge-soft-neutral { background: rgba(100,116,139,.10); color: #475569; }
.mini-bar {
  height: 10px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  min-width: 140px;
}
.mini-bar > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
}
.footer {
  padding: 2.5rem 0 3rem;
  color: var(--brand-muted);
  font-size: .95rem;
  border-top: 1px solid rgba(226,232,240,.8);
  background: #fff;
}
@media (max-width: 991.98px) {
  .hero { padding-top: 3.5rem; }
  .dashboard-layout { grid-template-columns: 1fr; }
  .dashboard-sidebar { position: static; }
}





        .vote-wrapper {
            max-width: 980px;
            margin: 0 auto;
        }

        .candidate-option {
            display: block;
            cursor: pointer;
            text-decoration: none;
            color: inherit;
            height: 100%;
        }

        .candidate-option input[type="radio"] {
            display: none;
        }

        .candidate-card {
            position: relative;
            height: 100%;
            border: 2px solid #e9ecef;
            border-radius: 18px;
            padding: 20px;
            background: #ffffff;
            transition: all 0.2s ease;
            box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
        }

        .candidate-card:hover {
            border-color: #0d6efd;
            transform: translateY(-2px);
            box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
        }

        .candidate-option input[type="radio"]:checked + .candidate-card {
            border-color: #0d6efd;
            background: #f0f7ff;
            box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.14);
        }

        .candidate-avatar {
            width: 52px;
            height: 52px;
            min-width: 52px;
            border-radius: 50%;
            background: #0d6efd;
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 1rem;
        }

        .candidate-surname {
            font-size: 1.15rem;
            font-weight: 700;
            line-height: 1.2;
            margin-bottom: 2px;
        }

        .candidate-name {
            font-size: 1rem;
            color: #495057;
            margin-bottom: 8px;
        }

        .candidate-role {
            font-size: 0.95rem;
            color: #6c757d;
            margin-bottom: 0;
        }

        .candidate-check {
            width: 24px;
            height: 24px;
            border: 2px solid #ced4da;
            border-radius: 50%;
            flex-shrink: 0;
            position: relative;
            margin-left: 12px;
        }

        .candidate-option input[type="radio"]:checked + .candidate-card .candidate-check {
            border-color: #0d6efd;
            background: #0d6efd;
        }

        .candidate-option input[type="radio"]:checked + .candidate-card .candidate-check::after {
            content: '';
            position: absolute;
            top: 5px;
            left: 5px;
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: #fff;
        }

        .submit-bar {
            position: sticky;
            bottom: 0;
            background: rgba(248, 250, 252, 0.92);
            backdrop-filter: blur(6px);
            padding-top: 16px;
        }
