/* لمّة · Lamma TV: الأنماط كاملة */

:root {
  --bg: #0c0a0a;
  --bg-2: #121010;
  --surface: #1a1616;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .17);
  --text: #f3eeeb;
  --muted: #b1a7a2;
  --dim: #8a817c;

  /* مرجاني الشعار نفسه (اعتُمد ٣١ أكتوبر بدل الأخضر؛ tools/brand-recolor.py يلوّن الشعار والأيقونات به) */
  --accent: #ff6a4d;
  --accent-hover: #ff8d75;
  --accent-ink: #2a0c05;
  --accent-ink-2: #5a2314;
  --gold: #e9c46a;
  --live: #ff3355;

  --r: 14px;
  --cw: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --ease: cubic-bezier(.16, 1, .3, 1);

  /* Rubik مقتطَع للحروف والأرقام اللاتينية فقط، فالعربي يسقط للخط التالي */
  --f-head: "Rubik", "Alexandria", system-ui, sans-serif;
  --f-body: "Rubik", "IBM Plex Sans Arabic", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; color-scheme: dark; scrollbar-color: #332b2b var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.75 var(--f-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--accent);
  accent-color: var(--accent);
}
::selection { background: var(--accent); color: var(--accent-ink); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4 { font-family: var(--f-head); line-height: 1.3; margin: 0; font-weight: 800; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(var(--cw), 100% - var(--gutter) * 2); margin-inline: auto; }
.num { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.ico { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico-fill { fill: currentColor; stroke: none; }

/* ───── أزرار ───── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  height: 50px; padding: 0 24px; border-radius: 10px;
  font: 700 15.5px/1 var(--f-body); white-space: nowrap;
  transition: background .2s, border-color .2s, color .2s, transform .2s var(--ease);
}
.btn .ico { font-size: 19px; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); }
.btn-ink { background: var(--accent-ink); color: var(--accent); }
.btn-ink:hover { background: #000; }
/* كل زرّ يفتح واتساب بلون واتساب، فيميّزه الزائر عن زرّ الدفع المرجاني */
.btn-wa { background: #25d366; color: #05291a; }
.btn-wa:hover { background: #3fe07f; }
.btn-block { width: 100%; }

/* ───── الترويسة ───── */
.hdr { position: fixed; inset: 0 0 auto; z-index: 50; border-bottom: 1px solid transparent; transition: background .25s, border-color .25s; }
.hdr.is-stuck, .nav-open .hdr { background: var(--bg); border-color: var(--line); }
.hdr-in { display: flex; align-items: center; gap: 40px; height: 80px; }
.logo { display: inline-flex; flex: none; }
.logo img { height: 46px; width: auto; }
.logo-lg img { height: 60px; }
.nav { display: flex; gap: 30px; }
.nav a { position: relative; padding: 8px 0; font-weight: 500; font-size: 15.5px; color: #d1c9c7; transition: color .2s; }
.nav a::after { content: ""; position: absolute; inset: auto 0 0; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transition: transform .25s var(--ease); }
.nav a:hover { color: var(--text); }
.nav a:hover::after { transform: scaleX(1); }
.hdr-cta { height: 44px; padding: 0 20px; font-size: 15px; margin-inline-start: auto; }
.burger { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-2); place-items: center; }
.burger span, .burger span::before, .burger span::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--text); position: relative; transition: transform .25s var(--ease), background .2s; }
.burger span::before, .burger span::after { content: ""; position: absolute; inset-inline-start: 0; }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.nav-open .burger span { background: transparent; }
.nav-open .burger span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .burger span::after { transform: translateY(-6px) rotate(-45deg); }

/* ───── الواجهة: العنوان ثم الباقتان، وزرّ كل باقة يفتح الدفع ───── */
.hero { padding: 116px 0 72px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.hero-head { text-align: center; max-width: 820px; margin: 0 auto 32px; }
.hero h1 { font-size: clamp(32px, 4.2vw, 54px); line-height: 1.18; }
.hero-lede { font-size: clamp(16.5px, 1.4vw, 18.5px); color: var(--muted); max-width: 40em; margin: 18px auto 0; white-space: pre-line; }
.hero .pay-note { text-align: center; max-width: 46em; margin: 26px auto 0; }

/* مكان صورة لم تُرفع بعد: بنفس مقاس الصورة حتى لا يتغيّر التصميم حين تُضاف */
.is-slot { background: var(--bg-2); border: 1px solid var(--line-2); }
.slot-in { display: grid; place-content: center; justify-items: center; gap: 10px; width: 100%; height: 100%; padding: 12px; text-align: center; color: var(--dim); font-size: 13px; line-height: 1.4; }
.slot-in .ico { font-size: 26px; stroke-width: 1.4; color: #554a48; }
a.slot-in:hover { color: var(--accent); }
a.slot-in:hover .ico { color: var(--accent); }

/* ───── رأس القسم ───── */
.sec { padding: 104px 0; }
.sec + .sec { border-top: 1px solid var(--line); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 48px; align-items: end; margin-bottom: 48px; }
.sec-title { font-size: clamp(28px, 3.6vw, 46px); line-height: 1.2; }
.sec-sub { color: var(--muted); font-size: 16.5px; max-width: 34em; }
.inline-link { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; white-space: nowrap; }
.inline-link:hover { text-decoration-thickness: 2px; }

/* ───── المكتبة ───── */
.live-dot { display: inline-flex; align-items: center; gap: 6px; font: 700 12.5px/1 var(--f-body); color: var(--live); }
.live-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .25; } }

.tabs { display: flex; gap: 28px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.tab { padding: 0 0 14px; margin-bottom: -1px; border-bottom: 2px solid transparent; font-weight: 700; font-size: 16px; color: var(--muted); transition: color .2s, border-color .2s; }
.tab[aria-selected="true"] { color: var(--text); border-color: var(--accent); }
.tab:not([aria-selected="true"]):hover { color: var(--text); }

.rail { position: relative; }
.rail-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4 * 16px) / 5);
  gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px;
}
.rail-track::-webkit-scrollbar { display: none; }
.rail-track[hidden] { display: none; }
.rail-btn {
  position: absolute; top: 36%; z-index: 2; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: var(--text); color: var(--bg);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .45); transition: opacity .2s, background .2s;
}
.rail-btn:hover { background: var(--accent); }
.rail-btn .ico { font-size: 20px; }
.rail-btn.prev { inset-inline-start: -22px; }
.rail-btn.next { inset-inline-end: -22px; }
.rail-btn:disabled { opacity: 0; pointer-events: none; }
.card { scroll-snap-align: start; }
.poster { position: relative; aspect-ratio: 2 / 3; border-radius: 10px; overflow: hidden; background: var(--surface); }
.poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .poster img { transform: scale(1.04); }
.poster-text { display: grid; place-items: end start; padding: 16px; border: 1px solid var(--line); }
.poster-text span { font: 800 20px/1.3 "Alexandria", sans-serif; }
.badge { position: absolute; top: 10px; inset-inline-end: 10px; z-index: 2; font: 700 11px/1 "Rubik", sans-serif; padding: 5px 7px; border-radius: 5px; background: rgba(0, 0, 0, .72); }
.badge-live { inset-inline-end: auto; inset-inline-start: 10px; background: var(--live); font-family: var(--f-body); font-size: 11.5px; }
.card h3 { font-size: 16px; margin-top: 12px; }
.card p { font-size: 13.5px; color: var(--dim); margin-top: 2px; }
.poster.is-slot .slot-in { font-size: 13.5px; }

