/* ==========================================================================
   ViewPlus $20,000 Luxury Agency UI Enhancement Stylesheet
   Design Philosophy: High-Energy Sports & Streaming (Obsidian Neon Luxe)
   Inspired by: 21st.dev Component Catalog & Apple TV+ Sports
   ========================================================================== */

:root {
  --neon-cyan: #00f0ff;
  --neon-cyan-glow: rgba(0, 240, 255, 0.45);
  --neon-emerald: #10b981;
  --neon-emerald-glow: rgba(16, 185, 129, 0.5);
  --neon-violet: #8b5cf6;
  --neon-violet-glow: rgba(139, 92, 246, 0.45);
  --neon-gold: #f59e0b;
  --neon-red: #ef4444;
  --obsidian-dark: #050508;
  --obsidian-card: rgba(13, 13, 24, 0.78);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-border-hover: rgba(0, 240, 255, 0.4);
}

/* Smooth Scrolling & Hardware Acceleration */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

/* Mobile Performance: Eliminate expensive SVG feTurbulence re-rendering & redundant elements */
@media (max-width: 820px),
(pointer: coarse) {

  .grain-wrap,
  .grain {
    display: none !important;
    animation: none !important;
  }

  .sticky-cta {
    display: none !important;
  }

  .vp-ticker-container,
  .vp-pricing-card-master,
  .nav-pill,
  .glass {
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    transform: translateZ(0);
  }
}

/* On desktop, keep grain static without infinite CPU re-rasterization */
.grain {
  animation: none !important;
}

/* Loading spinner for ticker skeleton */
.vp-loading-spinner {
  width: 28px;
  height: 28px;
  margin: 0 auto 0.75rem;
  border: 3px solid rgba(0, 240, 255, 0.15);
  border-top-color: var(--neon-cyan);
  border-radius: 50%;
  animation: vpSpin 0.7s linear infinite;
}

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

/* GPU-accelerate interactive elements and defer off-screen rendering */
@media (max-width: 820px), (pointer: coarse) {
  .vp-match-ticker-section,
  .vp-pricing-hero-container,
  #features,
  #faq {
    content-visibility: auto;
    contain-intrinsic-size: auto 500px;
  }

  .vp-match-card,
  .vp-pricing-card-master,
  .vp-mobile-dock {
    will-change: auto;
    transform: translateZ(0);
  }

  /* Simplify shadows on mobile for compositing speed */
  .vp-pricing-card-master {
    box-shadow: 0 8px 24px -8px rgba(139, 92, 246, 0.25) !important;
  }

  .vp-ticker-container {
    box-shadow: 0 8px 20px -8px rgba(0, 240, 255, 0.12) !important;
  }

  .vp-pricing-card-master::before {
    display: none !important;
  }
}

/* ==========================================================================
   1. Live Match Ticker (شريط مباريات القمة والبث المباشر)
   ========================================================================== */
.vp-match-ticker-section {
  position: relative;
  z-index: 20;
  margin-top: -1.5rem;
  margin-bottom: 3.5rem;
  padding: 0 1rem;
}

.vp-ticker-container {
  max-width: 74rem;
  margin: 0 auto;
  border-radius: 1.75rem;
  background: linear-gradient(135deg, rgba(16, 16, 32, 0.85) 0%, rgba(8, 8, 16, 0.95) 100%);
  border: 1px solid rgba(0, 240, 255, 0.22);
  box-shadow: 0 20px 50px -15px rgba(0, 240, 255, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(24px);
  padding: 1.25rem 1.5rem;
  overflow: hidden;
}

.vp-ticker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.vp-ticker-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #ff6b6b;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.vp-live-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 10px #ef4444;
  animation: vpPulse 1.4s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

@keyframes vpPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.4);
    opacity: 0.6;
  }
}

.vp-ticker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 1.15rem;
}

@media (max-width: 640px) {
  .vp-ticker-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
  }

  .vp-ticker-grid::-webkit-scrollbar {
    display: none;
  }

  .vp-match-card {
    min-width: 260px;
    scroll-snap-align: start;
    flex-shrink: 0;
  }
}

.vp-match-card {
  position: relative;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.25rem;
  padding: 1rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.vp-match-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--neon-cyan);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px -10px var(--neon-cyan-glow);
}

.vp-match-league {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #94a3b8;
  margin-bottom: 0.6rem;
  font-weight: 600;
}

.vp-match-teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 0.88rem;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.vp-team-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex: 1 1 0%;
  min-width: 0;
}

