.vote-hero {
  text-align: center;
  padding: 80px 0 20px;
}

.vote-hero h1 { margin-bottom: 14px; }

.vote-hero .lead {
  max-width: 520px;
  margin-inline: auto;
}

.vote-flow {
  max-width: 680px;
  margin-inline: auto;
  padding-bottom: 80px;
}

/* Step 1 */
.vote-input-card {
  background: linear-gradient(180deg, rgba(23, 12, 38, 0.85), rgba(12, 6, 22, 0.92));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 44px 40px;
  text-align: center;
}

.vote-input-card.hidden { display: none; }

.vote-input-card h2 { font-size: 1.6rem; margin-bottom: 8px; }

.vote-input-card > p {
  color: var(--muted);
  margin-bottom: 32px;
  font-size: 0.95rem;
}

.input-row {
  display: flex;
  gap: 12px;
}

.vote-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(201, 153, 255, 0.28);
  border-radius: 999px;
  padding: 15px 22px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.vote-input::placeholder { color: rgba(202, 184, 232, 0.45); }

.vote-input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(163, 77, 255, 0.18);
}

.vote-input.error {
  border-color: #ff6b6b;
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.15);
}

.error-msg {
  color: #ff8a8a;
  font-size: 0.85rem;
  margin-top: 10px;
  display: none;
}

.error-msg.visible { display: block; }

/* Step 2 */
.vote-sites { display: none; }
.vote-sites.visible { display: block; }

.username-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(163, 77, 255, 0.14);
  border: 1px solid rgba(163, 77, 255, 0.28);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.9rem;
  color: var(--pink);
  margin-bottom: 32px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.username-badge:hover { background: rgba(163, 77, 255, 0.24); }
.username-badge span { color: var(--text); font-weight: 600; }

.sites-heading {
  text-align: center;
  margin-bottom: 24px;
}

.sites-heading h2 { font-size: 1.6rem; margin-bottom: 6px; }
.sites-heading p { color: var(--muted); font-size: 0.92rem; margin-bottom: 16px; }

.vote-site-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.vote-site-card {
  background: linear-gradient(180deg, rgba(23, 12, 38, 0.85), rgba(12, 6, 22, 0.92));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.vote-site-card:hover {
  border-color: rgba(163, 77, 255, 0.4);
  transform: translateY(-2px);
}

.vote-site-card.voted {
  border-color: rgba(100, 220, 130, 0.35);
  background: linear-gradient(180deg, rgba(18, 38, 22, 0.85), rgba(10, 22, 14, 0.92));
}

.site-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.topg-icon {
  color: #fff;
  font-family: 'Cinzel', serif;
  font-weight: 800;
  font-style: italic;
  font-size: 1.45rem;
  letter-spacing: -0.04em;
}

.site-meta strong {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  margin-bottom: 3px;
}

.site-meta span { color: var(--muted); font-size: 0.82rem; }

.site-reward {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 212, 107, 0.1);
  border: 1px solid rgba(255, 212, 107, 0.2);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.8rem;
  color: var(--gold);
  white-space: nowrap;
}

.vote-cooldown {
  width: 150px;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.vote-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
  width: 152px;
  justify-content: center;
  font-variant-numeric: tabular-nums;
}

.vote-btn:hover { transform: translateY(-2px); }

.vote-btn.active {
  background: linear-gradient(135deg, var(--purple) 0%, #b357ff 45%, #f1c1ff 100%);
  color: #fff;
  box-shadow: 0 12px 30px rgba(134, 57, 255, 0.34);
}

.vote-btn.done {
  background: rgba(100, 220, 130, 0.15);
  border: 1px solid rgba(100, 220, 130, 0.3);
  color: #78d99a;
  pointer-events: none;
}

.vote-btn.cooldown {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(201, 153, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
  box-shadow: none;
  pointer-events: none;
}

.rewards-banner {
  background: linear-gradient(135deg, rgba(100, 30, 200, 0.22), rgba(190, 80, 255, 0.1));
  border: 1px solid rgba(163, 77, 255, 0.25);
  border-radius: var(--radius);
  padding: 22px 26px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
}

.rewards-banner .reward-icon { font-size: 2rem; flex-shrink: 0; }

.rewards-banner p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 0;
}

.rewards-banner strong { color: var(--gold); }

@media (max-width: 640px) {
  .vote-input-card { padding: 32px 20px; }
  .input-row { flex-direction: column; }
  .vote-site-card { flex-wrap: wrap; }
  .site-reward { display: none; }
  .vote-cooldown {
    width: 100%;
    text-align: left;
    order: 3;
  }
}
