/* =========================================
   RESET & BASE
========================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:       #1B2B5E;
  --primary-light: #2D4A8A;
  --brand:         #FF4F5A;
  --brand-dark:    #E8394A;
  --brand-glow:    rgba(255, 79, 90, 0.25);
  --accent:        #7C6CF8;
  --green:         #22C55E;
  --yellow:        #F59E0B;

  --bg:         #FFFFFF;
  --surface:    #F5F7FB;
  --surface-2:  #ECF0F8;
  --border:     #E2E8F0;
  --text:       #0F172A;
  --text-2:     #475569;
  --text-3:     #94A3B8;

  --r-xs:  6px;
  --r-sm:  10px;
  --r:     16px;
  --r-lg:  24px;
  --r-xl:  32px;

  --shadow-xs: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.07);
  --shadow:    0 4px 20px rgba(0,0,0,0.09);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.13);
  --shadow-xl: 0 24px 80px rgba(0,0,0,0.18);

  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: inherit; }

/* =========================================
   TYPOGRAPHY HELPERS
========================================= */
.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.9rem, 3.8vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-2);
  line-height: 1.75;
}

/* =========================================
   LAYOUT
========================================= */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 96px 0; }

/* =========================================
   BUTTONS
========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  font-family: inherit;
  line-height: 1;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}
.btn-primary:hover {
  background: var(--brand-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--brand-glow);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover {
  border-color: var(--text-2);
  background: var(--surface);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--primary);
  color: #fff;
}
.btn-dark:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(27,43,94,0.3);
}

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

.btn-lg { padding: 15px 34px; font-size: 0.98rem; }

/* =========================================
   NAVBAR
========================================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.navbar.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--brand) 0%, #FF8C69 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: -1px;
  flex-shrink: 0;
}

.logo-image {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
}

.logo-text {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}
.logo-text span { color: var(--brand); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 2px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-2);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 7px 13px;
  border-radius: var(--r-sm);
  transition: var(--transition);
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-links a.active { color: var(--text); background: var(--surface); font-weight: 600; }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: none;
  border-radius: var(--r-xs);
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
  display: block;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 12px 16px 20px;
  gap: 2px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  text-decoration: none;
  color: var(--text-2);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 11px 14px;
  border-radius: var(--r-sm);
  transition: var(--transition);
}
.mobile-menu a:hover { background: var(--surface); color: var(--text); }
.mobile-menu .btn { margin-top: 10px; }

@media (max-width: 900px) {
  .nav-links, .nav-actions .btn-outline { display: none; }
  .nav-toggle { display: flex; }
}

/* =========================================
   HERO
========================================= */
.hero {
  padding: 80px 0 96px;
  background: linear-gradient(160deg, #EEF2FF 0%, #FFFFFF 45%, #FFF2F2 100%);
  overflow: hidden;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(255,79,90,0.07) 0%, transparent 65%);
  top: -150px;
  right: -150px;
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 56px;
}

/* Hero badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,79,90,0.08);
  color: var(--brand);
  border: 1px solid rgba(255,79,90,0.22);
  padding: 5px 14px 5px 8px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 22px;
  letter-spacing: 0.01em;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--brand);
  border-radius: 50%;
  animation: pulse-dot 1.8s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 var(--brand-glow); }
  50%       { opacity: 0.7; transform: scale(1.2); box-shadow: 0 0 0 5px transparent; }
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--brand) 0%, #FF8C69 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-2);
  line-height: 1.78;
  margin-bottom: 36px;
  max-width: 460px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.trust-label {
  font-size: 0.78rem;
  color: var(--text-3);
  font-weight: 500;
}

.platform-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-2);
  box-shadow: var(--shadow-xs);
}

/* ----  TV MOCKUP  ---- */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tv-wrapper {
  position: relative;
  width: 100%;
  max-width: 490px;
}

.tv-frame {
  background: #1C1C2E;
  border-radius: 18px 18px 6px 6px;
  padding: 12px 12px 8px;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255,255,255,0.04);
}

.tv-screen {
  background: #080818;
  border-radius: 10px;
  aspect-ratio: 16/9;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Top bar */
.tvu-bar {
  height: 38px;
  background: linear-gradient(180deg, rgba(0,0,0,0.85) 0%, transparent 100%);
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 12px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.tvu-logo {
  font-size: 0.72rem;
  font-weight: 900;
  color: var(--brand);
  letter-spacing: -0.5px;
}

.tvu-nav {
  display: flex;
  gap: 10px;
}
.tvu-nav span {
  font-size: 0.55rem;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
}
.tvu-nav span.on {
  color: #fff;
  border-bottom: 1.5px solid var(--brand);
  padding-bottom: 1px;
}

.tvu-icons {
  margin-left: auto;
  display: flex;
  gap: 8px;
}
.tvu-icons span { font-size: 0.6rem; color: rgba(255,255,255,0.5); }

/* Hero banner in screen */
.tvu-hero {
  flex: 1;
  background: linear-gradient(135deg, #0D0C29 0%, #1E1A4E 50%, #2A1040 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 10px 14px;
  position: relative;
}

.tvu-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(0,0,0,0.7) 100%);
}

.tvu-hero-glow {
  position: absolute;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(124,108,248,0.3) 0%, transparent 70%);
  top: 10px;
  right: 20px;
}

.tvu-content { position: relative; z-index: 1; }

.tvu-tag {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  font-size: 0.4rem;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 2px;
  margin-bottom: 4px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tvu-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 3px;
}

.tvu-meta {
  font-size: 0.45rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 7px;
}

