* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #08080e;
  --pink: #ff3cac;
  --yellow: #ffe600;
  --green: #39ff14;
  --cyan: #00d4ff;
  --orange: #ff6a00;
  --purple: #a855f7;
  --text: #e8e8f0;
  --text-muted: #667799;
  --card-bg: rgba(255,255,255,0.025);
  --card-border: rgba(255,255,255,0.06);
}

body {
  font-family: 'Rajdhani', 'Tajawal', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 500;
  background: linear-gradient(170deg, #1a0a2e, #150a28 25%, #0a0a1e 55%, #0e0518);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 45% 0%, rgba(255,60,172,0.25) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 30%, rgba(0,212,255,0.18) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 60%, rgba(255,230,0,0.1) 0%, transparent 45%),
    radial-gradient(ellipse at 65% 85%, rgba(57,255,20,0.08) 0%, transparent 40%),
    radial-gradient(ellipse at 50% 50%, rgba(168,85,247,0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
  animation: breatheBg 8s ease-in-out infinite alternate;
}

@keyframes breatheBg {
  0% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.02); }
  100% { opacity: 0.7; transform: scale(0.98); }
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    repeating-linear-gradient(90deg, transparent, transparent 80px, rgba(255,60,172,0.04) 80px, rgba(255,60,172,0.04) 81px),
    repeating-linear-gradient(0deg, transparent, transparent 80px, rgba(0,212,255,0.03) 80px, rgba(0,212,255,0.03) 81px),
    radial-gradient(circle at 20% 20%, rgba(168,85,247,0.06) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
}

.starfield {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.bg-stickers {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.sticker {
  position: fixed;
  z-index: 2;
  pointer-events: auto;
  cursor: pointer;
  will-change: transform, left, top;
  filter: drop-shadow(0 3px 12px rgba(0,0,0,0.5));
  transition: filter 0.2s, transform 0.15s;
}

.sticker:hover {
  filter: drop-shadow(0 3px 12px rgba(0,0,0,0.5)) brightness(1.2);
  z-index: 1;
}

.sticker:active {
  filter: drop-shadow(0 3px 8px rgba(0,0,0,0.35)) brightness(1.4);
}

.sticker svg {
  display: block;
  width: 100%;
  height: auto;
}

.page-transition {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease-out;
}

.page-transition.active { opacity: 1; }

.main-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  text-align: center;
}

.layout-grid { display: contents; }

.hero {
  position: relative;
  padding: 2.5rem 0 1rem;
  overflow: hidden;
}

.hero-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 18rem;
  font-weight: 900;
  font-family: 'Rajdhani', sans-serif;
  color: rgba(57, 255, 20, 0.04);
  pointer-events: none;
  line-height: 1;
  user-select: none;
  animation: heroMarkReveal 1.2s ease-out both, heroMarkPulse 4s ease-in-out 1.2s infinite;
  text-shadow: 0 0 60px rgba(57, 255, 20, 0.06);
}

@keyframes heroMarkReveal {
  from { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
  to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

@keyframes heroMarkPulse {
  0%, 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.05); }
}

.hero-label {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 0.7rem;
  color: #4a5a7a;
  letter-spacing: 5px;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  position: relative;
  animation: heroFadeUp 0.6s ease-out 0.1s both;
}

.hero-question {
  font-family: 'Bangers', cursive;
  font-size: 3rem;
  font-weight: 400;
  letter-spacing: 2px;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--yellow), var(--pink), var(--cyan), var(--green));
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.6rem;
  animation: heroFadeUp 0.6s ease-out 0.2s both, heroGradient 5s ease-in-out infinite;
  position: relative;
  filter: drop-shadow(0 2px 20px rgba(255, 230, 0, 0.15));
}

@keyframes heroGradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-line {
  color: #5577aa;
  font-size: 1.1rem;
  position: relative;
  animation: heroFadeUp 0.6s ease-out 0.3s both;
}

