/* ==========================================================================
   IPTV UAE — Pro Theme Design System (RTL Arabic ar-AE)
   Architecture: Structured Modular Bento · Visual Spec Tiles · Local Scorecards
   ========================================================================== */

/* 01. Tokens & Reset */
:root {
  --night: #070915;
  --deep: #0d1124;
  --card: #141a36;
  --card2: #1a2147;
  --surface: rgba(20, 26, 54, 0.72);
  --line: rgba(120, 190, 255, 0.16);
  --line-strong: rgba(120, 190, 255, 0.3);
  --red: #ef3340;
  --red2: #c8102e;
  --teal: #3ddbc0;
  --green: #00a86b;
  --pearl: #f5e9d6;
  --gold: #e8c27a;
  --sand: #f5e9d6;
  --yellow: #ecc81d;
  --txt: #eef1fa;
  --txt-soft: #cdd4ec;
  --txt-prose: #d5dbef;
  --mut: #9aa3c2;
  --wa: #25d366;
  --wa-dark: #04210f;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 28px;
  --shadow-card: 0 18px 40px -24px rgba(0, 0, 0, 0.75);
  --shadow-glow-red: 0 24px 60px -24px rgba(239, 51, 64, 0.5);
  --shadow-glow-teal: 0 20px 50px -24px rgba(61, 219, 192, 0.35);
  --font-display: "Almarai", "IBM Plex Sans Arabic", sans-serif;
  --font-body: "IBM Plex Sans Arabic", Tahoma, system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  background: var(--night);
  color: var(--txt);
  line-height: 1.9;
  font-size: 17.5px;
  overflow-x: clip;
  text-align: start;
}

a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

svg {
  flex-shrink: 0;
}

/* 02. Typography & Containers */
h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #fff;
}

.wrap {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 20px;
}

.wrap--narrow {
  max-width: 920px;
}

.skip {
  position: absolute;
  inset-inline-start: -9999px;
}

.skip:focus {
  inset-inline-start: 12px;
  top: 12px;
  background: #fff;
  color: #000;
  padding: 10px 16px;
  border-radius: 10px;
  z-index: 999;
}

.ltr {
  direction: ltr;
  unicode-bidi: embed;
  display: inline-block;
}

.flagbar {
  height: 4px;
  background: linear-gradient(90deg, var(--green) 0 25%, #fff 25% 50%, #111 50% 75%, var(--red) 75%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  color: var(--red);
  letter-spacing: 0.4px;
  margin-bottom: 10px;
}

.eyebrow--teal {
  color: var(--teal);
}

.muted-note {
  color: var(--mut);
  font-size: 14.5px;
  margin-top: 16px;
}

.mt-sm {
  margin-top: 14px;
}

.mt-md {
  margin-top: 24px;
}

.mt-lg {
  margin-top: 36px;
}

.mb-0 {
  margin-bottom: 0;
}

.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;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  border-radius: 14px;
  padding: 12px 22px;
  font-size: 15.5px;
  line-height: 1.3;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn-wa {
  background: var(--wa);
  color: var(--wa-dark);
}

.btn-wa:hover {
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, 0.58);
}

.btn-red,
.btn-gold {
  background: linear-gradient(135deg, var(--red), var(--red2));
  color: #fff;
}

.btn-red:hover,
.btn-gold:hover {
  box-shadow: 0 12px 30px -8px rgba(239, 51, 64, 0.58);
}

.btn-ghost {
  border: 1px solid var(--line);
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.btn-ghost:hover {
  border-color: var(--teal);
  background: rgba(61, 219, 192, 0.08);
}

.btn-sm {
  padding: 9px 16px;
  font-size: 14px;
  border-radius: 11px;
}

.wa-ico {
  width: 19px;
  height: 19px;
  fill: currentColor;
  flex: none;
}

/* 03. Header & Navigation */
.hdr {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 9, 21, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.hdr .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 14px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  flex: none;
}

.logo:hover {
  text-decoration: none;
}

.logo i {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: conic-gradient(from 45deg, var(--red), var(--red2), var(--teal), var(--red));
  display: grid;
  place-items: center;
  font-style: normal;
  color: #fff;
  font-size: 16px;
}

.logo b {
  color: var(--teal);
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 15px;
  font-weight: 600;
}

.nav a {
  color: var(--mut);
  padding: 6px 2px;
  position: relative;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: #fff;
  text-decoration: none;
}

.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--red), var(--teal));
}

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

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 5, 14, 0.72);
  backdrop-filter: blur(4px);
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.nav-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.nav-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  inset-inline-start: 0;
  width: min(320px, 86vw);
  background: var(--deep);
  border-inline-end: 1px solid var(--line-strong);
  z-index: 90;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.25s ease, visibility 0.25s ease;
  overflow-y: auto;
}

[dir="ltr"] .nav-drawer {
  transform: translateX(-100%);
}

.nav-drawer.is-open {
  transform: translateX(0);
  visibility: visible;
}

.nav-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.nav-close {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

.nav-drawer-links {
  list-style: none;
  display: grid;
  gap: 6px;
}

.nav-drawer-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border-radius: 12px;
  color: var(--txt);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
}

.nav-drawer-links a:hover,
.nav-drawer-links a[aria-current="page"] {
  background: var(--card);
  border-color: var(--line);
  color: var(--teal);
  text-decoration: none;
}

/* 04. Hero & Alternating Bands */
section {
  scroll-margin-top: 82px;
}

.sec {
  padding: 76px 0;
}

.sec.alt {
  background: linear-gradient(180deg, #0a0e22, #070915);
  border-top: 1px solid rgba(120, 190, 255, 0.07);
  border-bottom: 1px solid rgba(120, 190, 255, 0.07);
}

.sec h2 {
  font-size: clamp(24px, 3.2vw, 37px);
  font-weight: 800;
  margin-bottom: 12px;
}

.sec .intro {
  color: var(--txt-soft);
  max-width: 820px;
  font-size: 18px;
  margin-bottom: 34px;
}

/* Homepage Hero */
.hero {
  position: relative;
  padding: 66px 0 0;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% -5%, rgba(239, 51, 64, 0.22), transparent 60%),
    radial-gradient(800px 420px at 0% 30%, rgba(61, 219, 192, 0.14), transparent 60%),
    linear-gradient(180deg, #070915, #0a0f26 70%, #070915);
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 38px;
  align-items: center;
  position: relative;
  z-index: 2;
}

/* Minimalist Start-Aligned Pillar Hero */
.phero {
  position: relative;
  padding: 54px 0 46px;
  background:
    radial-gradient(850px 380px at 90% -15%, rgba(239, 51, 64, 0.18), transparent 62%),
    radial-gradient(700px 320px at 10% 10%, rgba(61, 219, 192, 0.14), transparent 62%),
    linear-gradient(180deg, #080c1c, #070915);
  border-bottom: 1px solid var(--line);
}

.phero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 32px;
  align-items: end;
}

.phero h1 {
  font-size: clamp(28px, 4.1vw, 46px);
  font-weight: 800;
  max-width: 820px;
}

.phero h1 em,
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--red), #ff7a59, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.phero .lead {
  font-size: 18.5px;
  color: var(--txt-soft);
  max-width: 740px;
  margin-top: 16px;
}

