/*
 * ArabicTV.store storefront — /shop/ and plan product pages.
 *
 * Self-contained: the store documents are rendered by includes/store.php and do
 * not load the front-page stylesheet. Layout uses logical properties throughout
 * so the Arabic (RTL) and English (LTR) trees share one rule set.
 */

:root {
  --paper: #fff;
  --paper-2: #f7f8fb;
  --paper-3: #eef1f6;
  --graphite: #12161d;
  --graphite-2: #1c222c;
  --ink: #101722;
  --muted: #5d6779;
  --line: #e5e8ef;
  --gold: #1e56b0;
  --gold-2: #2e7be6;
  --gold-soft: #eef5ff;
  --red: #e4232e;
  --navy: #0b1b33;
  --wa: #1faa53;
  --radius: 18px;
  --radius-sm: 12px;
  --shell: min(1180px, calc(100% - 40px));
  --shadow-sm: 0 1px 2px rgba(16, 23, 34, .05), 0 4px 14px rgba(16, 23, 34, .05);
  --shadow-md: 0 10px 34px rgba(16, 23, 34, .1);
  font-family: "Cairo", Tahoma, "Segoe UI", Arial, sans-serif;
  color-scheme: light;
}

.atv-ltr {
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body.atv-store {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body.atv-store.menu-open { overflow: hidden; }

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

h1, h2, h3 { line-height: 1.25; letter-spacing: -.015em; margin: 0; }

.atv-shell { width: var(--shell); margin-inline: auto; }

.atv-visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

:where(a, button, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.atv-skip {
  position: fixed;
  inset-block-start: -80px;
  inset-inline-start: 18px;
  z-index: 300;
  background: var(--graphite);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 10px 10px;
  transition: inset-block-start .18s;
}
.atv-skip:focus { inset-block-start: 0; }

/* ---------------------------------------------------------------- header */

.atv-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .94);
  border-block-end: 1px solid var(--line);
  backdrop-filter: saturate(160%) blur(14px);
}

.atv-nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.atv-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.1rem;
  white-space: nowrap;
  color: var(--graphite);
}
.atv-brand em { font-style: normal; color: var(--red); }

.atv-brand-mark {
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(145deg, var(--gold-2), var(--gold));
  box-shadow: 0 7px 18px rgba(30,86,176,.28);
}
.atv-brand-mark i {
  /* Physical sides on purpose: the play glyph points the same way in both
     directions, matching the front-page mark. */
  width: 0; height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-right: 11px solid #fff;
  transform: rotate(180deg);
}