.tvu-btns { display: flex; gap: 5px; }

.tvu-btn {
  font-size: 0.45rem;
  font-weight: 700;
  padding: 2.5px 7px;
  border-radius: 3px;
  color: #fff;
}
.tvu-btn-p { background: var(--brand); }
.tvu-btn-s { background: rgba(255,255,255,0.18); }

/* Bottom channels bar */
.tvu-bottom {
  background: rgba(0,0,0,0.55);
  padding: 6px 12px 8px;
  flex-shrink: 0;
}

.tvu-ch-label {
  font-size: 0.42rem;
  color: rgba(255,255,255,0.4);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.tvu-thumbs {
  display: flex;
  gap: 4px;
}

.tvu-thumb {
  flex: 1;
  aspect-ratio: 16/9;
  border-radius: 2px;
  opacity: 0.85;
}
.tvu-t1 { background: linear-gradient(135deg,#667EEA,#764BA2); }
.tvu-t2 { background: linear-gradient(135deg,#F093FB,#F5576C); }
.tvu-t3 { background: linear-gradient(135deg,#4FACFE,#00F2FE); }
.tvu-t4 { background: linear-gradient(135deg,#43E97B,#38F9D7); }
.tvu-t5 { background: linear-gradient(135deg,#FA709A,#FEE140); }

/* TV stand */
.tv-stand {
  width: 28%;
  height: 14px;
  background: #141424;
  margin: 0 auto;
  border-radius: 0 0 6px 6px;
}

.tv-base {
  width: 48%;
  height: 5px;
  background: #0E0E1C;
  margin: 0 auto;
  border-radius: 0 0 4px 4px;
}

/* Floating badges */
.tv-badge {
  position: absolute;
  background: #fff;
  border-radius: var(--r-sm);
  padding: 9px 14px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}

.tv-badge-icon { font-size: 1.1rem; }
.tv-badge-tiny { font-size: 0.65rem; color: var(--text-3); font-weight: 500; }
.tv-badge-val  { font-size: 0.88rem; font-weight: 700; }

.tv-badge-1 {
  top: 18%;
  right: -16px;
  animation: float 3.2s ease-in-out infinite;
}

.tv-badge-2 {
  bottom: 26%;
  left: -16px;
  animation: float 3.2s ease-in-out infinite;
  animation-delay: 1.6s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* =========================================
   STATS BAND
========================================= */
.stats { padding: 0 0 24px; }

.stats-card {
  background: var(--primary);
  border-radius: var(--r-xl);
  padding: 44px 52px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
  overflow: hidden;
}

.stats-card::before {
  content: '';
  position: absolute;
  width: 320px;
  height: 320px;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
  top: -120px;
  right: -60px;
}

.stat-item { text-align: center; }

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
}

/* =========================================
   FEATURES
========================================= */
.features { background: var(--bg); }

.features-header { text-align: center; margin-bottom: 56px; }
.features-header .section-sub { margin: 0 auto; max-width: 560px; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 30px 26px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,79,90,0.04), transparent 60%);
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
}

.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(255,79,90,0.18); }
.feature-card:hover::after { opacity: 1; }

.feature-icon {
  width: 50px;
  height: 50px;
  background: rgba(255,79,90,0.1);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 18px;
}

.feature-title { font-size: 1rem; font-weight: 700; margin-bottom: 9px; }

.feature-desc { font-size: 0.86rem; color: var(--text-2); line-height: 1.72; }

/* =========================================
   PLATFORMS
========================================= */
.platforms { background: var(--surface); }

.platforms-header { margin-bottom: 52px; }

.platforms-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.platform-card {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--r);
  padding: 30px 20px;
  text-align: center;
  transition: var(--transition);
}

.platform-card.available {
  border-color: rgba(34,197,94,0.3);
}

.platform-card.coming { opacity: 0.6; }

.platform-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); opacity: 1; }

.platform-icon { display: flex; align-items: center; justify-content: center; height: 90px; margin-bottom: 12px; }
.platform-icon img { display: block; }
.platform-icon--dual { gap: 8px; }

.platform-name { font-size: 0.92rem; font-weight: 700; margin-bottom: 10px; }

.p-status {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 50px;
}

.p-status.avail { background: rgba(34,197,94,0.1); color: #16A34A; }
.p-status.soon  { background: rgba(245,158,11,0.1); color: #B45309; }

/* =========================================
   HOW IT WORKS
========================================= */
.hiw { background: var(--bg); }

.hiw-header { text-align: center; margin-bottom: 60px; }
.hiw-header .section-sub { margin: 0 auto; max-width: 520px; }

.hiw-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  position: relative;
}

.hiw-grid::before {
  content: '';
  position: absolute;
  top: 27px;
  left: calc(16.67% + 28px);
  right: calc(16.67% + 28px);
  height: 2px;
  background: linear-gradient(to right, var(--brand), var(--accent));
  opacity: 0.18;
}

.hiw-step { text-align: center; }

.hiw-num {
  width: 54px;
  height: 54px;
  background: linear-gradient(135deg, var(--brand), #FF8C69);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 auto 22px;
  box-shadow: 0 6px 20px var(--brand-glow);
  position: relative;
  z-index: 1;
}

.hiw-step-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }

.hiw-step-desc { font-size: 0.87rem; color: var(--text-2); line-height: 1.75; }

/* =========================================
   PRICING
========================================= */
.pricing {
  background: linear-gradient(160deg, #F0F4FF 0%, #FFFFFF 50%, #FFF0F0 100%);
}

.pricing-header { text-align: center; margin-bottom: 52px; }
.pricing-header .section-sub { margin: 0 auto; max-width: 520px; }

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  max-width: 820px;
  margin: 0 auto;
}

.pricing-card {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--r-lg);
  padding: 38px 34px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.pricing-card.featured {
  border-color: var(--brand);
  box-shadow: 0 0 0 5px rgba(255,79,90,0.07), var(--shadow);
}

.pricing-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.pop-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, var(--brand), #FF8C69);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  letter-spacing: 0.04em;
}

.plan-name {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 14px;
}

.price-row {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  margin-bottom: 8px;
}

.price-cur  { font-size: 1.35rem; font-weight: 700; color: var(--text); padding-bottom: 8px; }
.price-val  { font-size: 3.8rem; font-weight: 900; line-height: 1; color: var(--text); letter-spacing: -0.03em; }
.price-per  { font-size: 0.85rem; color: var(--text-3); padding-bottom: 10px; }

.price-desc {
  font-size: 0.85rem;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 26px;
}

.price-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 30px;
}

.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.86rem;
  color: var(--text-2);
}

.chk {
  width: 18px;
  height: 18px;
  background: rgba(34,197,94,0.12);
  color: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}

.price-btn {
  width: 100%;
  border-radius: var(--r-sm);
  padding: 15px;
  font-size: 0.92rem;
}

.pricing-footnote {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-3);
  margin-top: 28px;
  line-height: 1.7;
}

/* ---- MAC Address Modal ---- */
.mac-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,12,28,0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.mac-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.mac-modal {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 40px 36px;
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow-xl);
  transform: translateY(18px) scale(0.97);
  transition: transform 0.22s ease;
  position: relative;
}
.mac-modal-overlay.open .mac-modal {
  transform: translateY(0) scale(1);
}

.mac-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 30px;
  height: 30px;
  background: var(--surface);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  line-height: 1;
}
.mac-modal-close:hover { background: var(--surface-2); color: var(--text); }