.phero .ctas,
.hero .ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--mut);
  margin-bottom: 16px;
}

.crumbs a {
  color: var(--mut);
}

.crumbs a:hover {
  color: #fff;
}

.crumbs span[aria-hidden="true"] {
  opacity: 0.45;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--pearl);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(239, 51, 64, 0.7);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 10px rgba(239, 51, 64, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 51, 64, 0);
  }
}

.hero h1 {
  font-size: clamp(30px, 4.3vw, 50px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.hero .sub {
  font-size: 19px;
  color: var(--txt-soft);
  margin: 18px 0 24px;
  max-width: 640px;
}

/* Visual Spec Tiles (Archetype signature) */
.spec-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.spec-tile {
  background: linear-gradient(160deg, var(--card), var(--deep));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.spec-tile strong {
  font-family: var(--font-display);
  font-size: 22px;
  color: #fff;
  line-height: 1.25;
}

.spec-tile span {
  font-size: 13.5px;
  color: var(--mut);
}

.spec-tile--accent {
  border-color: rgba(61, 219, 192, 0.35);
  background: radial-gradient(200px 90px at 100% 0%, rgba(61, 219, 192, 0.14), transparent 70%), var(--deep);
}

.spec-tile--hot {
  border-color: rgba(239, 51, 64, 0.42);
  background: radial-gradient(200px 90px at 100% 0%, rgba(239, 51, 64, 0.16), transparent 70%), var(--deep);
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  font-size: 14.5px;
  color: var(--mut);
}

.trust > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 7px 12px;
}

.trust b {
  color: #fff;
}

.trust svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--teal);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cards-ico {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.cards-ico span {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 8px;
  font-weight: 800;
  color: #fff;
  background: var(--card);
  font-family: system-ui, sans-serif;
  font-size: 12.5px;
}

/* TV Mockup & Skyline */
.tv {
  background: linear-gradient(160deg, #1a2147, #0d1124);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 16px;
  box-shadow: 0 40px 90px -30px rgba(239, 51, 64, 0.35);
}

.tv-scr {
  border-radius: 16px;
  background: #04060f;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.tv-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--mut);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.tv-top b {
  color: var(--red);
  font-weight: 800;
}

.match {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 22px 14px;
  text-align: center;
  gap: 8px;
}

.match .tm {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
}

.match .sc {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 800;
  color: #fff;
  direction: ltr;
}

.match small {
  display: block;
  color: var(--mut);
  font-size: 12.5px;
}

.chlist {
  padding: 0 10px 12px;
}

.chrow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 10px;
  border-radius: 10px;
  font-size: 14.5px;
}

.chrow:nth-child(odd) {
  background: rgba(255, 255, 255, 0.03);
}

.chrow .q {
  font-size: 11.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(61, 219, 192, 0.14);
  color: var(--teal);
  direction: ltr;
}

.chrow .q.k {
  background: rgba(239, 51, 64, 0.16);
  color: #ff8c95;
}

.tv-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.tv-meta div {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  text-align: center;
  font-size: 12.5px;
  color: var(--mut);
}

.tv-meta b {
  display: block;
  font-family: var(--font-display);
  color: #fff;
  font-size: 17px;
  direction: ltr;
}

/* ==========================================================================
   Streambox Stage: Interactive 3-Tab Frameless 4K Smart TV (RTL ar-AE)
   ========================================================================== */
.streambox-stage {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  min-width: 0;
}

.streambox-tv {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.streambox-bezel {
  width: 100%;
  background: linear-gradient(145deg, #273055 0%, #10152b 45%, #090c1a 100%);
  border: 1px solid rgba(154, 196, 255, 0.24);
  border-radius: 22px;
  padding: 9px 9px 11px;
  box-shadow:
    0 34px 72px -24px rgba(0, 0, 0, 0.92),
    0 24px 64px -32px rgba(239, 51, 64, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  position: relative;
}

.streambox-bezel::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(61, 219, 192, 0.2), var(--teal), rgba(61, 219, 192, 0.2));
  box-shadow: 0 0 10px rgba(61, 219, 192, 0.7);
}

.streambox-screen {
  background:
    radial-gradient(460px 200px at 85% 0%, rgba(239, 51, 64, 0.12), transparent 60%),
    radial-gradient(380px 180px at 10% 100%, rgba(61, 219, 192, 0.1), transparent 60%),
    #050712;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.streambox-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding: 9px 12px;
  background: rgba(11, 15, 33, 0.92);
  border-bottom: 1px solid rgba(120, 190, 255, 0.12);
  font-size: 11.5px;
}

.streambox-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 800;
  color: #fff;
  letter-spacing: 0;
}

.streambox-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(239, 51, 64, 0.75);
  animation: pulse 1.8s infinite;
  flex: none;
}

.streambox-tech-chips {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.streambox-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.3;
  direction: ltr;
  unicode-bidi: embed;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--txt-soft);
}

.streambox-chip--hdr {
  color: var(--gold);
  border-color: rgba(232, 194, 122, 0.36);
  background: rgba(232, 194, 122, 0.12);
}

.streambox-chip--ms {
  color: var(--teal);
  border-color: rgba(61, 219, 192, 0.34);
  background: rgba(61, 219, 192, 0.12);
}

.streambox-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 8px 10px;
  background: rgba(7, 10, 24, 0.85);
  border-bottom: 1px solid rgba(120, 190, 255, 0.1);
}

.streambox-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 8px;
  border-radius: 10px;
  border: 1px solid rgba(120, 190, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  color: var(--mut);
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}

.streambox-tab svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.streambox-tab:hover {
  color: #fff;
  border-color: rgba(120, 190, 255, 0.32);
  background: rgba(255, 255, 255, 0.06);
}

.streambox-tab[aria-selected="true"],
.streambox-tab.is-active {
  color: #fff;
  background: linear-gradient(135deg, rgba(239, 51, 64, 0.92), rgba(200, 16, 46, 0.92));
  border-color: rgba(255, 130, 140, 0.55);
  box-shadow: 0 8px 20px -10px rgba(239, 51, 64, 0.85);
}

.streambox-panels {
  padding: 12px;
  min-height: 298px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.streambox-panel {
  display: none;
}

.streambox-panel.is-active {
  display: block;
  animation: streamboxFade 0.22s ease;
}

@keyframes streamboxFade {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tab 1: Cinema 4K */
.streambox-cinema-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 10px;
  align-items: stretch;
}

.streambox-featured {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(120, 190, 255, 0.2);
  background: #0a0f22;
  min-height: 268px;
}

.streambox-featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.streambox-featured-overlay {
  position: absolute;
  inset: 0;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(5, 7, 18, 0.25) 0%, rgba(5, 7, 18, 0.1) 42%, rgba(5, 7, 18, 0.94) 100%);
}