/* القنوات: شعار كل قناة في مستطيل، والشعار يُعرض كاملاً بلا قصّ */
.channels { margin-top: 64px; }
.channels-title { display: flex; align-items: center; gap: 14px; font-size: 22px; padding-bottom: 16px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.logos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px 16px; }
.ch-logo { position: relative; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: var(--surface); display: grid; place-items: center; }
.ch-logo img { width: 70%; height: 62%; object-fit: contain; }
.ch-logo .badge-live { top: 8px; inset-inline-start: 8px; }
.ch-logo.is-slot .slot-in .ico { font-size: 22px; }
.ch p { font-size: 14px; font-weight: 500; margin-top: 10px; color: var(--muted); }

/* ───── الباقات ───── */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding-top: 14px; align-items: stretch; }
/* بطاقتا الواجهة: أعرض، وصورتهما شريط 2:1 كي تبقى الأسعار في أول شاشة */
.plans-hero { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 980px; margin-inline: auto; padding-top: 16px; }
.plans-hero .plan-art img { aspect-ratio: 11 / 5; }
.plans-hero .plan-desc { min-height: 0; }
.plans-hero .feats { margin-top: 20px; }
.plans-hero .buy { margin-top: auto; padding-top: 24px; }
.plans-hero .buy .btn { margin-top: 0; }
.plan { position: relative; display: flex; flex-direction: column; padding: 34px 28px 32px; border: 1px solid var(--line-2); border-radius: 18px; background: var(--bg); }
.plan-top { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 32px; }
.plan h3 { font-size: 23px; display: flex; align-items: center; gap: 10px; }
.plan-tag { font: 800 11px/1 "Rubik", sans-serif; letter-spacing: .08em; padding: 5px 8px; border-radius: 5px; background: var(--gold); color: #241a03; }
.plan-flag { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 13px; font-weight: 700; line-height: 1; padding: 8px 13px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); }
.plan-desc { color: var(--muted); font-size: 15px; margin-top: 8px; min-height: 3.4em; text-align: center; text-wrap: balance; }
.price { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin-top: 18px; font-weight: 700; font-size: 18px; }
.price b { font: 800 60px/1 "Rubik", sans-serif; letter-spacing: -.03em; }
.price span { color: var(--muted); }
.price-note { font-size: 14px; color: var(--dim); margin-top: 10px; text-align: center; }
.plan .btn { margin-top: 26px; }
.plan-incl { font-weight: 700; font-size: 14.5px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); margin-bottom: 14px; }
.feats { display: grid; gap: 11px; }
.feats li { display: flex; gap: 10px; font-size: 15px; line-height: 1.55; }
.feats .ico { font-size: 18px; color: var(--accent); margin-top: 2px; }
.feats li span { min-width: 0; }