.hero-underline {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--cyan), var(--pink));
  margin: 1.5rem auto 0;
  border-radius: 2px;
  animation: heroFadeUp 0.6s ease-out 0.4s both;
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1.6rem;
  margin: 1rem 0;
  backdrop-filter: blur(12px);
  transition: border-color 0.4s, box-shadow 0.4s, transform 0.3s ease-out;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  pointer-events: none;
}

.card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  pointer-events: none;
}

.counter-section {
  background: rgba(255,230,0,0.025);
  border-color: rgba(255, 230, 0, 0.08);
  transition: background 0.4s, border-color 0.4s, box-shadow 0.4s, transform 0.3s;
}
.counter-section:hover {
  background: rgba(255,230,0,0.04);
}
.countdown-section {
  background: rgba(57,255,20,0.025);
  border-color: rgba(57, 255, 20, 0.08);
  transition: background 0.4s, border-color 0.4s, box-shadow 0.4s, transform 0.3s;
}
.countdown-section:hover {
  background: rgba(57,255,20,0.04);
}
.anger-section {
  background: rgba(255,60,172,0.025);
  border-color: rgba(255, 60, 172, 0.08);
  transition: background 0.4s, border-color 0.4s, box-shadow 0.4s, transform 0.3s;
}
.anger-section:hover {
  background: rgba(255,60,172,0.04);
}
.form-section {
  background: rgba(255,106,0,0.025);
  border-color: rgba(255, 106, 0, 0.08);
  transition: background 0.4s, border-color 0.4s, box-shadow 0.4s, transform 0.3s;
}
.form-section:hover {
  background: rgba(255,106,0,0.04);
}
.supporters-section {
  background: rgba(168,85,247,0.025);
  border-color: rgba(168, 85, 247, 0.08);
  transition: background 0.4s, border-color 0.4s, box-shadow 0.4s, transform 0.3s;
}
.supporters-section:hover {
  background: rgba(168,85,247,0.04);
}

.counter-section::before { background: linear-gradient(90deg, var(--yellow), var(--orange)); }
.countdown-section::before { background: linear-gradient(90deg, var(--green), var(--cyan)); }
.anger-section::before { background: linear-gradient(90deg, var(--pink), var(--purple)); }
.form-section::before { background: linear-gradient(90deg, var(--orange), var(--pink)); }
.supporters-section::before { background: linear-gradient(90deg, var(--purple), var(--cyan)); }



.card:hover {
  transform: translateY(-3px);
}

.card:hover::before {
  opacity: 0.9;
}

.counter-section:hover {
  border-color: rgba(255, 230, 0, 0.2);
  box-shadow: 0 0 40px rgba(255, 230, 0, 0.08);
}

.countdown-section:hover {
  border-color: rgba(57, 255, 20, 0.2);
  box-shadow: 0 0 40px rgba(57, 255, 20, 0.08);
}

.anger-section:hover {
  border-color: rgba(255, 60, 172, 0.2);
  box-shadow: 0 0 40px rgba(255, 60, 172, 0.08);
}

.form-section:hover {
  border-color: rgba(255, 106, 0, 0.2);
  box-shadow: 0 0 40px rgba(255, 106, 0, 0.08);
}

.supporters-section:hover {
  border-color: rgba(168, 85, 247, 0.2);
  box-shadow: 0 0 40px rgba(168, 85, 247, 0.08);
}

.card:active { transform: translateY(0) scale(0.99); }