.streambox-featured-tag {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(7, 9, 21, 0.82);
  border: 1px solid rgba(232, 194, 122, 0.45);
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
}

.streambox-featured-tag svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  flex: none;
}

.streambox-featured-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 4px;
}

.streambox-featured-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  font-size: 10.5px;
  color: var(--txt-soft);
}

.streambox-featured-meta span {
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.1);
}

.streambox-minis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.streambox-mini {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(120, 190, 255, 0.16);
  background: #0b1024;
  aspect-ratio: 2 / 3;
}

.streambox-mini img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.streambox-mini:hover img {
  transform: scale(1.05);
}

.streambox-mini span {
  position: absolute;
  top: 6px;
  inset-inline-start: 6px;
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(7, 9, 21, 0.84);
  border: 1px solid rgba(61, 219, 192, 0.4);
  color: var(--teal);
  font-size: 9.5px;
  font-weight: 800;
  direction: ltr;
}

/* Tab 2: Live Sports 4K */
.streambox-sports {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.streambox-scoreboard {
  background:
    radial-gradient(280px 120px at 50% 0%, rgba(239, 51, 64, 0.18), transparent 72%),
    linear-gradient(160deg, #131936, #0a0f23);
  border: 1px solid rgba(120, 190, 255, 0.2);
  border-radius: 14px;
  padding: 14px 12px;
}

.streambox-league {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11.5px;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 12px;
}

.streambox-match-time {
  color: #ff98a0;
  background: rgba(239, 51, 64, 0.18);
  border: 1px solid rgba(239, 51, 64, 0.4);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.streambox-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.streambox-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.streambox-crest {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  color: #fff;
  background: linear-gradient(135deg, rgba(239, 51, 64, 0.3), rgba(20, 26, 54, 0.9));
  border: 1px solid rgba(239, 51, 64, 0.45);
}

.streambox-crest--away {
  background: linear-gradient(135deg, rgba(61, 219, 192, 0.28), rgba(20, 26, 54, 0.9));
  border-color: rgba(61, 219, 192, 0.45);
}

.streambox-team strong {
  font-family: var(--font-display);
  font-size: 14.5px;
  color: #fff;
  line-height: 1.2;
}

.streambox-team small {
  font-size: 11px;
  color: var(--mut);
}

.streambox-score {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  direction: ltr;
  padding: 6px 12px;
  border-radius: 12px;
  background: rgba(5, 7, 18, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.streambox-fps-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-top: 12px;
}

.streambox-fps-chip {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(61, 219, 192, 0.12);
  border: 1px solid rgba(61, 219, 192, 0.3);
  color: var(--teal);
}

.streambox-sports-feeds {
  display: grid;
  gap: 6px;
}

.streambox-feed-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(120, 190, 255, 0.12);
  font-size: 12.5px;
  color: var(--txt-soft);
}

.streambox-feed-row strong {
  color: #fff;
  font-family: var(--font-display);
  font-size: 13px;
}

/* Tab 3: Live TV EPG */
.streambox-epg {
  display: grid;
  gap: 8px;
}

.streambox-epg-row {
  padding: 9px 11px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(120, 190, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.streambox-epg-row.is-now {
  background: rgba(61, 219, 192, 0.07);
  border-color: rgba(61, 219, 192, 0.32);
}

.streambox-epg-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.streambox-epg-ch {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  color: #fff;
}

.streambox-epg-q {
  font-size: 10px;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 6px;
  background: rgba(239, 51, 64, 0.18);
  color: #ff98a0;
  direction: ltr;
}

.streambox-epg-q--teal {
  background: rgba(61, 219, 192, 0.14);
  color: var(--teal);
}

.streambox-epg-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--txt-soft);
}

.streambox-epg-time {
  font-size: 11px;
  color: var(--mut);
  direction: ltr;
  flex: none;
}

.streambox-epg-bar {
  height: 5px;
  width: 100%;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.09);
  overflow: hidden;
}

.streambox-epg-fill {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--red), var(--teal));
}

.streambox-epg-fill--68 { width: 68%; }
.streambox-epg-fill--42 { width: 42%; }
.streambox-epg-fill--81 { width: 81%; }
.streambox-epg-fill--55 { width: 55%; }

/* Minimal Metallic Stand */
.streambox-stand {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  pointer-events: none;
}

.streambox-stand-neck {
  width: 66px;
  height: 14px;
  background: linear-gradient(180deg, #1b223f, #39446c 55%, #161c36);
  border-inline: 1px solid rgba(255, 255, 255, 0.12);
}

.streambox-stand-base {
  width: 54%;
  max-width: 240px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, #151b35, #566494 35%, #8b9ac9 50%, #566494 65%, #151b35);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.75);
}

/* Below Stand: Device Pills & 3 KPI Tiles */
.streambox-devpills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
}

.streambox-devpill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(20, 26, 54, 0.78);
  border: 1px solid var(--line);
  color: var(--txt-soft);
  font-size: 12px;
  font-weight: 600;
}

.streambox-devpill svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--teal);
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.streambox-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.streambox-kpi {
  background: linear-gradient(160deg, rgba(20, 26, 54, 0.9), rgba(13, 17, 36, 0.95));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 11px 8px;
  text-align: center;
}

.streambox-kpi b {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  line-height: 1.15;
  color: #fff;
  direction: ltr;
}

.streambox-kpi span {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: var(--mut);
}

/* ==========================================================================
   Post-Poster Cinema Section: 4-Tile Compact Package Strip + Devices Banner
   ========================================================================== */
.streambox-packs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.streambox-card {
  background: linear-gradient(160deg, var(--card), var(--deep));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.streambox-card:hover {
  transform: translateY(-4px);
  border-color: rgba(61, 219, 192, 0.45);
  box-shadow: 0 22px 44px -26px rgba(61, 219, 192, 0.35);
}

.streambox-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.streambox-card-ico {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(239, 51, 64, 0.2), rgba(61, 219, 192, 0.16));
  border: 1px solid var(--line-strong);
  color: var(--teal);
  flex: none;
}

.streambox-card-ico svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.streambox-card-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(239, 51, 64, 0.14);
  border: 1px solid rgba(239, 51, 64, 0.34);
  color: #ff99a1;
  direction: ltr;
  white-space: nowrap;
}

.streambox-card-badge--teal {
  background: rgba(61, 219, 192, 0.12);
  border-color: rgba(61, 219, 192, 0.32);
  color: var(--teal);
}

.streambox-card-badge--gold {
  background: rgba(232, 194, 122, 0.12);
  border-color: rgba(232, 194, 122, 0.32);
  color: var(--gold);
}

.streambox-card h3 {
  font-size: 17.5px;
  line-height: 1.25;
  color: #fff;
}