/* المميّزة: إطار أخضر وشارة فوق الحافّة، والذهبية بإطار ذهبي */
.plan.is-featured { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: linear-gradient(rgba(255, 106, 77, .08), transparent 40%), var(--bg); }
.plan.is-featured .price b { color: var(--accent); }
.plan.is-vip { border-color: rgba(233, 196, 106, .5); background: linear-gradient(rgba(233, 196, 106, .07), transparent 40%), var(--bg); }
.plan.is-vip .price b { color: var(--gold); }
.plan.is-vip .feats .ico { color: var(--gold); }
.pay-note { margin-top: 22px; color: var(--dim); font-size: 14.5px; }


/* ───── خطوات الاشتراك ───── */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 40px; counter-reset: step; }
.steps li { padding-top: 20px; border-top: 1px solid var(--line-2); }
.steps li::before { counter-increment: step; content: counter(step); display: block; font: 800 56px/1 "Rubik", sans-serif; color: var(--accent); margin-bottom: 18px; }
.steps h3 { font-size: 20px; }
.steps p { color: var(--muted); margin-top: 6px; }

/* ───── الآراء ───── */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 48px; }
.quote { margin: 0; padding-top: 20px; border-top: 1px solid var(--line-2); }
.quote blockquote { margin: 0; font-size: 18px; line-height: 1.7; }
.quote figcaption { margin-top: 16px; color: var(--dim); font-size: 14px; }
.quote figcaption b { color: var(--text); }
.admin-note { padding: 18px 22px; border: 1px dashed var(--line-2); border-radius: var(--r); color: var(--muted); font-size: 14.5px; }