.section-heading {
  font-family: 'Bangers', cursive;
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  display: inline-block;
  padding: 0.2rem 1rem;
  border-radius: 6px;
  background: rgba(255,255,255,0.03);
  text-transform: uppercase;
  transition: background 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.counter-section .section-heading {
  color: var(--yellow);
  border: 2px solid rgba(255, 230, 0, 0.15);
}
.counter-section:hover .section-heading {
  border-color: rgba(255, 230, 0, 0.35);
  background: rgba(255, 230, 0, 0.06);
}

.countdown-section .section-heading {
  color: var(--green);
  border: 2px solid rgba(57, 255, 20, 0.15);
}
.countdown-section:hover .section-heading {
  border-color: rgba(57, 255, 20, 0.35);
  background: rgba(57, 255, 20, 0.06);
}

.anger-section .section-heading {
  color: var(--pink);
  border: 2px solid rgba(255, 60, 172, 0.15);
}
.anger-section:hover .section-heading {
  border-color: rgba(255, 60, 172, 0.35);
  background: rgba(255, 60, 172, 0.06);
}

.form-section .section-heading {
  color: var(--orange);
  border: 2px solid rgba(255, 106, 0, 0.15);
}
.form-section:hover .section-heading {
  border-color: rgba(255, 106, 0, 0.35);
  background: rgba(255, 106, 0, 0.06);
}

.supporters-section .section-heading {
  color: var(--purple);
  border: 2px solid rgba(168, 85, 247, 0.15);
}
.supporters-section:hover .section-heading {
  border-color: rgba(168, 85, 247, 0.35);
  background: rgba(168, 85, 247, 0.06);
}

.vote-number {
  font-family: 'Bangers', cursive;
  font-size: 6.5rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 3px;
  background: linear-gradient(135deg, var(--yellow), var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 30px rgba(255, 230, 0, 0.2));
  font-variant-numeric: tabular-nums;
  transition: filter 0.4s;
}

.counter-section:hover .vote-number {
  filter: drop-shadow(0 0 50px rgba(255, 230, 0, 0.35));
}

.vote-number.pulse {
  animation: countPulse 0.3s ease-out;
}

@keyframes countPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

.vote-label {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  color: var(--yellow);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-top: 0.3rem;
  opacity: 0.7;
}

.section-note {
  color: #4a6a8a;
  font-size: 0.85rem;
  margin-bottom: 0;
  font-style: italic;
}

.progress-wrap { margin-top: 1.2rem; }

.progress-label {
  display: flex;
  justify-content: space-between;
  color: #7a9bc0;
  font-weight: 600;
  font-size: 0.8rem;
  margin-bottom: 0.4rem;
}

.progress-track {
  width: 100%;
  height: 8px;
  background: rgba(255,255,255,0.04);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--yellow), var(--orange));
  border-radius: 4px;
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.mini-line {
  color: #3a5577;
  font-size: 0.8rem;
  margin-top: 0.8rem;
}

.divider {
  width: 36px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #2a4a7a, transparent);
  margin: 1rem auto;
  position: relative;
  overflow: hidden;
}

.divider::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  transform: translateX(-100%);
  animation: shimmerDivider 3s ease-in-out infinite;
}

@keyframes shimmerDivider {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.cd-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(57, 255, 20, 0.08);
  border-radius: 10px;
  padding: 0.8rem 0.6rem;
  min-width: 60px;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s, background 0.3s;
}

.cd-item:hover {
  border-color: rgba(57, 255, 20, 0.25);
  box-shadow: 0 0 25px rgba(57, 255, 20, 0.12);
  transform: translateY(-3px);
  background: rgba(255,255,255,0.05);
}

.cd-number {
  display: inline-block;
  transition: transform 0.3s ease-out;
}

.cd-number.flip {
  animation: flipDigit 0.4s ease-out;
}

@keyframes flipDigit {
  0% { transform: rotateX(0deg) scaleY(1); }
  50% { transform: rotateX(-90deg) scaleY(0.8); }
  51% { transform: rotateX(90deg) scaleY(0.8); }
  100% { transform: rotateX(0deg) scaleY(1); }
}

.cd-item span:first-child {
  font-family: 'Bangers', cursive;
  font-size: 2rem;
  font-weight: 400;
  color: var(--green);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  letter-spacing: 1px;
  filter: drop-shadow(0 0 10px rgba(57, 255, 20, 0.15));
}

.cd-item span:last-child {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  color: #556688;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 0.3rem;
}

.countdown-target {
  color: #445566;
  font-size: 0.85rem;
  margin-top: 1rem;
}