.streambox-card p {
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--txt-soft);
  margin: 0;
}

.streambox-devices {
  margin-top: 22px;
  border-radius: 24px;
  padding: 26px 26px;
  background:
    radial-gradient(520px 220px at 88% 0%, rgba(239, 51, 64, 0.2), transparent 65%),
    radial-gradient(420px 200px at 8% 100%, rgba(61, 219, 192, 0.14), transparent 65%),
    linear-gradient(155deg, #111630, #060814);
  border: 1px solid var(--line-strong);
  box-shadow: 0 26px 56px -28px rgba(0, 0, 0, 0.88);
}

.streambox-devices-inner {
  display: grid;
  grid-template-columns: 1.25fr auto;
  gap: 22px;
  align-items: center;
}

.streambox-devices-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 800;
  color: var(--teal);
  margin-bottom: 6px;
}

.streambox-devices-copy h3 {
  font-size: clamp(20px, 2.3vw, 26px);
  line-height: 1.22;
  margin-bottom: 8px;
}

.streambox-devices-copy p {
  color: var(--txt-soft);
  font-size: 15px;
  margin-bottom: 16px;
  max-width: 680px;
}

.streambox-devices-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.streambox-device-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(120, 190, 255, 0.18);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
}

.streambox-device-item svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--teal);
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.streambox-devices-cta {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 9px;
  min-width: 230px;
}

.streambox-devices-note {
  text-align: center;
  font-size: 12.5px;
  color: var(--mut);
}

.skyline {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 38px;
  position: relative;
  z-index: 1;
}

/* Poster Carousel & Cinema Grid */
.poster-carousel {
  list-style: none;
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 10px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  margin: 28px 0 36px;
  padding: 14px 4px 24px;
  scrollbar-width: thin;
  scrollbar-color: var(--yellow) rgba(255, 255, 255, 0.08);
}

.poster-carousel::-webkit-scrollbar {
  height: 6px;
}

.poster-carousel::-webkit-scrollbar-thumb {
  background: var(--yellow);
  border-radius: 6px;
}

.poster-carousel figure {
  flex: 0 0 clamp(200px, 26vw, 290px);
  margin: 0;
  scroll-snap-align: start;
  border-radius: 16px;
  overflow: hidden;
  background: #0b1c14;
  box-shadow: 0 18px 36px -14px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.poster-carousel img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.poster-carousel figure:hover,
.poster-carousel figure:focus-within {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 28px 50px -16px rgba(0, 0, 0, 0.92), 0 0 0 2px var(--yellow);
}

.poster-carousel figure:hover img {
  transform: scale(1.06);
}

.cine {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.cine-note {
  color: var(--mut);
  font-size: 14px;
  margin: -16px 0 26px;
}

.gcard {
  position: relative;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 260 / 384;
  isolation: isolate;
}

.gcard svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  transition: transform 0.6s ease;
}

.gcard:hover svg {
  transform: scale(1.06);
}

.gcard::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(transparent 45%, rgba(4, 6, 15, 0.92)), radial-gradient(circle at 50% 120%, transparent 40%, rgba(0, 0, 0, 0.35));
}

