/* ==========================================
   KAHRAMANMARAŞ SEÇİM ANKETİ - STYLE SYSTEM
   onikisubat.com — Premium Election Poll UI
   ========================================== */

/* --- CSS Custom Properties --- */
:root {
  --bg-primary: #0f0e1a;
  --bg-secondary: #161530;
  --bg-card: rgba(255, 255, 255, 0.06);
  --bg-card-hover: rgba(255, 255, 255, 0.12);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-shadow: rgba(80, 40, 180, 0.15);

  --text-primary: #f5f5ff;
  --text-secondary: rgba(220, 215, 255, 0.75);
  --text-muted: rgba(180, 175, 220, 0.5);

  --accent-red: #E30A17;
  --accent-red-glow: rgba(227, 10, 23, 0.35);
  --accent-gold: #FFD700;
  --accent-gold-glow: rgba(255, 215, 0, 0.25);
  --accent-blue: #6366f1;
  --accent-violet: #a855f7;

  --gradient-hero: linear-gradient(135deg, #1a0520 0%, #0f0e1a 35%, #0d1330 70%, #150a28 100%);
  --gradient-red: linear-gradient(135deg, #E30A17, #ff4466);
  --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(120, 100, 255, 0.03) 100%);
  --gradient-accent: linear-gradient(135deg, #6366f1, #a855f7);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --font: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* --- Animated Background --- */
.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.25;
  animation: float 20s ease-in-out infinite;
}

.bg-circle-1 {
  width: 650px;
  height: 650px;
  background: linear-gradient(135deg, #6366f1, #3b82f6);
  top: -250px;
  right: -200px;
  animation-delay: 0s;
}

.bg-circle-2 {
  width: 450px;
  height: 450px;
  background: linear-gradient(135deg, #10b981, #06b6d4);
  bottom: -120px;
  left: -120px;
  animation-delay: -7s;
}

.bg-circle-3 {
  width: 550px;
  height: 550px;
  background: linear-gradient(135deg, #a855f7, #ec4899);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -14s;
}

@keyframes float {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  25% {
    transform: translate(50px, -30px) scale(1.1);
  }

  50% {
    transform: translate(-20px, 40px) scale(0.95);
  }

  75% {
    transform: translate(30px, 20px) scale(1.05);
  }
}

/* --- Glass Card --- */
.glass-card {
  background: var(--gradient-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* --- Header --- */
.site-header {
  position: relative;
  z-index: 10;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(99, 102, 241, 0.15);
  background: linear-gradient(180deg, rgba(15, 14, 26, 0.95) 0%, rgba(15, 14, 26, 0.85) 100%);
  backdrop-filter: blur(24px);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  position: relative;
}

.header-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.header-logo-img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  transition: var(--transition);
  filter: drop-shadow(0 0 8px var(--accent-red-glow));
}

.header-logo-link:hover .header-logo-img {
  transform: scale(1.1);
  filter: drop-shadow(0 0 16px var(--accent-red-glow));
}

.header-text h1 {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* --- Steps Common --- */
.step {
  display: none;
  position: relative;
  z-index: 5;
  padding: 40px 24px 60px;
  min-height: calc(100vh - 80px);
  animation: fadeInUp 0.6s ease-out;
}

.step.active {
  display: block;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-container {
  max-width: 1100px;
  margin: 0 auto;
}

.step-container.glass-card {
  padding: 48px 40px;
}

/* --- Step Indicator --- */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 40px;
}

.step-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
}

.step-dot.active {
  background: linear-gradient(135deg, #6366f1, #a855f7);
  border-color: #6366f1;
  color: white;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

.step-dot.completed {
  background: rgba(39, 174, 96, 0.2);
  border-color: #27ae60;
  color: #27ae60;
}

.step-line {
  width: 60px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 8px;
}

.step-line.filled {
  background: linear-gradient(90deg, #6366f1, rgba(99, 102, 241, 0.3));
}

/* --- Typography --- */
h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.step-number {
  font-size: 0.9rem;
  font-weight: 700;
  color: #a78bfa;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(168, 85, 247, 0.1));
  border: 1px solid rgba(99, 102, 241, 0.25);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.step-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 36px;
  max-width: 600px;
}

/* --- Form Inputs --- */
.form-group {
  margin-bottom: 32px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.age-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.age-btn,
.gender-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  padding: 14px 16px;
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.age-btn:hover,
.gender-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.age-btn.selected,
.gender-btn.selected {
  background: rgba(227, 10, 23, 0.15);
  border-color: var(--accent-red);
  color: var(--text-primary);
  box-shadow: 0 0 20px var(--accent-red-glow);
}

.gender-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.gender-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px;
}

.gender-icon {
  font-size: 1.4rem;
}

/* --- Primary Button --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #e30a17, #a855f7);
  color: white;
  border: none;
  padding: 16px 36px;
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 8px;
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.3);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(168, 85, 247, 0.5);
}

.btn-primary:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.btn-arrow {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.btn-primary:hover:not(:disabled) .btn-arrow {
  transform: translateX(4px);
}

/* --- Party Grid --- */
.party-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 8px;
}

.party-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 28px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font);
  position: relative;
  overflow: hidden;
}

.party-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--party-color);
  opacity: 0;
  transition: var(--transition);
}

.party-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-6px);
  border-color: var(--party-color);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 30px color-mix(in srgb, var(--party-color) 20%, transparent);
}

.party-card:hover::before {
  opacity: 1;
}

.party-card.selected {
  border-color: var(--party-color);
  background: color-mix(in srgb, var(--party-color) 10%, transparent);
  box-shadow: 0 0 40px color-mix(in srgb, var(--party-color) 25%, transparent);
}

.party-card.selected::before {
  opacity: 1;
}

.party-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.party-logo-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--party-color) 15%, transparent);
  border: 2px solid color-mix(in srgb, var(--party-color) 40%, transparent);
  transition: var(--transition);
}