.vp-team-away {
  flex-direction: row-reverse;
  text-align: right;
}

[dir="rtl"] .vp-team-away {
  flex-direction: row-reverse;
  text-align: left;
}

.vp-team-item span {
  display: inline-block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.84rem;
  line-height: 1.25;
}

.vp-team-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 4px;
}

.vp-match-vs {
  font-size: 0.72rem;
  padding: 0.22rem 0.5rem;
  border-radius: 0.5rem;
  background: rgba(139, 92, 246, 0.25);
  color: var(--neon-violet);
  font-weight: 900;
  flex-shrink: 0;
  letter-spacing: 0.04em;
}

.vp-match-score {
  font-size: 0.85rem;
  padding: 0.22rem 0.65rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-weight: 900;
  flex-shrink: 0;
  letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.vp-match-score.live {
  background: rgba(239, 68, 68, 0.25);
  color: #ff6b6b;
  border-color: rgba(239, 68, 68, 0.6);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.4);
  animation: vpScorePulse 1.8s infinite;
}

@keyframes vpScorePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

.vp-match-card.is-live {
  border-color: rgba(239, 68, 68, 0.45);
  box-shadow: 0 0 20px -5px rgba(239, 68, 68, 0.25);
}

.vp-match-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.vp-match-time {
  font-size: 0.78rem;
  color: var(--neon-cyan);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.vp-match-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.4rem 0.75rem;
  border-radius: 9999px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.vp-match-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.55);
}

/* ==========================================================================
   2. Interactive Pricing Switcher Card (المحوّل التفاعلي للباقات)
   ========================================================================== */
.vp-pricing-hero-container {
  max-width: 48rem;
  margin: 2rem auto 0;
  padding: 0 1rem;
}

.vp-pricing-card-master {
  position: relative;
  border-radius: 2.25rem;
  background: linear-gradient(165deg, rgba(19, 17, 38, 0.95) 0%, rgba(7, 7, 16, 0.98) 60%, rgba(6, 26, 32, 0.95) 100%);
  border: 1px solid rgba(139, 92, 246, 0.35);
  box-shadow: 0 30px 80px -20px rgba(139, 92, 246, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.08);
  padding: 2rem;
  overflow: hidden;
  backdrop-filter: blur(30px);
}

@media (max-width: 640px) {
  .vp-pricing-card-master {
    padding: 1.5rem 1.15rem;
    border-radius: 1.75rem;
  }
}

/* Top Glow Orb */
.vp-pricing-card-master::before {
  content: '';
  position: absolute;
  top: -80px;
  right: 50%;
  transform: translateX(50%);
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.4) 0%, rgba(0, 240, 255, 0.2) 40%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

.vp-pricing-region-selector {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
  flex-wrap: wrap;
}

.vp-region-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.5rem 1.1rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.vp-region-btn.active,
.vp-region-btn:hover {
  background: #ffffff;
  color: #050508;
  border-color: #ffffff;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.25);
}

/* Duration Tabs */
.vp-duration-pills {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.45rem;
  background: rgba(0, 0, 0, 0.45);
  padding: 0.4rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1.75rem;
  position: relative;
  z-index: 2;
}

@media (max-width: 540px) {
  .vp-duration-pills {
    grid-template-columns: repeat(2, 1fr);
  }
}

.vp-duration-btn {
  background: transparent;
  border: none;
  color: #cbd5e1;
  padding: 0.75rem 0.5rem;
  border-radius: 0.9rem;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.vp-duration-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
}

.vp-duration-btn.active {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.8) 0%, rgba(99, 102, 241, 0.8) 100%);
  color: #ffffff;
  box-shadow: 0 6px 20px -4px rgba(139, 92, 246, 0.6);
}

.vp-duration-tag {
  font-size: 0.65rem;
  padding: 0.15rem 0.45rem;
  border-radius: 9999px;
  background: rgba(245, 158, 11, 0.25);
  color: #fbbf24;
  font-weight: 800;
}

.vp-duration-btn.active .vp-duration-tag {
  background: #fbbf24;
  color: #050508;
}

/* Master Card Main Display */
.vp-pricing-display {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 1.5rem 1rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.5rem;
  margin-bottom: 1.75rem;
}