.g-act { background: linear-gradient(170deg, #7c1d0e, #3b0a05 60%, #120302); }
.g-thr { background: linear-gradient(170deg, #0b3954, #06202f 60%, #020812); }
.g-sci { background: linear-gradient(170deg, #3b1f78, #1a0f3d 60%, #07041a); }
.g-ani { background: linear-gradient(170deg, #7dd3fc, #c4b5fd 60%, #f9a8d4); }
.g-doc { background: linear-gradient(170deg, #0b2a4a, #0c3b3a 55%, #1f2a17); }
.g-ram { background: linear-gradient(170deg, #3a0d18, #1c0a20 60%, #070915); }

.gcard figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 14px 12px 13px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gcard figcaption small {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  direction: ltr;
  text-align: end;
  font-family: system-ui, sans-serif;
}

.gcard figcaption b {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  line-height: 1.5;
}

.gcard figcaption em {
  font-style: normal;
  font-size: 12.5px;
  color: var(--txt-soft);
  line-height: 1.5;
}

.gcard .b4k {
  position: absolute;
  top: 10px;
  inset-inline-end: 10px;
  background: var(--red);
  color: #fff;
  font-size: 11.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  direction: ltr;
}

/* 05. Pricing Plans & Cards */
.plans {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items: stretch;
}

.plan {
  background: var(--deep);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.plan:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
}

.plan.hot,
.plan--featured {
  background:
    radial-gradient(320px 140px at 50% 0%, rgba(239, 51, 64, 0.22), transparent 72%),
    linear-gradient(170deg, #24163a, #0d1124 62%);
  border: 1.5px solid var(--red);
  box-shadow: var(--shadow-glow-red);
}

.plan.hot:hover,
.plan--featured:hover {
  border-color: #ff5b67;
  box-shadow: 0 28px 65px -22px rgba(239, 51, 64, 0.65);
}

.plan .rib {
  position: absolute;
  top: -13px;
  inset-inline-start: 22px;
  background: linear-gradient(135deg, var(--red), var(--red2));
  color: #fff;
  font-size: 12.5px;
  font-weight: 800;
  padding: 3px 13px;
  border-radius: 999px;
}

.plan h3,
.plan h4 {
  font-size: 18px;
  color: var(--pearl);
}

.plan .pr,
.plan .p {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  color: #fff;
  margin: 10px 0 2px;
  line-height: 1.25;
}

.plan .pr small,
.plan .p small {
  font-size: 16px;
  color: var(--mut);
  font-weight: 600;
}

.plan .pm {
  color: var(--teal);
  font-size: 14.5px;
  font-weight: 700;
  min-height: 24px;
}

.plan ul {
  list-style: none;
  margin: 18px 0 22px;
  display: grid;
  gap: 10px;
  font-size: 15.5px;
  color: var(--txt-soft);
  flex: 1;
}

.plan li {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.plan li::before {
  content: "✓";
  color: var(--teal);
  font-weight: 800;
  flex: none;
}

.plan .btn {
  width: 100%;
}

.guar {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 26px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  color: var(--mut);
  font-size: 15px;
  text-align: center;
}

.guar b {
  color: #fff;
}

/* Compact 4-plan strip for local pages & articles */
.plans-compact {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 22px 0;
}

.plans-compact .plan {
  padding: 20px 16px;
  border-radius: var(--radius-md);
  text-align: center;
}

.plans-compact .plan .pr {
  font-size: 30px;
}

.plans-compact .plan .btn {
  margin-top: 12px;
  padding: 10px 14px;
  font-size: 14.5px;
}

/* 06. Bento / Device / App Grids */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.stat {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px 16px;
  text-align: center;
  background: radial-gradient(260px 120px at 100% 0%, rgba(239, 51, 64, 0.14), transparent 70%), var(--deep);
}

.stat svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--teal);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin: 0 auto 8px;
  display: block;
}

.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 800;
  line-height: 1.3;
  background: linear-gradient(90deg, #fff, var(--pearl));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat span {
  font-size: 14.5px;
  color: var(--mut);
  font-weight: 600;
}

.pillars,
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

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

.feat,
.pillar {
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, var(--card), var(--deep));
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 26px 22px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.feat:hover,
.pillar:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}

.pillar.hot {
  border-color: rgba(239, 51, 64, 0.55);
  box-shadow: 0 30px 60px -36px rgba(239, 51, 64, 0.6);
}

.feat .ic,
.pillar .pic {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(239, 51, 64, 0.22), rgba(61, 219, 192, 0.16));
  border: 1px solid var(--line);
  margin-bottom: 16px;
  font-size: 22px;
}

.feat .ic svg,
.pillar .pic svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--teal);
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feat h3,
.pillar h3 {
  font-size: 19px;
  margin-bottom: 8px;
}

.feat p,
.pillar p {
  color: var(--txt-soft);
  font-size: 15.5px;
  flex: 1;
}

.ptags,
.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.ptags li,
.chips li,
.chip {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--teal);
  background: rgba(61, 219, 192, 0.1);
  border: 1px solid rgba(61, 219, 192, 0.25);
  border-radius: 8px;
  padding: 2px 9px;
}

.chip--red {
  color: #ff99a1;
  background: rgba(239, 51, 64, 0.14);
  border-color: rgba(239, 51, 64, 0.35);
}

.chip--gold {
  color: var(--gold);
  background: rgba(232, 194, 122, 0.12);
  border-color: rgba(232, 194, 122, 0.32);
}

.pillar .btn {
  margin-top: 18px;
  align-self: flex-start;
}

/* Asymmetric Structured Modular Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.bento-card {
  grid-column: span 4;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: linear-gradient(160deg, var(--card), var(--deep));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px 22px;
  color: #fff;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.bento-card--wide {
  grid-column: span 6;
}

.bento-card--feature {
  grid-column: span 8;
  background: radial-gradient(420px 180px at 0% 0%, rgba(239, 51, 64, 0.18), transparent 70%), linear-gradient(160deg, var(--card2), var(--deep));
  border-color: rgba(239, 51, 64, 0.42);
}

.bento-card:hover {
  transform: translateY(-4px);
  border-color: var(--teal);
  box-shadow: var(--shadow-glow-teal);
  text-decoration: none;
}

.bento-card h3 {
  font-size: 18.5px;
}

.bento-card p {
  color: var(--txt-soft);
  font-size: 15px;
  flex: 1;
}

.bento-card .bento-link {
  color: var(--teal);
  font-weight: 700;
  font-size: 14.5px;
  margin-top: 4px;
}

.bento-ico {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: rgba(61, 219, 192, 0.12);
  border: 1px solid rgba(61, 219, 192, 0.25);
}

.bento-ico svg {
  width: 24px;
  height: 24px;
  stroke: var(--teal);
  stroke-width: 1.9;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Device & App Cards */
.device-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 18px;
}

.device-card {
  background: linear-gradient(160deg, var(--card), var(--deep));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.device-card:hover {
  transform: translateY(-4px);
  border-color: var(--teal);
}

.device-card.is-hidden {
  display: none;
}

.device-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.device-ico {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(61, 219, 192, 0.16), rgba(239, 51, 64, 0.16));
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  flex: none;
}

.device-ico svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--teal);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.device-card h3 {
  font-size: 18px;
}

.device-card .sub-os {
  font-size: 13px;
  color: var(--mut);
}

.device-card p {
  font-size: 15px;
  color: var(--txt-soft);
  flex: 1;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 20px;
}

.app-card {
  background: linear-gradient(160deg, var(--card), var(--deep));
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.app-card:hover {
  transform: translateY(-4px);
  border-color: var(--red);
}

.app-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.app-tile {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  overflow: hidden;
  flex: none;
  box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.7);
}

.app-tile svg {
  width: 100%;
  height: 100%;
  display: block;
}

.app-card h3 {
  font-size: 19px;
}

.app-card p {
  color: var(--txt-soft);
  font-size: 15.5px;
  flex: 1;
}

/* Dark High-Contrast Recommendation Band */
.dark-band {
  background: radial-gradient(700px 280px at 85% 0%, rgba(239, 51, 64, 0.2), transparent 65%), #040610;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  padding: 36px 30px;
}

.dark-band-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 215px), 1fr));
  gap: 16px;
  margin-top: 22px;
}

.rec-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
}

.rec-item small {
  color: var(--gold);
  font-weight: 700;
  font-size: 13px;
  display: block;
  margin-bottom: 4px;
}

.rec-item strong {
  font-family: var(--font-display);
  font-size: 17px;
  color: #fff;
  display: block;
  margin-bottom: 6px;
}

.rec-item p {
  font-size: 14.5px;
  color: var(--mut);
}

/* Local Network Scorecard (Archetype signature) */
.scorecard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr));
  gap: 16px;
}

.scorecard {
  background: linear-gradient(160deg, var(--card), var(--deep));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.scorecard-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.score-badge {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(0, 168, 107, 0.18);
  border: 1px solid rgba(0, 168, 107, 0.45);
  color: var(--teal);
  direction: ltr;
}

.score-bar {
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.score-bar span {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--teal), var(--green));
}

.score-bar--95 span { width: 95%; }
.score-bar--92 span { width: 92%; }
.score-bar--88 span { width: 88%; }
.score-bar--82 span { width: 82%; }

.score-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: 13.5px;
  color: var(--mut);
}

.score-metrics b {
  display: block;
  color: #fff;
  font-family: var(--font-display);
  direction: ltr;
  text-align: start;
}

/* Emirates & Local Cards */
.emi {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 215px), 1fr));
  gap: 14px;
}

.emi > div,
.emi > a {
  display: block;
  background: var(--deep);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  color: #fff;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.emi > a:hover {
  transform: translateY(-3px);
  border-color: var(--teal);
  text-decoration: none;
}

.emi h3 {
  font-size: 17px;
  margin-bottom: 4px;
}

.emi p {
  font-size: 14.5px;
  color: var(--mut);
  line-height: 1.7;
}

.emi .lat {
  color: var(--teal);
  font-weight: 700;
  font-size: 13.5px;
  direction: ltr;
  display: inline-block;
  margin-top: 6px;
}

/* Glossary Grid */
.glossary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.term-card {
  background: linear-gradient(160deg, var(--card), var(--deep));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  scroll-margin-top: 96px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.term-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.term-card h2,
.term-card h3 {
  font-size: 19px;
  margin: 0;
}

.term-tip {
  background: rgba(61, 219, 192, 0.08);
  border-inline-start: 3px solid var(--teal);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14.5px;
  color: var(--txt-soft);
}

/* Author Profile Card */
.author-hero-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 26px;
  align-items: center;
  background: linear-gradient(160deg, var(--card), var(--deep));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 30px;
}

