/* ══════════════════════════════════════════════════════════════
   BALKAN IPTV — Premium Dark Theme (Glassmorphism)
   Deploy-ready for Cloudflare Pages
   ══════════════════════════════════════════════════════════════ */

/* ── Google Font ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ── Design Tokens ── */
:root {
  --bg-body: #070b14;
  --bg-section-alt: #0c1120;
  --bg-card: rgba(15, 23, 42, 0.65);
  --bg-card-hover: rgba(20, 30, 55, 0.8);

  --accent: #6366f1;
  --accent-hover: #4f46e5;
  --accent-glow: rgba(99, 102, 241, 0.35);
  --accent-light: #a5b4fc;
  --green: #10b981;
  --green-hover: #059669;
  --amber: #f59e0b;
  --red: #ef4444;
  --pink: #ec4899;

  --text-white: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(99, 102, 241, 0.3);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-card: 0 4px 30px rgba(0,0,0,0.25);
  --shadow-glow: 0 0 40px var(--accent-glow);
  --shadow-glow-sm: 0 0 20px rgba(99,102,241,0.15);

  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

::selection { background: rgba(99, 102, 241, 0.3); color: #fff; }

body {
  font-family: var(--font);
  background: var(--bg-body);
  color: var(--text-white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ── Accessibility ── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── Layout ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.narrow    { max-width: 800px; }

section { padding: 100px 0; position: relative; }
section.alt-bg { background: var(--bg-section-alt); }

/* ── Headings ── */
h1, h2, h3, h4 { line-height: 1.15; font-weight: 800; }

h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  text-align: center;
  margin-bottom: 16px;
}

h3 { font-size: 1.25rem; }

.section-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: rgba(99, 102, 241, 0.12);
  color: var(--accent);
  margin-bottom: 16px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto 60px;
  font-size: 1.1rem;
}

/* ── Gradient Text ── */
.gradient-text {
  background: linear-gradient(135deg, #fff 0%, var(--accent-light) 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Glass Panel ── */
.glass {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.glass:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
  border-color: var(--border-accent);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-glow-sm);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-green {
  background: var(--green);
  color: #fff;
}
.btn-green:hover {
  background: var(--green-hover);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--accent-light);
  border: 1px solid var(--border-accent);
}
.btn-outline:hover {
  background: rgba(99, 102, 241, 0.1);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-2px);
}

/* ── Header / Nav ── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  background: rgba(7, 11, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.nav-links a:hover { color: #fff; }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ── Mobile Nav ── */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta .btn { display: none; }
  .mobile-toggle { display: block; }
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-top: 120px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(99,102,241,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(16,185,129,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content { position: relative; z-index: 2; }

.hero-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  margin-bottom: 28px;
}

.pulse-dot {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
  box-shadow: 0 0 6px var(--green);
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.4); }
}

.hero h1 { margin-bottom: 24px; }

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto 28px;
  line-height: 1.7;
}

/* AEO snippet bait block */
.aeo-block {
  max-width: 800px;
  margin: 0 auto 40px;
  padding: 20px 28px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.8);
}

.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.hero-stat { text-align: center; }
.hero-stat-number {
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  display: block;
}
.hero-stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ── TRUST BAR ── */
.trust-bar {
  padding: 30px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.trust-bar-inner {
  display: flex;
  align-items: center;
  gap: 60px;
  animation: marquee 25s linear infinite;
}

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

.trust-item {
  flex-shrink: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── GRIDS ── */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-8 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* ── Feature Cards ── */
.feature-card {
  padding: 32px;
}

.feature-icon {
  width: 50px; height: 50px;
  background: rgba(99,102,241,0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.feature-card h3 { margin-bottom: 10px; color: #fff; }
.feature-card p { color: var(--text-secondary); font-size: 0.95rem; }

/* ── PRICING ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.price-card {
  padding: 36px 28px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
}

.price-card.popular {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
  transform: scale(1.04);
}

.price-popular-badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  padding: 4px 18px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.price-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.price-amount {
  font-size: 3.2rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1;
}

.price-amount .currency { font-size: 1.2rem; vertical-align: super; }
.price-period { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 28px; }

.price-features {
  list-style: none;
  text-align: left;
  margin-bottom: 32px;
  flex: 1;
}

.price-features li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.price-features li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
}

.price-card .btn { width: 100%; }

/* ── SPORTS GRID ── */
.sport-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  cursor: pointer;
}

.sport-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.sport-card:hover img { transform: scale(1.08); }

.sport-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

.sport-card h3 {
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.sport-card p { font-size: 0.85rem; color: var(--text-secondary); }

/* ── MOVIE GRID ── */
.movie-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 2 / 3;
}

.movie-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.movie-card:hover img { transform: scale(1.08); }

.movie-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
}

.movie-overlay h3 {
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ── STEPS / HOW IT WORKS ── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  counter-reset: step;
}

.step-card {
  padding: 32px 24px;
  text-align: center;
  counter-increment: step;
}

.step-number {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(99,102,241,0.15);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--accent);
  margin: 0 auto 20px;
}

.step-card h3 { margin-bottom: 8px; }
.step-card p { color: var(--text-secondary); font-size: 0.9rem; }

/* ── DEVICE SHOWCASE ── */
.device-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
}

.device-item {
  padding: 24px 16px;
  text-align: center;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.device-item:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
}

.device-icon { font-size: 2rem; margin-bottom: 10px; }
.device-name { font-size: 0.85rem; font-weight: 600; }

/* ── TESTIMONIALS ── */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 24px; }