/* ───── الأسئلة ───── */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px clamp(32px, 6vw, 96px); align-items: start; }
.faq-side { position: sticky; top: 108px; }
.ask { margin-top: 32px; padding: 24px; border-radius: var(--r); background: var(--surface); }
.ask h3 { font-size: 19px; }
.ask p { color: var(--muted); font-size: 15px; margin-top: 6px; }
.ask .btn { margin-top: 18px; }
.faq { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; font-weight: 700; font-size: 17px; transition: color .2s; }
.faq summary:hover { color: var(--accent); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { font-size: 20px; color: var(--accent); transition: transform .3s var(--ease); }
.faq details[open] summary .ico { transform: rotate(45deg); }
.faq details p { padding: 0 0 24px; color: var(--muted); font-size: 15.5px; max-width: 40em; }

/* ───── التذييل ───── */
.ftr { border-top: 1px solid var(--line); background: #080707; }
.ftr-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding: 64px 0 44px; }
.ftr-about p { color: var(--muted); font-size: 14.5px; margin-top: 18px; max-width: 320px; }
.ftr h4 { font-size: 15px; margin-bottom: 14px; }
.ftr li + li { margin-top: 9px; }
.ftr li a { color: var(--muted); font-size: 14.5px; transition: color .2s; }
.ftr li a:hover { color: var(--accent); }
.ftr-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 20px 0 28px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13.5px; }

/* زر واتساب العائم */
.wa-float {
  position: fixed; bottom: 20px; inset-inline-end: 20px; z-index: 40; width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 8px 22px rgba(0, 0, 0, .45);
  transition: transform .2s var(--ease);
}
.wa-float:hover { transform: scale(1.06); }
.wa-float .ico { font-size: 27px; }

/* ───── صفحات السياسات ───── */
.wrap-narrow { width: min(780px, 100% - var(--gutter) * 2); }
.page-hero { padding: 148px 0 40px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(30px, 4.4vw, 48px); }
.page-date { color: var(--dim); font-size: 14px; margin-top: 10px; }
.page-404 { min-height: 72vh; display: grid; align-items: center; border: 0; }
.page-404 .btn { margin-top: 28px; }
.big-404 { font: 800 clamp(72px, 14vw, 140px)/1 "Rubik", sans-serif; color: var(--accent); margin-bottom: 14px; }
.page-404 .sec-sub { margin-top: 10px; }
.prose { padding: 44px 0 80px; color: #dcd6d4; font-size: 17px; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: 22px; margin-top: 1.9em; color: var(--text); }
.prose ul, .prose ol { padding-inline-start: 1.3em; list-style: disc; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--accent); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ───── صفحة الباقة ───── */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.plan-more { display: block; text-align: center; margin-top: 14px; font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-2); transition: color .2s, text-decoration-color .2s; }
.plan-more:hover { color: var(--text); text-decoration-color: currentColor; }

