/* ===== CSS CUSTOM PROPERTIES — DARK (default) ===== */
:root {
  --bg-primary: #0a0a1a;
  --bg-secondary: #0f0f2a;
  --bg-tertiary: #141432;
  --accent-primary: #6366f1;
  --accent-secondary: #818cf8;
  --accent-emerald: #10b981;
  --accent-emerald-light: #34d399;
  --accent-cyan: #06b6d4;
  --accent-amber: #f59e0b;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-bg-hover: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(255, 255, 255, 0.15);
  --glow-primary: rgba(99, 102, 241, 0.4);
  --glow-emerald: rgba(16, 185, 129, 0.4);
  --font-main: 'Inter', sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 50px;
  --stars-opacity: 1;
  --aurora-opacity: 0.12;
  --modal-bg: linear-gradient(145deg, #1a1a3e, #12122a);
  --particle-line-color: 99, 102, 241;
}

/* ===== LIGHT THEME ===== */
:root[data-theme="light"] {
  --bg-primary: #f0f2f8;
  --bg-secondary: #e8eaf0;
  --bg-tertiary: #dfe1ea;
  --accent-primary: #4f46e5;
  --accent-secondary: #6366f1;
  --accent-emerald: #059669;
  --accent-emerald-light: #10b981;
  --accent-cyan: #0891b2;
  --accent-amber: #d97706;
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-bg-hover: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(0, 0, 0, 0.08);
  --glass-border-hover: rgba(0, 0, 0, 0.14);
  --glow-primary: rgba(79, 70, 229, 0.2);
  --glow-emerald: rgba(5, 150, 105, 0.2);
  --stars-opacity: 0.08;
  --aurora-opacity: 0.06;
  --modal-bg: linear-gradient(145deg, #ffffff, #f0f2f8);
  --particle-line-color: 79, 70, 229;
}

/* ===== THEME TOGGLE BUTTON ===== */
.theme-toggle {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 1500;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: var(--text-secondary);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.theme-toggle:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  transform: scale(1.1) rotate(15deg);
  color: var(--accent-primary);
  box-shadow: 0 4px 20px var(--glow-primary);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  position: absolute;
  transition: opacity 0.3s ease, transform 0.4s ease;
}

/* Dark mode: show moon, hide sun */
.theme-toggle .icon-sun {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}

.theme-toggle .icon-moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* Light mode: show sun, hide moon */
:root[data-theme="light"] .theme-toggle .icon-sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

:root[data-theme="light"] .theme-toggle .icon-moon {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-main);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}

/* ===== INTERACTIVE PARTICLE CANVAS ===== */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ===== ANIMATED STAR BACKGROUND ===== */
.stars-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: var(--stars-opacity);
  transition: opacity 0.6s ease;
}

.stars,
.stars2,
.stars3 {
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 200%;
}

.stars {
  background-image:
    radial-gradient(1.5px 1.5px at 50px 80px, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1px 1px at 150px 200px, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1.5px 1.5px at 300px 50px, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1px 1px at 450px 300px, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(2px 2px at 600px 120px, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1px 1px at 700px 250px, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1.5px 1.5px at 200px 350px, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1px 1px at 500px 400px, rgba(255, 255, 255, 0.4), transparent);
  background-size: 800px 600px;
  animation: starDrift 120s linear infinite;
}

.stars2 {
  background-image:
    radial-gradient(1px 1px at 80px 150px, rgba(167, 139, 250, 0.6), transparent),
    radial-gradient(1.5px 1.5px at 250px 100px, rgba(129, 140, 248, 0.5), transparent),
    radial-gradient(1px 1px at 400px 250px, rgba(196, 181, 253, 0.4), transparent),
    radial-gradient(1.5px 1.5px at 550px 50px, rgba(165, 180, 252, 0.5), transparent);
  background-size: 700px 500px;
  animation: starDrift 180s linear infinite reverse;
  opacity: 0.8;
}

.stars3 {
  background-image:
    radial-gradient(2px 2px at 120px 60px, rgba(52, 211, 153, 0.5), transparent),
    radial-gradient(1.5px 1.5px at 350px 180px, rgba(6, 182, 212, 0.4), transparent),
    radial-gradient(2px 2px at 500px 100px, rgba(34, 211, 238, 0.3), transparent);
  background-size: 600px 400px;
  animation: starDrift 150s linear infinite;
  opacity: 0.6;
}

@keyframes starDrift {
  from {
    transform: translate(0, 0);
  }

  to {
    transform: translate(-400px, -300px);
  }
}

/* ===== AURORA BLOBS ===== */
.aurora-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: var(--aurora-opacity);
  transition: opacity 0.6s ease;
}