.anger-section { text-align: center; }

.anger-sub {
  color: #556688;
  font-size: 0.85rem;
  margin-bottom: 1.2rem;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 500;
}

.anger-wrap {
  position: relative;
  padding: 1rem 0 0.5rem;
}

.anger-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
  font-size: 0.75rem;
  color: #556688;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.anger-emoji {
  font-size: 2.2rem;
  line-height: 1;
  transition: transform 0.2s;
}

.anger-track {
  position: relative;
  width: 100%;
  height: 40px;
  background: linear-gradient(90deg, var(--cyan), var(--green), var(--yellow), var(--orange), var(--pink));
  border-radius: 20px;
  cursor: pointer;
  user-select: none;
  touch-action: none;
}

.anger-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: 20px;
  background: rgba(255,255,255,0.08);
  pointer-events: none;
  will-change: width;
}

.anger-thumb {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffffff, #c0d0e0);
  box-shadow: 0 2px 12px rgba(0,0,0,0.3), 0 0 20px rgba(255, 60, 172, 0.2);
  cursor: grab;
  will-change: left;
  z-index: 2;
  touch-action: none;
  border: 2px solid rgba(255,255,255,0.8);
}

.anger-thumb:active {
  cursor: grabbing;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4), 0 0 30px rgba(255, 60, 172, 0.3);
}

.anger-value {
  margin-top: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 2.2rem;
  transition: opacity 0.2s;
}

.anger-mood-emoji {
  font-size: 2.5rem;
  line-height: 1;
  animation: moodPop 0.3s ease-out;
}

@keyframes moodPop {
  0% { transform: scale(0.5); opacity: 0; }
  60% { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}

.anger-mood-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--pink);
  letter-spacing: 0.5px;
}

.anger-actions { margin-top: 1rem; }

.anger-btn {
  width: auto;
  display: inline-block;
  padding: 0.6rem 1.8rem;
  font-size: 0.85rem;
  background: rgba(255, 60, 172, 0.08);
  border: 2px solid rgba(255, 60, 172, 0.15);
  border-radius: 10px;
  color: var(--pink);
  cursor: pointer;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  position: relative;
  overflow: hidden;
  transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.2s, box-shadow 0.3s;
}

.anger-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255,255,255,0.06), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s;
}

.anger-btn:hover::after { transform: translateX(100%); }

.anger-btn:hover {
  background: rgba(255, 60, 172, 0.15);
  border-color: rgba(255, 60, 172, 0.3);
  color: #ff8ac8;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(255,60,172,0.15);
}

.anger-btn:active {
  transform: translateY(0) scale(0.97);
}

.anger-btn:disabled {
  opacity: 0.3;
  cursor: default;
  transform: none;
  box-shadow: none;
}

.anger-btn:disabled::after { display: none; }

.anger-stats {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: #556688;
  min-height: 1.5rem;
}

.anger-stats .stat-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.anger-stats .stat-num {
  font-weight: 700;
  color: #99aabb;
}

.anger-stats .stat-label {
  color: #556688;
}

.form-box {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.input-wrap { position: relative; }

.input-wrap input {
  width: 100%;
  padding: 0.9rem 1.1rem;
  border: 2px solid rgba(255,106,0,0.1);
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  color: #e0e8f0;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s, transform 0.2s;
}

.input-wrap input::placeholder {
  color: #445566;
  transition: color 0.3s, opacity 0.3s;
}

.input-wrap input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255,106,0,0.12), 0 0 25px rgba(255,106,0,0.08);
  background: rgba(255,255,255,0.04);
  transform: scale(1.01);
}

.input-wrap input:focus::placeholder {
  opacity: 0.4;
  transform: translateX(4px);
}

.input-wrap input:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  background: rgba(0,0,0,0.2);
  transform: none;
}

