/*
Theme Name: StreamVault IPTV
Theme URI: https://yoursite.com
Author: StreamVault
Description: Premium dark-mode IPTV streaming website theme with pricing, features, FAQ, reviews, and WhatsApp integration.
Version: 1.0
License: GNU General Public License v2
Text Domain: streamvault
*/

/* ===== CSS VARIABLES ===== */
:root {
  --bg-primary: #060a14;
  --bg-secondary: #0c1222;
  --bg-card: #111827;
  --bg-card-hover: #162036;
  --accent: #0ea5e9;
  --accent-glow: rgba(14, 165, 233, 0.25);
  --accent-dark: #0284c7;
  --accent-gradient: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: rgba(255,255,255,0.06);
  --border-accent: rgba(14, 165, 233, 0.3);
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-glow: 0 0 40px rgba(14, 165, 233, 0.15);
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; font-family: inherit; }
ul { list-style: none; }

/* ===== UTILITY ===== */
.sv-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 2px; color: var(--accent);
  margin-bottom: 12px;
}
.section-label i { font-size: 0.65rem; }
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700; line-height: 1.2;
  margin-bottom: 16px;
}
.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem; max-width: 560px;
  margin: 0 auto 48px;
}
.text-center { text-align: center; }
.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 32px; border-radius: 50px;
  font-weight: 600; font-size: 0.95rem;
  transition: var(--transition);
  letter-spacing: 0.3px;
}
.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(14, 165, 233, 0.35);
}
.btn-outline {
  border: 1.5px solid rgba(255,255,255,0.15);
  color: var(--text-primary);
  background: rgba(255,255,255,0.03);
}
.btn-outline:hover {
  border-color: var(--accent);
  background: rgba(14, 165, 233, 0.08);
  transform: translateY(-2px);
}
.btn-sm { padding: 10px 24px; font-size: 0.85rem; }

/* ===== HEADER ===== */
.sv-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 16px 0;
  background: rgba(6, 10, 20, 0.75);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.sv-header.scrolled { padding: 10px 0; background: rgba(6, 10, 20, 0.95); }
.sv-header .sv-container {
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-heading); font-weight: 700; font-size: 1.4rem;
}
.logo-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--accent-gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: #fff;
}
.nav { display: flex; align-items: center; gap: 32px; }
.nav a {
  font-size: 0.9rem; font-weight: 500; color: var(--text-secondary);
  transition: var(--transition); position: relative;
}
.nav a:hover { color: var(--text-primary); }
.nav a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--accent);
  transition: var(--transition);
}
.nav a:hover::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.mobile-toggle {
  display: none; background: none; color: var(--text-primary);
  font-size: 1.4rem;
}

/* Mobile Nav */
.mobile-nav {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(6, 10, 20, 0.98); z-index: 999;
  flex-direction: column; align-items: center; justify-content: center; gap: 28px;
}
.mobile-nav.active { display: flex; }
.mobile-nav a { font-size: 1.3rem; font-weight: 600; color: var(--text-primary); }
.mobile-nav-close {
  position: absolute; top: 20px; right: 24px;
  background: none; color: var(--text-primary); font-size: 1.8rem;
}

