/* ===================================================================
   YEPIPTV.SHOP - ANTIGRAVITY DESIGN SYSTEM
   Spatial Depth, Weightlessness, Glassmorphism & High-Performance UI
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', sans-serif;

  /* Color Palette - Deep Cosmic Glass & Vibrant Accents */
  --bg-deep: #05070d;
  --bg-surface: #0a0e17;
  --bg-card: rgba(14, 20, 32, 0.65);
  --bg-card-hover: rgba(22, 31, 50, 0.85);
  --bg-glass-nav: rgba(7, 10, 18, 0.75);

  --accent-cyan: #00f2fe;
  --accent-blue: #4facfe;
  --accent-purple: #8a2be2;
  --accent-violet: #7928ca;
  --accent-emerald: #00ff88;
  --accent-gold: #ffb703;
  --accent-rose: #ff007a;

  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-glow: rgba(0, 242, 254, 0.35);
  --border-glass-active: rgba(121, 40, 202, 0.45);

  --shadow-antigravity: 0 30px 60px -15px rgba(0, 0, 0, 0.8), 0 0 40px -10px rgba(0, 242, 254, 0.15);
  --shadow-neon-cyan: 0 0 35px rgba(0, 242, 254, 0.35);
  --shadow-neon-purple: 0 0 35px rgba(121, 40, 202, 0.35);
  --shadow-neon-emerald: 0 0 30px rgba(0, 255, 136, 0.3);

  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-deep);
  color: #e2e8f0;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-deep);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
}

/* Antigravity Ambient Background Grid & Glows */
.antigravity-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.antigravity-grid {
  position: absolute;
  inset: -50%;
  width: 200%;
  height: 200%;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: perspective(600px) rotateX(60deg);
  transform-origin: center 70%;
  opacity: 0.6;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.28;
  pointer-events: none;
  will-change: transform;
}

.glow-orb-1 {
  width: 550px;
  height: 550px;
  top: -150px;
  left: 10%;
  background: radial-gradient(circle, var(--accent-cyan), var(--accent-blue), transparent 70%);
  animation: floatOrb 22s ease-in-out infinite alternate;
}

.glow-orb-2 {
  width: 650px;
  height: 650px;
  top: 30%;
  right: -150px;
  background: radial-gradient(circle, var(--accent-violet), var(--accent-purple), transparent 70%);
  animation: floatOrb 28s ease-in-out infinite alternate-reverse;
}

.glow-orb-3 {
  width: 500px;
  height: 500px;
  bottom: 10%;
  left: 20%;
  background: radial-gradient(circle, var(--accent-emerald), var(--accent-blue), transparent 70%);
  animation: floatOrb 24s ease-in-out infinite alternate;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, -40px) scale(1.1); }
  100% { transform: translate(-40px, 50px) scale(0.95); }
}

/* Glassmorphism System */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border-glass);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  transition: all 0.4s var(--ease-smooth);
}

.glass-panel:hover {
  border-color: rgba(0, 242, 254, 0.3);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 242, 254, 0.12);
}

.glass-panel-glow {
  position: relative;
  background: rgba(16, 22, 38, 0.75);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border: 1px solid rgba(0, 242, 254, 0.35);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 242, 254, 0.2);
  border-radius: 24px;
}

.glass-nav {
  background: var(--bg-glass-nav);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
}

/* 3D Spatial Tilt Container & Layering */
.perspective-container {
  perspective: 1200px;
  transform-style: preserve-3d;
}

.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.2s cubic-bezier(0.2, 0, 0.2, 1), box-shadow 0.3s ease;
  will-change: transform;
}

.tilt-inner {
  transform: translateZ(30px);
  transition: transform 0.3s ease;
}

.tilt-inner-pop {
  transform: translateZ(50px);
}

/* Floating Animations (Weightlessness) */
.float-subtle {
  animation: floatSubtle 6s ease-in-out infinite;
}

.float-delayed {
  animation: floatSubtle 7s ease-in-out infinite;
  animation-delay: -3.5s;
}