.mac-modal-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, rgba(255,79,90,0.1), rgba(255,79,90,0.05));
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.mac-modal h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 8px; }
.mac-modal p  { font-size: 0.87rem; color: var(--text-2); line-height: 1.7; margin-bottom: 22px; }

.mac-modal .mac-hint {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 11px 14px;
  font-size: 0.8rem;
  color: var(--text-2);
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.65;
}
.mac-hint-icon { flex-shrink: 0; font-size: 0.95rem; margin-top: 1px; }

.mac-field-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 7px;
  display: block;
}

.mac-input-wrap { position: relative; margin-bottom: 8px; }

.mac-input {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 1rem;
  font-family: 'Courier New', monospace;
  letter-spacing: 0.06em;
  outline: none;
  transition: var(--transition);
  color: var(--text);
}
.mac-input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(255,79,90,0.09); }
.mac-input.error { border-color: #EF4444; box-shadow: 0 0 0 3px rgba(239,68,68,0.1); }
.mac-input.valid { border-color: var(--green); }
.mac-input::placeholder { color: var(--text-3); font-size: 0.9rem; letter-spacing: 0.04em; }

.mac-error-msg {
  font-size: 0.78rem;
  color: #DC2626;
  min-height: 1.2em;
  margin-bottom: 18px;
}

.mac-modal-plan {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 0.88rem;
}
.mac-modal-plan .plan-lbl { color: var(--text-3); font-weight: 500; }
.mac-modal-plan .plan-val { color: var(--text); font-weight: 700; margin-left: auto; }

.mac-submit-btn {
  width: 100%;
  border-radius: var(--r-sm);
  padding: 15px;
  font-size: 0.95rem;
}

@media (max-width: 520px) {
  .mac-modal { padding: 30px 22px; }
}

/* =========================================
   UPLOAD PLAYLIST MODAL
========================================= */
.upl-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,12,28,0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.upl-overlay.open { opacity: 1; pointer-events: all; }

.upl-modal {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 28px 30px 24px;
  max-width: 500px;
  width: 100%;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  transform: translateY(18px) scale(0.97);
  transition: transform 0.22s ease;
  position: relative;
  margin: auto;
}
.upl-overlay.open .upl-modal { transform: translateY(0) scale(1); }

.upl-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  background: var(--surface);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  line-height: 1;
}
.upl-modal-close:hover { background: var(--surface-2); color: var(--text); }

.upl-modal h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 4px; }
.upl-modal .upl-sub { font-size: 0.82rem; color: var(--text-2); line-height: 1.55; margin-bottom: 16px; }

/* Scoped overrides to tighten the form */
.upl-modal .form-group { margin-bottom: 10px; }
.upl-modal label       { margin-bottom: 4px; font-size: 0.77rem; }
.upl-modal input[type="text"],
.upl-modal input[type="password"] { padding: 9px 13px; font-size: 0.86rem; }

.upl-err {
  font-size: 0.74rem;
  color: #DC2626;
  margin-top: 3px;
  min-height: 0;
  line-height: 1.3;
}
.upl-err:empty { display: none; }

.upl-input-error {
  border-color: #EF4444 !important;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.1) !important;
}

/* PIN field */
.upl-pin-wrap { position: relative; }

.upl-pin-input {
  width: 100%;
  padding: 9px 48px 9px 13px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 0.86rem;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
  color: var(--text);
  background: #fff;
}
.upl-pin-input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(255,79,90,0.08); }
.upl-pin-input.upl-input-error { border-color: #EF4444; box-shadow: 0 0 0 3px rgba(239,68,68,0.1); }

.upl-pin-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-3);
  font-size: 0.7rem;
  font-weight: 700;
  font-family: inherit;
  padding: 3px 7px;
  border-radius: var(--r-xs);
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.upl-pin-toggle:hover { color: var(--text); background: var(--surface); }

