/* ==========================================================================
   Tap2Profit - Custom Styles & Micro-Animations
   Mobile-First • High Conversion • Ultra Fast
   ========================================================================== */

:root {
  --color-primary: #00B7FF;
  --color-primary-hover: #0099FF;
  --color-secondary: #0866FF;
  --color-dark: #000000;
  --color-card-dark: #0A0E17;
  --color-card-border: rgba(255, 255, 255, 0.08);
  --color-text-main: #FFFFFF;
  --color-text-sub: #94A3B8;
  --color-gold: #FFB800;
  --radius-card: 18px;
  --radius-btn: 14px;
}

/* Base resets & typography */
html {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
  background-color: #000000;
}

body {
  color: #FFFFFF;
  background-color: #000000;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(0, 183, 255, 0.12) 0%, rgba(0, 0, 0, 0) 60%),
    radial-gradient(circle at 80% 40%, rgba(8, 102, 255, 0.06) 0%, rgba(0, 0, 0, 0) 50%);
  background-attachment: fixed;
  line-height: 1.5;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #080B12;
}
::-webkit-scrollbar-thumb {
  background: #1E293B;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* ==========================================================================
   ANIMATIONS & KEYFRAMES
   ========================================================================== */

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(8, 102, 255, 0.4);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(8, 102, 255, 0);
  }
}