.author-avatar {
  width: 112px;
  height: 112px;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 18px 40px -16px rgba(239, 51, 64, 0.55);
}

.author-avatar svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* 07. Interactive Calculator & Filters */
.filter-pills,
.jump-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.filter-pill,
.jump-pill {
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--txt-soft);
  border-radius: 999px;
  padding: 8px 16px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.filter-pill:hover,
.jump-pill:hover {
  border-color: var(--teal);
  color: #fff;
  text-decoration: none;
}

.filter-pill[aria-pressed="true"] {
  background: linear-gradient(135deg, var(--red), var(--red2));
  border-color: var(--red);
  color: #fff;
}

.filter-meta {
  font-size: 14px;
  color: var(--teal);
  font-weight: 700;
  margin: -12px 0 20px;
}

.preset-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 14px 16px;
  background: rgba(20, 26, 54, 0.55);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.preset-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--pearl);
  margin-inline-end: 6px;
}

.preset-btn {
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--txt-soft);
  border-radius: 999px;
  padding: 6px 14px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.preset-btn:hover,
.preset-btn[aria-pressed="true"] {
  border-color: var(--teal);
  background: rgba(61, 219, 192, 0.14);
  color: #fff;
}

/* Speed Estimator & Dedicated Calculator */
.est,
.calc-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 24px;
  align-items: start;
}

.panel {
  background: var(--deep);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 26px;
}

.fld {
  margin-bottom: 20px;
}

.fld:last-child {
  margin-bottom: 0;
}

.fld label,
.fld .lb {
  display: block;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
  font-size: 15.5px;
}

.seg {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.seg button {
  flex: 1 1 auto;
  min-width: 104px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--txt-soft);
  border-radius: 12px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.15s ease;
}

.seg button[aria-pressed="true"] {
  background: linear-gradient(135deg, rgba(239, 51, 64, 0.28), rgba(61, 219, 192, 0.14));
  border-color: var(--red);
  color: #fff;
}

select,
input[type="range"],
input[type="search"] {
  width: 100%;
  font-family: inherit;
}

select,
input[type="search"] {
  background: var(--card);
  color: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15.5px;
}

input[type="range"] {
  accent-color: var(--red);
}

.rng {
  display: flex;
  justify-content: space-between;
  color: var(--mut);
  font-size: 13.5px;
}

.out {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gauge {
  position: relative;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}

.gauge svg {
  width: 100%;
  height: auto;
}

#garc,
#calc-garc {
  transition: stroke-dashoffset 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.gauge .val {
  position: absolute;
  inset: auto 0 12% 0;
  text-align: center;
}

.gauge .val b {
  font-family: var(--font-display);
  font-size: 34px;
  color: #fff;
  direction: ltr;
  display: block;
  line-height: 1.2;
}

.gauge .val span {
  color: var(--mut);
  font-size: 13.5px;
}

.verdict {
  border-radius: 16px;
  padding: 16px 18px;
  font-weight: 600;
  border: 1px solid var(--line);
  font-size: 15.5px;
}

.verdict.ok {
  background: rgba(0, 168, 107, 0.13);
  border-color: rgba(0, 168, 107, 0.5);
}

.verdict.mid {
  background: rgba(232, 194, 122, 0.12);
  border-color: rgba(232, 194, 122, 0.5);
}

.verdict.bad {
  background: rgba(239, 51, 64, 0.14);
  border-color: rgba(239, 51, 64, 0.5);
}

.kv {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.kv div {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px;
  font-size: 13.5px;
  color: var(--mut);
}

.kv b {
  display: block;
  color: #fff;
  font-size: 19px;
  font-family: var(--font-display);
  direction: ltr;
  text-align: start;
  margin-top: 2px;
}

/* Interactive Setup Checklist */
.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.tabs button {
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--txt-soft);
  border-radius: 12px;
  padding: 10px 16px;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}

.tabs button[aria-selected="true"] {
  background: linear-gradient(135deg, var(--red), var(--red2));
  border-color: var(--red);
  color: #fff;
}

.steps {
  counter-reset: s;
  list-style: none;
  display: grid;
  gap: 12px;
}

.steps li {
  counter-increment: s;
  background: var(--deep);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  cursor: pointer;
}

.steps li::before {
  content: counter(s);
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--card2);
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--teal);
  font-family: var(--font-display);
}

.steps li.done {
  border-color: rgba(0, 168, 107, 0.6);
}

.steps li.done::before {
  content: "✓";
  background: var(--green);
  color: #fff;
}

.steps b {
  color: #fff;
}

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

.cred {
  background: #04060f;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  font-family: var(--font-mono);
  direction: ltr;
  text-align: left;
  font-size: 14px;
  line-height: 2;
  overflow-x: auto;
}

.cred span {
  color: var(--mut);
}

.cred b {
  color: var(--teal);
  font-weight: 600;
}

.cred-url {
  word-break: break-all;
}

.prog {
  height: 8px;
  background: var(--card);
  border-radius: 99px;
  overflow: hidden;
  margin: 14px 0 6px;
}

.prog i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--teal), var(--green));
  transition: width 0.3s ease;
}

.prog-txt {
  color: var(--mut);
  font-size: 14px;
}

/* Network Topology & Tables */
.topo {
  background: var(--deep);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  overflow-x: auto;
}

.topo svg {
  min-width: 760px;
  width: 100%;
  height: auto;
}

.flow {
  stroke-dasharray: 6 8;
  animation: flow 1.2s linear infinite;
}

@keyframes flow {
  to {
    stroke-dashoffset: -28;
  }
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15.5px;
}

.tbl,
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--deep);
  margin: 22px 0;
}

.tbl table,
.table-wrap table {
  width: 100%;
  min-width: 540px;
  border-collapse: collapse;
}

th,
td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  text-align: start;
  vertical-align: top;
}

th {
  background: var(--card);
  color: var(--pearl);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14.5px;
  white-space: nowrap;
}

tr:last-child td {
  border-bottom: 0;
}

td.y {
  color: var(--teal);
  font-weight: 700;
}

td.n {
  color: #ff8c95;
}

/* FAQ Accordions & Categorized FAQ Cards */
.faq {
  max-width: 920px;
}

.faq-group {
  margin-bottom: 34px;
  scroll-margin-top: 96px;
}