.float-slow {
  animation: floatSubtle 9s ease-in-out infinite;
  animation-delay: -1.8s;
}

@keyframes floatSubtle {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(0.8deg);
  }
}

/* Gradient Text */
.gradient-text-cyan {
  background: linear-gradient(135deg, #ffffff 0%, #00f2fe 60%, #4facfe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-purple {
  background: linear-gradient(135deg, #ffffff 0%, #d946ef 50%, #7928ca 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-gold {
  background: linear-gradient(135deg, #ffffff 0%, #fbbf24 60%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glowing Neon Buttons */
.btn-neon-cyan {
  background: linear-gradient(135deg, #00f2fe, #4facfe);
  color: #05070d;
  font-weight: 700;
  box-shadow: 0 8px 25px -4px rgba(0, 242, 254, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: all 0.3s var(--ease-spring);
  position: relative;
  overflow: hidden;
}

.btn-neon-cyan:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 35px -2px rgba(0, 242, 254, 0.7), 0 0 30px rgba(0, 242, 254, 0.4);
  color: #000;
}

.btn-neon-purple {
  background: linear-gradient(135deg, #a855f7, #6366f1);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 8px 25px -4px rgba(168, 85, 247, 0.5);
  transition: all 0.3s var(--ease-spring);
}

.btn-neon-purple:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 35px -2px rgba(168, 85, 247, 0.7), 0 0 30px rgba(168, 85, 247, 0.4);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  backdrop-filter: blur(10px);
  transition: all 0.3s var(--ease-smooth);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(0, 242, 254, 0.5);
  box-shadow: 0 8px 25px rgba(0, 242, 254, 0.2);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 8px 25px -4px rgba(37, 211, 102, 0.4);
  transition: all 0.3s var(--ease-spring);
}

.btn-whatsapp:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 35px -2px rgba(37, 211, 102, 0.6), 0 0 25px rgba(37, 211, 102, 0.3);
}

/* Pulsing Online Beacon */
.pulsing-beacon {
  position: relative;
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #00ff88;
}

.pulsing-beacon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #00ff88;
  transform: translate(-50%, -50%);
  animation: pulseBeacon 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulseBeacon {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(3);
    opacity: 0;
  }
}

/* Infinite Marquee */
.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 35s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

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

/* Device Pill Switcher */
.device-switch-pill {
  position: relative;
  background: rgba(14, 20, 32, 0.85);
  border: 1px solid var(--border-glass);
  border-radius: 9999px;
  padding: 6px;
  display: inline-flex;
  gap: 4px;
}

.device-tab-btn {
  position: relative;
  z-index: 2;
  padding: 10px 22px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.925rem;
  color: #94a3b8;
  transition: color 0.3s ease;
  border: none;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
}

.device-tab-btn.active {
  color: #ffffff;
}

.device-tab-slider {
  position: absolute;
  top: 6px;
  bottom: 6px;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.25), rgba(121, 40, 202, 0.35));
  border: 1px solid rgba(0, 242, 254, 0.4);
  border-radius: 9999px;
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.25);
  transition: all 0.35s var(--ease-spring);
  z-index: 1;
}

/* Live Equalizer Animation (Sports stream effect) */
.eq-bar {
  width: 3px;
  height: 12px;
  background: var(--accent-emerald);
  border-radius: 3px;
  display: inline-block;
  animation: eqBounce 1.2s ease-in-out infinite alternate;
}
.eq-bar:nth-child(2) { animation-delay: 0.2s; height: 18px; }
.eq-bar:nth-child(3) { animation-delay: 0.4s; height: 14px; }
.eq-bar:nth-child(4) { animation-delay: 0.1s; height: 22px; }

@keyframes eqBounce {
  0% { transform: scaleY(0.3); }
  100% { transform: scaleY(1.2); }
}