button {
  width: 100%;
  padding: 0.95rem;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--orange), var(--pink), var(--purple));
  background-size: 200% 200%;
  color: #fff;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: opacity 0.3s, transform 0.2s, box-shadow 0.3s, background-position 0.5s;
  box-shadow: 0 0 30px rgba(255,60,172,0);
  position: relative;
  overflow: hidden;
}

button::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255,255,255,0.08), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s;
}

button:hover::after { transform: translateX(100%); }

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 40px rgba(255,60,172,0.15), 0 0 60px rgba(255,106,0,0.1);
  background-position: 100% 100%;
}

button:active {
  transform: translateY(0) scale(0.98);
}

button:disabled {
  opacity: 0.25;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

button:disabled::after { display: none; }

.message {
  margin-top: 0.8rem;
  font-size: 0.9rem;
  min-height: 1.3rem;
  line-height: 1.4;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  animation: messageIn 0.35s ease-out;
}

@keyframes messageIn {
  from { opacity: 0; transform: translateY(-5px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.message.success {
  color: var(--green);
  background: rgba(57, 255, 20, 0.06);
  border: 1px solid rgba(57, 255, 20, 0.1);
}

.message.error {
  color: var(--pink);
  background: rgba(255, 60, 172, 0.06);
  border: 1px solid rgba(255, 60, 172, 0.1);
}

.message.info {
  color: var(--cyan);
  background: rgba(0, 212, 255, 0.06);
  border: 1px solid rgba(0, 212, 255, 0.12);
}

.supporters-section { text-align: left; }

#votersList {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

#votersList li {
  background: rgba(168, 85, 247, 0.04);
  border: 1px solid rgba(168, 85, 247, 0.08);
  border-radius: 20px;
  padding: 0.35rem 1rem;
  font-size: 0.9rem;
  color: #99aabb;
  transition: border-color 0.25s, background 0.25s, color 0.25s, transform 0.2s, box-shadow 0.25s;
  animation: badgeIn 0.4s ease-out both;
}

@keyframes badgeIn {
  from { opacity: 0; transform: scale(0.85) translateY(5px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

#votersList li:hover {
  border-color: rgba(168, 85, 247, 0.25);
  background: rgba(168, 85, 247, 0.08);
  color: #c0d0e0;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.12);
}

footer {
  padding: 2rem 0 0;
  text-align: center;
}

.footer-message {
  color: #445566;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  font-style: italic;
  animation: fadeIn 0.8s ease-out 0.6s both;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.confetti-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  width: 8px;
  height: 8px;
  top: -10px;
  animation: confettiFall linear forwards;
}

@keyframes confettiFall {
  0% { transform: translateY(0) rotate(0deg) scale(1); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg) scale(0.5); opacity: 0; }
}

html[lang="ar"] body {
  font-family: 'Tajawal', sans-serif;
}

html[dir="rtl"] .supporters-section {
  text-align: right;
}

html[dir="rtl"] .progress-fill {
  background: linear-gradient(270deg, var(--yellow), var(--orange));
}

html[dir="rtl"] .divider::after {
  background: linear-gradient(270deg, transparent, var(--green), transparent);
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: rgba(255, 60, 172, 0.15);
  border-radius: 3px;
  transition: background 0.3s;
}
::-webkit-scrollbar-thumb:hover { background: rgba(255, 60, 172, 0.3); }

::selection {
  background: rgba(255, 230, 0, 0.2);
  color: #fff;
}

.star-fill { color: var(--yellow); }

.rating-section { text-align: center; }

.rating-options {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.rating-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.7rem 0.5rem;
  min-width: 70px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  background: var(--card-bg);
  cursor: pointer;
  transition: transform 0.2s, border-color 0.25s, box-shadow 0.25s, background 0.25s;
  position: relative;
  overflow: visible;
}

.rating-btn:hover {
  transform: translateY(-4px) scale(1.05);
  border-color: rgba(255, 230, 0, 0.2);
  box-shadow: 0 4px 20px rgba(255, 230, 0, 0.1);
  background: rgba(255,255,255,0.04);
}

.rating-btn:active {
  transform: translateY(-1px) scale(0.97);
}

.rating-btn .rating-emoji {
  font-size: 2rem;
  line-height: 1;
  transition: transform 0.3s;
}

.rating-btn:hover .rating-emoji { transform: scale(1.2); }

.rating-btn .rating-label {
  font-size: 0.6rem;
  color: #556688;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
}

.rating-selected {
  border-color: rgba(255, 230, 0, 0.3) !important;
  box-shadow: 0 0 30px rgba(255, 230, 0, 0.12), 0 0 60px rgba(255, 60, 172, 0.08) !important;
  background: rgba(255, 230, 0, 0.06) !important;
  animation: ratingPop 0.5s cubic-bezier(0.17, 0.89, 0.32, 1.28);
  pointer-events: none;
}

@keyframes ratingPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.25); }
  70% { transform: scale(0.95); }
  100% { transform: scale(1); }
}

.rating-selected .rating-emoji {
  animation: emojiBounce 0.5s cubic-bezier(0.17, 0.89, 0.32, 1.28);
}

@keyframes emojiBounce {
  0% { transform: scale(1); }
  30% { transform: scale(1.4); }
  60% { transform: scale(0.9); }
  100% { transform: scale(1); }
}

.rating-thanks {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 12px;
  background: rgba(255, 230, 0, 0.06);
  border: 1px solid rgba(255, 230, 0, 0.12);
  color: #99bbdd;
  font-size: 0.95rem;
  animation: messageIn 0.35s ease-out;
}

.rating-stats {
  font-size: 0.8rem;
  color: #556688;
  min-height: 1.5rem;
}

.rating-avg {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #7a9bc0;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transform: scale(0);
  animation: rippleAnim 0.6s ease-out;
  pointer-events: none;
}

@keyframes rippleAnim {
  0% { transform: scale(0); opacity: 1; }
  100% { transform: scale(4); opacity: 0; }
}

@keyframes particleBurst {
  0% { transform: translate(0,0) scale(1); opacity: 1; }
  100% { transform: translate(var(--dx),var(--dy)) scale(0); opacity: 0; }
}

@keyframes badgeReveal {
  0% { transform: scale(0) rotate(-180deg); opacity: 0; }
  60% { transform: scale(1.2) rotate(10deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 30px rgba(168,85,247,0.3); }
  50% { box-shadow: 0 0 50px rgba(168,85,247,0.6); }
}

.btn-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
  vertical-align: middle;
}

.btn-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.7;
  animation: dotBounce 1s ease-in-out infinite;
}