.aurora-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-primary), transparent 70%);
  top: -150px;
  right: -150px;
  animation: auroraFloat1 20s ease-in-out infinite;
}

.aurora-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--accent-emerald), transparent 70%);
  bottom: -100px;
  left: -100px;
  animation: auroraFloat2 25s ease-in-out infinite;
}

.aurora-3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, var(--accent-cyan), transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: auroraFloat3 18s ease-in-out infinite;
}

@keyframes auroraFloat1 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(-80px, 60px) scale(1.1);
  }

  66% {
    transform: translate(40px, -40px) scale(0.95);
  }
}

@keyframes auroraFloat2 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(60px, -50px) scale(1.05);
  }

  66% {
    transform: translate(-30px, 30px) scale(1.1);
  }
}

@keyframes auroraFloat3 {

  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.08;
  }

  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.15;
  }
}

/* ===== SCROLL REVEAL ===== */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== HERO SECTION — COMPACT ===== */
.hero-section {
  position: relative;
  z-index: 1;
  padding: 30px 24px 10px;
  text-align: center;
}

.hero-content {
  max-width: 700px;
  margin: 0 auto;
}

.landing-logo {
  max-width: 280px;
  width: 70%;
  height: auto;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 30px rgba(99, 102, 241, 0.3));
  animation: logoFloat 6s ease-in-out infinite;
}

@keyframes logoFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.hero-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 18px;
  line-height: 1.6;
  font-weight: 400;
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== CTA BUTTONS ===== */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 28px;
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.cta-primary {
  background: linear-gradient(135deg, var(--accent-primary), #8b5cf6);
  color: white;
  box-shadow: 0 4px 20px var(--glow-primary), 0 0 0 1px rgba(99, 102, 241, 0.3);
}

.cta-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 35px var(--glow-primary), 0 0 0 1px rgba(99, 102, 241, 0.5);
}

.cta-primary.glow {
  animation: ctaGlow 2.5s ease-in-out infinite;
}

@keyframes ctaGlow {

  0%,
  100% {
    box-shadow: 0 4px 20px var(--glow-primary), 0 0 0 1px rgba(99, 102, 241, 0.3);
  }

  50% {
    box-shadow: 0 4px 30px rgba(99, 102, 241, 0.6), 0 0 60px rgba(99, 102, 241, 0.2), 0 0 0 1px rgba(99, 102, 241, 0.5);
  }
}

.cta-secondary {
  background: var(--glass-bg);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.cta-secondary:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  transform: translateY(-3px);
}

/* ===== FEATURES STRIP — Horizontal Gaming HUD ===== */
.features-strip {
  position: relative;
  z-index: 1;
  padding: 10px 24px 30px;
  overflow: hidden;
}

.features-strip-track {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 750px;
  margin: 0 auto;
  margin-top: 28px;
}

.feature-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: default;
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

/* Animated border glow on hover */
.feature-chip::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, transparent, var(--accent-primary), var(--accent-emerald), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.feature-chip:hover::before {
  opacity: 1;
}

.feature-chip:hover {
  background: rgba(99, 102, 241, 0.08);
  color: var(--text-primary);
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.15);
}

.feature-chip i {
  font-size: 0.9rem;
  background: linear-gradient(135deg, var(--accent-secondary), var(--accent-emerald-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== SECTION LAYOUT ===== */
.section-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 36px;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-secondary) 50%, var(--accent-emerald-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
}

/* ===== COMMUNITY & MARKET — Gaming Panels ===== */
.stats-section-wrapper {
  position: relative;
  z-index: 1;
  padding: 30px 0 80px;
}

.stats-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

/* Gaming panel: neon accent line at top, dot indicator */
.gaming-panel {
  position: relative;
  overflow: hidden;
}

.gaming-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), var(--accent-emerald), transparent);
  animation: panelScan 4s ease-in-out infinite;
}