/* Turnstile widget container */
.upl-turnstile-wrap { margin-bottom: 12px; }
.upl-turnstile-wrap .cf-turnstile { min-height: 65px; }

/* Submit button — tighter inside modal */
.upl-modal .mac-submit-btn { padding: 12px; margin-top: 6px; }

/* Type switcher (M3U / Xtream) */
.upl-type-switcher {
  display: flex;
  gap: 5px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 4px;
  margin-bottom: 18px;
}

.upl-type-btn {
  flex: 1;
  padding: 8px 10px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--text-2);
  font-size: 0.8rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  white-space: nowrap;
  line-height: 1.3;
}

.upl-type-btn:hover:not(.active) {
  background: var(--surface-2);
  color: var(--text);
}

.upl-type-btn.active {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 2px 8px rgba(255,79,90,0.28);
}

/* Xtream hint box */
.upl-xtream-hint {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: rgba(124,108,248,0.07);
  border: 1px solid rgba(124,108,248,0.2);
  border-radius: var(--r-sm);
  padding: 10px 13px;
  font-size: 0.78rem;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 14px;
}

/* Success state */
.upl-success { text-align: center; padding: 4px 0; }

.upl-success-icon {
  width: 56px;
  height: 56px;
  background: rgba(34,197,94,0.1);
  border: 2px solid rgba(34,197,94,0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  color: var(--green);
  margin: 0 auto 14px;
}
.upl-success-title { font-size: 1.15rem; font-weight: 800; margin-bottom: 8px; }
.upl-success-desc  { font-size: 0.84rem; color: var(--text-2); line-height: 1.65; margin-bottom: 16px; }

.upl-success-details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  overflow: hidden;
  text-align: left;
  font-size: 0.83rem;
  margin-bottom: 18px;
}
.upl-success-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 9px 16px;
  border-bottom: 1px solid var(--border);
}
.upl-success-row:last-child { border-bottom: none; }
.upl-success-row .s-lbl { color: var(--text-3); }
.upl-success-row .s-val { font-weight: 700; color: var(--text); }
.upl-success-row .s-val.mono { font-family: 'Courier New', monospace; font-size: 0.81rem; }
.upl-success-row .s-val.pin-yes { color: var(--green); }

.upl-success-btns { display: flex; gap: 10px; }
.upl-success-btns .btn { flex: 1; border-radius: var(--r-sm); padding: 12px; }

@media (max-width: 520px) {
  .upl-modal { padding: 22px 18px 20px; }
}

/* =========================================
   FAQ
========================================= */
.faq { background: var(--bg); }

.faq-header { text-align: center; margin-bottom: 48px; }
.faq-header .section-sub { margin: 0 auto; max-width: 520px; }

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.faq-item.open {
  border-color: rgba(255,79,90,0.22);
  box-shadow: var(--shadow-sm);
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 19px 22px;
  cursor: pointer;
  gap: 14px;
  user-select: none;
}

.faq-q-text { font-size: 0.92rem; font-weight: 600; color: var(--text); flex: 1; }

.faq-chevron {
  width: 27px;
  height: 27px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: var(--text-2);
  flex-shrink: 0;
  transition: transform var(--transition), color var(--transition);
  box-shadow: var(--shadow-xs);
}

.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--brand); }

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.36s ease;
}
.faq-item.open .faq-body { max-height: 400px; }

.faq-body-inner {
  padding: 0 22px 18px;
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.78;
}

/* =========================================
   CONTACT
========================================= */
.contact { background: var(--surface); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-info .section-sub { max-width: 400px; }

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 30px;
}

.contact-ch {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r);
  text-decoration: none;
  color: var(--text);
  transition: var(--transition);
}
.contact-ch:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateX(4px); }

.ch-icon {
  width: 42px;
  height: 42px;
  background: var(--surface-2);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.ch-label { font-size: 0.73rem; color: var(--text-3); font-weight: 500; }
.ch-value { font-size: 0.88rem; font-weight: 600; }

/* Form card */
.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 38px;
  box-shadow: var(--shadow);
}

.form-card h3 { font-size: 1.2rem; margin-bottom: 6px; }
.form-card .sub { font-size: 0.84rem; color: var(--text-2); margin-bottom: 24px; }

.form-group { margin-bottom: 16px; }

label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
  width: 100%;
  padding: 11px 15px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 0.87rem;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
  color: var(--text);
  background: #fff;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(255,79,90,0.08);
}

textarea { resize: vertical; min-height: 108px; }

.form-submit { width: 100%; border-radius: var(--r-sm); padding: 14px; font-size: 0.92rem; }

/* =========================================
   FOOTER
========================================= */
.footer {
  background: #0A0F1E;
  color: rgba(255,255,255,0.55);
  padding: 68px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 44px;
  margin-bottom: 56px;
}

.footer-logo .logo-text { color: #fff; }

.footer-tagline {
  font-size: 0.84rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.42);
  margin: 16px 0 22px;
  max-width: 280px;
}

.footer-socials { display: flex; gap: 9px; }