.faq-group-title {
  font-size: 21px;
  color: var(--pearl);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.faq details {
  background: var(--deep);
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-bottom: 10px;
  padding: 0 22px;
  transition: border-color 0.2s ease;
}

.faq details[open] {
  border-color: rgba(61, 219, 192, 0.38);
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: #fff;
  padding: 18px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 16.5px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: var(--red);
  font-size: 24px;
  line-height: 1;
  flex: none;
}

.faq details[open] summary::after {
  content: "–";
  color: var(--teal);
}

.faq details p {
  padding-bottom: 18px;
  color: var(--txt-soft);
  margin: 0;
}

/* Final CTA Banner */
.final,
.cta {
  border-radius: var(--radius-xl);
  padding: 42px 28px;
  text-align: center;
  background: radial-gradient(600px 240px at 50% 0, rgba(239, 51, 64, 0.24), transparent 70%), var(--deep);
  border: 1px solid var(--line);
}

.cta {
  margin: 36px 0;
}

.final p,
.cta p {
  color: var(--txt-soft);
  max-width: 640px;
  margin: 10px auto 22px;
}

.final .row,
.cta .row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* 08. Editorial Articles & Legal */
.ahero {
  padding: 52px 0 32px;
  position: relative;
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(61, 219, 192, 0.18), transparent 60%),
    radial-gradient(700px 300px at 5% 10%, rgba(239, 51, 64, 0.14), transparent 60%);
}

.ahero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 4px;
  opacity: 0.7;
  background: linear-gradient(90deg, var(--green) 0 25%, #fff 25% 50%, #111 50% 75%, var(--red) 75%);
}

.tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  background: rgba(239, 51, 64, 0.1);
  border: 1px solid rgba(239, 51, 64, 0.3);
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.ahero h1 {
  font-size: clamp(27px, 4.1vw, 43px);
  font-weight: 800;
  max-width: 920px;
}

.ahero .lead {
  font-size: 18.5px;
  color: var(--txt-soft);
  max-width: 840px;
  margin-top: 16px;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 22px;
  font-size: 14.5px;
  color: var(--mut);
}

.meta strong,
.meta a {
  color: #fff;
  font-weight: 700;
}

.meta a:hover {
  color: var(--teal);
}

.agrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 44px;
  padding: 36px 0 70px;
}

.prose {
  max-width: 900px;
}

.prose h2 {
  font-size: clamp(22px, 2.7vw, 29px);
  margin: 44px 0 16px;
  padding-top: 8px;
}

.prose h3 {
  font-size: 20.5px;
  margin: 28px 0 10px;
  color: var(--pearl);
}

.prose p {
  margin: 0 0 18px;
  color: var(--txt-prose);
}

.prose ul,
.prose ol {
  margin: 0 0 20px;
  padding-inline-start: 24px;
  color: var(--txt-prose);
}

.prose li {
  margin-bottom: 8px;
}

.prose strong {
  color: #fff;
}

.prose code {
  font-family: var(--font-mono);
  font-size: 14px;
  background: #18204a;
  border: 1px solid var(--line);
  padding: 2px 7px;
  border-radius: 6px;
  color: var(--teal);
  direction: ltr;
  unicode-bidi: embed;
}

.prose pre {
  background: #04060f;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  overflow: auto;
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.65;
  direction: ltr;
  text-align: left;
}

.prose pre code {
  background: none;
  border: 0;
  padding: 0;
  color: #c8f3ea;
}

.prose table {
  display: block;
  overflow-x: auto;
  margin: 0 0 24px;
}

.prose .table-wrap table,
.prose .tbl table {
  display: table;
  width: 100%;
  margin: 0;
}

.prose figure {
  margin: 0 0 24px;
}

.prose figure img {
  border-radius: 16px;
  border: 1px solid var(--line);
}

.prose figcaption {
  font-size: 14px;
  color: var(--mut);
  margin-top: 8px;
}

.toc {
  background: var(--deep);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 24px;
  margin: 0 0 30px;
}

.toc strong {
  font-family: var(--font-display);
  display: block;
  margin-bottom: 10px;
  color: #fff;
}

.toc ol {
  margin: 0;
  padding-inline-start: 22px;
}

.toc li {
  margin: 6px 0;
  font-size: 16px;
}

.box {
  border-radius: 16px;
  padding: 20px 22px;
  margin: 0 0 24px;
  border: 1px solid var(--line);
  background: var(--deep);
}

.box.tip {
  border-inline-start: 4px solid var(--green);
}

.box.warn {
  border-inline-start: 4px solid #f97316;
}

.box.expert {
  border-inline-start: 4px solid var(--red);
  background: linear-gradient(135deg, var(--card), var(--deep));
}

.box p:last-child {
  margin: 0;
}

.box-t {
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  display: block;
}

.author {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--deep);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  margin-top: 40px;
}

.author .av {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--red));
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--night);
  flex: none;
}

.author p {
  font-size: 15px;
  margin: 4px 0 0;
  color: var(--mut);
}

.aside .stick {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.side {
  background: var(--deep);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
}

.side h4,
.side-title {
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  font-size: 15.5px;
  margin-bottom: 12px;
  line-height: 1.48;
}

.side ul {
  list-style: none;
}

.side li {
  margin: 9px 0;
  font-size: 15px;
  line-height: 1.6;
}

.side .price {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  color: #fff;
}

.side .price small {
  font-size: 14px;
  color: var(--mut);
}

.side .btn {
  width: 100%;
  margin-top: 12px;
}

.related {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 16px;
  margin-top: 16px;
}

.related a {
  display: block;
  background: var(--deep);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  color: #fff;
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 15.5px;
  line-height: 1.6;
}

.related a:hover {
  border-color: var(--red);
  text-decoration: none;
}

.related a small {
  display: block;
  font-family: var(--font-body);
  color: var(--red);
  font-size: 12.5px;
  margin-bottom: 6px;
}

/* Guides Hub Cards */
.ghead {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.ghead .intro {
  margin-bottom: 0;
}

.guides,
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 285px), 1fr));
  gap: 18px;
}

.hub-grid {
  margin: 34px 0 56px;
}

.g,
.hcard {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, var(--card), var(--deep));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  color: #fff;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.g::before,
.hcard::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--teal));
  opacity: 0.35;
  transition: opacity 0.2s ease;
}

.g:hover,
.hcard:hover {
  border-color: var(--red);
  transform: translateY(-3px);
  text-decoration: none;
}

.g:hover::before,
.hcard:hover::before {
  opacity: 1;
}

