/* ============================================================
   IPTV Nordic 8K — main.css
   Nordic Minimalist Dark Theme
   ============================================================ */

:root {
  --bg-primary: #050b18;
  --bg-secondary: #0d1530;
  --bg-card: rgba(13, 21, 48, 0.65);
  --accent-blue: #00d4ff;
  --accent-purple: #8b5cf6;
  --accent-blue-dim: rgba(0, 212, 255, 0.15);
  --accent-purple-dim: rgba(139, 92, 246, 0.15);
  --text-primary: #f0f4ff;
  --text-secondary: #8896b3;
  --border: rgba(255, 255, 255, 0.07);
  --border-blue: rgba(0, 212, 255, 0.25);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', 'Segoe UI', -apple-system, sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; }

/* ── SCROLLBAR ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: rgba(0, 212, 255, 0.3); border-radius: 3px; }

/* ── TYPOGRAPHY ───────────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 14px;
}

/* ── AURORA HERO EFFECT ───────────────────────────────────── */
.hero-section {
  background:
    radial-gradient(ellipse 60% 50% at 20% 40%, rgba(0,212,255,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 20%, rgba(139,92,246,0.07) 0%, transparent 70%),
    var(--bg-primary);
  position: relative;
  overflow: hidden;
}
.aurora-wrap { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.aurora-1 {
  position: absolute; width: 55%; height: 55%;
  background: radial-gradient(ellipse, rgba(0,212,255,0.13), transparent 70%);
  top: -20%; left: -10%; border-radius: 50%; filter: blur(70px);
  animation: auroraFloat 11s ease-in-out infinite;
}
.aurora-2 {
  position: absolute; width: 45%; height: 45%;
  background: radial-gradient(ellipse, rgba(139,92,246,0.11), transparent 70%);
  top: 5%; right: -8%; border-radius: 50%; filter: blur(70px);
  animation: auroraFloat 13s ease-in-out infinite reverse;
  animation-delay: -5s;
}
@keyframes auroraFloat {
  0%, 100% { transform: translate(0,0) scale(1); }
  33%  { transform: translate(4%,6%) scale(1.06); }
  66%  { transform: translate(-3%,-2%) scale(0.96); }
}

/* ── GLASSMORPHISM ────────────────────────────────────────── */
.glass {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.glass-premium {
  background: rgba(139,92,246,0.07);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(139,92,246,0.28);
  border-radius: 16px;
}

/* ── NAVBAR ───────────────────────────────────────────────── */
.navbar {
  background: rgba(5,11,24,0.93);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000; height: 70px;
  display: flex; align-items: center;
  transition: box-shadow 0.3s ease;
}
.navbar.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,0.4); }

.nav-link {
  color: var(--text-secondary);
  font-size: 14px; font-weight: 500;
  padding: 7px 12px; border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
  display: inline-block;
}
.nav-link:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }
.nav-link.active { color: var(--accent-blue); }

.mobile-nav {
  background: rgba(5,11,24,0.98);
  backdrop-filter: blur(20px);
  position: fixed; top: 70px; left: 0; right: 0;
  padding: 16px 20px 24px; border-bottom: 1px solid var(--border);
  z-index: 999; display: none;
  transform: translateY(-10px); opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.mobile-nav.open { display: block; transform: translateY(0); opacity: 1; }

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn-primary {
  background: linear-gradient(135deg, var(--accent-blue), #0099cc);
  color: #050b18; font-weight: 700;
  padding: 13px 26px; border-radius: 12px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: inline-flex; align-items: center; gap: 8px;
  cursor: pointer; border: none; font-size: 14px;
  font-family: 'Outfit', sans-serif; white-space: nowrap;
  letter-spacing: 0.2px;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(0,212,255,0.32); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: transparent; color: var(--text-primary);
  font-weight: 600; padding: 13px 26px; border-radius: 12px;
  transition: all 0.25s ease;
  display: inline-flex; align-items: center; gap: 8px;
  cursor: pointer; border: 1px solid rgba(255,255,255,0.12);
  font-size: 14px; font-family: 'Outfit', sans-serif; white-space: nowrap;
}
.btn-secondary:hover { background: rgba(255,255,255,0.06); transform: translateY(-2px); border-color: rgba(255,255,255,0.2); }

.btn-whatsapp {
  background: linear-gradient(135deg, #25d366, #1da851);
  color: white; font-weight: 700;
  padding: 13px 26px; border-radius: 12px;
  transition: all 0.25s ease;
  display: inline-flex; align-items: center; gap: 8px;
  cursor: pointer; border: none; font-size: 14px;
  font-family: 'Outfit', sans-serif; white-space: nowrap;
}
.btn-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(37,211,102,0.32); }

.btn-purple {
  background: linear-gradient(135deg, var(--accent-purple), #6d28d9);
  color: white; font-weight: 700;
  padding: 13px 26px; border-radius: 12px;
  transition: all 0.25s ease;
  display: inline-flex; align-items: center; gap: 8px;
  cursor: pointer; border: none; font-size: 14px;
  font-family: 'Outfit', sans-serif; white-space: nowrap;
}
.btn-purple:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(139,92,246,0.32); }

/* ── BADGES ───────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 14px; border-radius: 50px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.2px;
}
.badge-blue  { background: rgba(0,212,255,0.1); border: 1px solid rgba(0,212,255,0.25); color: var(--accent-blue); }
.badge-purple{ background: rgba(139,92,246,0.1); border: 1px solid rgba(139,92,246,0.25); color: #a78bfa; }
.badge-green { background: rgba(0,255,136,0.1); border: 1px solid rgba(0,255,136,0.25); color: #00ff88; }

.pulse-dot {
  width: 7px; height: 7px; background: #00ff88;
  border-radius: 50%; flex-shrink: 0;
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.5); }
}

/* ── STAT CARDS ───────────────────────────────────────────── */
.stat-card {
  background: rgba(13,21,48,0.6);
  border: 1px solid var(--border);
  border-radius: 14px; padding: 22px 16px; text-align: center;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.stat-card:hover { border-color: var(--border-blue); transform: translateY(-2px); }

/* ── CHANNEL CARDS ────────────────────────────────────────── */
.channel-card {
  background: rgba(13,21,48,0.7);
  border: 1px solid var(--border);
  border-radius: 14px; padding: 20px 14px; text-align: center;
  transition: all 0.3s ease;
}
.channel-card:hover {
  border-color: rgba(0,212,255,0.28);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,212,255,0.07);
}

/* ── DEVICE CAROUSEL ──────────────────────────────────────── */
.devices-carousel-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}
.devices-carousel-viewport {
  overflow: hidden;
  flex: 1;
  border-radius: 16px;
}
.devices-carousel-track {
  display: flex;
  gap: 16px;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  cursor: grab;
  user-select: none;
}
.devices-carousel-track.dragging {
  transition: none;
  cursor: grabbing;
}
.device-card {
  background: rgba(13,21,48,0.7);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 14px;
  text-align: center;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  flex: 0 0 calc(16.666% - 14px); /* 6 visible on desktop */
  min-width: 130px;
}
.device-card:hover {
  border-color: rgba(0,212,255,0.28);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,212,255,0.07);
}
@media (max-width: 1024px) {
  .device-card { flex: 0 0 calc(25% - 12px); }   /* 4 visible */
}
@media (max-width: 640px) {
  .device-card { flex: 0 0 calc(50% - 8px); }    /* 2 visible */
}

/* Arrow buttons */
.carousel-arrow {
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-blue);
  background: rgba(0,212,255,0.07);
  color: var(--accent-blue);
  font-size: 14px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
  z-index: 2;
}
.carousel-arrow:hover {
  background: rgba(0,212,255,0.18);
  box-shadow: 0 0 16px rgba(0,212,255,0.25);
}
.carousel-arrow:disabled {
  opacity: 0.25;
  cursor: default;
  pointer-events: none;
}