.pp-hero { padding: 128px 0 80px; border-bottom: 1px solid var(--line); }
.pp-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.crumbs { display: flex; gap: 10px; font-size: 14.5px; color: var(--dim); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.pp-hero h1 { font-size: clamp(38px, 5.4vw, 68px); line-height: 1.15; display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.pp-hero h1 .plan-tag { font-size: 15px; padding: 7px 10px; }
.pp-lede { font-size: clamp(16.5px, 1.5vw, 19px); color: var(--muted); margin-top: 18px; max-width: 32em; }
.pp-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 24px; margin-top: 40px; max-width: 560px; }
.pp-keys div { padding-top: 14px; border-top: 1px solid var(--line-2); }
.pp-keys dt { font-size: 13.5px; color: var(--dim); }
.pp-keys dd { font: 800 24px/1.3 var(--f-head); margin-top: 4px; }
.is-featured .pp-keys dd { color: var(--accent); }
.is-vip .pp-keys dd { color: var(--gold); }
.pp-buy { padding: 34px 28px 28px; }
.pp-buy .price { margin-top: 0; }
.pp-buy .price b { font-size: 72px; }
.pp-buy .btn + .btn { margin-top: 10px; }
.pp-pay { font-size: 14px; color: var(--dim); margin-top: 18px; line-height: 1.6; }

.pp-incl { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 24px clamp(32px, 6vw, 96px); }
.pp-incl .plan-incl { margin-top: 6px; padding-top: 0; border: 0; }
.feats-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 32px; }
.feats-2 li { font-size: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.is-vip .feats-2 .ico { color: var(--gold); }

.compare-wrap { position: relative; overflow-x: auto; border: 1px solid var(--line-2); border-radius: 18px; }
.compare { width: 100%; min-width: 600px; border-collapse: collapse; font-size: 15.5px; }
.compare th, .compare td { padding: 16px 20px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare tbody th { text-align: start; font-weight: 500; color: var(--muted); width: 34%; }
.compare thead th { font: 800 18px/1.3 var(--f-head); padding-top: 22px; padding-bottom: 18px; }
.compare thead th a:hover { color: var(--accent); }
.compare thead small { display: block; font: 500 13px/1.4 var(--f-body); color: var(--dim); margin-top: 4px; }
.compare .is-current { background: rgba(255, 255, 255, .035); }
.is-featured .compare .is-current { background: rgba(255, 106, 77, .08); }
.is-vip .compare .is-current { background: rgba(233, 196, 106, .07); }
.compare .ico { font-size: 20px; color: var(--accent); margin-inline: auto; }
.is-vip .compare td.is-current .ico { color: var(--gold); }
.compare .no { display: block; width: 14px; height: 2px; border-radius: 2px; background: #433b3a; margin-inline: auto; }
.compare .row-price th { color: var(--text); font-weight: 700; }
.compare .row-price b { font: 800 22px/1 "Rubik", sans-serif; margin-inline-end: 4px; }

.pp-faq-more { display: inline-block; margin-top: 22px; }
.pp-others { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.pp-other { display: grid; gap: 6px; padding: 28px; border: 1px solid var(--line-2); border-radius: 18px; transition: border-color .2s, background .2s; }
.pp-other:hover { border-color: var(--text); background: rgba(255, 255, 255, .02); }
.pp-other.is-featured:hover { border-color: var(--accent); }
.pp-other.is-vip:hover { border-color: var(--gold); }
.pp-other-name { font: 800 22px/1.3 var(--f-head); }
.pp-other-desc { color: var(--muted); font-size: 15px; }
.pp-other-price { margin-top: 10px; font-weight: 700; }
.pp-other-price b { font: 800 34px/1 "Rubik", sans-serif; margin-inline-end: 4px; }
.pp-other.is-featured .pp-other-price b { color: var(--accent); }
.pp-other.is-vip .pp-other-price b { color: var(--gold); }
.pp-other-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 14.5px; font-weight: 700; color: var(--accent); }
.pp-other.is-vip .pp-other-go { color: var(--gold); }

/* ───── الاستجابة ───── */
@media (max-width: 1080px) {
  .rail-track { grid-auto-columns: calc((100% - 3 * 14px) / 4); gap: 14px; }
  .logos { grid-template-columns: repeat(3, 1fr); }
  .nav { gap: 22px; }
  .hdr-in { gap: 28px; }
}

@media (max-width: 900px) {
  .nav {
    position: fixed; inset: 72px 0 auto; flex-direction: column; gap: 0; padding: 8px var(--gutter) 20px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    opacity: 0; pointer-events: none; transition: opacity .2s;
  }
  .nav a { padding: 15px 0; font-size: 17px; color: var(--text); border-bottom: 1px solid var(--line); }
  .nav-open .nav { opacity: 1; pointer-events: auto; }
  .burger { display: grid; }
  .hdr-in { gap: 12px; height: 72px; }
  .hero { padding: 112px 0 64px; }
  .sec { padding: 80px 0; }
  .sec-head { grid-template-columns: 1fr; margin-bottom: 36px; }
  .plans { gap: 12px; }
  .plan { padding: 30px 18px 26px; }
  .plan-art { margin: -30px -18px 0; }
  .price b { font-size: 46px; }
  .faq-grid { grid-template-columns: 1fr; }
  .pp-hero { padding: 108px 0 56px; }
  .pp-grid, .pp-incl { grid-template-columns: 1fr; }
  .pp-buy { max-width: 460px; }
  .faq-side { position: static; }
  .ftr-grid { grid-template-columns: 1fr 1fr; }
  .ftr-about { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .logos { grid-template-columns: repeat(3, 1fr); gap: 18px 10px; }
  .channels { margin-top: 48px; }
  /* المربّع أصغر من أن يتّسع للشارة والشعار، وعنوان القسم يقول «مباشر الآن»: الشارة نقطة حمراء */
  .ch-logo .badge-live { top: 7px; inset-inline-start: 7px; width: 8px; height: 8px; padding: 0; border-radius: 50%; font-size: 0; }
  .ch-logo img { width: 84%; height: 64%; }
  .quotes { grid-template-columns: 1fr; gap: 32px; }
  /* أربع خطوات قصيرة تتّسع عمودين على الجوال */
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
  .rail-track { grid-auto-columns: calc((100% - 2 * 12px) / 2.4); gap: 12px; }
  .rail-btn { display: none; }
  .plans { grid-template-columns: minmax(0, 1fr); gap: 30px; max-width: 520px; margin-inline: auto; }
  .feats-2 { grid-template-columns: 1fr; gap: 14px; }
  .pp-others { grid-template-columns: 1fr; gap: 14px; }
  .pp-keys dd { font-size: 20px; }
  .compare th, .compare td { padding: 14px 12px; }
  .plan { padding: 34px 24px 30px; }
  .plan-art { margin: -34px -24px 0; }
  .plan.is-featured { order: -1; }
  .plan-desc { min-height: 0; }
  .price b { font-size: 56px; }
  .tabs { gap: 22px; }
  .ftr-bottom { padding-bottom: 90px; }
}

@media (max-width: 420px) {
  .hdr-cta { display: none; }
  .burger { margin-inline-start: auto; }
  .logo img { height: 40px; }
}

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

/* الجدول على الجوال يتمرّر أفقياً، وعمود الميزة ثابت */
@media (max-width: 760px) {
  .compare tbody th, .compare thead th:first-child { position: sticky; inset-inline-start: 0; z-index: 1; background: var(--bg); width: 132px; min-width: 132px; font-size: 14px; }
}

/* نموذج الشراء في صفحة الباقة */
.buy { display: grid; gap: 12px; text-align: start; }
.fld { display: grid; gap: 6px; font-size: 14px; color: var(--dim); }
.fld input { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg); color: var(--text); font: inherit; font-size: 16px; }
.fld input[dir="ltr"] { text-align: left; }
.fld input:focus { outline: none; border-color: var(--accent); }
.fld input:user-invalid { border-color: #ff5a6e; }
.buy .btn { margin-top: 6px; }
.buy-err { margin: 0; padding: 10px 14px; border-radius: 12px; background: rgba(255, 90, 110, .12); color: #ffb3bd; font-size: 14px; line-height: 1.6; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.buy + .btn { margin-top: 10px; }

/* صفحة نتيجة الدفع */
.pay-box { max-width: 640px; text-align: center; padding-block: 40px; }
.pay-box h1 { font-size: clamp(30px, 4.4vw, 46px); }
.pay-box p { color: var(--dim); font-size: 18px; line-height: 1.8; margin: 16px auto 28px; }
.pay-icon { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); margin-bottom: 22px; }
.pay-icon svg { width: 34px; height: 34px; }
.pay-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* صور الباقات (tools/plan-art.py): بوستر يملأ رأس البطاقة ويذوب في لونها، واسم الباقة فوق ذيله */
.plan-art { display: block; position: relative; margin: -34px -28px 0; border-radius: 17px 17px 0 0; overflow: hidden; }
.plan-art img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s ease; }
.plan-art:hover img { transform: scale(1.03); }
.plan-art::after { content: ""; position: absolute; inset: auto 0 0; height: 55%; background: linear-gradient(to bottom, transparent, var(--bg) 90%); }
.plan-art + .plan-top { margin-top: -64px; }
/* الاسم والوصف فوق التدرّج؛ و.plan-top نفسه يبقى غير مموضَع كي تظلّ شارة «الأكثر طلباً» عند حافّة البطاقة */
.plan-top h3, .plan-desc { position: relative; z-index: 1; }
.plan-art ~ .plan-top h3 { font-size: 28px; }
.pp-art { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; margin-top: 28px; border-radius: 18px; border: 1px solid var(--line); }
@media (prefers-reduced-motion: reduce) { .plan-art img { transition: none; } }

/* إيصال الدفع: يُصوَّر ويُرسل على واتساب، فرقم الطلب أكبر ما فيه */
.receipt { max-width: 440px; margin: 0 auto 28px; border: 1px solid var(--line-2); border-radius: 18px; padding: 8px 22px; text-align: start; background: var(--bg-2); }
.receipt div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.receipt div:first-child { border-top: 0; }
.receipt dt { color: var(--dim); font-size: 15px; }
.receipt dd { margin: 0; font-weight: 700; text-align: end; overflow-wrap: anywhere; }
.receipt .receipt-no { padding: 18px 0; }
.receipt .receipt-no dd { font: 800 40px/1 "Rubik", sans-serif; color: var(--accent); }
.pay-box .pay-hint { font-size: 14px; margin: 14px auto 0; }
.receipt .receipt-pid dt { flex-shrink: 0; }
.receipt .receipt-pid dd { font-size: 13.5px; white-space: nowrap; letter-spacing: -.01em; }

.plan .buy { gap: 10px; }
.buy-test { margin: 0; font-size: 13px; color: var(--dim); text-align: center; }
.pay-box .buy-test { margin: -14px auto 24px; }

/* صفحة الدفع داخل الموقع: ملخّص الباقة بجانب نموذج ماي فاتورة، وعلى الجوال الملخّص فوق */
.co { padding: 112px 0 80px; }
.co-title { font-size: clamp(28px, 3.4vw, 42px); margin: 10px 0 28px; }
.co-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px; align-items: start; }
.co-sum { padding: 0 0 26px; overflow: hidden; }
.co-art { display: block; width: 100%; height: auto; aspect-ratio: 11 / 5; object-fit: cover; }
.co-sum > :not(.co-art) { margin-inline: 26px; }
.co-label { margin-top: 18px; font: 800 22px/1.3 var(--f-head); }
.co-sum .price { margin-top: 8px; }
.co-sum .feats { margin-top: 18px; }
.co-change { display: inline-block; margin-top: 18px; font-size: 14px; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; }
.co-change:hover { color: var(--text); }
.co-h { font-size: 20px; margin-bottom: 14px; }
.co-box { background: #fff; color: #1b1716; border-radius: 18px; padding: 22px; min-height: 260px; }
.mfload { margin: 0; padding: 90px 0; text-align: center; color: #6b625e; font-size: 15px; }
.co-msg { margin-top: 14px; padding: 12px 16px; border-radius: 12px; font-size: 15px; background: var(--surface); border: 1px solid var(--line-2); }
.co-msg.is-err { border-color: rgba(255, 106, 77, .55); color: #ffb3a3; }
.co-msg.is-wait { color: var(--muted); }
.co .buy-test { margin-top: 12px; }
.co-next { margin: 22px 0 0; padding-inline-start: 20px; display: grid; gap: 6px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.co-ask { margin-top: 20px; }
.co-safe { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 13.5px; color: var(--dim); }
.co-safe .ico { font-size: 16px; flex: none; }
@media (max-width: 900px) {
  .co-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .co-art, .co-sum .feats { display: none; }
  .co-sum { padding-top: 22px; }
  .co-label { margin-top: 0; }
}
@media (max-width: 760px) {
  .co { padding: 92px 0 64px; }
  .co-box { padding: 14px; border-radius: 14px; }
  .co-sum > :not(.co-art) { margin-inline: 18px; }
}