.social-link {
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.07);
  border-radius: var(--r-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: var(--transition);
}
.social-link:hover { background: var(--brand); color: #fff; transform: translateY(-2px); }

.footer-col h5 {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }

.footer-col ul a {
  color: rgba(255,255,255,0.48);
  text-decoration: none;
  font-size: 0.84rem;
  transition: var(--transition);
}
.footer-col ul a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-bottom-links { display: flex; gap: 22px; }

.footer-bottom-links a {
  color: rgba(255,255,255,0.38);
  text-decoration: none;
  transition: var(--transition);
}
.footer-bottom-links a:hover { color: rgba(255,255,255,0.75); }

.paddle-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.38);
}
.paddle-badge strong { color: rgba(255,255,255,0.65); }

/* =========================================
   DISCLAIMER
========================================= */
.disclaimer { padding: 28px 0 48px; background: linear-gradient(to bottom, rgba(239,68,68,0.04), transparent); }

.disclaimer-box {
  background: linear-gradient(135deg, #FEE2E2, #FEC2C2);
  border: 2px solid #EF4444;
  border-radius: var(--r-lg);
  padding: 32px 32px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  box-shadow: 0 4px 20px rgba(239,68,68,0.15);
}

.disc-icon  { font-size: 2rem; flex-shrink: 0; line-height: 1; }
.disc-title { font-size: 1.15rem; font-weight: 900; color: #7F1D1D; margin-bottom: 10px; letter-spacing: -0.01em; }
.disc-text  { font-size: 0.95rem; color: #991B1B; line-height: 1.8; }
.disc-text strong { font-weight: 700; }

@media (max-width: 768px) {
  .disclaimer-box { padding: 24px 24px; flex-direction: column; gap: 16px; }
  .disc-icon  { font-size: 1.8rem; }
  .disc-title { font-size: 1rem; }
  .disc-text  { font-size: 0.9rem; }
}

@media (max-width: 540px) {
  .disclaimer-box { padding: 20px; }
  .disc-icon  { font-size: 1.6rem; }
  .disc-title { font-size: 0.95rem; }
  .disc-text  { font-size: 0.85rem; }
}

/* =========================================
   SUPPORTED FORMATS
========================================= */
.formats { background: var(--bg); }

.formats-header { text-align: center; margin-bottom: 52px; }
.formats-header .section-sub { margin: 0 auto; max-width: 560px; }

.formats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  margin-bottom: 56px;
}

.format-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  padding: 32px 28px;
  transition: var(--transition);
  text-align: center;
}

.format-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(255, 79, 90, 0.18);
}

.format-icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
  display: block;
}

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

.format-desc {
  font-size: 0.87rem;
  color: var(--text-2);
  line-height: 1.7;
  text-align: left;
}

.formats-usage {
  margin-top: 48px;
}

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

/* =========================================
   SCREENSHOTS
========================================= */
.screenshots { background: var(--surface); }

.screenshots-header { text-align: center; margin-bottom: 40px; }
.screenshots-header .section-sub { margin: 0 auto; max-width: 520px; }

.ss-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  flex-wrap: wrap;
  justify-content: center;
}

.ss-tab {
  padding: 9px 20px;
  border-radius: 50px;
  font-size: 0.84rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  background: #fff;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  color: var(--text-2);
}
.ss-tab:hover  { border-color: var(--text-2); color: var(--text); }
.ss-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.ss-panel { display: none; }
.ss-panel.active { display: block; }

/* The mockup frame — 16:9 dark TV UI */
.ss-mockup {
  background: #0f0f23;
  border-radius: var(--r);
  overflow: hidden;
  aspect-ratio: 16/9;
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  font-size: clamp(0.45rem, 1.1vw, 0.75rem);
  position: relative;
}