.testimonial-card {
  padding: 32px;
}

.testimonial-stars { color: var(--amber); margin-bottom: 16px; font-size: 1.1rem; letter-spacing: 2px; }
.testimonial-text { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 20px; font-style: italic; }

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
}

.testimonial-name { font-weight: 700; font-size: 0.9rem; }
.testimonial-role { font-size: 0.8rem; color: var(--text-muted); }

/* ── FAQ ── */
.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item { margin-bottom: 12px; }

.faq-question {
  width: 100%;
  text-align: left;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  color: #fff;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all var(--transition);
}

.faq-question:hover { border-color: var(--border-accent); background: var(--bg-card-hover); }

.faq-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(99,102,241,0.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

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

.faq-answer-inner {
  padding: 20px 24px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

/* ── SEO CONTENT BLOCK ── */
.seo-block {
  padding: 28px 32px;
  margin-bottom: 24px;
}

.seo-block h3 { margin-bottom: 12px; color: #fff; }
.seo-block p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.8; margin-bottom: 12px; }
.seo-block p:last-child { margin-bottom: 0; }

/* ── GUARANTEE ── */
.guarantee-box {
  text-align: center;
  padding: 48px 32px;
  max-width: 700px;
  margin: 0 auto;
}

.guarantee-icon { font-size: 3.5rem; margin-bottom: 20px; }

/* ── FINAL CTA ── */
.final-cta {
  text-align: center;
  background: linear-gradient(135deg, var(--accent), #4338ca);
  border-radius: var(--radius-lg);
  padding: 80px 40px;
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.08) 0%, transparent 50%);
  pointer-events: none;
}

.final-cta h2 { color: #fff; -webkit-text-fill-color: #fff; }
.final-cta p { color: rgba(255,255,255,0.8); }

.final-cta .btn-primary {
  background: #fff;
  color: var(--accent);
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}
.final-cta .btn-primary:hover { background: #f1f5f9; }

/* ── FOOTER ── */
footer {
  padding: 60px 0 30px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p { color: var(--text-secondary); font-size: 0.9rem; margin-top: 10px; }

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #fff;
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: 10px; }
.footer-col a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}



/* ── TOAST ── */
.toast {
  position: fixed;
  bottom: 80px; left: 20px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 800;
  max-width: 360px;
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.68, -0.3, 0.265, 1.3);
}

.toast.show { transform: translateY(0); opacity: 1; }

.toast-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.toast-body p { margin: 0; font-size: 0.85rem; font-weight: 600; }
.toast-body small { font-size: 0.75rem; color: var(--text-muted); }

/* ── MODAL / SPIN WHEEL ── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 99999;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active { display: flex; }

.modal-box {
  background: linear-gradient(145deg, #0f172a, #1e1b4b);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  max-width: 440px;
  width: 92%;
  text-align: center;
  position: relative;
  animation: modalBounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), var(--shadow-glow);
}

@keyframes modalBounce {
  0% { opacity: 0; transform: scale(0.7) translateY(20px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute; top: 12px; right: 16px;
  background: none; border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ── Spin Wheel Canvas Wrapper ── */
.wheel-wrap {
  position: relative;
  width: 260px; height: 260px;
  margin: 0 auto 28px;
}

.wheel-pointer {
  position: absolute;
  top: -8px; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-size: 1.4rem;
  color: var(--accent);
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.6));
}

.wheel-glow {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(99,102,241,0.3), transparent, rgba(99,102,241,0.3), transparent);
  animation: wheelGlow 3s linear infinite;
}

@keyframes wheelGlow { 0% { transform: rotate(0); } 100% { transform: rotate(360deg); } }

#spin-wheel {
  border-radius: 50%;
  box-shadow: 0 0 40px rgba(99,102,241,0.2);
  position: relative; z-index: 1;
}

/* ── Animations ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}



/* ── Misc Utilities ── */
.text-center { text-align: center; }
.mt-4  { margin-top: 16px; }
.mt-8  { margin-top: 32px; }
.mt-12 { margin-top: 48px; }
.mb-4  { margin-bottom: 16px; }
.mb-8  { margin-bottom: 32px; }
.gap-4 { gap: 16px; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-wrap { display: flex; flex-wrap: wrap; }
