/* ============================================================
   ExtraTV Smart Cards — cards.css  v2.0.0
   Single source of truth. No !important wars.
   ============================================================ */

/* ── Google Font (loaded in PHP via wp_enqueue_style) ── */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800;900&display=swap');

/* ─────────────────────────────────────────
   1. TOKENS
───────────────────────────────────────── */
:root {
  --bg:    #0b0f18;
  --font:  'Tajawal', Arial, sans-serif;
  --green: #7cf1b6;
  --yellow:#ffd76a;
}

/* ─────────────────────────────────────────
   2. RESET / BASE
───────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  background: var(--bg);
  color: #fff;
  font-family: var(--font);
  padding: 28px 14px 56px;
}

/* ─────────────────────────────────────────
   3. PAGE LAYOUT
───────────────────────────────────────── */
.extratv-page {
  max-width: 1180px;
  margin: 0 auto;
  padding-bottom: 20px;
}

/* ─────────────────────────────────────────
   4. TYPOGRAPHY
───────────────────────────────────────── */
.hero-title,
.hero-sub,
.section-title,
.group-title,
.group-desc { text-align: center; }

.hero-title {
  font-size: 42px;
  line-height: 1.12;
  font-weight: 900;
  color: #ff23cf;
  margin: 0 0 12px;
}

.hero-sub {
  font-size: 22px;
  line-height: 1.5;
  font-weight: 800;
  max-width: 880px;
  margin: 0 auto 30px;
}

.section-title {
  font-size: 30px;
  line-height: 1.2;
  font-weight: 900;
  color: #ff23cf;
  margin: 0 0 22px;
}

/* ─────────────────────────────────────────
   5. SECTION DIVIDER
───────────────────────────────────────── */
.section-divider {
  margin: 18px auto 26px;
  max-width: 680px;
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: center;
}
.section-divider .line {
  height: 4px;
  flex: 1;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff23cf, #ff23cf);
}
.section-divider .star {
  font-size: 34px;
  color: #ff23cf;
  line-height: 1;
}

/* ─────────────────────────────────────────
   6. CARDS WRAPPER
───────────────────────────────────────── */
.cards {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 52px;
  padding: 34px 22px;
}