.vp-pricing-badge-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.vp-badge-popular {
  background: linear-gradient(90deg, #f59e0b, #ef4444);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.3rem 0.9rem;
  border-radius: 9999px;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

.vp-badge-gift {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: #34d399;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
}

.vp-price-amount {
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #ffffff;
  line-height: 1.1;
  text-shadow: 0 0 40px rgba(0, 240, 255, 0.35);
  transition: all 0.3s ease;
}

@media (max-width: 640px) {
  .vp-price-amount {
    font-size: 2.75rem;
  }
}

.vp-price-subtext {
  color: #94a3b8;
  font-size: 0.9rem;
  margin-top: 0.35rem;
  font-weight: 600;
}

/* Feature Perks Checklist */
.vp-pricing-perks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;
  text-align: start;
}

.vp-perk-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #e2e8f0;
  font-size: 0.88rem;
  font-weight: 600;
}

.vp-perk-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

/* Primary Conversion Button */
.vp-cta-master {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 3.75rem;
  background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
  color: #ffffff;
  border-radius: 9999px;
  font-size: 1.15rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 30px -5px rgba(16, 185, 129, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 2;
}

.vp-cta-master:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 16px 40px -5px rgba(16, 185, 129, 0.8), 0 0 0 2px rgba(255, 255, 255, 0.3) inset;
}

.vp-special-offer-banner {
  margin-top: 1.5rem;
  padding: 0.9rem 1.25rem;
  border-radius: 1.25rem;
  background: rgba(245, 158, 11, 0.1);
  border: 1px dashed rgba(245, 158, 11, 0.45);
  color: #fde68a;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-align: start;
}

/* ==========================================================================
   3. Smart Floating Mobile Bottom Bar (شريط التحويل العائم للهاتف)
   ========================================================================== */
.vp-mobile-sticky-dock {
  display: none;
}

@media (max-width: 768px) {
  .vp-mobile-sticky-dock {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
    background: rgba(5, 5, 12, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.6);
    gap: 0.65rem;
    align-items: center;
  }

  .vp-dock-cta-main {
    flex: 1;
    min-height: 3.25rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 800;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    box-shadow: 0 4px 18px rgba(16, 185, 129, 0.45);
  }

  .vp-dock-number-btn {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--neon-cyan);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    text-decoration: none;
  }
}

/* ==========================================================================
   4. Dual WhatsApp Lines Card in Footer & Contact
   ========================================================================== */
.vp-dual-lines-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  max-width: 44rem;
  margin: 1.5rem auto 0;
}

.vp-line-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.25rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
  color: #ffffff;
  transition: all 0.25s ease;
}

.vp-line-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #10b981;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.25);
}

.vp-line-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.18);
  color: #10b981;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

/* ==========================================================================
   5. Enhanced App Badges (Hydra, Castora, IBO Player)
   ========================================================================== */
.vp-app-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: var(--neon-cyan);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
}

/* WhatsApp Button Pill (الرقم كزر حصراً) */
.vp-pricing-wa-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.vp-pricing-wa-pill svg {
  color: #10b981;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.vp-pricing-wa-pill:hover {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.5);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

.vp-pricing-wa-pill:hover svg {
  transform: scale(1.15);
}

/* ==========================================================================
   6. Mobile Bottom Floating Conversion Dock
   ========================================================================== */
.vp-mobile-dock {
  display: none;
}

@media (max-width: 768px) {
  .vp-mobile-dock {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom, 0px));
    background: rgba(5, 5, 12, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.5);
  }

  .vp-dock-content {
    display: flex;
    gap: 0.5rem;
    align-items: center;
  }

  .vp-dock-primary {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 800;
    border-radius: 9999px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
  }

  .vp-dock-support {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 9999px;
    text-decoration: none;
    white-space: nowrap;
  }
}

/* ==========================================================================
   Compact White Statement Section (Problem 2 Fix)
   - Font color: Crisp, high-contrast pure white (#ffffff)
   - Font size: Compact and proportional (not massive 5xl)
   - Padding: Minimal and clean, eliminates wasted black space
   ========================================================================== */
section[data-statement="true"] {
  padding-top: 2rem !important;
  padding-bottom: 2.25rem !important;
  max-width: 48rem !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

section[data-statement="true"] p {
  font-size: 1.15rem !important;
  line-height: 1.65 !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  text-align: center !important;
  letter-spacing: -0.01em !important;
}

@media (min-width: 640px) {
  section[data-statement="true"] {
    padding-top: 2.5rem !important;
    padding-bottom: 2.75rem !important;
  }
  section[data-statement="true"] p {
    font-size: 1.35rem !important;
    line-height: 1.6 !important;
  }
}

section[data-statement="true"] span,
section[data-statement="true"] [data-w="true"],
section[data-statement="true"] .opacity-15 {
  opacity: 1 !important;
  color: #ffffff !important;
}