@keyframes panelScan {

  0%,
  100% {
    opacity: 0.5;
  }

  50% {
    opacity: 1;
  }
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.panel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
  animation: dotPulse 2s ease-in-out infinite;
  flex-shrink: 0;
  display: none;
}

@keyframes dotPulse {

  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 8px var(--accent-emerald);
  }

  50% {
    opacity: 0.5;
    box-shadow: 0 0 4px var(--accent-emerald);
  }
}

.panel-header h2 {
  margin-bottom: 0;
}

.stats-section {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}

.stats-section:hover {
  border-color: var(--glass-border-hover);
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.06);
}

.stats-section h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.stats-section h2 i {
  color: var(--accent-emerald);
  font-size: 1rem;
}

/* ===== FEATURE REQUEST SECTION ===== */
.feature-form {
  margin-bottom: 16px;
  padding: 14px;
  background: rgba(99, 102, 241, 0.06);
  border-radius: var(--radius-md);
  border: 1px solid rgba(99, 102, 241, 0.1);
}

.feature-form-login-prompt {
  text-align: center;
  padding: 16px;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9rem;
}

.feature-form-login-prompt i {
  color: var(--accent-secondary);
  margin-right: 8px;
}

.feature-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 0.88rem;
  margin-bottom: 8px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}

.feature-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
  background: rgba(255, 255, 255, 0.06);
}

.feature-input::placeholder {
  color: var(--text-muted);
}

.feature-textarea {
  resize: vertical;
  min-height: 60px;
  max-height: 120px;
}

.feature-submit-btn {
  width: 100%;
  padding: 10px 18px;
  background: linear-gradient(135deg, var(--accent-primary), #8b5cf6);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.feature-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--glow-primary);
}

.feature-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.feature-list {
  max-height: 400px;
  overflow-y: auto;
  padding-right: 4px;
}

.feature-list::-webkit-scrollbar {
  width: 4px;
}

.feature-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 3px;
}

.feature-list::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.3);
  border-radius: 3px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 8px;
  transition: all 0.3s ease;
  text-align: left;
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--glass-border-hover);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.feature-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.feature-card-title {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 600;
  flex: 1;
  margin-right: 12px;
}

.feature-vote-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(99, 102, 241, 0.12);
  color: var(--accent-secondary);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-full);
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.feature-vote-btn:hover:not(:disabled) {
  background: rgba(99, 102, 241, 0.2);
  transform: scale(1.05);
  box-shadow: 0 3px 10px var(--glow-primary);
}

.feature-vote-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.feature-vote-btn.voted {
  background: linear-gradient(135deg, var(--accent-primary), #8b5cf6);
  color: white;
  border-color: transparent;
}

.feature-vote-btn.login-required {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border-color: var(--glass-border);
  cursor: pointer;
}

.feature-card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 8px;
}

.feature-card-meta {
  display: flex;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  gap: 10px;
  margin-top: 6px;
}

.feature-card-meta>span:last-child {
  margin-left: auto;
}

/* ===== FEATURE STATUS BADGES ===== */
.feature-status-badge {
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.feature-status-badge::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}