/* ─────────────────────────────────────────
   7. GROUP BREAK
───────────────────────────────────────── */
.group-break {
  margin: 40px auto 50px;
  max-width: 900px;
  text-align: center;
}
.glow-line {
  height: 3px;
  width: 100%;
  margin: 18px 0;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #ff23cf, transparent);
  filter: blur(2px);
}
.group-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 18px 22px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 30px rgba(0,0,0,.25), 0 0 28px rgba(255,35,207,.08);
}
.group-icon { font-size: 26px; }
.group-title { font-size: 20px; font-weight: 900; color: #ff23cf; }
.group-desc  { font-size: 13px; font-weight: 700; color: #ddd; margin-top: 4px; }

/* ─────────────────────────────────────────
   8. PACKAGE THEME TOKENS
   (one block per package — no duplication)
───────────────────────────────────────── */
.card[data-key="premium_vip"] {
  --theme1: #ffcc63; --theme2: #b86bff;
  --cta1: #ffb347;   --cta2: #ff7a18;
  --glowA: rgba(255,215,110,.34);
  --glowB: rgba(184,107,255,.22);
  --glowC: rgba(255,138,0,.18);
}
.card[data-key="premium"] {
  --theme1: #ff4fd8; --theme2: #ff1f8f;
  --cta1: #ff2fb2;   --cta2: #b91dd4;
  --glowA: rgba(255,79,216,.26);
  --glowB: rgba(185,29,212,.20);
  --glowC: rgba(255,160,216,.16);
}
.card[data-key="basic"] {
  --theme1: #51b8ff; --theme2: #206bff;
  --cta1: #2a8dff;   --cta2: #1763d8;
  --glowA: rgba(81,184,255,.24);
  --glowB: rgba(32,107,255,.18);
  --glowC: rgba(158,230,255,.12);
}
.card[data-key="lite"] {
  --theme1: #d9d9e6; --theme2: #9fa6b8;
  --cta1: #9ba5b8;   --cta2: #7f8796;
  --glowA: rgba(220,220,235,.18);
  --glowB: rgba(159,166,184,.14);
  --glowC: rgba(255,255,255,.10);
}
.card[data-key="mix_plus"] {
  --theme1: #ff4fd8; --theme2: #9d4dff;
  --cta1: #d52dff;   --cta2: #7b29ff;
  --glowA: rgba(213,45,255,.24);
  --glowB: rgba(123,41,255,.18);
  --glowC: rgba(255,159,240,.14);
}
.card[data-key="vip_plus"] {
  --theme1: #ffd66b; --theme2: #ff8f3a;
  --cta1: #ffbf47;   --cta2: #ff8a00;
  --glowA: rgba(255,214,107,.30);
  --glowB: rgba(255,143,58,.22);
  --glowC: rgba(255,240,166,.14);
}

/* ─────────────────────────────────────────
   9. CARD BASE
───────────────────────────────────────── */
.card {
  position: relative;
  /* Mobile default sizing */
  width: 92%;
  max-width: 420px;
  min-height: 620px;
  border-radius: 28px;
  overflow: visible;
  background: linear-gradient(180deg, rgba(13,16,25,.98), rgba(8,10,16,.98));
  border: 1px solid rgba(255,255,255,.09);
  box-shadow:
    0 26px 66px rgba(0,0,0,.48),
    0 0 0 1px color-mix(in srgb, var(--theme1, #fff) 18%, transparent),
    inset 0 1px 0 rgba(255,255,255,.05);
  isolation: isolate;
  /* Scroll reveal — starts hidden */
  opacity: 0;
  transform: translateY(60px) scale(0.95);
  transition:
    opacity .7s cubic-bezier(.2,.8,.2,1),
    transform .7s cubic-bezier(.2,.8,.2,1),
    box-shadow .35s ease;
}

/* Ambient glow border */
.card::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 32px;
  background: linear-gradient(120deg, #ff00cc, #ff6a00, #00eaff, #ff00cc);
  background-size: 220% 220%;
  z-index: -1;
  filter: blur(14px) saturate(1.08);
  opacity: .28;
  pointer-events: none;
}

/* Inner surface gloss */
.card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 27px;
  background:
    radial-gradient(circle at top, rgba(223,36,135,.11), transparent 44%),
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0));
  pointer-events: none;
  z-index: 0;
  opacity: .82;
}

/* Scroll reveal: visible state */
.card.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Hover lift */
.card:hover,
.card.touch-active {
  transform: translateY(-8px) scale(1.015);
  box-shadow:
    0 34px 76px rgba(0,0,0,.58),
    0 0 0 1px color-mix(in srgb, var(--theme1, #fff) 20%, rgba(255,255,255,.04)),
    0 0 44px var(--glowA),
    0 0 92px var(--glowB);
  filter: saturate(1.04);
}

/* Plan selection glow states */
.card.plan12-selected {
  box-shadow:
    0 40px 88px rgba(0,0,0,.62),
    0 0 0 1px color-mix(in srgb, var(--theme1, #fff) 24%, rgba(255,255,255,.05)),
    0 0 58px var(--glowA),
    0 0 112px var(--glowB),
    0 0 150px var(--glowC);
}
.card.plan12-selected::before { opacity: .88; filter: blur(18px) saturate(1.18); }
.card.plan6-selected {
  box-shadow:
    0 30px 68px rgba(0,0,0,.52),
    0 0 0 1px color-mix(in srgb, var(--theme1, #fff) 14%, rgba(255,255,255,.03)),
    0 0 36px var(--glowA);
}
.card.plan6-selected::before { opacity: .56; filter: blur(15px) saturate(1.08); }

/* Premium VIP hero accent */
.card[data-key="premium_vip"]::before { opacity: .42; filter: blur(16px) saturate(1.18); }
.card[data-key="premium_vip"].show {
  box-shadow:
    0 40px 88px rgba(0,0,0,.62),
    0 0 0 1px rgba(255,228,137,.28),
    0 0 64px rgba(255,209,94,.26),
    0 0 120px rgba(184,107,255,.18);
}

/* VIP Plus hierarchy */
.card[data-key="vip_plus"] {
  transform: scale(1.04);
  z-index: 3;
  box-shadow:
    0 0 0 2px rgba(255,215,0,.45),
    0 0 28px rgba(255,180,0,.18),
    0 18px 46px rgba(0,0,0,.34);
}
.card[data-key="vip_plus"].show { transform: scale(1.04) translateY(0); }

/* Package dimming hierarchy */
.card[data-key="basic"] { filter: brightness(.97); }
.card[data-key="lite"]  { filter: brightness(.94) saturate(.9); }

/* ─────────────────────────────────────────
   10. MEDIA (image / video area)
───────────────────────────────────────── */
.media {
  position: absolute;
  inset: 0;
  background: #000;
  overflow: hidden;
  border-radius: inherit;
  --focus-mobile:  center top;
  --focus-tablet:  center center;
  --focus-desktop: center center;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .45s ease, transform .8s ease;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: var(--focus-mobile);
}
.slide.active { opacity: 1; transform: scale(1.01); }

@media (min-width: 481px) and (max-width: 1023px) {
  .slide { background-position: var(--focus-tablet); }
}
@media (min-width: 1024px) {
  .slide { background-position: var(--focus-desktop); }
}

.media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  background: #000;
}
@keyframes fadeInVideo {
  from { opacity: 0; transform: scale(1.04); }
  to   { opacity: 1; transform: scale(1); }
}
.media video.playing { animation: fadeInVideo .36s ease; }

.media-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.08), rgba(0,0,0,.2) 28%, rgba(0,0,0,.9)),
    radial-gradient(circle at top, rgba(255,0,136,.16), transparent 42%);
}

/* Invisible tap zone over image area */
.media-hit {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 255px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 3;
}

/* ─────────────────────────────────────────
   11. PLAY HINT BUTTON
───────────────────────────────────────── */
.play-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  width: 68px;
  height: 68px;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #fff;
  background: rgba(8,12,22,.42);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow:
    0 10px 28px rgba(0,0,0,.28),
    0 0 0 1px rgba(255,255,255,.04),
    0 0 22px rgba(255,120,220,.14);
  cursor: pointer;
  animation: playPulse 2.2s ease-in-out infinite;
  transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
}
.play-hint::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.10);
  opacity: .55;
  animation: playRing 2.2s ease-out infinite;
  pointer-events: none;
}
.play-hint:hover {
  transform: translate(-50%,-50%) scale(1.08);
  background: rgba(8,12,22,.58);
}
.play-hint.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  animation: none;
}
.play-hint.hidden::before { animation: none; }