/* ===== HERO ===== */
.hero {
  padding: 160px 0 100px;
  position: relative; overflow: hidden;
  min-height: 90vh; display: flex; align-items: center;
}
.hero::before {
  content: ''; position: absolute; top: -200px; right: -200px;
  width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; bottom: -100px; left: -100px;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero .sv-container {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center; position: relative; z-index: 1;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px 6px 6px; border-radius: 50px;
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(14, 165, 233, 0.2);
  font-size: 0.8rem; color: var(--accent);
  margin-bottom: 20px; font-weight: 500;
}
.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e; animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; } 50% { opacity: 0.4; }
}
.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700; line-height: 1.1;
  margin-bottom: 20px;
}
.hero p {
  font-size: 1.1rem; color: var(--text-secondary);
  max-width: 500px; margin-bottom: 36px; line-height: 1.8;
}
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 40px; margin-top: 48px;
  padding-top: 32px; border-top: 1px solid var(--border);
}
.hero-stat h4 {
  font-family: var(--font-heading);
  font-size: 1.6rem; font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-stat span { font-size: 0.85rem; color: var(--text-muted); }

/* Hero Visual */
.hero-visual { position: relative; }
.tv-mockup {
  position: relative;
  background: linear-gradient(145deg, #1a2332, #0f172a);
  border-radius: 20px; padding: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-glow), 0 25px 60px rgba(0,0,0,0.5);
}
.tv-screen {
  border-radius: 12px; overflow: hidden;
  aspect-ratio: 16/10; position: relative;
  background: linear-gradient(135deg, #0f172a, #1e293b);
}
.tv-screen-content {
  width: 100%; height: 100%;
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 1fr); gap: 3px; padding: 3px;
}
.tv-channel {
  border-radius: 4px; display: flex; align-items: center;
  justify-content: center; font-weight: 700; font-size: 0.6rem;
  letter-spacing: 1px; text-transform: uppercase;
  color: rgba(255,255,255,0.9);
}
.tv-channel:nth-child(1) { background: linear-gradient(135deg, #dc2626, #b91c1c); grid-column: 1 / 3; grid-row: 1 / 3; font-size: 1rem; }
.tv-channel:nth-child(2) { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.tv-channel:nth-child(3) { background: linear-gradient(135deg, #059669, #047857); }
.tv-channel:nth-child(4) { background: linear-gradient(135deg, #7c3aed, #6d28d9); }
.tv-channel:nth-child(5) { background: linear-gradient(135deg, #ea580c, #c2410c); }
.tv-channel:nth-child(6) { background: linear-gradient(135deg, #0891b2, #0e7490); grid-column: 3 / 5; }
.tv-channel:nth-child(7) { background: linear-gradient(135deg, #be185d, #9d174d); }
.tv-channel:nth-child(8) { background: linear-gradient(135deg, #ca8a04, #a16207); }
.tv-stand {
  width: 120px; height: 4px; margin: 12px auto 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  border-radius: 4px;
}
.floating-badge {
  position: absolute; padding: 10px 18px; border-radius: 12px;
  background: rgba(17, 24, 39, 0.9); border: 1px solid var(--border);
  backdrop-filter: blur(10px); font-size: 0.8rem; font-weight: 600;
  display: flex; align-items: center; gap: 8px;
  animation: float 4s ease-in-out infinite;
}
.floating-badge.top-right { top: -16px; right: -16px; }
.floating-badge.bottom-left { bottom: 20px; left: -20px; animation-delay: -2s; }
.floating-badge i { color: var(--accent); }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ===== SPORTS TICKER ===== */
.sports-ticker {
  padding: 60px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
}
.ticker-wrap { overflow: hidden; position: relative; }
.ticker-wrap::before, .ticker-wrap::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 100px; z-index: 2;
}
.ticker-wrap::before { left: 0; background: linear-gradient(90deg, var(--bg-secondary), transparent); }
.ticker-wrap::after { right: 0; background: linear-gradient(-90deg, var(--bg-secondary), transparent); }
.ticker-track {
  display: flex; gap: 48px; align-items: center;
  animation: scroll-ticker 30s linear infinite;
  width: max-content;
}
@keyframes scroll-ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker-item {
  flex-shrink: 0; display: flex; align-items: center; gap: 12px;
  font-weight: 600; font-size: 0.95rem; color: var(--text-muted);
  white-space: nowrap; transition: var(--transition);
}
.ticker-item:hover { color: var(--text-primary); }
.ticker-item i { font-size: 1.4rem; color: var(--accent); }

/* ===== FEATURES ===== */
.features { padding: 100px 0; }
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.feature-card {
  padding: 36px; border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: var(--accent-gradient);
  transform: scaleX(0); transition: var(--transition);
  transform-origin: left;
}
.feature-card:hover { border-color: var(--border-accent); transform: translateY(-4px); }
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: rgba(14, 165, 233, 0.1);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; font-size: 1.2rem; color: var(--accent);
}
.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem; font-weight: 600; margin-bottom: 10px;
}
.feature-card p { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.7; }

/* ===== PRICING ===== */
.pricing { padding: 100px 0; background: var(--bg-secondary); }
.pricing-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.price-card {
  padding: 36px 28px; border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative; text-align: center;
}
.price-card:hover { transform: translateY(-6px); border-color: var(--border-accent); }
.price-card.popular {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(14,165,233,0.06) 0%, var(--bg-card) 100%);
  box-shadow: var(--shadow-glow);
}
.popular-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  padding: 4px 18px; border-radius: 50px;
  background: var(--accent-gradient);
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
  white-space: nowrap;
}
.price-duration {
  font-family: var(--font-heading);
  font-size: 1.1rem; font-weight: 600; margin-bottom: 6px;
}
.price-amount {
  font-family: var(--font-heading);
  font-size: 3rem; font-weight: 700; line-height: 1;
  margin: 16px 0;
}
.price-amount .currency { font-size: 1.4rem; vertical-align: top; margin-right: 2px; }
.price-amount .period { font-size: 0.85rem; color: var(--text-muted); font-weight: 400; }
.price-save {
  display: inline-block; padding: 4px 12px; border-radius: 50px;
  background: rgba(34, 197, 94, 0.1); color: #22c55e;
  font-size: 0.78rem; font-weight: 600; margin-bottom: 20px;
}
.price-features { margin: 24px 0; text-align: left; }
.price-features li {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; font-size: 0.88rem; color: var(--text-secondary);
}
.price-features li i { color: var(--accent); font-size: 0.8rem; }
.price-card .btn { width: 100%; justify-content: center; }

/* ===== DEVICES ===== */
.devices { padding: 100px 0; }
.devices-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px;
}
.device-card {
  padding: 36px 20px; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--border);
  text-align: center; transition: var(--transition);
}
.device-card:hover { border-color: var(--border-accent); transform: translateY(-4px); }
.device-icon {
  width: 64px; height: 64px; margin: 0 auto 16px;
  border-radius: 16px; background: rgba(14, 165, 233, 0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; color: var(--accent);
}
.device-card h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem; font-weight: 600; margin-bottom: 4px;
}
.device-card span { font-size: 0.8rem; color: var(--text-muted); }

/* ===== REVIEWS ===== */
.reviews { padding: 100px 0; background: var(--bg-secondary); }
.reviews-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.review-card {
  padding: 32px; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--border);
  transition: var(--transition);
}
.review-card:hover { border-color: var(--border-accent); }
.review-stars { margin-bottom: 16px; color: #fbbf24; font-size: 0.9rem; }
.review-card blockquote {
  font-size: 0.95rem; color: var(--text-secondary);
  line-height: 1.8; margin-bottom: 20px; font-style: italic;
}
.review-author { display: flex; align-items: center; gap: 12px; }
.review-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--accent-gradient);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem; color: #fff;
}
.review-author-info h5 { font-size: 0.9rem; font-weight: 600; }
.review-author-info span { font-size: 0.8rem; color: var(--text-muted); }

/* ===== FAQ ===== */
.faq { padding: 100px 0; }
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 12px; overflow: hidden;
  transition: var(--transition);
}
.faq-item.active { border-color: var(--border-accent); }
.faq-question {
  width: 100%; padding: 20px 24px;
  background: var(--bg-card); color: var(--text-primary);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.95rem; font-weight: 600; text-align: left;
  transition: var(--transition);
}
.faq-question:hover { background: var(--bg-card-hover); }
.faq-question i { transition: var(--transition); color: var(--accent); font-size: 0.85rem; }
.faq-item.active .faq-question i { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-answer-inner {
  padding: 0 24px 20px;
  background: var(--bg-card);
  color: var(--text-secondary); font-size: 0.9rem; line-height: 1.8;
}

/* ===== CTA BANNER ===== */
.cta-banner {
  padding: 80px 0;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.08) 0%, rgba(99, 102, 241, 0.08) 100%);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.cta-content { text-align: center; }
.cta-content h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 700;
  margin-bottom: 16px;
}
.cta-content p { color: var(--text-secondary); margin-bottom: 32px; font-size: 1.05rem; }
.cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===== FOOTER ===== */
.sv-footer {
  padding: 60px 0 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  padding-bottom: 48px;
}
.footer-brand p { color: var(--text-secondary); font-size: 0.88rem; line-height: 1.8; margin-top: 16px; max-width: 320px; }
.footer-socials { display: flex; gap: 12px; margin-top: 20px; }
.footer-socials a {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 0.95rem;
  transition: var(--transition);
}
.footer-socials a:hover { border-color: var(--accent); color: var(--accent); background: rgba(14, 165, 233, 0.08); }
.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.9rem; font-weight: 600; margin-bottom: 20px;
  color: var(--text-primary);
}
.footer-col a {
  display: block; padding: 6px 0;
  font-size: 0.88rem; color: var(--text-muted);
  transition: var(--transition);
}
.footer-col a:hover { color: var(--accent); transform: translateX(4px); }
.footer-bottom {
  padding: 24px 0; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.8rem; color: var(--text-muted);
}
.footer-disclaimer {
  padding: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.75rem; color: var(--text-muted); line-height: 1.8;
  text-align: center; max-width: 900px; margin: 0 auto;
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 900;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; color: #fff; font-size: 1.8rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 24px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
  animation: whatsapp-pulse 2.5s infinite;
}
.whatsapp-float:hover { transform: scale(1.1); }
@keyframes whatsapp-pulse {
  0%, 100% { box-shadow: 0 4px 24px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 40px rgba(37, 211, 102, 0.6); }
}

/* ===== SCROLL ANIMATION ===== */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero .sv-container { grid-template-columns: 1fr; text-align: center; }
  .hero p { margin: 0 auto 36px; }
  .hero-buttons { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { display: none; }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .devices-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav { display: none; }
  .mobile-toggle { display: block; }
  .header-actions .btn { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .devices-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .hero-stats { flex-direction: column; gap: 16px; align-items: center; }
}

/* ===== WP ADMIN BAR FIX ===== */
.admin-bar .sv-header { top: 32px; }
@media (max-width: 782px) {
  .admin-bar .sv-header { top: 46px; }
}