/* Original ArabicTV broadcast emblem — 2.9.4.7. */
.atv-brand-mark{position:relative;isolation:isolate;overflow:hidden;border:1px solid rgba(243,183,25,.5);border-radius:14px 14px 14px 5px;background:linear-gradient(145deg,#071426 4%,#0e2f54 66%,#8f1720 140%);box-shadow:0 8px 22px rgba(7,20,38,.24)}
.atv-brand-mark::before{content:"";position:absolute;width:20px;height:20px;border:3px solid #f3b719;border-inline-start-color:#e4232e;border-block-end-color:transparent;border-radius:50%;transform:rotate(-22deg)}
.atv-brand-mark::after{content:"";position:absolute;width:5px;height:5px;border-radius:50%;background:#fff;box-shadow:0 0 0 4px rgba(255,255,255,.12)}
.atv-brand-mark i{position:absolute;inset:auto 6px 6px auto;width:7px;height:7px;border:0;border-radius:6px 6px 6px 1px;background:#e4232e;transform:none;box-shadow:-6px -6px 0 -2px #f3b719}

.atv-nav-panel {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline-start: auto;
}

.atv-nav-panel > a:not(.atv-button) {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 10px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-size: .94rem;
  font-weight: 600;
  transition: background .18s, color .18s;
}
.atv-nav-panel > a:not(.atv-button):hover { background: var(--paper-3); color: var(--graphite); }

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

.atv-menu-button {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  padding: 0;
}
.atv-menu-button span {
  display: block;
  width: 18px; height: 2px;
  margin: 3px auto;
  background: var(--graphite);
  border-radius: 2px;
}

.atv-language {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  direction: ltr;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--paper-2);
}
.atv-language-option {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 10px;
  font-size: .8rem;
  font-weight: 700;
  color: var(--muted);
  transition: background .18s, color .18s;
}
.atv-language-option:hover { background: #fff; color: var(--graphite); }
.atv-language-option.is-active { background: #fff; color: var(--graphite); box-shadow: 0 2px 8px rgba(16, 23, 34, .12); }

/* --------------------------------------------------------------- buttons */

.atv-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 700;
  font-size: .95rem;
  text-align: center;
  cursor: pointer;
  transition: background .18s, border-color .18s, color .18s, transform .18s, box-shadow .18s;
}
.atv-button-small { min-height: 40px; padding: 9px 16px; font-size: .88rem; }
.atv-button-lg { min-height: 54px; padding: 15px 26px; font-size: 1rem; }

.atv-button-primary {
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: #fff;
  box-shadow: 0 8px 22px rgba(30,86,176,.26);
}
.atv-button-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(30,86,176,.34); }

.atv-button-ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--graphite);
}
.atv-button-ghost:hover { border-color: #c9cfdb; background: var(--paper-2); }

/* ------------------------------------------------------------------ hero */

.atv-hero {
  background: linear-gradient(180deg, var(--paper-2), #fff);
  border-block-end: 1px solid var(--line);
  padding-block: 26px 40px;
}
.atv-hero h1 {
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  margin-block: 10px 12px;
  color: var(--graphite);
}
.atv-hero-lead {
  margin: 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.03rem;
}

.atv-breadcrumb { font-size: .85rem; color: var(--muted); }
.atv-breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0; padding: 0;
}
.atv-breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }
.atv-breadcrumb li + li::before {
  content: "/";
  color: #b7bfcd;
}
.atv-breadcrumb a:hover { color: var(--graphite); text-decoration: underline; }
.atv-breadcrumb [aria-current] { color: var(--graphite); font-weight: 600; }

/* ------------------------------------------------------- currency switch */

.atv-currency { margin-block-start: 20px; }
.atv-currency-label {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-block-end: 7px;
}
.atv-currency-options {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.atv-currency-option {
  min-height: 38px;
  min-width: 58px;
  padding: 8px 14px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  font-size: .86rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: background .18s, color .18s;
}
.atv-currency-option:hover { background: var(--paper-2); color: var(--graphite); }
.atv-currency-option.is-active { background: var(--graphite); color: #fff; }

.atv-currency-note {
  margin: 9px 0 0;
  max-width: 60ch;
  font-size: .8rem;
  line-height: 1.55;
  color: var(--muted);
}

/* ------------------------------------------------------------ plan grid */

.atv-grid-section { padding-block: 40px 8px; }

.atv-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.atv-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 20px 20px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}

@media (hover: hover) {
  .atv-card:hover {
    transform: translateY(-3px);
    border-color: #d7dbe4;
    box-shadow: var(--shadow-md);
  }
}

.atv-card-badge {
  position: absolute;
  inset-block-start: 14px;
  inset-inline-end: 14px;
  z-index: 2;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .02em;
  white-space: nowrap;
}
.atv-badge-popular { background: var(--graphite); color: #fff; }
.atv-badge-best-value { background: var(--gold-soft); color: #7a5507; border: 1px solid #e8d29a; }
.atv-badge-long-term { background: var(--paper-3); color: var(--muted); }

.atv-card-media {
  display: block;
  background: linear-gradient(170deg, var(--paper-2), #fff 62%);
  border-radius: var(--radius-sm);
  padding: 8px;
}
.atv-plan-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.atv-card-duration {
  margin: 16px 0 0;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--graphite);
  letter-spacing: -.01em;
}

.atv-card-title {
  margin-block: 4px 0;
  font-size: .93rem;
  font-weight: 600;
  color: var(--muted);
}
.atv-card-title a:hover { color: var(--graphite); text-decoration: underline; }

.atv-card-benefit {
  margin: 9px 0 0;
  font-size: .89rem;
  line-height: 1.6;
  color: var(--muted);
}

.atv-card-price { margin-block-start: auto; padding-block-start: 16px; }
.atv-card-actions {
  display: grid;
  gap: 9px;
  margin-block-start: 16px;
}

/* ----------------------------------------------------------------- price */

.atv-price {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin: 0;
  direction: ltr;
}
.atv-rtl .atv-price { justify-content: flex-start; }
.atv-price-value {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--graphite);
  letter-spacing: -.02em;
}
.atv-price-currency { font-size: .82rem; font-weight: 700; color: var(--muted); }
.atv-price-confirm { font-size: 1rem; font-weight: 700; color: var(--muted); }

.atv-price-meta {
  margin: 5px 0 0;
  font-size: .82rem;
  color: var(--muted);
}
.atv-price-monthly { font-weight: 700; color: var(--ink); unicode-bidi: isolate; }
.atv-price-saving {
  display: inline-block;
  margin-block-start: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #eef8f1;
  color: #17663a;
  font-size: .76rem;
  font-weight: 700;
}

/* ----------------------------------------------------------------- trust */

.atv-trust {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 32px 0 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
}
.atv-trust li {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  font-size: .85rem;
  font-weight: 600;
  color: var(--graphite);
}
.atv-trust svg {
  flex: 0 0 auto;
  width: 22px; height: 22px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ------------------------------------------------------------- comparison */

.atv-compare { padding-block: 52px 8px; }
.atv-compare h2, .atv-faq h2, .atv-related h2, .atv-nextsteps h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  color: var(--graphite);
}
.atv-compare-lead { margin: 9px 0 20px; max-width: 68ch; color: var(--muted); font-size: .95rem; }

.atv-table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.atv-compare-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: .9rem;
}
.atv-compare-table th, .atv-compare-table td {
  padding: 13px 16px;
  text-align: start;
  border-block-end: 1px solid var(--line);
  white-space: nowrap;
}
.atv-compare-table thead th {
  background: var(--paper-2);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
}
.atv-compare-table tbody th { font-weight: 700; color: var(--graphite); }
.atv-compare-table tbody th a:hover { color: var(--gold); text-decoration: underline; }
.atv-compare-table tbody tr:last-child th,
.atv-compare-table tbody tr:last-child td { border-block-end: 0; }
.atv-compare-table td span { unicode-bidi: isolate; }

/* ------------------------------------------------------------------- faq */

.atv-faq { padding-block: 52px 60px; }
.atv-faq-list {
  margin-block-start: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}
.atv-faq details + details { border-block-start: 1px solid var(--line); }
.atv-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 17px 20px;
  font-weight: 700;
  font-size: .96rem;
  cursor: pointer;
  list-style: none;
  color: var(--graphite);
}
.atv-faq summary::-webkit-details-marker { display: none; }
.atv-faq summary span {
  flex: 0 0 auto;
  width: 11px; height: 11px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform .2s;
}
.atv-faq details[open] summary span { transform: rotate(-135deg); }
.atv-faq details p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--muted);
  font-size: .92rem;
}