/* VIP gold play button */
.card[data-key="premium_vip"] .play-hint,
.card[data-key="vip_plus"] .play-hint {
  color: #FFD76A;
  background: linear-gradient(135deg, rgba(26,20,10,.94), rgba(58,34,0,.86));
  border-color: rgba(255,214,107,.34);
  box-shadow:
    0 12px 32px rgba(0,0,0,.30),
    0 0 18px rgba(255,214,107,.26),
    0 0 42px rgba(255,170,60,.20);
  animation: playPulseVIP 2.5s ease-in-out infinite;
}

@keyframes playPulse {
  0%, 100% { transform: translate(-50%,-50%) scale(1); }
  50%       { transform: translate(-50%,-50%) scale(1.06); }
}
@keyframes playRing {
  0%   { transform: scale(.92); opacity: .55; }
  70%  { transform: scale(1.18); opacity: 0; }
  100% { transform: scale(1.18); opacity: 0; }
}
@keyframes playPulseVIP {
  0%, 100% { transform: translate(-50%,-50%) scale(1); }
  50%       { transform: translate(-50%,-50%) scale(1.09); }
}

/* Preview-running: hide play button, dim card content */
.card.preview-running .play-hint { opacity: 0; visibility: hidden; pointer-events: none; animation: none; }
.card.preview-running .play-hint::before { animation: none; }
.card.preview-running .main { opacity: .22; transition: opacity .25s ease; }
.card.preview-running.controls-visible .main { opacity: 1; }

/* ─────────────────────────────────────────
   12. BADGE (top-left label)
───────────────────────────────────────── */
.badge-mini {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 8;
  max-width: 170px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  color: #fff;
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.05));
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 8px 20px rgba(0,0,0,.18);
  backdrop-filter: blur(8px);
}
.card[data-key="premium_vip"] .badge-mini,
.card[data-key="vip_plus"]    .badge-mini { background: linear-gradient(180deg, rgba(255,214,107,.20), rgba(255,255,255,.05)); border-color: rgba(255,214,107,.28); }
.card[data-key="premium"]     .badge-mini,
.card[data-key="mix_plus"]    .badge-mini { background: linear-gradient(180deg, rgba(255,79,216,.18),  rgba(255,255,255,.05)); border-color: rgba(255,79,216,.24); }
.card[data-key="basic"]       .badge-mini { background: linear-gradient(180deg, rgba(81,184,255,.18),  rgba(255,255,255,.05)); border-color: rgba(81,184,255,.24); }
.card[data-key="lite"]        .badge-mini { background: linear-gradient(180deg, rgba(217,217,230,.14), rgba(255,255,255,.05)); border-color: rgba(217,217,230,.20); }