/* Payment Modal Backdrop & Animation */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 14, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  background: linear-gradient(160deg, rgba(16, 22, 36, 0.95), rgba(10, 14, 24, 0.98));
  border: 1px solid rgba(0, 242, 254, 0.3);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), 0 0 60px rgba(0, 242, 254, 0.15);
  border-radius: 28px;
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.35s var(--ease-spring), opacity 0.3s ease;
  position: relative;
}

.modal-backdrop.active .modal-dialog {
  transform: scale(1) translateY(0);
}

/* Toast Notification */
.toast-notice {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(14, 22, 38, 0.95);
  border: 1px solid var(--accent-cyan);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 242, 254, 0.3);
  color: #fff;
  padding: 12px 24px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.925rem;
  z-index: 2000;
  transition: transform 0.3s var(--ease-spring), opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toast-notice.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* FAQ Accordion */
.faq-header {
  cursor: pointer;
  user-select: none;
}

.faq-header i {
  transition: transform 0.3s var(--ease-smooth);
}

.faq-header.open i {
  transform: rotate(180deg);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-body.open {
  max-height: 350px;
}

/* Floating WhatsApp Badge (Bottom Right) */
.floating-whatsapp-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 990;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.3s var(--ease-spring);
}

.floating-whatsapp-widget:hover {
  transform: scale(1.05);
}

.floating-wa-bubble {
  background: rgba(10, 14, 24, 0.92);
  border: 1px solid rgba(37, 211, 102, 0.4);
  backdrop-filter: blur(12px);
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 0.85rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.floating-wa-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366, #128C7E);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 26px;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.5);
  position: relative;
}

/* Range Slider Custom Styling (Speed Calculator) */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  outline: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00f2fe, #4facfe);
  cursor: pointer;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.8), 0 0 30px rgba(0, 242, 254, 0.4);
  border: 2px solid #ffffff;
  transition: transform 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00f2fe, #4facfe);
  cursor: pointer;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.8);
  border: 2px solid #ffffff;
}

/* Comparison Table Styling */
.comparison-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.comparison-table-wrapper::-webkit-scrollbar {
  height: 5px;
}

.comparison-table-wrapper::-webkit-scrollbar-thumb {
  background: rgba(0, 242, 254, 0.4);
  border-radius: 9999px;
}

.comparison-table {
  width: 100%;
  min-width: 580px;
  border-collapse: separate;
  border-spacing: 0;
}

.comparison-table th, .comparison-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table .highlight-col {
  background: rgba(0, 242, 254, 0.05);
  border-left: 1px solid rgba(0, 242, 254, 0.3);
  border-right: 1px solid rgba(0, 242, 254, 0.3);
}

.comparison-table tr:first-child .highlight-col {
  border-top: 1px solid rgba(0, 242, 254, 0.3);
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}

.comparison-table tr:last-child .highlight-col {
  border-bottom: 1px solid rgba(0, 242, 254, 0.3);
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
}

/* GameDay Match Fixture Card */
.fixture-card {
  transition: all 0.3s var(--ease-spring);
}

.fixture-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 242, 254, 0.2);
}

/* Setup App Tab Switcher */
.setup-tab-btn.active {
  background: rgba(0, 242, 254, 0.15);
  border-color: rgba(0, 242, 254, 0.5);
  color: #00f2fe;
}

/* Telemetry Ping Beacon */
.telemetry-node {
  position: relative;
  transition: all 0.3s ease;
}

.telemetry-node:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 242, 254, 0.5);
}

/* Mobile Specific Optimizations (< 640px) */
@media (max-width: 640px) {
  .device-switch-pill {
    width: 100%;
    max-width: 360px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 4px;
    gap: 2px;
    margin-left: auto;
    margin-right: auto;
  }

  .device-tab-btn {
    padding: 8px 2px;
    font-size: 0.75rem;
    text-align: center;
  }

  .modal-dialog {
    padding: 20px 16px !important;
    border-radius: 20px !important;
    max-height: 94vh;
  }

  .glass-panel {
    border-radius: 16px;
  }
}

/* Reduced Motion Override */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .tilt-card {
    transform: none !important;
  }
}