/* -------------------------------------------------------- product detail */

.atv-product { padding-block: 24px 8px; }
.atv-product-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
  margin-block-start: 18px;
}
.atv-product-media {
  position: sticky;
  inset-block-start: 96px;
  padding: 22px;
  background: linear-gradient(170deg, var(--paper-2), #fff 65%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.atv-product-info { min-width: 0; }
.atv-product-kicker {
  margin: 0;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
}
.atv-product-info h1 {
  margin-block: 8px 6px;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  color: var(--graphite);
}
.atv-product-duration {
  display: inline-block;
  margin: 0;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--graphite);
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
}
.atv-product-lead { margin: 14px 0 0; color: var(--muted); font-size: 1rem; max-width: 56ch; }
.atv-product-price { margin-block-start: 18px; }
.atv-product-price .atv-price-value { font-size: 2.4rem; }
.atv-product .atv-trust { margin-block-start: 20px; }
.atv-product-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 11px;
  margin-block-start: 22px;
}

.atv-features-heading { margin-block: 32px 12px; font-size: 1.1rem; color: var(--graphite); }
.atv-features {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 20px;
  margin: 0; padding: 0;
}
.atv-features li {
  position: relative;
  padding-inline-start: 26px;
  font-size: .91rem;
  color: var(--ink);
}
.atv-features li::before {
  content: "";
  position: absolute;
  inset-block-start: .45em;
  inset-inline-start: 0;
  width: 15px; height: 8px;
  border-left: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
}

.atv-product-note {
  margin: 24px 0 0;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--paper-2);
  border: 1px solid var(--line);
  font-size: .86rem;
  color: var(--muted);
}

