/* ===================================================== */
/* PREMIUM NEON QUIZ - STYLES                              */
/* ===================================================== */

* { 
  -webkit-tap-highlight-color: transparent; 
}

body {
  background-color: #0a0a0a;
  overscroll-behavior: none;
  touch-action: pan-y;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Hide scrollbars globally */
::-webkit-scrollbar { 
  display: none; 
}

* { 
  -ms-overflow-style: none; 
  scrollbar-width: none; 
}

/* Glassmorphism card */
.glass-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(204, 255, 0, 0.15);
  border-radius: 24px;
}

/* Neon glow utilities */
.neon-text {
  color: #ccff00;
  text-shadow: 0 0 8px rgba(204, 255, 0, 0.7);
}

.neon-pulse {
  animation: neonPulse 1.8s infinite;
}

@keyframes neonPulse {
  0%, 100% { 
    box-shadow: 0 0 5px #ccff00, 0 0 10px rgba(204, 255, 0, 0.5); 
  }
  50% { 
    box-shadow: 0 0 15px #ccff00, 0 0 25px #a3cc00; 
  }
}

/* Fixed structure */
.app-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
}

.app-header {
  padding: 16px 20px 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(204, 255, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-badge {
  background: rgba(255, 255, 255, 0.05);
  padding: 6px 12px;
  border-radius: 9999px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.header-points {
  background: rgba(204, 255, 0, 0.1);
  padding: 6px 12px;
  border-radius: 9999px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(204, 255, 0, 0.3);
}

.content-area {
  flex: 1;
  overflow-y: auto;
  padding: 16px 16px 8px 16px;
  scrollbar-width: none;
}

/* Progress bar */
.progress-container {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 9999px;
  height: 12px;
}

.progress-bar {
  background: #ccff00;
  height: 12px;
  border-radius: 9999px;
  box-shadow: 0 0 8px #ccff00;
  transition: width 0.3s ease;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(204, 255, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(204, 255, 0, 0.4);
  box-shadow: 0 0 12px rgba(204, 255, 0, 0.3);
  margin-bottom: 8px;
}

/* Buttons */
.start-quiz-btn {
  width: 100%;
  padding: 16px;
  background: #ccff00;
  color: black;
  font-weight: bold;
  border-radius: 16px;
  font-size: 18px;
  transition: all 0.2s ease;
}

.start-quiz-btn:active {
  transform: scale(0.97);
}

/* Quiz styles */
.quiz-counter {
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 12px;
}

.option-btn {
  width: 100%;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  text-align: left;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  transition: all 0.2s ease;
}

.option-btn:active {
  transform: scale(0.98);
}

.option-btn.correct {
  border-color: #ccff00;
  background: rgba(204, 255, 0, 0.1);
}

.option-btn.incorrect {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.option-btn:disabled {
  opacity: 0.7;
}

/* Task items */
.task-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
}

/* Referral styles */
.copy-btn, .share-btn {
  background: rgba(204, 255, 0, 0.2);
  border: 1px solid rgba(204, 255, 0, 0.3);
  color: #ccff00;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  white-space: nowrap;
}

.referral-stats {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Email input */
.email-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px;
  color: white;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.email-input:focus {
  border-color: #ccff00;
}

.save-email-btn {
  margin-top: 12px;
  width: 100%;
  padding: 12px;
  background: rgba(204, 255, 0, 0.2);
  border: 1px solid rgba(204, 255, 0, 0.5);
  color: #ccff00;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
}

.email-status {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 8px;
  text-align: center;
}

/* Wallet styles */
.wallet-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto;
  background: rgba(204, 255, 0, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(204, 255, 0, 0.4);
}

.withdraw-btn {
  margin-top: 24px;
  width: 100%;
  padding: 14px;
  background: #ccff00;
  color: black;
  font-weight: 600;
  border-radius: 12px;
}

.withdraw-btn:disabled {
  opacity: 0.5;
  filter: grayscale(1);
}

.wallet-status {
  color: rgba(255, 255, 255, 0.3);
  font-size: 10px;
  margin-top: 8px;
}

/* Bottom navigation */
.bottom-nav {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 16px 12px 16px;
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: rgba(255, 255, 255, 0.5);
  transition: all 0.2s ease;
  cursor: pointer;
}

.bottom-nav-item span {
  font-size: 10px;
  margin-top: 4px;
  font-weight: 500;
}

.bottom-nav-item svg {
  stroke: rgba(255, 255, 255, 0.5);
  transition: all 0.2s ease;
}

.bottom-nav-item.active {
  color: #ccff00;
  text-shadow: 0 0 6px #ccff00;
}

.bottom-nav-item.active svg {
  stroke: #ccff00;
  filter: drop-shadow(0 0 4px #ccff00);
}

/* Loading overlay */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(204, 255, 0, 0.2);
  border-top-color: #ccff00;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Turnstile Modal */
.turnstile-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}

.turnstile-container {
  max-width: 360px;
  width: 100%;
  padding: 24px;
  text-align: center;
}

.turnstile-close-btn {
  margin-top: 16px;
  width: 100%;
  padding: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: 12px;
}

/* Hidden utility */
.hidden {
  display: none !important;
}