.party-card:hover .party-logo-inner {
  border-color: var(--party-color);
  box-shadow: 0 0 25px color-mix(in srgb, var(--party-color) 30%, transparent);
}

.logo-bulb {
  font-size: 2rem;
}

.logo-text-big {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--party-color);
  letter-spacing: -0.02em;
}

.party-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.party-full {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.3;
}

/* --- Vote Modal --- */
.vote-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.3s ease;
}

.vote-modal.show {
  display: flex;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal-content {
  padding: 40px;
  text-align: center;
  max-width: 420px;
  width: 100%;
  animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-content h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.modal-content p {
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.modal-warning {
  font-size: 0.85rem;
  color: var(--accent-gold) !important;
  margin-bottom: 24px !important;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* --- Results --- */
.results-summary {
  padding: 32px;
  text-align: center;
  margin-bottom: 32px;
}

.total-votes {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.total-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

.total-number {
  font-size: 3.5rem;
  font-weight: 900;
  background: var(--gradient-red);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.results-chart {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 40px;
}

.result-row {
  display: flex;
  align-items: center;
  gap: 16px;
  opacity: 0;
  animation: slideInResult 0.6s ease forwards;
}

.result-row:nth-child(1) {
  animation-delay: 0.1s;
}

.result-row:nth-child(2) {
  animation-delay: 0.2s;
}

.result-row:nth-child(3) {
  animation-delay: 0.3s;
}

.result-row:nth-child(4) {
  animation-delay: 0.4s;
}

.result-row:nth-child(5) {
  animation-delay: 0.5s;
}

.result-row:nth-child(6) {
  animation-delay: 0.6s;
}

@keyframes slideInResult {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.result-party-info {
  min-width: 140px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.result-party-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.result-party-name {
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

.result-bar-container {
  flex: 1;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
}

.result-bar {
  height: 100%;
  border-radius: var(--radius-sm);
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 12px;
  min-width: 0;
  position: relative;
}

.result-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.1) 100%);
}

.result-percentage {
  font-size: 0.85rem;
  font-weight: 700;
  color: white;
  position: relative;
  z-index: 2;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.result-count {
  min-width: 60px;
  text-align: right;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* --- Stats --- */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.stat-card {
  padding: 28px;
}

.stat-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.stat-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stat-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stat-label {
  min-width: 60px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.stat-bar-track {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden;
}

.stat-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-value {
  min-width: 40px;
  text-align: right;
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* --- Already Voted --- */
.already-voted {
  position: relative;
  z-index: 5;
  padding: 40px 24px 0;
}

.already-voted .glass-card {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px;
  text-align: center;
}

.voted-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 16px;
}

.already-voted h2 {
  justify-content: center;
  margin-bottom: 8px;
}

.already-voted p {
  color: var(--text-secondary);
}

/* --- Loading --- */
.loading-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 26, 0.9);
  backdrop-filter: blur(10px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
}

.loading-overlay.show {
  display: flex;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent-red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-overlay p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* --- Toast --- */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(39, 174, 96, 0.95);
  color: white;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 300;
  transition: transform 0.4s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

.toast.error {
  background: rgba(231, 76, 60, 0.95);
}

/* --- Footer --- */
.site-footer {
  position: relative;
  z-index: 5;
  margin-top: 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.3);
  padding: 48px 24px 24px;
}

.footer-content {
  max-width: 1000px;
  margin: 0 auto;
}

.footer-brand {
  text-align: center;
  margin-bottom: 32px;
}

.footer-brand h3 {
  font-size: 1.3rem;
  font-weight: 700;
  background: var(--gradient-red);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-tagline {
  margin-top: 8px;
  font-style: italic;
}

.footer-districts {
  text-align: center;
  margin-bottom: 28px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-districts h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 14px;
  font-weight: 600;
}

.footer-districts ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.footer-districts a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.8rem;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  transition: var(--transition);
}

.footer-districts a:hover {
  color: var(--text-primary);
  border-color: var(--accent-red);
  background: rgba(227, 10, 23, 0.1);
}

.footer-seo {
  text-align: center;
  margin-bottom: 24px;
}

.footer-seo p {
  font-size: 0.75rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* =============================================
   CROSS-BROWSER COMPATIBILITY
   ============================================= */

/* Vendor prefix fallbacks for glassmorphism */
.glass-card {
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.vote-modal {
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.loading-overlay {
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.toast {
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.site-header {
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

/* Firefox fallback for color-mix (unsupported < v113) */
@supports not (background: color-mix(in srgb, red 50%, transparent)) {
  .party-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  }

  .party-card.selected {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.05);
  }

  .party-logo-inner {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
  }

  .party-card:hover .party-logo-inner {
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.1);
  }
}

/* Vendor prefixes for gradient text */
.header-text h1,
.total-number,
.footer-brand h3 {
  -webkit-background-clip: text;
  -moz-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Smooth scrolling for all browsers */
html {
  -webkit-overflow-scrolling: touch;
}

/* Touch action for mobile */
button,
.party-card,
.age-btn,
.gender-btn {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  touch-action: manipulation;
}

/* Selection styling */
::selection {
  background: rgba(227, 10, 23, 0.3);
  color: white;
}

::-moz-selection {
  background: rgba(227, 10, 23, 0.3);
  color: white;
}

/* =============================================
   RESPONSIVE — TABLET LANDSCAPE (max-width: 1024px)
   ============================================= */
@media (max-width: 1024px) {
  .step-container {
    max-width: 95%;
  }

  .party-grid {
    gap: 14px;
  }

  .footer-content {
    max-width: 95%;
  }
}

/* =============================================
   RESPONSIVE — TABLET PORTRAIT (max-width: 768px)
   ============================================= */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .header-text h1 {
    font-size: 1.05rem;
  }

  .header-subtitle {
    font-size: 0.65rem;
  }

  h2 {
    font-size: 1.4rem;
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .step {
    padding: 24px 12px 40px;
  }

  .step-container.glass-card {
    padding: 28px 20px;
    border-radius: var(--radius-md);
  }

  .step-desc {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .age-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .age-btn {
    padding: 12px 10px;
    font-size: 0.9rem;
  }

  .gender-btn {
    padding: 14px;
    font-size: 0.9rem;
  }

  .btn-primary {
    width: 100%;
    justify-content: center;
    padding: 16px 24px;
  }

  .party-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .party-card {
    padding: 20px 12px;
  }

  .party-logo {
    width: 60px;
    height: 60px;
  }

  .logo-bulb {
    font-size: 1.6rem;
  }

  .logo-text-big {
    font-size: 1rem;
  }

  .party-name {
    font-size: 0.9rem;
  }

  .party-full {
    font-size: 0.65rem;
  }

  .result-party-info {
    min-width: 110px;
  }

  .result-bar-container {
    height: 34px;
  }

  .result-percentage {
    font-size: 0.8rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .total-number {
    font-size: 2.8rem;
  }

  .step-dot {
    width: 34px;
    height: 34px;
    font-size: 0.75rem;
  }

  .step-line {
    width: 36px;
  }

  .modal-content {
    padding: 28px 20px;
    margin: 0 16px;
  }

  .modal-actions {
    flex-direction: column;
  }

  .modal-actions button {
    width: 100%;
  }

  .footer-districts ul {
    gap: 6px;
  }

  .footer-districts a {
    font-size: 0.75rem;
    padding: 4px 10px;
  }
}

/* =============================================
   RESPONSIVE — MOBILE (max-width: 480px)
   ============================================= */
@media (max-width: 480px) {
  .site-header {
    padding: 14px 16px;
  }

  .header-emblem {
    font-size: 1.5rem;
  }

  .header-text h1 {
    font-size: 0.95rem;
  }

  .header-subtitle {
    font-size: 0.6rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  .step-number {
    font-size: 0.75rem;
    padding: 3px 8px;
  }

  .step-desc {
    font-size: 0.85rem;
  }

  .step {
    padding: 20px 10px 36px;
  }

  .step-container.glass-card {
    padding: 24px 16px;
  }

  .age-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .age-btn {
    padding: 12px 8px;
    font-size: 0.85rem;
  }

  .gender-grid {
    gap: 8px;
  }

  .gender-btn {
    padding: 14px 10px;
    font-size: 0.85rem;
  }

  .gender-icon {
    font-size: 1.2rem;
  }

  .party-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .party-card {
    padding: 16px 10px;
    gap: 8px;
    border-radius: var(--radius-md);
  }

  .party-logo {
    width: 52px;
    height: 52px;
  }

  .logo-bulb {
    font-size: 1.4rem;
  }

  .logo-text-big {
    font-size: 0.9rem;
  }

  .party-name {
    font-size: 0.82rem;
  }

  .party-full {
    font-size: 0.6rem;
    display: none;
  }

  .step-dot {
    width: 30px;
    height: 30px;
    font-size: 0.7rem;
  }

  .step-line {
    width: 24px;
    margin: 0 4px;
  }

  .step-indicator {
    margin-bottom: 28px;
  }

  /* Results stacked layout */
  .result-row {
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  }

  .result-party-info {
    min-width: unset;
    width: 100%;
  }

  .result-bar-container {
    width: 100%;
    height: 28px;
    flex: unset;
  }

  .result-count {
    position: absolute;
    right: 0;
    top: 10px;
    min-width: unset;
    font-size: 0.8rem;
  }

  .result-row {
    position: relative;
  }

  .results-summary {
    padding: 24px 16px;
  }

  .total-number {
    font-size: 2.2rem;
  }

  .stat-card {
    padding: 20px 16px;
  }

  .stat-card h3 {
    font-size: 0.85rem;
    margin-bottom: 14px;
  }

  .footer-brand h3 {
    font-size: 1.1rem;
  }

  .footer-brand p {
    font-size: 0.75rem;
  }

  .footer-districts {
    padding: 16px 12px;
  }

  .footer-seo p {
    font-size: 0.65rem;
  }

  .site-footer {
    padding: 32px 16px 16px;
    margin-top: 40px;
  }

  .toast {
    left: 16px;
    right: 16px;
    transform: translateX(0) translateY(100px);
    text-align: center;
    font-size: 0.85rem;
  }

  .toast.show {
    transform: translateX(0) translateY(0);
  }
}

/* =============================================
   RESPONSIVE — VERY SMALL PHONES (max-width: 360px)
   ============================================= */
@media (max-width: 360px) {
  .header-text h1 {
    font-size: 0.85rem;
  }

  .header-emblem {
    font-size: 1.2rem;
  }

  h2 {
    font-size: 1.05rem;
  }

  .step-container.glass-card {
    padding: 20px 12px;
  }

  .age-grid {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .age-btn {
    padding: 10px 6px;
    font-size: 0.8rem;
  }

  .party-grid {
    gap: 8px;
  }

  .party-card {
    padding: 14px 8px;
  }

  .party-logo {
    width: 44px;
    height: 44px;
  }

  .logo-bulb {
    font-size: 1.2rem;
  }

  .logo-text-big {
    font-size: 0.8rem;
  }

  .party-name {
    font-size: 0.75rem;
  }

  .step-dot {
    width: 26px;
    height: 26px;
    font-size: 0.65rem;
  }

  .step-line {
    width: 18px;
  }

  .btn-primary {
    padding: 14px 20px;
    font-size: 0.9rem;
  }

  .total-number {
    font-size: 1.8rem;
  }

  .modal-content {
    padding: 24px 16px;
  }

  .modal-content h3 {
    font-size: 1.1rem;
  }
}

/* =============================================
   RESPONSIVE — LANDSCAPE PHONES
   ============================================= */
@media (max-height: 500px) and (orientation: landscape) {
  .step {
    padding: 16px 16px 24px;
    min-height: auto;
  }

  .step-indicator {
    margin-bottom: 16px;
  }

  h2 {
    font-size: 1.2rem;
    margin-bottom: 8px;
  }

  .step-desc {
    margin-bottom: 16px;
    font-size: 0.8rem;
  }

  .age-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
  }

  .age-btn {
    padding: 8px 6px;
    font-size: 0.8rem;
  }

  .gender-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .gender-btn {
    padding: 10px;
  }

  .party-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .party-card {
    padding: 12px 8px;
    gap: 6px;
  }

  .party-logo {
    width: 40px;
    height: 40px;
  }

  .party-name {
    font-size: 0.75rem;
  }

  .party-full {
    display: none;
  }

  .site-header {
    padding: 10px 16px;
  }

  .site-footer {
    margin-top: 24px;
  }
}

/* =============================================
   SAFE AREA INSETS (Notched phones: iPhone X+)
   ============================================= */
@supports (padding: env(safe-area-inset-top)) {
  .site-header {
    padding-top: calc(20px + env(safe-area-inset-top));
    padding-left: calc(24px + env(safe-area-inset-left));
    padding-right: calc(24px + env(safe-area-inset-right));
  }

  .site-footer {
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
    padding-left: calc(24px + env(safe-area-inset-left));
    padding-right: calc(24px + env(safe-area-inset-right));
  }

  .toast {
    bottom: calc(30px + env(safe-area-inset-bottom));
  }

  .vote-modal {
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  }
}

/* =============================================
   PRINT STYLES
   ============================================= */
@media print {

  .bg-animation,
  .loading-overlay,
  .toast,
  .vote-modal,
  .step-indicator,
  .btn-primary,
  .btn-secondary {
    display: none !important;
  }

  body {
    background: white;
    color: #111;
  }

  .glass-card {
    background: #f9f9f9;
    border: 1px solid #ddd;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .site-header {
    background: white;
    border-bottom: 2px solid #E30A17;
  }

  .header-text h1 {
    -webkit-text-fill-color: #111;
    color: #111;
  }
}

/* =============================================
   REDUCED MOTION (Accessibility)
   ============================================= */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .bg-circle {
    animation: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* =============================================
   CUSTOM SELECT DROPDOWN
   ============================================= */
.custom-select {
  position: relative;
  width: 100%;
  user-select: none;
}

.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.custom-select-trigger:hover {
  border-color: var(--accent-gold);
  background: rgba(255, 255, 255, 0.1);
}

.custom-select.open .custom-select-trigger {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.custom-select-arrow {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: transform 0.3s ease;
}

.custom-select.open .custom-select-arrow {
  transform: rotate(180deg);
}

.custom-select-options {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #1a1a2e;
  border: 2px solid var(--accent-gold);
  border-top: none;
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
  max-height: 260px;
  overflow-y: auto;
  z-index: 50;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.custom-select.open .custom-select-options {
  display: block;
  animation: dropdownSlide 0.2s ease;
}

@keyframes dropdownSlide {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.custom-select-option {
  padding: 12px 20px;
  font-size: 0.9rem;
  color: #ccc;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.custom-select-option:last-child {
  border-bottom: none;
}

.custom-select-option:hover {
  background: rgba(212, 175, 55, 0.12);
  color: #fff;
}

.custom-select-option.selected {
  background: rgba(212, 175, 55, 0.18);
  color: var(--accent-gold);
  font-weight: 600;
}

.custom-select-options::-webkit-scrollbar {
  width: 6px;
}

.custom-select-options::-webkit-scrollbar-track {
  background: transparent;
}

.custom-select-options::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

/* Keep district-select for the results page filter */
.district-select {
  width: 100%;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.district-select:hover {
  border-color: var(--accent-gold);
  background: rgba(255, 255, 255, 0.1);
}

.district-select:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.district-select option {
  background: #1a1a2e;
  color: #eee;
  padding: 12px 16px;
}

/* =============================================
   EDUCATION GRID
   ============================================= */
.education-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.edu-btn {
  padding: 12px 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.edu-btn:hover {
  border-color: var(--accent-gold);
  background: rgba(212, 175, 55, 0.1);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.edu-btn.selected {
  border-color: var(--accent-gold);
  background: rgba(212, 175, 55, 0.15);
  color: var(--accent-gold);
  font-weight: 600;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.15);
}

/* =============================================
   RESULTS PAGE — Professional Layout
   ============================================= */
.results-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

.results-page-header {
  text-align: center;
  margin-bottom: 40px;
}

.results-page-header h2 {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-gold), #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
  justify-content: center;
}

.results-page-header p {
  color: var(--text-muted);
  font-size: 1rem;
}

.results-filter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.results-filter label {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
}

.results-filter .district-select {
  max-width: 280px;
}

/* --- Overview Cards --- */
.rp-overview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.rp-overview-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 20px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition);
}

.rp-overview-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.rp-overview-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.rp-overview-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent-gold);
  line-height: 1.2;
}

.rp-overview-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

/* --- Section Card --- */
.rp-section {
  margin-bottom: 24px;
  padding: 28px 32px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.rp-section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* --- Party Chart Professional --- */
.rp-party-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  animation: slideInLeft 0.5s ease both;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.rp-party-rank {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--accent-gold);
  flex-shrink: 0;
}

.rp-party-info {
  min-width: 130px;
  flex-shrink: 0;
}

.rp-party-name {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.rp-party-votes {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.rp-party-bar-wrap {
  flex: 1;
  min-width: 0;
  height: 36px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  overflow: hidden;
}

.rp-party-bar {
  height: 100%;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 12px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: fit-content;
}

.rp-party-pct {
  font-weight: 800;
  font-size: 0.85rem;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
}

/* --- Charts Grid --- */
.rp-charts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* --- Donut Chart --- */
.rp-donut-container {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.rp-donut-container canvas {
  flex-shrink: 0;
}

.rp-donut-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 120px;
}

.rp-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
}

.rp-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex-shrink: 0;
}

.rp-legend-label {
  flex: 1;
  color: var(--text-secondary);
}

.rp-legend-value {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.9rem;
}

/* --- Horizontal Bar Chart --- */
.rp-hbar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.rp-hbar-label {
  min-width: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: right;
  flex-shrink: 0;
}

.rp-hbar-track {
  flex: 1;
  height: 28px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  overflow: hidden;
}

.rp-hbar-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.rp-hbar-value {
  min-width: 80px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: right;
}

.rp-hbar-value small {
  color: var(--text-muted);
  font-weight: 400;
}

/* --- Footer Sonuçlar Link --- */
.footer-sonuclar {
  text-align: center;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-sonuclar a {
  display: inline-block;
  color: var(--accent-gold);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 8px 24px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius);
  transition: var(--transition);
}

.footer-sonuclar a:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--accent-gold);
  transform: translateY(-1px);
}

/* =============================================
   RESPONSIVE — Results Page
   ============================================= */
@media (max-width: 768px) {
  .rp-overview {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .rp-charts-grid {
    grid-template-columns: 1fr;
  }

  .rp-party-row {
    flex-wrap: wrap;
    gap: 8px;
  }

  .rp-party-info {
    min-width: auto;
    flex: 1;
  }

  .rp-party-bar-wrap {
    width: 100%;
    flex: none;
  }

  .rp-donut-container {
    flex-direction: column;
  }

  .rp-hbar-label {
    min-width: 70px;
    font-size: 0.75rem;
  }

  .rp-hbar-value {
    min-width: 60px;
    font-size: 0.75rem;
  }

  .education-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .results-page-header h2 {
    font-size: 1.5rem;
  }

  .results-filter {
    flex-direction: column;
    gap: 8px;
  }

  .results-filter .district-select {
    max-width: 100%;
  }
}

/* ==========================================
   NEW FEATURES
   ========================================== */

/* --- Light Theme --- */
body.light-theme {
  --bg-primary: #f5f3ff;
  --bg-secondary: #ede9fe;
  --bg-card: rgba(255, 255, 255, 0.88);
  --text-primary: #1e1b4b;
  --text-secondary: #374151;
  --text-muted: #6b7280;
  --glass-border: rgba(99, 102, 241, 0.12);
  --glass-shadow: rgba(99, 102, 241, 0.08);
  --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(238, 235, 255, 0.75));
}

body.light-theme .bg-animation {
  opacity: 0.12;
}

body.light-theme .site-header {
  background: rgba(255, 255, 255, 0.95);
  border-bottom-color: rgba(99, 102, 241, 0.15);
}

body.light-theme .header-text h1 {
  background: linear-gradient(135deg, #1e1b4b 0%, #4338ca 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.light-theme .header-subtitle {
  color: #6b7280;
}

body.light-theme .site-footer {
  background: rgba(255, 255, 255, 0.92);
  border-top-color: rgba(99, 102, 241, 0.12);
}

body.light-theme .step-line {
  background: rgba(99, 102, 241, 0.15);
}

body.light-theme .step-line.filled {
  background: linear-gradient(90deg, #6366f1, rgba(99, 102, 241, 0.3));
}

body.light-theme .party-card {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(99, 102, 241, 0.12);
}

body.light-theme .party-card:hover {
  border-color: rgba(99, 102, 241, 0.3);
}

body.light-theme .party-card .party-name {
  color: #1e1b4b;
}

body.light-theme .btn-secondary {
  background: rgba(99, 102, 241, 0.08);
  color: #1e1b4b;
  border-color: rgba(99, 102, 241, 0.15);
}

body.light-theme .age-btn,
body.light-theme .gender-btn,
body.light-theme .edu-btn {
  background: rgba(99, 102, 241, 0.06);
  border-color: rgba(99, 102, 241, 0.12);
  color: #1e1b4b;
}

body.light-theme .age-btn:hover,
body.light-theme .gender-btn:hover,
body.light-theme .edu-btn:hover {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.25);
}

body.light-theme .custom-select-trigger {
  background: rgba(99, 102, 241, 0.06);
  border-color: rgba(99, 102, 241, 0.12);
  color: #1e1b4b;
}

body.light-theme .custom-select-options {
  background: #fff;
  border-color: rgba(99, 102, 241, 0.15);
}

body.light-theme .custom-select-option:hover {
  background: rgba(99, 102, 241, 0.08);
}

body.light-theme .loading-overlay {
  background: rgba(245, 243, 255, 0.9);
}

body.light-theme .step-title,
body.light-theme .section-title,
body.light-theme .rp-section-title {
  color: #1e1b4b;
}

body.light-theme .step-desc,
body.light-theme .step-subtitle {
  color: #4b5563;
}

body.light-theme .modal-content {
  background: rgba(255, 255, 255, 0.95);
  color: #1e1b4b;
}

body.light-theme .modal-content h3 {
  color: #1e1b4b;
}

body.light-theme .modal-warning {
  color: #92400e;
}

body.light-theme .toast {
  background: rgba(30, 27, 75, 0.9);
  color: #fff;
}

body.light-theme .footer-brand h3,
body.light-theme .footer-districts h4 {
  color: #1e1b4b;
}

body.light-theme .footer-brand p,
body.light-theme .footer-tagline,
body.light-theme .footer-bottom p {
  color: #4b5563;
}

body.light-theme .footer-districts a {
  color: #4338ca;
}

body.light-theme .rp-overview-number {
  color: #4338ca;
}

body.light-theme .rp-overview-label {
  color: #6b7280;
}

body.light-theme .step-number {
  color: #4338ca;
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.2);
}

body.light-theme .step-dot {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.2);
  color: #4338ca;
}

body.light-theme .compare-vs {
  color: #e30a17;
}

body.light-theme .district-select {
  background: rgba(99, 102, 241, 0.06);
  border-color: rgba(99, 102, 241, 0.15);
  color: #1e1b4b;
}

/* --- Theme Toggle --- */
.theme-toggle {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
  position: absolute;
  right: 0;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: rotate(30deg);
}

body.light-theme .theme-toggle {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .theme-toggle:hover {
  background: rgba(0, 0, 0, 0.12);
}

.theme-icon {
  font-size: 1.2rem;
  line-height: 1;
}

/* --- Countdown Timer --- */
.countdown-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 20px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(227, 10, 23, 0.12), rgba(255, 165, 0, 0.08));
  border: 1px solid rgba(227, 10, 23, 0.2);
  border-radius: var(--radius-md);
  flex-wrap: wrap;
}

.countdown-icon {
  font-size: 1.3rem;
}

.countdown-text {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.countdown-timer {
  display: flex;
  align-items: center;
  gap: 6px;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 44px;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
}

.countdown-unit span {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent-red);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.countdown-unit small {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.countdown-sep {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-muted);
  animation: blink 1s infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

body.light-theme .countdown-unit {
  background: rgba(0, 0, 0, 0.04);
}

/* --- Social Share Buttons --- */
.share-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.share-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-right: 4px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.share-whatsapp {
  background: #25D366;
}

.share-whatsapp:hover {
  background: #1ea952;
}

.share-twitter {
  background: #1a1a2e;
}

.share-twitter:hover {
  background: #333;
}

.share-facebook {
  background: #1877F2;
}

.share-facebook:hover {
  background: #1565c0;
}

body.light-theme .share-twitter {
  background: #0f1419;
}

/* --- KVKK Cookie Banner --- */
.kvkk-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: rgba(10, 10, 26, 0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 24px;
  animation: slideUpBanner 0.5s ease-out;
}

@keyframes slideUpBanner {
  from {
    transform: translateY(100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.kvkk-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.kvkk-content p {
  flex: 1;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  min-width: 250px;
}

.kvkk-link {
  color: var(--accent-red);
  text-decoration: underline;
}

.kvkk-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.kvkk-accept {
  padding: 10px 24px;
  background: linear-gradient(135deg, #e30a17, #c0392b);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font);
}

.kvkk-accept:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(227, 10, 23, 0.4);
}

.kvkk-reject {
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font);
}

.kvkk-reject:hover {
  background: rgba(255, 255, 255, 0.15);
}

body.light-theme .kvkk-banner {
  background: rgba(255, 255, 255, 0.95);
  border-top-color: rgba(0, 0, 0, 0.08);
}

body.light-theme .kvkk-reject {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
  color: #1a1a2e;
}

/* --- Skeleton Loader --- */
.skeleton {
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0.04) 25%,
      rgba(255, 255, 255, 0.1) 50%,
      rgba(255, 255, 255, 0.04) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.skeleton-text {
  height: 16px;
  margin-bottom: 10px;
}

.skeleton-text.short {
  width: 60%;
}

.skeleton-bar {
  height: 40px;
  margin-bottom: 12px;
  border-radius: var(--radius-md);
}

.skeleton-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 12px;
}

body.light-theme .skeleton {
  background: linear-gradient(90deg,
      rgba(0, 0, 0, 0.06) 25%,
      rgba(0, 0, 0, 0.1) 50%,
      rgba(0, 0, 0, 0.06) 75%);
  background-size: 200% 100%;
}

/* --- Count-up Animation Glow --- */
.count-up-active {
  color: var(--accent-red) !important;
  text-shadow: 0 0 20px rgba(227, 10, 23, 0.5);
  transition: color 0.3s, text-shadow 0.3s;
}

/* --- Mobile adjustments for new features --- */
@media (max-width: 600px) {
  .countdown-banner {
    padding: 10px 14px;
    gap: 8px;
  }

  .countdown-unit {
    min-width: 36px;
    padding: 4px 6px;
  }

  .countdown-unit span {
    font-size: 1rem;
  }

  .countdown-text {
    font-size: 0.82rem;
  }

  .share-buttons {
    gap: 6px;
  }

  .share-btn {
    padding: 6px 12px;
    font-size: 0.75rem;
  }

  .share-label {
    font-size: 0.82rem;
    width: 100%;
  }

  .kvkk-content {
    gap: 12px;
  }

  .kvkk-content p {
    font-size: 0.78rem;
    min-width: 200px;
  }

  .kvkk-actions {
    width: 100%;
    justify-content: center;
  }

  .theme-toggle {
    width: 38px;
    height: 38px;
  }

  .theme-icon {
    font-size: 1rem;
  }
}

/* --- CAPTCHA Box --- */
.captcha-box {
  margin: 16px 0;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
}

.captcha-label {
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.captcha-question {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent-red);
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.captcha-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.3s;
}

.captcha-input:focus {
  border-color: var(--accent-red);
}

body.light-theme .captcha-box {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
}

body.light-theme .captcha-input {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
  color: #1a1a2e;
}

/* --- Comparison Section --- */
.compare-selectors {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.compare-vs {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--accent-red);
  text-shadow: 0 0 10px rgba(227, 10, 23, 0.3);
}

.compare-btn {
  padding: 10px 24px;
  font-size: 0.85rem;
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.compare-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.compare-title small {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.compare-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.compare-party {
  min-width: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.compare-bar-track {
  flex: 1;
  height: 22px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 11px;
  overflow: hidden;
}

.compare-bar-fill {
  height: 100%;
  border-radius: 11px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.compare-pct {
  min-width: 40px;
  text-align: right;
  font-size: 0.8rem;
  font-weight: 700;
}

body.light-theme .compare-bar-track {
  background: rgba(0, 0, 0, 0.06);
}

@media (max-width: 600px) {
  .compare-grid {
    grid-template-columns: 1fr;
  }

  .compare-selectors {
    flex-direction: column;
    align-items: stretch;
  }

  .compare-vs {
    text-align: center;
  }
}