.atv-setup { margin-block-start: 48px; padding-block: clamp(42px, 6vw, 72px); background: var(--paper-2); border-block: 1px solid var(--line); }
.atv-setup h2 { margin-block-end: 22px; }
.atv-setup-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.atv-setup-grid article { position: relative; padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.atv-setup-grid span { display: grid; width: 34px; height: 34px; place-items: center; margin-block-end: 15px; border-radius: 50%; background: var(--graphite); color: #fff; font-weight: 800; }
.atv-setup-grid h3 { margin: 0 0 8px; font-size: 1.05rem; color: var(--graphite); }
.atv-setup-grid p { margin: 0; color: var(--muted); font-size: .9rem; }

/* --------------------------------------------------- related / next steps */

.atv-related { padding-block: 56px 0; }
.atv-related h2 { margin-block-end: 20px; }
.atv-grid-related { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.atv-nextsteps { padding-block: 52px 60px; }
.atv-nextsteps-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-block-start: 16px;
}
.atv-nextsteps-links a {
  padding: 10px 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: .89rem;
  font-weight: 600;
  color: var(--graphite);
  transition: border-color .18s, background .18s;
}
.atv-nextsteps-links a:hover { border-color: var(--gold); background: var(--gold-soft); }

/* ---------------------------------------------------------------- footer */

.atv-footer {
  margin-block-start: 20px;
  padding-block: 46px 26px;
  background: var(--graphite);
  color: #c3cbd9;
}
.atv-footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 30px;
}
.atv-footer h2 {
  margin-block-end: 13px;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
}
.atv-footer nav { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.atv-footer nav a { font-size: .9rem; color: #b0bacb; transition: color .18s; }
.atv-footer nav a:hover { color: var(--gold-2); }

.atv-footer-controls { min-width: 0; }
.atv-footer-language { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .14); }
.atv-footer-language .atv-language-option { color: #b0bacb; }
.atv-footer-language .atv-language-option:hover,
.atv-footer-language .atv-language-option.is-active { background: #fff; color: var(--graphite); }

.atv-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-block-start: 34px;
  padding-block-start: 20px;
  border-block-start: 1px solid rgba(255, 255, 255, .12);
  font-size: .8rem;
  color: #8d97a8;
}

/* ------------------------------------------------------ premium info pages */

.atv-page-hero {
  padding-block: clamp(28px, 6vw, 72px) clamp(34px, 7vw, 82px);
  background:
    radial-gradient(circle at 12% 20%, rgba(184, 137, 58, .14), transparent 32%),
    linear-gradient(150deg, #0b1b33, #152945);
  color: #fff;
}
.atv-page-hero .atv-breadcrumb a, .atv-page-hero .atv-breadcrumb span { color: #c8d1df; }
.atv-page-hero .atv-breadcrumb li + li::before { color: #74839a; }
.atv-page-hero .atv-product-kicker { color: var(--gold-2); }
.atv-page-hero h1 { margin: 10px 0 14px; max-width: 18ch; font-size: clamp(2rem, 5vw, 4rem); line-height: 1.08; color: #fff; }
.atv-page-hero p:last-child { max-width: 66ch; margin: 0; color: #d5dce7; font-size: clamp(1rem, 1.8vw, 1.18rem); }
.atv-page-content { padding-block: clamp(36px, 7vw, 80px); }
.atv-info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.atv-info-card { padding: clamp(22px, 3vw, 34px); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.atv-info-card h2 { margin: 0 0 10px; font-size: clamp(1.08rem, 2vw, 1.35rem); color: var(--graphite); }
.atv-info-card p { margin: 0; color: var(--muted); line-height: 1.85; }
.atv-page-cta { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-block-start: 22px; padding: clamp(24px, 4vw, 42px); border-radius: var(--radius); background: var(--paper-2); border: 1px solid var(--line); }
.atv-page-cta h2 { margin: 0 0 6px; color: var(--graphite); }
.atv-page-cta p { margin: 0; color: var(--muted); }
.atv-page-cta .atv-button { flex: 0 0 auto; }

/* ------------------------------------------------ app-sized bottom nav */

.atv-bottom-nav { display: none; }

/* ----------------------------------------------------------- breakpoints */

@media (max-width: 1024px) {
  .atv-grid, .atv-grid-related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .atv-product-grid { grid-template-columns: 1fr; }
  .atv-product-media { position: static; max-width: 520px; margin-inline: auto; }
  .atv-footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .atv-setup-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  /* Comfortable touch targets once the layout is finger-driven. */
  .atv-currency-option { min-height: 44px; }
  .atv-language-option { min-height: 44px; padding: 8px 12px; }

  .atv-nav-panel {
    position: fixed;
    inset-block-start: 74px;
    inset-inline: 12px;
    z-index: 120;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    max-height: calc(100dvh - 92px);
    overflow-y: auto;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-md);
  }
  .atv-nav-panel.is-open { display: flex; }
  .atv-nav-panel > a:not(.atv-button) { justify-content: flex-start; font-size: 1rem; }
  .atv-nav-panel .atv-language { align-self: flex-start; margin-block-start: 6px; }
  .atv-nav-cta-mobile { display: inline-flex; margin-block-start: 6px; }
  .atv-nav-actions > .atv-button { display: none; }
  .atv-menu-button { display: block; }
  .atv-nav-actions { margin-inline-start: auto; }
  .atv-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .atv-features { grid-template-columns: 1fr; }
  .atv-store { padding-block-end: calc(74px + env(safe-area-inset-bottom)); }
  .atv-bottom-nav {
    position: fixed;
    inset-inline: 10px;
    inset-block-end: calc(8px + env(safe-area-inset-bottom));
    z-index: 110;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    min-height: 62px;
    padding: 5px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 18px;
    background: rgba(11,27,51,.96);
    box-shadow: 0 14px 40px rgba(4,12,24,.28);
    backdrop-filter: blur(16px);
  }
  .atv-bottom-nav a { display: flex; min-width: 0; min-height: 52px; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: 13px; color: #d5dce7; font-size: .68rem; font-weight: 700; }
  .atv-bottom-nav a:hover, .atv-bottom-nav a:active { background: rgba(255,255,255,.09); color: #fff; }
  .atv-bottom-nav svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .atv-bottom-nav .atv-bottom-order { background: var(--gold); color: #fff; }
  .atv-bottom-nav .atv-bottom-order:hover, .atv-bottom-nav .atv-bottom-order:active { background: var(--gold-2); color: var(--graphite); }
}

@media (max-width: 680px) {
  :root { --shell: min(100% - 28px, 1180px); }
  .atv-grid, .atv-grid-related { grid-template-columns: 1fr; gap: 18px; }
  .atv-card { padding: 16px 16px 18px; }
  .atv-card-media { padding: 4px; }
  .atv-plan-figure img { max-height: 320px; object-fit: contain; margin-inline: auto; }
  .atv-card-actions { gap: 10px; }
  .atv-button { min-height: 50px; width: 100%; }
  .atv-product-actions { grid-template-columns: 1fr; }
  .atv-footer-grid { grid-template-columns: 1fr; gap: 0; }
  .atv-footer-grid nav,.atv-footer-controls { padding-block: 18px; border-bottom: 1px solid rgba(255,255,255,.12); }
  .atv-footer-grid a,.atv-footer-controls button { width: 100%; max-width: 100%; overflow-wrap: anywhere; }
  .atv-hero { padding-block: 20px 30px; }
  .atv-compare { padding-block: 40px 4px; }
  .atv-faq, .atv-nextsteps { padding-block: 40px 46px; }
  .atv-related { padding-block: 44px 0; }
  .atv-info-grid { grid-template-columns: 1fr; }
  .atv-setup-grid { grid-template-columns: 1fr; }
  .atv-page-cta { align-items: stretch; flex-direction: column; gap: 18px; }
  .atv-page-cta .atv-button { width: 100%; }
}

/* Mobile comparison cards — 2.9.3. No horizontal table dragging required. */
@media (max-width: 680px) {
  .atv-table-scroll { overflow: visible; border: 0; background: transparent; }
  .atv-compare-table { display: block; width: 100%; min-width: 0; }
  .atv-compare-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .atv-compare-table tbody { display: grid; gap: 12px; }
  .atv-compare-table tr { display: grid; grid-template-columns:1fr 1fr; gap: 10px 14px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background:#fff; box-shadow:0 8px 22px rgba(15,30,51,.06); }
  .atv-compare-table th,.atv-compare-table td { display: grid; gap: 3px; min-width: 0; padding: 0; border: 0; white-space: normal; overflow-wrap:anywhere; }
  .atv-compare-table tbody th { grid-column:1/-1; padding-bottom:10px; border-bottom:1px solid var(--line); font-size:1rem; }
  .atv-compare-table td::before { content:attr(data-label); color:var(--muted); font-size:.7rem; font-weight:800; text-transform:uppercase; letter-spacing:.04em; }
  .atv-compare-table td:last-child { grid-column:1/-1; }
}

@media (max-width: 400px) {
  :root { --shell: min(100% - 22px, 1180px); }
  .atv-trust { grid-template-columns: 1fr; }
  .atv-currency-options { width: 100%; }
  .atv-currency-option { flex: 1; min-width: 0; }
}

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

/* ---------------------------------------------------------------- flags */

/* Real artwork, not emoji: Windows has no regional-indicator glyphs, so a flag
   emoji renders there as the two letters of the country code. */
.language-flag {
  display: block;
  width: 21px; height: 14px;
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(16, 23, 34, .16);
}
.atv-footer-language .language-flag { box-shadow: 0 0 0 1px rgba(255, 255, 255, .35); }

/* Site-wide native app dock and identity hardening — 2.9.4.9. */
@media (max-width: 900px) {
  html,body.atv-store{overscroll-behavior-y:none}
  body.atv-store{padding-block-end:calc(72px + env(safe-area-inset-bottom))}
  .atv-bottom-nav{inset-inline:0;inset-block-end:0;z-index:180;min-height:72px;padding:6px 8px calc(6px + env(safe-area-inset-bottom));border-width:1px 0 0;border-radius:20px 20px 0 0;background:#0b1b33;box-shadow:0 -10px 34px rgba(4,12,24,.28);backdrop-filter:none;transform:translateZ(0);isolation:isolate}
  .atv-bottom-nav::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;background:#0b1b33}
  .atv-bottom-nav .atv-bottom-order{background:#1e56b0;color:#fff}
}

@media (max-width: 680px) {
  .atv-footer,.atv-footer button,.atv-footer a{font-family:"Cairo",Tahoma,"Segoe UI",Arial,sans-serif}
  .atv-footer nav a,.atv-footer-controls button,.atv-footer-bottom{font-size:16px;font-weight:600;line-height:1.65}
}

/* Unified premium navigation — 2.9.4. Mirrors correctly by document language. */
@media (max-width: 900px) {
  body.atv-store.menu-open::before { content:""; position:fixed; inset:74px 0 0; z-index:99; background:rgba(5,14,27,.56); backdrop-filter:blur(4px); }
  .atv-nav { display:grid; grid-template-columns:44px minmax(0,1fr) 44px; gap:12px; direction:ltr; }
  .atv-brand { grid-row:1; max-width:100%; overflow:hidden; }
  .atv-brand span:last-child { overflow:hidden; text-overflow:ellipsis; }
  .atv-nav-actions { grid-row:1; width:44px; margin:0; position:relative; z-index:122; }
  .atv-menu-button[aria-expanded="true"] span:first-child { transform:translateY(2.5px) rotate(45deg); }
  .atv-menu-button[aria-expanded="true"] span:last-child { transform:translateY(-2.5px) rotate(-45deg); }
  html[dir="rtl"] .atv-nav-actions { grid-column:3; justify-self:end; }
  html[dir="rtl"] .atv-brand { grid-column:1/3; justify-self:start; }
  html[dir="ltr"] .atv-nav-actions { grid-column:1; justify-self:start; }
  html[dir="ltr"] .atv-brand { grid-column:2/4; justify-self:end; }
  .atv-nav-panel { inset-inline:auto; width:min(370px,calc(100% - 24px)); padding:18px; border-color:#d9e5f5; border-radius:22px; background:#fff; box-shadow:0 28px 80px rgba(5,14,27,.28); }
  html[dir="rtl"] .atv-nav-panel { right:12px; left:auto; text-align:right; }
  html[dir="ltr"] .atv-nav-panel { left:12px; right:auto; text-align:left; }
  html[dir="rtl"] .atv-brand,html[dir="rtl"] .atv-nav-panel { direction:rtl; }
  html[dir="ltr"] .atv-brand,html[dir="ltr"] .atv-nav-panel { direction:ltr; }
  .atv-nav-panel > a:not(.atv-button) { justify-content:flex-start; min-height:52px; padding:12px 14px; border-radius:13px; color:#243b59; font-weight:750; }
  .atv-nav-panel > a:not(.atv-button):hover,.atv-nav-panel > a:not(.atv-button):focus-visible { background:#eef5ff; color:var(--gold); }
  .atv-nav-panel .atv-language { align-self:stretch; display:grid; grid-template-columns:1fr 1fr; margin-top:8px; }
  .atv-language-option { justify-content:center; }
  .atv-nav-cta-mobile { width:100%; border-radius:999px; }
}