/* Dot indicators */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.carousel-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
}
.carousel-dot.active {
  background: var(--accent-blue);
  box-shadow: 0 0 8px rgba(0,212,255,0.5);
  width: 22px;
  border-radius: 4px;
}

/* ── PRICING ──────────────────────────────────────────────── */
.pricing-toggle {
  background: rgba(13,21,48,0.8);
  border-radius: 50px; padding: 5px;
  border: 1px solid rgba(255,255,255,0.08);
  display: inline-flex; gap: 2px;
}
.ptbtn {
  padding: 9px 24px; border-radius: 50px; cursor: pointer;
  transition: all 0.3s ease; font-weight: 600; font-size: 14px;
  border: none; background: transparent; color: var(--text-secondary);
  font-family: 'Inter', sans-serif;
}
.ptbtn.active {
  background: linear-gradient(135deg, var(--accent-blue), #0099cc);
  color: #050b18;
}

.pricing-card {
  transition: transform 0.4s cubic-bezier(0.175,0.885,0.32,1.275), box-shadow 0.4s ease;
  cursor: pointer;
}
.pricing-card:hover { transform: translateY(-10px); box-shadow: 0 20px 50px rgba(0,0,0,0.4); }
.pricing-card.featured { transform: scale(1.03); }
.pricing-card.featured:hover { transform: scale(1.03) translateY(-10px); }

.popular-pill {
  background: linear-gradient(135deg, var(--accent-purple), #6d28d9);
  padding: 3px 14px; border-radius: 50px;
  font-size: 10px; font-weight: 700; color: white;
  text-transform: uppercase; letter-spacing: 1.2px;
}
.savings-badge {
  background: rgba(0,255,136,0.1);
  border: 1px solid rgba(0,255,136,0.2);
  color: #00ff88;
  padding: 2px 10px; border-radius: 50px;
  font-size: 11px; font-weight: 600;
}

/* ── FAQ ──────────────────────────────────────────────────── */
.faq-item {
  border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden;
  transition: border-color 0.3s ease; margin-bottom: 10px;
}
.faq-item:hover { border-color: rgba(0,212,255,0.2); }
.faq-item.open { border-color: rgba(0,212,255,0.25); }

.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 22px; cursor: pointer;
  background: rgba(13,21,48,0.5);
  transition: background 0.3s ease; gap: 16px;
  user-select: none;
}
.faq-q:hover { background: rgba(13,21,48,0.8); }

.faq-icon {
  min-width: 20px; width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s ease; color: var(--accent-blue);
  font-size: 18px;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease;
  background: rgba(5,11,24,0.5);
}
.faq-a.open { max-height: 400px; }

/* ── BLOG CARDS ───────────────────────────────────────────── */
.blog-card {
  background: rgba(13,21,48,0.7);
  border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden;
  transition: all 0.3s ease; display: flex; flex-direction: column;
}
.blog-card:hover {
  border-color: rgba(0,212,255,0.2);
  transform: translateY(-7px);
  box-shadow: 0 18px 45px rgba(0,0,0,0.35);
}
.blog-thumb {
  height: 180px; display: flex; align-items: center; justify-content: center;
  font-size: 52px; flex-shrink: 0;
}

/* ── MODAL ────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.87);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  z-index: 9999; display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease; padding: 16px;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }

.modal-box {
  background: var(--bg-secondary);
  border: 1px solid rgba(0,212,255,0.15);
  border-radius: 20px; padding: 36px;
  max-width: 480px; width: 100%;
  transform: scale(0.91) translateY(18px);
  transition: all 0.35s cubic-bezier(0.175,0.885,0.32,1.275);
  position: relative; max-height: 90vh; overflow-y: auto;
}
.modal-overlay.active .modal-box { transform: scale(1) translateY(0); }

.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.07); border: none; cursor: pointer;
  color: var(--text-secondary); font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
}
.modal-close:hover { background: rgba(255,255,255,0.12); color: var(--text-primary); }

/* ── STEP INDICATOR ───────────────────────────────────────── */
.steps { display: flex; align-items: center; gap: 6px; margin-bottom: 28px; }
.step-dot {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; flex-shrink: 0;
  transition: all 0.3s ease;
}
.step-dot.active { background: var(--accent-blue); color: #050b18; }
.step-dot.done { background: #00ff88; color: #050b18; }
.step-dot.pending { background: rgba(255,255,255,0.09); color: var(--text-secondary); }
.step-line { flex: 1; height: 2px; background: rgba(255,255,255,0.08); border-radius: 1px; }
.step-line.done { background: linear-gradient(to right, var(--accent-blue), var(--accent-purple)); }

/* ── FORM ─────────────────────────────────────────────────── */
.form-input {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px; padding: 12px 14px;
  color: var(--text-primary); width: 100%; font-size: 14px;
  transition: all 0.25s ease; outline: none;
  font-family: 'Inter', sans-serif;
}
.form-input:focus {
  border-color: rgba(0,212,255,0.45);
  background: rgba(255,255,255,0.07);
  box-shadow: 0 0 0 3px rgba(0,212,255,0.08);
}
.form-input::placeholder { color: var(--text-secondary); }

.form-label { font-size: 12px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; letter-spacing: 0.3px; }

/* ── PAYMENT METHODS ──────────────────────────────────────── */
.pay-method {
  background: rgba(255,255,255,0.04);
  border: 2px solid rgba(255,255,255,0.07);
  border-radius: 12px; padding: 14px;
  cursor: pointer; transition: all 0.25s ease; text-align: center;
}
.pay-method:hover { background: rgba(255,255,255,0.07); border-color: rgba(0,212,255,0.3); }
.pay-method.selected { border-color: var(--accent-blue); background: rgba(0,212,255,0.07); }

/* ── FLOATING WHATSAPP ────────────────────────────────────── */
.wa-float {
  position: fixed; bottom: 28px; right: 28px;
  width: 56px; height: 56px;
  background: linear-gradient(135deg, #25d366, #1da851);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 22px rgba(37,211,102,0.4);
  z-index: 998; transition: all 0.3s ease; color: white; font-size: 24px;
}
.wa-float:hover { transform: scale(1.13); box-shadow: 0 8px 36px rgba(37,211,102,0.55); }

/* ── DIVIDERS ─────────────────────────────────────────────── */
.divider-glow {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(0,212,255,0.25), rgba(139,92,246,0.25), transparent);
  margin: 0 auto;
}

/* ── FOOTER ───────────────────────────────────────────────── */
.footer-bg { background: #030918; border-top: 1px solid var(--border); }
.footer-link { color: var(--text-secondary); font-size: 14px; transition: color 0.2s ease; display: inline-block; padding: 3px 0; }
.footer-link:hover { color: var(--accent-blue); }

/* ── LANG SWITCHER ────────────────────────────────────────── */
.lang-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  cursor: pointer; font-size: 13px; font-weight: 500;
  color: var(--text-secondary); transition: all 0.2s ease;
}
.lang-btn:hover { background: rgba(255,255,255,0.09); color: var(--text-primary); }

/* ── POLICY PAGES ─────────────────────────────────────────── */
.policy-content h2 { font-size: 1.4rem; font-weight: 700; margin-top: 2.5rem; margin-bottom: 0.75rem; color: var(--text-primary); }
.policy-content h3 { font-size: 1.1rem; font-weight: 600; margin-top: 1.5rem; margin-bottom: 0.5rem; color: var(--accent-blue); }
.policy-content p { margin-bottom: 1rem; color: var(--text-secondary); line-height: 1.75; }
.policy-content ul { margin: 0.75rem 0 1rem 1.5rem; color: var(--text-secondary); }
.policy-content li { margin-bottom: 0.4rem; line-height: 1.65; list-style: disc; }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .modal-box { padding: 24px 18px; }
  .pricing-card.featured { transform: none; }
  .pricing-card.featured:hover { transform: translateY(-7px); }
  .wa-float { bottom: 20px; right: 20px; width: 50px; height: 50px; font-size: 21px; }
}

/* ── INNER PAGE HERO ──────────────────────────────────────── */
.page-hero {
  background:
    radial-gradient(ellipse 50% 60% at 20% 50%, rgba(0,212,255,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 80% 20%, rgba(139,92,246,0.06) 0%, transparent 70%),
    var(--bg-primary);
  padding: 120px 0 60px;
}
.page-hero-title { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.15; }

/* ── UTILITY ──────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-py { padding: 90px 0; }
.section-py-sm { padding: 60px 0; }