.btn-dot:nth-child(2) { animation-delay: 0.15s; }
.btn-dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes dotBounce {
  0%, 80%, 100% { transform: scale(0.5); opacity: 0.3; }
  40% { transform: scale(1); opacity: 1; }
}

.main-content > header,
.main-content > .supporters-section,
.main-content > footer,
.layout-grid > * {
  animation: dropIn 0.5s ease-out both;
}

@keyframes dropIn {
  from { opacity: 0; transform: translateY(-20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (min-width: 768px) {
  .main-content {
    max-width: 800px;
    padding: 2.5rem 2rem 4rem;
  }

  .hero-question {
    font-size: 3.8rem;
  }

  .hero-mark {
    font-size: 22rem;
  }

  .vote-number {
    font-size: 7rem;
  }

  .countdown {
    gap: 1rem;
  }

  .cd-item {
    min-width: 68px;
    padding: 1rem 0.6rem;
  }

  .cd-item span:first-child {
    font-size: 2.2rem;
  }

  .card {
    padding: 1.8rem;
    margin: 1rem 0;
  }
}

@media (max-width: 420px) {
  .hero-question {
    font-size: 2.2rem;
  }

  .rating-btn {
    min-width: 55px;
    padding: 0.5rem 0.3rem;
  }

  .rating-btn .rating-emoji {
    font-size: 1.5rem;
  }

  .rating-btn .rating-label {
    font-size: 0.5rem;
  }
}