/* ─────────────────────────────────────────
   13. DEVICE INDICATOR (top-right)
───────────────────────────────────────── */
.device {
  position: absolute;
  top: 18px;
  right: 16px;
  z-index: 5;
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 900;
  text-shadow: 0 2px 8px rgba(0,0,0,.24);
  pointer-events: none;
}
.device svg { width: 21px; height: 21px; }

/* ─────────────────────────────────────────
   14. MAIN CONTENT PANEL
───────────────────────────────────────── */
.main {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 20px 16px 34px;
}
.spacer { flex: 1; min-height: 150px; }
.center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: auto;
}

/* ─────────────────────────────────────────
   15. PRICE
───────────────────────────────────────── */
.price-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}
.price {
  font-size: 66px;
  line-height: .95;
  font-weight: 900;
  color: color-mix(in srgb, var(--theme1, #ffc15a) 92%, white 8%);
  letter-spacing: 1.5px;
  direction: ltr;
  text-shadow: 0 0 12px rgba(255,190,90,.34), 0 8px 22px rgba(0,0,0,.22);
}
.card[data-key="premium_vip"] .price {
  text-shadow: 0 0 18px rgba(255,210,110,.48), 0 0 42px rgba(255,150,60,.26), 0 8px 22px rgba(0,0,0,.24);
}
/* Gold gradient price for multi-device plans */
.card[data-key="mix_plus"] .price,
.card[data-key="vip_plus"] .price {
  background: linear-gradient(90deg, #fff4c0 0%, #ffd36b 32%, #ffab3d 68%, #fff0b0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 0 8px rgba(255,210,110,.22)) drop-shadow(0 0 22px rgba(255,150,60,.14));
}

.backup-pill {
  white-space: nowrap;
  padding: 9px 15px;
  font-size: 15px;
  font-weight: 800;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.05));
  border: 1px solid rgba(255,255,255,.20);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 25px rgba(0,0,0,.18);
  margin-bottom: 6px;
}
.card[data-key="mix_plus"] .backup-pill,
.card[data-key="vip_plus"] .backup-pill {
  background: linear-gradient(90deg, rgba(255,211,107,.18), rgba(255,143,58,.12));
  border-color: rgba(255,211,107,.26);
}

/* ─────────────────────────────────────────
   16. PLAN SWITCHER (6 / 12 months)
───────────────────────────────────────── */
.grid {
  margin: 28px auto 0;
  max-width: 300px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
}
.plan {
  min-height: 58px;
  border-radius: 18px;
  cursor: pointer;
  font: 900 16px var(--font);
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.85);
  backdrop-filter: blur(6px);
  transition: .3s;
}
.plan.active {
  background: linear-gradient(90deg, #ffb347, #ff7a18);
  color: #fff;
  border: none;
  box-shadow: 0 0 20px rgba(255,180,70,.6), 0 0 40px rgba(255,120,40,.4);
  transform: scale(1.05);
  animation: pulsePlan 2.5s infinite;
}
.plan.active::after { content: " ✔"; font-size: 14px; margin-inline-start: 4px; }

@keyframes pulsePlan {
  0%, 100% { box-shadow: 0 0 20px rgba(255,180,70,.6), 0 0 40px rgba(255,120,40,.4); }
  50%       { box-shadow: 0 0 30px rgba(255,200,100,.8), 0 0 60px rgba(255,140,60,.5); }
}

/* ─────────────────────────────────────────
   17. CTA LINKS
───────────────────────────────────────── */
.link {
  display: block;
  width: 100%;
  max-width: 300px;
  margin-inline: auto;
  text-decoration: none;
  text-align: center;
  border-radius: 18px;
  padding: 15px 12px;
  font: 900 16px var(--font);
  color: #fff;
}
.link.primary {
  margin-top: 20px;
  background: linear-gradient(90deg, var(--cta1, #df2487), var(--cta2, #b91dd4));
  box-shadow:
    0 18px 36px color-mix(in srgb, var(--cta1, #df2487) 24%, transparent),
    0 0 24px color-mix(in srgb, var(--cta2, #b91dd4) 14%, transparent);
  position: relative;
  overflow: hidden;
  animation: subscribePulse 2.8s ease-in-out infinite;
}
.link.primary::after {
  content: "";
  position: absolute;
  top: 0; left: -120%;
  width: 85%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.22), transparent);
  transform: skewX(-18deg);
  animation: shine 3.4s infinite;
}
.card[data-key="premium_vip"] .link.primary {
  animation: subscribePulse 2.8s ease-in-out infinite, heroPulse 3.6s ease-in-out infinite;
}
.link.secondary {
  margin-top: 14px;
  color: #f5d7ff;
  border: 1px dashed rgba(240,171,252,.30);
  background: linear-gradient(180deg, rgba(217,70,239,.08), rgba(217,70,239,.03));
}

@keyframes subscribePulse {
  0%, 100% {
    box-shadow:
      0 18px 36px color-mix(in srgb, var(--cta1, #df2487) 24%, transparent),
      0 0 24px color-mix(in srgb, var(--cta2, #b91dd4) 14%, transparent);
  }
  50% {
    box-shadow:
      0 0 25px rgba(255,0,200,.30),
      0 0 60px rgba(255,100,200,.20),
      0 18px 40px color-mix(in srgb, var(--cta1, #df2487) 28%, transparent);
  }
}
@keyframes shine {
  0%   { left: -120%; }
  58%  { left: 140%; }
  100% { left: 140%; }
}
@keyframes heroPulse {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-2px) scale(1.015); }
}

/* ─────────────────────────────────────────
   18. ACTION BUTTONS (details / backup)
───────────────────────────────────────── */
.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  max-width: 300px;
  width: 100%;
  margin: 22px auto 0;
}
.action {
  border: none;
  border-radius: 18px;
  padding: 12px 10px;
  cursor: pointer;
  font: 900 14px var(--font);
  color: #fff;
  background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.06));
  border: 1px solid color-mix(in srgb, var(--theme1, #fff) 16%, rgba(255,255,255,.08));
  touch-action: manipulation;
}

/* Hidden micro text */
.micro { display: none; }

/* ─────────────────────────────────────────
   19. TOAST NOTIFICATION
───────────────────────────────────────── */
.toast {
  display: block;
  position: absolute;
  top: 58px;
  left: 16px;
  right: 16px;
  z-index: 9;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
  pointer-events: none;
}
.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.toast-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(10,16,28,.96);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 12px 30px rgba(0,0,0,.28);
  min-height: 58px;
}
.toast-title { font-size: 13px; font-weight: 900; line-height: 1.35; }
.toast-sub   { margin-top: 2px; font-size: 12px; font-weight: 800; line-height: 1.35; }
.toast-sub.ok   { color: var(--green); }
.toast-sub.warn { color: var(--yellow); }
.toast-icon {
  width: 36px; height: 36px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 900;
}
.toast-icon.ok   { background: rgba(57,217,138,.14); color: var(--green); }
.toast-icon.warn { background: rgba(255,215,106,.12); color: var(--yellow); }

/* ─────────────────────────────────────────
   20. BOTTOM / SIDE SHEET
───────────────────────────────────────── */
.sheet {
  position: absolute;
  inset: 0;
  z-index: 20;
  background: rgba(4,5,10,.32);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}
.sheet.open { opacity: 1; visibility: visible; }

.sheet-panel {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  min-height: 320px;
  max-height: 72%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 26px 26px 0 0;
  background: linear-gradient(180deg, rgba(16,19,28,.98), rgba(8,10,16,.98));
  border-top: 1px solid rgba(255,255,255,.08);
  transform: translateY(104%);
  transition: transform .26s ease;
  z-index: 25;
}
.sheet.open .sheet-panel { transform: translateY(0); }

.handle {
  width: 58px; height: 5px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  margin: 10px auto 6px;
}
.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.sheet-title { font-size: 18px; font-weight: 900; }
.close-btn {
  width: 42px; height: 42px;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 24px;
  color: #ff7c92;
  background: linear-gradient(180deg, rgba(255,95,122,.12), rgba(255,95,122,.05));
  border: 1px solid rgba(255,95,122,.28);
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 14px 16px 0;
}
.tab {
  border: none;
  border-radius: 18px;
  padding: 14px 12px;
  cursor: pointer;
  font: 900 15px var(--font);
  color: rgba(255,255,255,.84);
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.08);
}
.tab.active {
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--theme2, #df2487) 90%, black 10%),
    color-mix(in srgb, var(--theme1, #b91dd4) 82%, black 18%)
  );
  color: #fff;
  border-color: transparent;
}

.sheet-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 16px 16px 18px;
  font-size: 15px;
  line-height: 1.9;
  color: rgba(255,255,255,.9);
  font-weight: 500;
  -webkit-overflow-scrolling: touch;
}
.pane         { display: none; }
.pane.active  { display: block; }

.sec-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--theme2, #df2487) 90%, black 10%),
    color-mix(in srgb, var(--theme1, #b91dd4) 82%, black 18%)
  );
  color: #fff;
}

.bullet,
.feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-radius: 18px;
  padding: 12px 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.06);
  margin-bottom: 10px;
}
.icon {
  width: 32px; height: 32px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 16px;
  background: rgba(255,255,255,.08);
}

.activation {
  margin: 14px 0 16px;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,193,7,.1), rgba(255,193,7,.04));
  border: 1px solid rgba(255,193,7,.18);
}
.activation-title { font-size: 13px; font-weight: 900; color: #ffd76a; margin-bottom: 6px; }
.activation-text  { font-size: 13px; line-height: 1.9; font-weight: 800; color: #fff4cf; }

.more-link {
  display: block;
  text-decoration: none;
  text-align: center;
  padding: 14px;
  border-radius: 20px;
  font-weight: 900;
  font-size: 14px;
  color: #fff;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--theme2, #df2487) 90%, black 10%),
    color-mix(in srgb, var(--theme1, #b91dd4) 82%, black 18%)
  );
  box-shadow: 0 14px 28px rgba(223,36,135,.25);
  margin-top: 14px;
}

/* ─────────────────────────────────────────
   21. SHEET FOOTER BUTTONS
───────────────────────────────────────── */
.sheet-footer {
  position: sticky;
  bottom: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 14px 16px 16px;
  background: linear-gradient(to top, rgba(8,10,16,.99), rgba(8,10,16,.92), rgba(8,10,16,.05));
  border-top: 1px solid rgba(255,255,255,.06);
  z-index: 60;
}
.sheet-accept,
.sheet-dismiss {
  min-height: 52px;
  border: none;
  border-radius: 16px;
  font: 900 15px var(--font);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 61;
}
.sheet-accept {
  color: #fff;
  background: linear-gradient(90deg, var(--cta1, #df2487), var(--cta2, #b91dd4));
  box-shadow: 0 12px 28px rgba(223,36,135,.22);
}
.sheet-dismiss {
  color: #fff;
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.05));
  border: 1px solid rgba(255,255,255,.08);
}

/* Language-aware sheet labels */
.sheet-footer .label-en,
html[lang="en"] .sheet-footer .label-ar { display: none; }
html[lang="en"] .sheet-footer .label-en,
html[lang="ar"] .sheet-footer .label-ar,
html:not([lang="en"]) .sheet-footer .label-ar { display: inline; }

/* ─────────────────────────────────────────
   22. LANG SWITCHER
───────────────────────────────────────── */
.lang-switcher {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 0 0 18px;
}
.lang-btn {
  min-width: 110px;
  min-height: 42px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font: 800 14px var(--font);
  color: #fff;
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.05));
  border: 1px solid rgba(255,255,255,.10);
}
.lang-btn.active {
  background: linear-gradient(90deg, #ff2f9e, #b321ff);
  box-shadow: 0 10px 24px rgba(179,33,255,.18);
}

/* ─────────────────────────────────────────
   23. RESPONSIVE — SMALL PHONES  ≤480px
───────────────────────────────────────── */
@media (max-width: 480px) {
  body { padding: 18px 12px 40px; }
  .hero-title { font-size: 34px; }
  .hero-sub   { font-size: 18px; margin-bottom: 22px; }
  .section-title { font-size: 26px; }
  .cards      { gap: 40px; padding: 20px 10px; }
  .card       { max-width: 336px; min-height: 600px; border-radius: 24px; }
  .main       { padding: 18px 14px 30px; }
  .spacer     { min-height: 132px; }
  .media-hit  { height: 224px; }
  .play-hint  { width: 58px; height: 58px; font-size: 24px; }
  .price      { font-size: 58px; }
  .grid, .actions, .link { max-width: 280px; }
  .plan       { min-height: 54px; }
  .action     { min-height: 46px; }
  .link.primary   { min-height: 50px; }
  .link.secondary { min-height: 46px; }
  .lang-switcher  { margin-bottom: 14px; }
  .lang-btn       { min-width: 96px; min-height: 38px; font-size: 13px; }
  .toast          { top: 56px; left: 12px; right: 12px; }
  .toast-inner    { padding: 11px 12px; }
  .sheet-footer   { gap: 10px; padding: 12px 14px 14px; }
  .sheet-accept, .sheet-dismiss { min-height: 48px; font-size: 14px; }
  .badge-mini     { max-width: 150px; }
}

/* ─────────────────────────────────────────
   24. RESPONSIVE — TABLET  481–1023px
───────────────────────────────────────── */
@media (min-width: 481px) and (max-width: 1023px) {
  .card     { width: 90%; max-width: 380px; min-height: 610px; }
  .media-hit { height: 232px; }
}

/* ─────────────────────────────────────────
   25. RESPONSIVE — DESKTOP  ≥1024px
   Full-image horizontal layout
───────────────────────────────────────── */
@media (min-width: 1024px) {
  .extratv-page { max-width: 1240px; }
  .cards        { gap: 30px; padding: 24px 16px; }

  .card {
    width: min(820px, 92%);
    max-width: 820px;
    min-height: 520px;
    border-radius: 30px;
    overflow: hidden;
  }
  .card::before { inset: -3px; border-radius: 34px; filter: blur(15px) saturate(1.08); opacity: .26; }
  .card::after  { border-radius: 29px; }

  /* Media fills full card */
  .media    { inset: 0; width: 100%; border-radius: inherit; }
  .media-hit { width: 56%; left: 0; right: auto; top: 0; height: 100%; z-index: 3; }

  /* Content panel on the right */
  .main {
    width: min(44%, 420px);
    margin-inline-start: auto;
    padding: 28px 26px 22px;
    justify-content: center;
    position: relative;
    z-index: 6;
    background:
      linear-gradient(180deg, rgba(8,12,22,.18), rgba(8,12,22,.10)),
      radial-gradient(circle at 15% 14%, rgba(255,192,70,.08), transparent 24%);
  }
  .spacer { display: none; }
  .center { margin-top: 0; align-items: stretch; text-align: right; }
  html[dir="ltr"] .center { text-align: left; }
  .price-wrap { align-items: flex-start; gap: 10px; margin-top: 8px; }
  .price      { font-size: 72px; line-height: .92; }
  .backup-pill { font-size: 13px; padding: 9px 15px; }
  .grid       { max-width: none; width: 100%; margin: 16px 0 0; gap: 12px; }
  .plan       { min-height: 60px; font-size: 19px; }
  .link, .actions { max-width: none; width: 100%; }
  .link.primary   { margin-top: 16px; min-height: 60px; font-size: 20px; }
  .link.secondary { margin-top: 10px; min-height: 54px; font-size: 17px; }
  .actions    { margin: 14px 0 0; gap: 12px; }
  .action     { min-height: 52px; font-size: 16px; }
  .device     { top: 22px; right: 24px; }
  .device svg { width: 24px; height: 24px; }
  .badge-mini { top: 20px; left: 20px; max-width: 185px; font-size: 12px; padding: 9px 15px; }

  /* Play hint centered on image side */
  .play-hint  { top: 50%; left: 28%; transform: translate(-50%,-50%); }
  .play-hint:hover { transform: translate(-50%,-50%) scale(1.08); }

  /* Side sheet (slides from right) */
  .sheet-panel {
    left: auto; right: 0;
    width: min(44%, 420px);
    max-height: 100%;
    min-height: 100%;
    border-radius: 0;
    border-top: none;
    border-inline-start: 1px solid rgba(255,255,255,.08);
    transform: translateX(104%);
  }
  .sheet.open .sheet-panel { transform: translateX(0); }
  .handle { display: none; }
  .sheet-head { padding-top: 18px; }

  .toast { top: 20px; left: 18px; right: auto; max-width: 340px; }
}

/* Intermediate desktop 1024–1199 */
@media (min-width: 1024px) and (max-width: 1199px) {
  .card { min-height: 500px; }
  .price { font-size: 68px; }
}