.feature-status-badge.status-pending {
  background: rgba(148, 163, 184, 0.1);
  color: var(--text-muted);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.feature-status-badge.status-pending::before {
  background: #64748b;
}

.feature-status-badge.status-approved {
  background: rgba(139, 92, 246, 0.1);
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.feature-status-badge.status-approved::before {
  background: #8b5cf6;
}

.feature-status-badge.status-in-progress {
  background: rgba(6, 182, 212, 0.1);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.2);
}

.feature-status-badge.status-in-progress::before {
  background: var(--accent-cyan);
  animation: pulse-status 1.5s infinite;
}

@keyframes pulse-status {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

.feature-status-badge.status-completed {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-emerald-light);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.feature-status-badge.status-completed::before {
  background: var(--accent-emerald);
}

.feature-status-badge.status-rejected {
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.feature-status-badge.status-rejected::before {
  background: #ef4444;
}

/* Feature card status accents */
.feature-card.feature-status-pending {
  border-left: 3px solid #475569;
}

.feature-card.feature-status-approved {
  border-left: 3px solid #8b5cf6;
}

.feature-card.feature-status-in-progress {
  border-left: 3px solid var(--accent-cyan);
}

.feature-card.feature-status-completed {
  border-left: 3px solid var(--accent-emerald);
}

.feature-card.feature-status-rejected {
  border-left: 3px solid #ef4444;
  opacity: 0.6;
}

/* ===== COUNTRY PRICES ===== */
#country-prices-section {
  display: flex;
  flex-direction: column;
}

#country-prices-section .country-list {
  flex: 1;
  overflow-y: auto;
}

.country-list {
  max-height: 520px;
  overflow-y: auto;
  padding-right: 4px;
}

.country-list::-webkit-scrollbar {
  width: 4px;
}

.country-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 3px;
}

.country-list::-webkit-scrollbar-thumb {
  background: rgba(16, 185, 129, 0.3);
  border-radius: 3px;
}

.country-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  margin-bottom: 6px;
  transition: all 0.3s ease;
}

.country-tile:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--glass-border-hover);
  transform: translateX(4px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.country-rank {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  width: 24px;
  text-align: center;
}

.country-rank.top-3 {
  color: #fbbf24;
  text-shadow: 0 0 8px rgba(251, 191, 36, 0.3);
}

.country-flag {
  width: 30px;
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.country-info {
  flex: 1;
  text-align: left;
}

.country-name {
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 600;
}

.country-tiles-count {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.country-property-name {
  font-size: 0.75rem;
  color: var(--accent-emerald);
  font-style: italic;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

.country-link-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(99, 102, 241, 0.12);
  color: var(--accent-secondary);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 0.75rem;
  transition: all 0.2s ease;
  flex-shrink: 0;
  margin-left: 6px;
}

.country-link-arrow:hover {
  background: rgba(99, 102, 241, 0.25);
  transform: scale(1.1);
  box-shadow: 0 4px 12px var(--glow-primary);
}

.country-price {
  text-align: right;
}

.country-price-avg {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-emerald-light);
}

.country-price-label {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.empty-state {
  text-align: center;
  padding: 24px 16px;
  color: var(--text-muted);
}

.empty-state i {
  font-size: 1.8rem;
  opacity: 0.5;
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 0.88rem;
}

/* Loading Spinner */
.loading-spinner {
  display: flex;
  justify-content: center;
  padding: 24px;
}

.loading-spinner::after {
  content: '';
  width: 24px;
  height: 24px;
  border: 2px solid rgba(99, 102, 241, 0.2);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ===== AUTH MODAL ===== */
.auth-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.auth-modal.visible {
  opacity: 1;
  visibility: visible;
}

.auth-modal-content {
  background: var(--modal-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 32px;
  width: 90%;
  max-width: 420px;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(99, 102, 241, 0.1);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-30px) scale(0.95);
    opacity: 0;
  }

  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.auth-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.3s ease;
  padding: 4px;
}

.auth-modal-close:hover {
  color: #f87171;
}

.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 20px;
}

.auth-tab {
  flex: 1;
  padding: 10px 18px;
  background: none;
  border: none;
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.auth-tab.active {
  color: var(--accent-secondary);
}

.auth-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-emerald));
  border-radius: 2px;
}

.auth-form h3 {
  font-family: var(--font-main);
  font-size: 1.3rem;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 18px;
  font-weight: 700;
}

.auth-subtitle {
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 18px;
  font-size: 0.88rem;
}

.auth-google-btn {
  width: 100%;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: all 0.3s ease;
}

.auth-google-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--glass-border-hover);
}

.auth-google-btn i {
  font-size: 1.1rem;
  background: linear-gradient(135deg, #4285f4, #ea4335, #fbbc05, #34a853);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-divider {
  display: flex;
  align-items: center;
  margin: 18px 0;
  gap: 12px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--glass-border);
}