@keyframes nfcWave {
  0% {
    transform: scale(0.6);
    opacity: 0.9;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

@keyframes shineEffect {
  0% {
    transform: translateX(-100%) rotate(25deg);
  }
  100% {
    transform: translateX(200%) rotate(25deg);
  }
}

@keyframes subtleFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes tapCardMotion {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  30% {
    transform: translate(30px, -15px) rotate(8deg);
  }
  45% {
    transform: translate(18px, -5px) rotate(4deg);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ==========================================================================
   UTILITY CLASSES & INTERACTION ENHANCEMENTS
   ========================================================================== */

.animate-pulse-glow {
  animation: pulseGlow 2.2s infinite ease-in-out;
}

@keyframes logoPulseBreath {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 4px 12px rgba(8, 102, 255, 0.15));
  }
  50% {
    transform: scale(1.05);
    filter: drop-shadow(0 10px 24px rgba(8, 102, 255, 0.35));
  }
}

@keyframes radarSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.animate-logo-pulse {
  animation: logoPulseBreath 2s infinite ease-in-out;
}

.radar-spinner {
  animation: radarSpin 2.2s linear infinite;
}

.animate-subtle-float {
  animation: subtleFloat 3.5s infinite ease-in-out;
}

.screen-transition {
  animation: fadeInScale 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Primary Button with electric neon cyan-blue glow */
.btn-primary-action {
  background: linear-gradient(135deg, #0088FF 0%, #00B7FF 100%);
  position: relative;
  overflow: hidden;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 25px rgba(0, 183, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-primary-action * {
  pointer-events: none;
}

.btn-primary-action::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none !important;
  background: linear-gradient(
    60deg,
    transparent 30%,
    rgba(255, 255, 255, 0.25) 50%,
    transparent 70%
  );
  transform: translateX(-100%) rotate(25deg);
  animation: shineEffect 5s infinite ease-in-out;
}

/* Instant Touch Feedback on Mobile */
.btn-primary-action:active {
  transform: scale(0.98);
  box-shadow: 0 0 15px rgba(0, 183, 255, 0.3);
}

/* Desktop Hover Only (Prevents iOS double-tap bug) */
@media (hover: hover) and (pointer: fine) {
  .btn-primary-action:hover {
    background: linear-gradient(135deg, #0077EE 0%, #00C8FF 100%);
    transform: translateY(-2px);
    box-shadow: 0 0 35px rgba(0, 183, 255, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  }
}

/* Dark Offer Card Gradient */
.dark-offer-card {
  background: radial-gradient(circle at top right, #161c28 0%, #080B12 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 50px -12px rgba(8, 11, 18, 0.6);
}

/* NFC Wave Emitter */
.nfc-wave-ring {
  position: absolute;
  border-radius: 9999px;
  border: 2px solid #00B7FF;
  animation: nfcWave 2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}

.nfc-wave-ring:nth-child(2) {
  animation-delay: 0.6s;
}

.nfc-wave-ring:nth-child(3) {
  animation-delay: 1.2s;
}

/* Progress bar dynamic easing */
.progress-bar-fill {
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Interactive Tap Demo Wrapper */
.nfc-demo-wrapper.nfc-active .demo-card {
  animation: tapCardMotion 1.8s ease forwards;
}

.nfc-demo-wrapper.nfc-active .demo-phone-review {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
  transition: all 0.4s 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Touch feedback for mobile cards */
.quiz-option-card {
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}

/* ==========================================================================
   QUIZ OPTION BUTTONS (Guaranteed Dark Cyberpunk on iOS & All Mobile Browsers)
   ========================================================================== */
.quiz-option-btn {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  background-color: #090E1A !important;
  background-image: none !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 18px !important;
  padding: 1rem 1.25rem !important;
  width: 100% !important;
  text-align: left !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5) !important;
  cursor: pointer !important;
  touch-action: manipulation !important;
  -webkit-tap-highlight-color: transparent !important;
  -webkit-user-select: none !important;
  user-select: none !important;
  outline: none !important;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease !important;
}

@media (min-width: 640px) {
  .quiz-option-btn {
    padding: 1.15rem 1.35rem !important;
  }
}

/* Instant Touch Feedback */
.quiz-option-btn:active {
  transform: scale(0.98) !important;
}

/* Desktop Hover Only (Prevents iOS touch hover stickiness) */
@media (hover: hover) and (pointer: fine) {
  .quiz-option-btn:hover {
    background-color: #0D1627 !important;
    border-color: rgba(0, 183, 255, 0.6) !important;
  }
  .quiz-option-btn:hover .quiz-option-badge {
    border-color: #00B7FF !important;
    background-color: rgba(0, 183, 255, 0.2) !important;
    color: #00B7FF !important;
  }
  .quiz-option-btn:hover .quiz-option-text {
    color: #67e8f9 !important;
  }
  .quiz-option-btn:hover .quiz-option-radio {
    border-color: #00B7FF !important;
    background-color: rgba(0, 183, 255, 0.15) !important;
  }
  .quiz-option-btn:hover .quiz-option-radio-dot {
    background-color: #00B7FF !important;
  }
}

/* Selected state (Only for the explicitly chosen option) */
.quiz-option-btn.is-selected {
  background-color: #0E1E38 !important;
  border-color: #00B7FF !important;
  box-shadow: 0 0 25px rgba(0, 183, 255, 0.4), inset 0 0 0 1px #00B7FF !important;
  transform: scale(1.01) !important;
}

/* Letter badge A, B, C, D */
.quiz-option-badge {
  width: 2rem !important;
  height: 2rem !important;
  border-radius: 9999px !important;
  border: 1px solid #334155 !important;
  background-color: #0F172A !important;
  color: #94A3B8 !important;
  font-size: 0.75rem !important;
  font-weight: 800 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  pointer-events: none !important;
  transition: all 0.15s ease !important;
}

.quiz-option-btn.is-selected .quiz-option-badge {
  border-color: #00B7FF !important;
  background-color: rgba(0, 183, 255, 0.25) !important;
  color: #00B7FF !important;
}

/* Option text */
.quiz-option-text {
  color: #FFFFFF !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  pointer-events: none !important;
  transition: color 0.15s ease !important;
}

@media (min-width: 640px) {
  .quiz-option-text {
    font-size: 1rem !important;
  }
}

.quiz-option-btn.is-selected .quiz-option-text {
  color: #FFFFFF !important;
}

/* Radio circle on the right */
.quiz-option-radio {
  width: 1.5rem !important;
  height: 1.5rem !important;
  border-radius: 9999px !important;
  border: 1px solid #334155 !important;
  background-color: #0F172A !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  pointer-events: none !important;
  transition: all 0.15s ease !important;
}

.quiz-option-radio-dot {
  width: 0.5rem !important;
  height: 0.5rem !important;
  border-radius: 9999px !important;
  background-color: #475569 !important;
  pointer-events: none !important;
  transition: all 0.15s ease !important;
}

.quiz-option-btn.is-selected .quiz-option-radio {
  border-color: #00B7FF !important;
  background-color: #00B7FF !important;
  box-shadow: 0 0 12px #00B7FF !important;
}

.quiz-option-btn.is-selected .quiz-option-radio-dot {
  background-color: #FFFFFF !important;
}

/* Dark Glassmorphism cyber overlays */
.glass-panel {
  background: rgba(9, 14, 26, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 183, 255, 0.2);
}

/* Proof Carousel & Slide Animations */
.proof-carousel-container {
  perspective: 1000px;
}

.proof-slide {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.proof-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.proof-slide:not(.is-active) {
  opacity: 0.4;
  transform: scale(0.96);
}

.proof-dot {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.proof-dot.active {
  width: 2rem;
  background-color: var(--color-primary);
  border-radius: 9999px;
}

.proof-thumb {
  transition: all 0.25s ease;
}

.proof-thumb.active {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(8, 102, 255, 0.3);
  transform: translateY(-2px);
}