.g .gm,
.hcard .htop {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.g small {
  color: var(--pearl);
  font-weight: 800;
  font-size: 12.5px;
  background: rgba(239, 51, 64, 0.14);
  border: 1px solid rgba(239, 51, 64, 0.35);
  border-radius: 999px;
  padding: 2px 11px;
}

.g em,
.hcard .rt {
  font-style: normal;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 700;
  color: var(--teal);
  white-space: nowrap;
}

.g em svg,
.hcard .rt svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.g h3,
.hcard h2 {
  font-size: 18px;
  margin: 12px 0 8px;
  line-height: 1.55;
}

.g p,
.hcard p {
  color: var(--mut);
  font-size: 15px;
  flex: 1;
  line-height: 1.8;
}

.g span {
  margin-top: 12px;
  color: var(--teal);
  font-weight: 700;
  font-size: 14.5px;
}

.g i,
.hcard i {
  position: absolute;
  inset-inline-end: 14px;
  bottom: -12px;
  font-style: normal;
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 800;
  line-height: 1;
  color: rgba(239, 51, 64, 0.08);
  pointer-events: none;
}

.hcard .hb {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  position: relative;
  z-index: 1;
}

.hcard .htop .tag {
  margin: 0;
}

.hcard .hm {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  font-size: 13.5px;
  color: var(--mut);
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 8px;
}

.hcard .hm b {
  color: var(--red);
  font-weight: 700;
}

/* Legal Layout */
.lg {
  max-width: 860px;
  margin: 0 auto;
  padding: 28px 20px 76px;
}

.lg--full {
  max-width: none;
  padding: 0 0 60px;
}

.lg h2 {
  font-size: 23px;
  margin: 36px 0 12px;
  color: var(--pearl);
}

.lg p,
.lg li {
  color: var(--txt-prose);
  margin-bottom: 12px;
}

.lg ul,
.lg ol {
  padding-inline-start: 24px;
  margin: 0 0 18px;
}

.lg .note {
  background: var(--deep);
  border: 1px solid var(--line);
  border-inline-start: 4px solid var(--red);
  border-radius: 14px;
  padding: 16px 20px;
  margin: 22px 0;
}

.legal-nav {
  margin-top: 34px;
  padding: 20px;
  border-radius: 16px;
  background: linear-gradient(160deg, var(--card), var(--deep));
  border: 1px solid var(--line);
}

.legal-nav-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15.5px;
  color: #fff;
  margin-bottom: 12px;
}

.legal-nav .jump-pills {
  margin-bottom: 0;
}

/* 09. Footer, Sticky CTA & WhatsApp */
.ftr {
  border-top: 1px solid var(--line);
  background: #04050d;
  padding: 56px 0 112px;
  font-size: 15px;
  color: var(--mut);
}

.fgrid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 28px;
}

.ftr-desc {
  margin-top: 14px;
  max-width: 340px;
  line-height: 1.8;
}

.ftr h5,
.ftr-title {
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  font-size: 15px;
  margin-bottom: 12px;
  line-height: 1.48;
}

.ftr ul {
  list-style: none;
}

.ftr li {
  margin: 7px 0;
}

.ftr a {
  color: var(--mut);
}

.ftr a:hover {
  color: #fff;
  text-decoration: none;
}

.fbot {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13.5px;
}

/* Sticky Conversion CTA (Non-homepage pages) — Start edge (right in RTL), opposite .wa-float (left) */
#cta-sticky {
  position: fixed;
  inset-inline-start: 20px;
  bottom: 22px;
  z-index: 55;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(13, 17, 36, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(239, 51, 64, 0.48);
  border-radius: 999px;
  padding-block: 8px;
  padding-inline: 18px 10px;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.8);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

#cta-sticky.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#cta-sticky .cta-sticky-txt {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

#cta-sticky .cta-sticky-txt small {
  color: var(--teal);
  font-weight: 700;
  margin-inline-start: 4px;
}

/* Floating WhatsApp (Left side in RTL) */
.wa-float {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 13px;
  direction: rtl;
  text-decoration: none;
  filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.45));
  transition: transform 0.25s ease;
}

.wa-float:hover {
  transform: translateY(-3px);
  text-decoration: none;
}

.wa-float .wa-pill {
  position: relative;
  display: block;
  background: var(--wa);
  color: var(--wa-dark);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.35;
  padding: 12px 22px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.wa-float .wa-pill::after {
  content: "";
  position: absolute;
  left: -6px;
  top: 50%;
  width: 14px;
  height: 14px;
  background: var(--wa);
  border-radius: 2px;
  transform: translateY(-50%) rotate(45deg);
}

.wa-float .wa-circ {
  position: relative;
  flex: none;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #4ee38a, #25d366 55%, #16a34a);
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.2);
}

.wa-float .wa-circ::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--wa);
  animation: waping 2.2s infinite;
  pointer-events: none;
}

.wa-float .wa-circ svg {
  width: 31px;
  height: 31px;
  fill: #fff;
}

.wa-float:hover .wa-pill,
.wa-float:hover .wa-pill::after {
  background: #2ee072;
}

@keyframes waping {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.45);
    opacity: 0;
  }
}

/* 10. Responsive Breakpoints */
@media (max-width: 1024px) {
  .nav {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .phero-grid,
  .est,
  .calc-grid,
  .xc,
  .agrid {
    grid-template-columns: 1fr;
  }

  .aside {
    display: none;
  }

  .plans,
  .plans-compact {
    grid-template-columns: repeat(2, 1fr);
  }

  .cine {
    grid-template-columns: repeat(3, 1fr);
  }

  .pillars,
  .grid3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-card,
  .bento-card--wide,
  .bento-card--feature {
    grid-column: span 6;
  }

  .fgrid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 960px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .streambox-packs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .streambox-devices-inner {
    grid-template-columns: 1fr;
  }

  .streambox-devices-cta {
    min-width: 0;
  }
}

@media (max-width: 760px) {
  .sec {
    padding: 58px 0;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .pillars,
  .grid3,
  .grid2,
  .glossary-grid {
    grid-template-columns: 1fr;
  }

  .bento-card,
  .bento-card--wide,
  .bento-card--feature {
    grid-column: span 12;
  }

  .author-hero-card {
    grid-template-columns: 1fr;
    text-align: start;
  }

  #cta-sticky {
    bottom: 92px;
    inset-inline-start: auto;
    inset-inline-end: 14px;
    padding-block: 7px;
    padding-inline: 14px 10px;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 16.5px;
  }

  .hdr .btn-wa span.hdr-wa-lbl {
    display: none;
  }

  .plans,
  .plans-compact {
    grid-template-columns: 1fr;
  }

  .cine {
    grid-template-columns: repeat(2, 1fr);
  }

  .streambox-packs {
    grid-template-columns: 1fr;
  }

  .streambox-cinema-grid {
    grid-template-columns: 1fr;
  }

  .streambox-featured {
    min-height: 220px;
  }

  .streambox-minis {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .streambox-tab {
    font-size: 11.5px;
    padding: 7px 5px;
  }

  .streambox-devices {
    padding: 20px 16px;
  }

  .streambox-score {
    font-size: 26px;
  }

  .spec-tiles,
  .kv {
    grid-template-columns: 1fr;
  }

  .fgrid {
    grid-template-columns: 1fr;
  }

  .dark-band {
    padding: 26px 18px;
  }

  .panel {
    padding: 20px 16px;
  }

  #cta-sticky {
    bottom: 76px;
    inset-inline: 12px;
    justify-content: space-between;
  }

  .wa-float {
    left: 12px;
    bottom: 12px;
    gap: 11px;
  }

  .wa-float .wa-pill {
    font-size: 13.5px;
    padding: 10px 16px;
  }

  .wa-float .wa-circ {
    width: 52px;
    height: 52px;
  }

  .wa-float .wa-circ svg {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 340px) {
  .wa-float .wa-pill {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