.auth-divider span {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.auth-input-group {
  position: relative;
  margin-bottom: 12px;
}

.auth-input-group>i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.85rem;
  z-index: 1;
}

.auth-input-group input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  font-family: var(--font-main);
  font-size: 0.9rem;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
  transition: all 0.3s ease;
}

.auth-input-group input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
  background: rgba(255, 255, 255, 0.06);
}

.auth-input-group input::placeholder {
  color: var(--text-muted);
}

/* Custom Country Selector */
.country-selector-container {
  position: relative;
}

.custom-country-selector {
  width: 100%;
  position: relative;
}

.country-selected {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  font-family: var(--font-main);
  font-size: 0.9rem;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 45px;
}

.country-selected:hover {
  border-color: var(--accent-primary);
}

.country-selected.open {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.country-selected img {
  width: 24px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
}

.country-selected .country-placeholder {
  color: var(--text-muted);
}

.country-selected::after {
  content: '';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--text-muted);
  transition: transform 0.2s;
}

.country-selected.open::after {
  transform: translateY(-50%) rotate(180deg);
}

.country-dropdown {
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  background: #1a1a3e;
  border: 1px solid var(--accent-primary);
  border-bottom: none;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  max-height: 260px;
  overflow: hidden;
  z-index: 1000;
  display: none;
  box-shadow: 0 -8px 20px rgba(0, 0, 0, 0.3);
}

.country-dropdown.open {
  display: block;
}

.country-search {
  width: 100%;
  padding: 10px 14px;
  border: none;
  border-bottom: 1px solid var(--glass-border);
  font-family: var(--font-main);
  font-size: 0.88rem;
  outline: none;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}

.country-search:focus {
  background: rgba(255, 255, 255, 0.06);
}

.country-search::placeholder {
  color: var(--text-muted);
}

.country-dropdown .country-list {
  max-height: 200px;
  overflow-y: auto;
}

.country-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  cursor: pointer;
  transition: background 0.2s;
}

.country-option:hover {
  background: rgba(99, 102, 241, 0.1);
}

.country-option.selected {
  background: rgba(99, 102, 241, 0.15);
}

.country-option img {
  width: 24px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
}

.country-option span {
  font-size: 0.88rem;
  color: var(--text-primary);
}

.auth-submit-btn {
  width: 100%;
  padding: 12px 18px;
  background: linear-gradient(135deg, var(--accent-primary), #8b5cf6);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px var(--glow-primary);
}

.auth-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px var(--glow-primary);
}

.auth-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.auth-link {
  text-align: center;
  margin-top: 14px;
  font-size: 0.88rem;
}

.auth-link a {
  color: var(--accent-secondary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.auth-link a:hover {
  color: var(--accent-primary);
  text-decoration: underline;
}

.auth-message {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  text-align: center;
  font-weight: 600;
  display: none;
  font-size: 0.85rem;
}

.auth-message.error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.auth-message.success {
  display: block;
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-emerald-light);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

/* ===== FOOTER ===== */
.landing-footer {
  position: relative;
  z-index: 1;
  padding: 24px;
  text-align: center;
  border-top: 1px solid var(--glass-border);
}

.footer-content p {
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .stats-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-subtitle {
    font-size: 0.95rem;
  }

  .landing-logo {
    max-width: 280px;
  }

  .section-title {
    font-size: 1.6rem;
  }
}

@media (max-width: 500px) {
  .hero-section {
    padding: 40px 16px 16px;
  }

  .hero-subtitle {
    font-size: 0.88rem;
  }

  .landing-logo {
    max-width: 240px;
  }

  .cta-btn {
    padding: 12px 24px;
    font-size: 0.92rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .stats-section {
    padding: 18px 14px;
  }

  .auth-modal-content {
    padding: 22px 18px;
    margin: 10px;
    width: calc(100% - 20px);
  }

  .features-strip-track {
    gap: 8px;
  }

  .feature-chip {
    padding: 8px 14px;
    font-size: 0.78rem;
  }
}

/* ===== COMPATIBILITY ===== */
.enter-btn,
.enter-btn.locked,
.enter-btn.explore,
.enter-btn.unlocked {
  display: none;
}