/* --- shared sub-components --- */
.sm-topbar {
  background: #161628;
  border-bottom: 1px solid #2d2d52;
  padding: 0 1.6em;
  height: 3.2em;
  display: flex;
  align-items: center;
  gap: 1.2em;
  flex-shrink: 0;
}
.sm-logo   { color: #FF4F5A; font-weight: 900; font-size: 1.05em; letter-spacing: -0.03em; }
.sm-playlist { color: #94a3b8; font-size: 0.85em; }
.sm-clock  { margin-left: auto; color: #e2e8f0; font-size: 0.88em; font-weight: 600; }

.sm-body   { flex: 1; display: flex; overflow: hidden; }

.sm-sidebar {
  width: 22%;
  background: #1a1a2e;
  border-right: 1px solid #2d2d52;
  padding: 1em 0;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3em;
}

.sm-menu-item {
  display: flex;
  align-items: center;
  gap: 0.7em;
  padding: 0.65em 1.2em;
  color: #94a3b8;
  font-size: 0.9em;
  cursor: pointer;
  border-left: 3px solid transparent;
}
.sm-menu-item.sel {
  background: rgba(124,58,237,0.18);
  color: #e2e8f0;
  border-left-color: #7c3aed;
}
.sm-menu-icon { font-size: 1em; width: 1.3em; text-align: center; }

.sm-main { flex: 1; padding: 1.4em 1.8em; }

.sm-bottombar {
  background: #161628;
  border-top: 1px solid #2d2d52;
  padding: 0 1.6em;
  height: 2.4em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.sm-hints { color: #64748b; font-size: 0.78em; }
.sm-ver   { color: #64748b; font-size: 0.75em; }

/* --- HOME mockup --- */
.sm-home-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 0.6em;
  text-align: center;
}
.sm-home-bigicon  { font-size: 3em; }
.sm-home-title    { color: #e2e8f0; font-size: 1.2em; font-weight: 700; }
.sm-home-desc     { color: #64748b; font-size: 0.88em; max-width: 18em; line-height: 1.5; }

/* --- LIVE TV mockup --- */
.sm-cats {
  width: 28%;
  border-right: 1px solid #2d2d52;
  padding: 0.8em 0;
  flex-shrink: 0;
}
.sm-cat-item {
  padding: 0.55em 1.1em;
  font-size: 0.84em;
  color: #94a3b8;
}
.sm-cat-item.sel {
  background: rgba(124,58,237,0.18);
  color: #e2e8f0;
  border-left: 3px solid #7c3aed;
}
.sm-channels-area { flex: 1; display: flex; flex-direction: column; }
.sm-preview-bar {
  height: 38%;
  background: linear-gradient(135deg,#1a1a3e,#2d1a4e);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #2d2d52;
  position: relative;
}
.sm-play-btn {
  width: 2.4em; height: 2.4em;
  background: rgba(124,58,237,0.7);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 0.8em;
}
.sm-ch-list { flex: 1; overflow: hidden; }
.sm-ch-row {
  display: flex;
  align-items: center;
  gap: 0.8em;
  padding: 0.45em 1em;
  border-bottom: 1px solid rgba(45,45,82,0.5);
  font-size: 0.84em;
  color: #94a3b8;
}
.sm-ch-row.sel { background: rgba(124,58,237,0.15); color: #e2e8f0; }
.sm-ch-num { color: #64748b; font-size: 0.82em; width: 1.5em; }
.sm-ch-dot { width: 0.7em; height: 0.7em; border-radius: 50%; flex-shrink: 0; }
.sm-epg-strip {
  background: #161628;
  border-top: 1px solid #2d2d52;
  padding: 0.4em 1em;
  font-size: 0.78em;
  color: #94a3b8;
}

/* --- MOVIES mockup --- */
.sm-poster-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6em;
}
.sm-poster {
  border-radius: 0.3em;
  aspect-ratio: 2/3;
  position: relative;
  overflow: hidden;
}
.sm-poster-title {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  padding: 0.5em 0.4em 0.35em;
  font-size: 0.72em;
  color: #e2e8f0;
  line-height: 1.2;
}
.sm-poster.sel { outline: 2px solid #7c3aed; }
.sm-detail-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,10,30,0.92);
  padding: 1.2em 1.5em;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}
.sm-detail-title { color: #e2e8f0; font-size: 1.3em; font-weight: 700; }
.sm-detail-badges { display: flex; gap: 0.5em; }
.sm-badge {
  font-size: 0.72em; font-weight: 700;
  padding: 0.2em 0.55em;
  border-radius: 0.25em;
}
.sm-badge-g { background: rgba(34,197,94,0.18); color: #22c55e; }
.sm-badge-y { background: rgba(245,158,11,0.18); color: #f59e0b; }
.sm-detail-plot { color: #94a3b8; font-size: 0.84em; line-height: 1.55; }
.sm-play-movie-btn {
  margin-top: auto;
  align-self: flex-start;
  background: #7c3aed;
  color: #fff;
  font-size: 0.84em;
  font-weight: 700;
  padding: 0.5em 1.2em;
  border-radius: 0.3em;
}

/* --- EPG mockup --- */
.sm-epg-wrap { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.sm-epg-timebar {
  display: flex;
  background: #1a1a2e;
  border-bottom: 1px solid #2d2d52;
  height: 2.2em;
  flex-shrink: 0;
  padding-left: 8em;
}
.sm-epg-timecell {
  flex: 1;
  display: flex;
  align-items: center;
  padding-left: 0.6em;
  font-size: 0.78em;
  color: #64748b;
  border-left: 1px solid #2d2d52;
}
.sm-epg-grid { display: flex; flex: 1; overflow: hidden; }
.sm-epg-chcol {
  width: 8em;
  flex-shrink: 0;
  border-right: 1px solid #2d2d52;
}
.sm-epg-chname {
  height: 3em;
  display: flex;
  align-items: center;
  padding: 0 0.8em;
  font-size: 0.8em;
  color: #94a3b8;
  border-bottom: 1px solid #2d2d52;
}
.sm-epg-rows { flex: 1; overflow: hidden; }
.sm-epg-row {
  display: flex;
  height: 3em;
  border-bottom: 1px solid #2d2d52;
}
.sm-epg-prog {
  height: 100%;
  border-right: 1px solid #2d2d52;
  display: flex;
  align-items: center;
  padding: 0 0.6em;
  font-size: 0.78em;
  color: #94a3b8;
  overflow: hidden;
  white-space: nowrap;
}
.sm-epg-prog.now { background: rgba(124,58,237,0.22); color: #e2e8f0; }
.sm-epg-prog.sel { background: #7c3aed; color: #fff; }
.sm-now-line {
  position: absolute;
  top: 2.2em; bottom: 0;
  width: 2px;
  background: #FF4F5A;
  left: 30%;
  z-index: 2;
}

/* --- SETTINGS mockup --- */
.sm-set-menu { width: 28%; border-right: 1px solid #2d2d52; padding: 0.8em 0; }
.sm-set-item {
  padding: 0.65em 1.2em;
  font-size: 0.84em;
  color: #94a3b8;
  border-left: 3px solid transparent;
}
.sm-set-item.sel {
  background: rgba(124,58,237,0.18);
  color: #e2e8f0;
  border-left-color: #7c3aed;
}
.sm-set-content { flex: 1; padding: 1em 1.4em; overflow: hidden; }
.sm-set-section-title { color: #64748b; font-size: 0.75em; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.6em; }
.sm-info-table { width: 100%; border-collapse: collapse; margin-bottom: 1em; }
.sm-info-table td {
  padding: 0.45em 0.7em;
  font-size: 0.8em;
  border: 1px solid #2d2d52;
  color: #94a3b8;
}
.sm-info-table td:first-child { color: #64748b; width: 40%; background: rgba(30,30,58,0.5); }
.sm-status-ok { color: #22c55e; font-weight: 700; }
.sm-license-banner {
  background: linear-gradient(135deg, #5b21b6, #7c3aed);
  border-radius: 0.35em;
  padding: 0.7em 1em;
  font-size: 0.8em;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sm-license-btn {
  background: rgba(255,255,255,0.2);
  padding: 0.3em 0.8em;
  border-radius: 0.25em;
  font-size: 0.88em;
  font-weight: 700;
  white-space: nowrap;
}

/* caption below mockup */
.ss-caption {
  text-align: center;
  margin-top: 18px;
  font-size: 0.84rem;
  color: var(--text-3);
}

/* ---- Video Player mockup ---- */
.sm-player-mockup {
  background: #000;
}

/* Full-screen movie backdrop */
.sm-player-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
}

/* Cinematic gradient: dark top bar + dark bottom controls, clear centre */
.sm-player-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to bottom,
      rgba(0,0,0,0.78) 0%,
      rgba(0,0,0,0.10) 22%,
      rgba(0,0,0,0.00) 42%,
      rgba(0,0,0,0.00) 52%,
      rgba(0,0,0,0.55) 72%,
      rgba(0,0,0,0.88) 100%
    );
  pointer-events: none;
}

/* TOP BAR */
.sm-player-topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.85em;
  padding: 0.75em 1.4em;
}

.sm-player-back {
  color: #fff;
  font-size: 1.05em;
  font-weight: 700;
  flex-shrink: 0;
  opacity: 0.9;
}

.sm-player-title-group { flex: 1; min-width: 0; }

.sm-player-movie-title {
  color: #fff;
  font-size: 0.9em;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sm-player-movie-meta {
  color: rgba(255,255,255,0.52);
  font-size: 0.67em;
  margin-top: 0.1em;
}

.sm-player-top-right {
  display: flex;
  align-items: center;
  gap: 0.45em;
  flex-shrink: 0;
}

.sm-player-top-badge {
  font-size: 0.6em;
  font-weight: 800;
  padding: 0.18em 0.5em;
  border: 1.5px solid rgba(255,255,255,0.45);
  border-radius: 0.22em;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.04em;
}

.sm-player-top-icon {
  font-size: 0.78em;
  color: rgba(255,255,255,0.65);
}

/* CENTER transport */
.sm-player-center {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2em;
  pointer-events: none;
}

.sm-player-rewind,
.sm-player-forward {
  font-size: 0.75em;
  color: rgba(255,255,255,0.55);
  font-weight: 700;
}

.sm-player-pause-circle {
  width: 3em;
  height: 3em;
  background: rgba(255,255,255,0.18);
  border: 1.5px solid rgba(255,255,255,0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82em;
  color: #fff;
  letter-spacing: -0.12em;
  padding-left: 0.05em;
  backdrop-filter: blur(3px);
}

/* BOTTOM CONTROLS */
.sm-player-controls {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 2;
  padding: 0 1.4em 0.85em;
}

.sm-player-chapter {
  font-size: 0.68em;
  color: rgba(255,255,255,0.48);
  margin-bottom: 0.5em;
  display: flex;
  align-items: center;
  gap: 0.4em;
}
.sm-player-chapter em { color: rgba(255,255,255,0.65); font-style: normal; }
.sm-player-chapter-icon { font-size: 0.95em; }

/* Progress bar */
.sm-player-progress-wrap { margin-bottom: 0.5em; }

.sm-player-progress-bar {
  position: relative;
  height: 0.26em;
  background: rgba(255,255,255,0.22);
  border-radius: 1em;
  margin-bottom: 0.32em;
}

.sm-player-progress-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 56%;
  background: #FF4F5A;
  border-radius: 1em;
}

.sm-player-progress-dot {
  position: absolute;
  top: 50%;
  left: 56%;
  transform: translate(-50%, -50%);
  width: 0.82em;
  height: 0.82em;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 0.18em rgba(255,79,90,0.45);
}

.sm-player-times {
  display: flex;
  justify-content: space-between;
  font-size: 0.66em;
  color: rgba(255,255,255,0.5);
}

/* Buttons row */
.sm-player-btns-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6em;
}

.sm-player-btn-group {
  display: flex;
  align-items: center;
  gap: 0.55em;
}

.sm-player-transport { gap: 0.9em; }

.sm-player-icon-btn {
  color: rgba(255,255,255,0.72);
  font-size: 0.88em;
  line-height: 1;
}

.sm-player-play-btn {
  width: 2.4em;
  height: 2.4em;
  background: #FF4F5A;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.72em;
  letter-spacing: -0.1em;
  padding-left: 0.02em;
  box-shadow: 0 0 0.8em rgba(255,79,90,0.55);
}

/* Volume mini bar */
.sm-player-vol-bar {
  width: 3.5em;
  height: 0.22em;
  background: rgba(255,255,255,0.22);
  border-radius: 1em;
  overflow: hidden;
}
.sm-player-vol-fill {
  width: 70%;
  height: 100%;
  background: rgba(255,255,255,0.72);
  border-radius: 1em;
}

/* Option chips */
.sm-player-opts { gap: 0.4em; }

.sm-player-chip {
  font-size: 0.58em;
  font-weight: 700;
  padding: 0.22em 0.52em;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 0.25em;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.03em;
}

.sm-player-chip-active {
  background: #FF4F5A;
  border-color: #FF4F5A;
  color: #fff;
}

/* ---- Real image enhancements ---- */

/* Poster image (fills sm-poster absolutely) */
.sm-poster-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Live TV preview — real broadcast image */
.sm-preview-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
}

.sm-preview-info {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.80) 0%, rgba(0,0,0,0.30) 62%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 1.2em;
  z-index: 1;
  gap: 0.22em;
  pointer-events: none;
}

.sm-live-dot {
  display: inline-flex;
  align-items: center;
  gap: 0.34em;
  color: #ef4444;
  font-size: 0.7em;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.sm-live-dot::before {
  content: '';
  width: 0.55em;
  height: 0.55em;
  background: #ef4444;
  border-radius: 50%;
  flex-shrink: 0;
  animation: livepulse 1.5s ease-in-out infinite;
}
@keyframes livepulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.3; transform: scale(0.75); }
}

.sm-preview-ch-name  { color: #fff; font-size: 0.95em; font-weight: 700; line-height: 1.2; }
.sm-preview-prog-name{ color: rgba(255,255,255,0.65); font-size: 0.75em; }

/* Home tab — featured hero */
.sm-home-panel {
  display: flex;
  flex-direction: column;
  gap: 0.6em;
  height: 100%;
  width: 100%;
  align-items: stretch;
  text-align: left;
}

.sm-home-hero {
  position: relative;
  border-radius: 0.4em;
  overflow: hidden;
  flex: 1;
  min-height: 0;
}
.sm-home-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sm-home-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.35) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0.9em 1.1em;
  gap: 0.22em;
}
.sm-home-now-tag {
  display: inline-block;
  background: #FF4F5A;
  color: #fff;
  font-size: 0.56em;
  font-weight: 800;
  padding: 0.18em 0.55em;
  border-radius: 0.2em;
  letter-spacing: 0.05em;
  width: fit-content;
  margin-bottom: 0.1em;
}
.sm-home-feat-title {
  color: #fff;
  font-size: 1.1em;
  font-weight: 800;
  line-height: 1.15;
}
.sm-home-feat-meta {
  color: rgba(255,255,255,0.55);
  font-size: 0.7em;
  margin-bottom: 0.2em;
}
.sm-home-feat-btns {
  display: flex;
  gap: 0.45em;
}
.sm-home-feat-btn {
  font-size: 0.7em;
  font-weight: 700;
  padding: 0.3em 0.75em;
  border-radius: 0.25em;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.28em;
}
.sm-home-feat-btn.play { background: #FF4F5A; }
.sm-home-feat-btn.more { background: rgba(255,255,255,0.18); }

.sm-home-row-label {
  color: #94a3b8;
  font-size: 0.7em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}
.sm-home-thumbs-row {
  display: flex;
  gap: 0.4em;
  flex-shrink: 0;
}
.sm-home-thumb-card {
  flex: 1;
  aspect-ratio: 16/9;
  border-radius: 0.25em;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255,255,255,0.08);
}
.sm-home-thumb-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =========================================
   SCROLL REVEAL
========================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

/* =========================================
   LICENSE AGREEMENT / TERMS
========================================= */
.license-section { background: var(--bg); }

.lic-header { text-align: center; margin-bottom: 40px; }
.lic-header .section-sub { margin: 0 auto; max-width: 520px; }

.lic-container {
  max-width: 780px;
  margin: 0 auto;
}

.lic-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  margin-bottom: 12px;
  overflow: hidden;
}

.lic-title {
  padding: 18px 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  user-select: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  transition: var(--transition);
}

.lic-item.open .lic-title {
  background: var(--surface-2);
  color: var(--primary);
}

.lic-toggle {
  width: 24px;
  height: 24px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  color: var(--text-2);
  flex-shrink: 0;
  transition: transform var(--transition);
  box-shadow: var(--shadow-xs);
}

.lic-item.open .lic-toggle {
  transform: rotate(180deg);
  color: var(--brand);
}

.lic-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.lic-item.open .lic-content {
  max-height: 1000px;
}

.lic-inner {
  padding: 0 24px 18px;
  font-size: 0.87rem;
  color: var(--text-2);
  line-height: 1.75;
}

.lic-inner strong { color: var(--text); font-weight: 700; }
.lic-inner ul { margin: 10px 0 10px 20px; list-style: disc; }
.lic-inner li { margin-bottom: 6px; }
.lic-inner ol { margin: 10px 0 10px 20px; list-style: decimal; }
.lic-inner p { margin-bottom: 10px; }

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 1024px) {
  .features-grid  { grid-template-columns: repeat(2, 1fr); }
  .platforms-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid    { grid-template-columns: 1fr 1fr; gap: 32px; }
  .stats-card     { grid-template-columns: repeat(2, 1fr); padding: 36px; }
}

@media (max-width: 768px) {
  section { padding: 68px 0; }

  .hero-inner   { grid-template-columns: 1fr; }
  .hero-visual  { display: none; }

  .hiw-grid     { grid-template-columns: 1fr; gap: 36px; }
  .hiw-grid::before { display: none; }

  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }

  .contact-grid { grid-template-columns: 1fr; gap: 40px; }

  .footer-grid  { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-bottom-links { justify-content: center; }
}

@media (max-width: 540px) {
  .features-grid  { grid-template-columns: 1fr; }
  .platforms-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-card     { grid-template-columns: repeat(2, 1fr); padding: 28px 24px; gap: 24px; }
  .hero-actions   { flex-direction: column; }
  .license-row    { flex-direction: column; }
}
