/* =====================================================================
   البوصلة | ALBOUSALA — نظام التصميم
   الفكرة: صفحات هادئة كورق عاجي، يتوسطها «ختم» البوصلة؛ الأخضر الداكن
   للنص والأزرار والذهبي للخطوط الدقيقة والإشارات فقط.
   ===================================================================== */

/* ---------- الخطوط ----------
   1) «ثمانية»: عند توفر ملفات الخط المرخّصة، ضعها في assets/fonts/ بهذه الأسماء
      وسيستخدمها الموقع تلقائياً قبل أي خط آخر (لا حاجة لتعديل آخر):
        Thmanyah-Regular.woff2 / Thmanyah-Bold.woff2
   2) خط العناوين المرفق حالياً: The Year of Handicrafts (وزن واحد).
   3) نص المحتوى: IBM Plex Sans Arabic من Google Fonts (بديل مؤقت). */
/* فعّل الكتلة التالية (احذف علامتي التعليق) بعد وضع ملفات ثمانية في assets/fonts/
@font-face {
  font-family: "Thmanyah";
  src: url("../fonts/Thmanyah-Regular.woff2") format("woff2");
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: "Thmanyah";
  src: url("../fonts/Thmanyah-Bold.woff2") format("woff2");
  font-weight: 700; font-display: swap;
}
*/
@font-face {
  font-family: "Albousala Display";
  src: url("../fonts/TheYearofHandicrafts-Regular.woff") format("woff");
  font-weight: 400 800; font-display: swap;
  /* العربية والأرقام فقط؛ اللاتينية تأخذ خط النص */
  unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF, U+0030-0039, U+060C, U+061F, U+0020-002F, U+003A-0040;
}

:root {
  /* اللون */
  --ivory: #FBF8F1;        /* الخلفية */
  --paper: #FFFDF8;        /* أسطح البطاقات */
  --sand: #F1ECE0;         /* أشرطة هادئة */
  --line: #E2DBCB;         /* خطوط فاصلة */
  --ink: #13261E;          /* النص */
  --muted: #56665E;        /* نص ثانوي */
  --green: #0D6B46;        /* الأخضر الرئيسي — أكثر حيوية */
  --green-deep: #08482F;
  --green-tint: #DDF3E7;
  --gold: #D89A26;         /* الذهبي — أكثر دفئاً وإشراقاً */
  --gold-ink: #93620C;     /* ذهبي مقروء على العاجي */
  --gold-soft: #FCEFD3;
  --btn-bg: var(--green);
  --btn-fg: #FAF7F0;
  --btn-hover: var(--green-deep);
  --gold-btn-bg: #E3A63A;
  --gold-btn-fg: #14261E;
  --seal-bg: #FFFDF8;      /* الشعار يجلس دائماً على ختم فاتح ليبقى واضحاً */
  --locked-bg: #ECE7DB;
  --locked-fg: #6E766F;
  --notice-bg: #FCEBC4;
  --notice-fg: #5E4418;
  --focus: #D89A26;
  --buy-bg: #3FD68A;       /* زر الشراء: أخضر فاتح مع لمعة */
  --buy-fg: #04331D;
  --buy-glow: rgba(31, 190, 110, .55);
  --bar-bg: #0A5A3A;       /* شريط الشراء الثابت */
  --bar-fg: #F4FBF6;
  --ticker-bg: #E3A63A;
  --ticker-fg: #2B1B00;
  --hero-a: rgba(63, 214, 138, .18);
  --hero-b: rgba(227, 166, 58, .16);
  --shadow: 0 1px 2px rgba(19, 38, 30, .05), 0 8px 24px -12px rgba(19, 38, 30, .18);

  /* الخط */
  --font-display: "Thmanyah", "Albousala Display", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-body: "Thmanyah", "IBM Plex Sans Arabic", "Segoe UI", Tahoma, system-ui, sans-serif;

  /* المقاس */
  --step--1: .875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.75rem, 1.3rem + 1.6vw, 2.25rem);
  --step-4: clamp(2.1rem, 1.4rem + 3vw, 3.4rem);
  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1160px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ivory: #0C1C16; --paper: #11251D; --sand: #0F211A; --line: #24392F;
    --ink: #EEE8DA; --muted: #A9B5AD; --green: #7FE0AE; --green-deep: #B5F0CF; --green-tint: #123826;
    --gold: #F0B54A; --gold-ink: #F3C46E; --gold-soft: #33290F;
    --btn-bg: #E9DFC6; --btn-fg: #0C1C16; --btn-hover: #F6EEDB;
    --gold-btn-bg: #D2A65E; --gold-btn-fg: #0C1C16;
    --seal-bg: #FAF7F0; --locked-bg: #1C3027; --locked-fg: #8E9C94;
    --notice-bg: #33290F; --notice-fg: #F2D9A0; --focus: #E8B04E;
    --buy-bg: #45DC90; --buy-fg: #04331D; --buy-glow: rgba(69, 220, 144, .4); --bar-bg: #0C3F2A; --bar-fg: #F4FBF6; --ticker-bg: #E8B04E; --ticker-fg: #2B1B00; --hero-a: rgba(69, 220, 144, .12); --hero-b: rgba(232, 176, 78, .10);
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 28px -14px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ivory: #0C1C16; --paper: #11251D; --sand: #0F211A; --line: #24392F;
  --ink: #EEE8DA; --muted: #A9B5AD; --green: #7FE0AE; --green-deep: #B5F0CF; --green-tint: #123826;
  --gold: #F0B54A; --gold-ink: #F3C46E; --gold-soft: #33290F;
  --btn-bg: #E9DFC6; --btn-fg: #0C1C16; --btn-hover: #F6EEDB;
  --gold-btn-bg: #D2A65E; --gold-btn-fg: #0C1C16;
  --seal-bg: #FAF7F0; --locked-bg: #1C3027; --locked-fg: #8E9C94;
  --notice-bg: #33290F; --notice-fg: #F2D9A0; --focus: #E8B04E;
    --buy-bg: #45DC90; --buy-fg: #04331D; --buy-glow: rgba(69, 220, 144, .4); --bar-bg: #0C3F2A; --bar-fg: #F4FBF6; --ticker-bg: #E8B04E; --ticker-fg: #2B1B00; --hero-a: rgba(69, 220, 144, .12); --hero-b: rgba(232, 176, 78, .10);
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 28px -14px rgba(0,0,0,.6);
  color-scheme: dark;
}

/* ---------- أساسيات ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; direction: rtl; text-align: right;
  background: var(--ivory); color: var(--ink);
  font-family: var(--font-body); font-size: var(--step-0); line-height: 1.8;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--ivory); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: var(--gold-ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.3; text-wrap: balance; margin: 0; color: var(--ink); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; background: var(--btn-bg); color: var(--btn-fg); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }
.muted { color: var(--muted); }
.small { font-size: var(--step--1); }
.ico { width: 1.2em; height: 1.2em; flex: none; }

.wrap {
  width: 100%; max-width: var(--maxw); margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) {
  .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); }
}

/* ---------- الأزرار ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: .55em 1.25em; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: var(--step--1); line-height: 1.3; text-decoration: none; cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn-lg { min-height: 52px; font-size: 1rem; padding-inline: 1.6em; }
.btn-sm { min-height: 38px; padding-inline: 1em; }
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn-primary:hover { background: var(--btn-hover); color: var(--btn-fg); }
.btn-gold { background: var(--gold-btn-bg); color: var(--gold-btn-fg); }
.btn-gold:hover { filter: brightness(1.06); color: var(--gold-btn-fg); }
.btn-ghost { background: transparent; color: var(--green); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--gold); color: var(--green); background: var(--paper); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn-locked, .btn:disabled { background: var(--locked-bg); color: var(--locked-fg); cursor: not-allowed; border-color: transparent; font-weight: 500; }
.link-arrow { display: inline-flex; align-items: center; gap: .35em; font-weight: 600; text-decoration: none; color: var(--green); }
.link-arrow:hover { color: var(--gold-ink); }
.link-arrow:hover .ico { transform: translateX(-3px); }
.link-arrow .ico { transition: transform .18s ease; }

.tag { display: inline-block; font-size: .72rem; font-weight: 600; line-height: 1; padding: .4em .7em; border-radius: 999px; vertical-align: middle; white-space: nowrap; }
.tag-soon { background: var(--gold-soft); color: var(--gold-ink); }
.tag-ready { background: var(--green-tint); color: var(--green); }
.tag-verify { background: var(--gold-soft); color: var(--gold-ink); }
.tag-preview { background: var(--gold-soft); color: var(--gold-ink); font-size: .8rem; }

/* ---------- الختم (حاوية الشعار) ---------- */
.seal {
  display: inline-grid; place-items: center; flex: none;
  background: var(--seal-bg); border-radius: 50%;
  box-shadow: 0 0 0 1px var(--line);
}
.seal img { width: 78%; }
.seal-sm { width: 46px; height: 46px; }
.seal-md { width: 72px; height: 72px; }

/* ---------- الرأس ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--ivory) 92%, transparent);
  backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-text { display: grid; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-size: 1.45rem; color: var(--green); }
.brand-latin { font-size: .66rem; letter-spacing: .28em; color: var(--gold-ink); font-weight: 600; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 26px; }
.site-nav ul a { text-decoration: none; color: var(--ink); font-size: .98rem; padding-block: 6px; border-bottom: 1.5px solid transparent; }
.site-nav ul a:hover { color: var(--green); border-bottom-color: var(--gold); }
.site-nav ul a[aria-current="page"] { color: var(--green); border-bottom-color: var(--gold); font-weight: 600; }
.nav-account { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--muted); font-size: .92rem; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; }
.nav-account:hover, .nav-account.is-active { color: var(--green); border-color: var(--gold); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 46px; height: 46px; color: var(--ink); cursor: pointer; place-items: center; }
.nav-toggle .ico { width: 22px; height: 22px; }
.nav-toggle .i-close { display: none; }

@media (max-width: 900px) {
  .nav-toggle { display: grid; }
  .site-nav {
    display: none; position: absolute; inset-inline: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 12px;
    background: var(--ivory); border-bottom: 1px solid var(--line);
    padding-block: 12px 20px;
    padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
    box-shadow: var(--shadow);
  }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .site-nav ul a[aria-current="page"] { border-bottom-color: var(--line); }
  .nav-account { align-self: flex-start; }
  .site-header.is-open .site-nav { display: flex; }
  .site-header.is-open .i-open { display: none; }
  .site-header.is-open .i-close { display: block; }
}

.notice { background: var(--notice-bg); color: var(--notice-fg); font-size: .9rem; }
.notice-inner { display: flex; align-items: flex-start; gap: 10px; padding-block: 10px; line-height: 1.6; }
.notice-inner .ico { margin-top: .2em; }

/* ---------- الأقسام ---------- */
.band { padding-block: clamp(56px, 8vw, 104px); }
.band-soft { background: var(--sand); }
.band-tight { padding-block: clamp(40px, 6vw, 72px); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head h2 { font-size: var(--step-3); }
.section-head p { color: var(--muted); max-width: 58ch; }
.section-head .stack { display: grid; gap: 10px; }
.eyebrow { font-size: .82rem; font-weight: 600; color: var(--gold-ink); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: var(--gold); }
.lead { font-size: var(--step-1); color: var(--muted); line-height: 1.75; max-width: 60ch; }

/* ---------- الواجهة الرئيسية ---------- */
.hero { padding-block: clamp(40px, 7vw, 88px) clamp(48px, 7vw, 96px); text-align: center; position: relative; overflow: hidden; }
.hero-inner { display: grid; justify-items: center; gap: 22px; }
.hero-seal {
  position: relative; width: clamp(168px, 22vw, 216px); aspect-ratio: 1; max-width: 100%;
  display: grid; place-items: center; margin-bottom: 6px;
}
.hero-seal .seal { width: 100%; height: 100%; box-shadow: var(--shadow), 0 0 0 1px var(--line); }
.hero-seal .seal img { width: 80%; }
/* حلقة الاتجاهات: علامات دقيقة كتدريج البوصلة */
.hero-seal::before {
  content: ""; position: absolute; inset: -18px; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, var(--gold) 0 .6deg, transparent .6deg 7.5deg);
  -webkit-mask: radial-gradient(circle, transparent calc(50% - 7px), #000 calc(50% - 6px), #000 calc(50% - 1px), transparent 50%);
          mask: radial-gradient(circle, transparent calc(50% - 7px), #000 calc(50% - 6px), #000 calc(50% - 1px), transparent 50%);
  opacity: .55;
}
.hero-name { font-size: .85rem; color: var(--gold-ink); font-weight: 600; }
.hero-name .latin { letter-spacing: .3em; font-size: .78rem; }
.hero h1 { font-size: var(--step-4); max-width: 16ch; color: var(--green); }
.hero .lead { margin-inline: auto; text-align: center; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 6px; }
.hero-fine { font-size: var(--step--1); color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .hero-seal::before { animation: dial 60s linear infinite; }
  @keyframes dial { to { transform: rotate(360deg); } }
}

/* ---------- المشكلات ---------- */
.problems { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.problems-intro { display: grid; gap: 16px; position: sticky; top: 110px; }
.problems-intro h2 { font-size: var(--step-3); }
.problems-intro p { color: var(--muted); }
.q-list { display: grid; }
.q-list li {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: baseline;
  padding-block: 18px; border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-size: var(--step-1); line-height: 1.5;
}
.q-list li:first-child { border-top: 1px solid var(--line); }
.q-list .q-mark { color: var(--gold); font-size: 1.4em; line-height: 1; }
.problems-answer { margin-top: 22px; padding: 18px 20px; border-radius: var(--radius); background: var(--green-tint); color: var(--ink); }
.problems-answer strong { color: var(--green); }
@media (max-width: 820px) {
  .problems { grid-template-columns: minmax(0, 1fr); }
  .problems-intro { position: static; }
}

/* ---------- كيف تساعدك ---------- */
.benefits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.benefit { padding: 26px 22px 6px; display: grid; gap: 12px; align-content: start; border-inline-start: 1px solid var(--line); }
.benefit:first-child { border-inline-start: 0; padding-inline-start: 0; }
.benefit .pcard-ico { margin-bottom: 4px; }
.benefit h3 { font-size: var(--step-1); }
.benefit p { color: var(--muted); font-size: .98rem; }
@media (max-width: 960px) {
  .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .benefit:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .benefit { padding-bottom: 22px; }
  .benefit:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .benefits { grid-template-columns: minmax(0, 1fr); }
  .benefit { border-inline-start: 0; padding-inline: 0; }
  .benefit + .benefit { border-top: 1px solid var(--line); }
}

/* ---------- بطاقات الباقات ---------- */
.pcard-ico { width: 44px; height: 44px; border-radius: 12px; display: inline-grid; place-items: center; background: var(--green-tint); color: var(--green); flex: none; }
.pcard-ico .ico { width: 24px; height: 24px; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.pcard {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px 22px; display: flex; flex-direction: column; gap: 16px; min-width: 0;
}
.pcard-head { display: flex; align-items: center; gap: 14px; }
.pcard h3 { font-size: var(--step-1); }
.pcard h3 a { color: inherit; text-decoration: none; }
.pcard h3 a:hover { color: var(--green); }
.pcard-short { color: var(--muted); font-size: .98rem; }
.ticks { display: grid; gap: 10px; font-size: .96rem; }
.ticks li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; line-height: 1.6; }
.ticks .ico { color: var(--gold); margin-top: .2em; width: 1.1em; height: 1.1em; stroke-width: 2.2; }
.ticks .note { font-style: normal; color: var(--muted); font-size: .85em; }
.pcard-foot { margin-top: auto; display: grid; gap: 14px; padding-top: 18px; border-top: 1px dashed var(--line); }
.pcard-actions { display: grid; gap: 8px; }
.buy-note { font-size: .82rem; color: var(--muted); line-height: 1.6; }
.price { position: relative; display: flex; align-items: baseline; gap: .35em; color: var(--ink); font-variant-numeric: tabular-nums; }
.price-num { font-family: var(--font-display); font-size: 2rem; line-height: 1; color: var(--green); }
.price-cur { font-size: .95rem; color: var(--muted); font-weight: 600; }
.price-sm .price-num { font-size: 1.3rem; }
.price-lg .price-num { font-size: 3rem; }

/* الباقة المتكاملة تمتد على عرض الشبكة كاملاً */
.pcard-featured {
  grid-column: 1 / -1; position: relative;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(220px, .7fr); gap: 18px 36px; align-items: start;
  border-color: var(--gold); background:
    linear-gradient(var(--paper), var(--paper)) padding-box;
  padding: 34px 32px 30px;
}
.pcard-featured::after { content: ""; position: absolute; inset: 6px; border: 1px solid var(--gold-soft); border-radius: calc(var(--radius) - 5px); pointer-events: none; }
.pcard-featured .pcard-flag {
  position: absolute; top: -13px; inset-inline-start: 28px; z-index: 1;
  background: var(--gold-btn-bg); color: var(--gold-btn-fg); font-size: .78rem; font-weight: 700;
  padding: 4px 14px; border-radius: 999px;
}
.pcard-featured .pcard-head { grid-column: 1; }
.pcard-featured .pcard-short { grid-column: 1; grid-row: 2; font-size: 1.02rem; }
.pcard-featured .ticks { grid-column: 2; grid-row: 1 / span 2; }
.pcard-featured .pcard-foot { grid-column: 3; grid-row: 1 / span 2; margin-top: 0; padding-top: 0; border-top: 0; padding-inline-start: 28px; border-inline-start: 1px dashed var(--line); }
.pcard-featured .pcard-ico { background: var(--gold-soft); color: var(--gold-ink); }
.pcard-featured h3 { font-size: var(--step-2); }
.pcard-featured .price-num { font-size: 2.6rem; }
.pcard-featured { position: relative; z-index: 0; }

@media (max-width: 1020px) {
  .pcard-featured { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pcard-featured .pcard-foot { grid-column: 1 / -1; grid-row: auto; border-inline-start: 0; padding-inline-start: 0; border-top: 1px dashed var(--line); padding-top: 18px; }
  .pcard-featured .pcard-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-grid .pcard:nth-child(3) { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .product-grid { grid-template-columns: minmax(0, 1fr); }
  .pcard-featured { grid-template-columns: minmax(0, 1fr); padding: 30px 22px 24px; }
  .pcard-featured .pcard-short, .pcard-featured .ticks { grid-column: 1; grid-row: auto; }
  .pcard-featured .pcard-actions { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- أداة الاختيار ---------- */
.chooser {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px 32px; align-items: start;
  padding: 24px; margin-bottom: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--ivory);
}
.band-soft .chooser { background: var(--paper); }
.chooser-q h3 { font-size: var(--step-1); }
.chooser-q p { color: var(--muted); font-size: .95rem; margin-top: 4px; }
.chooser-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: inherit; font-size: .9rem; line-height: 1.5; text-align: right;
  padding: 9px 14px; border-radius: 12px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer;
  transition: border-color .15s, background-color .15s;
}
.chip:hover { border-color: var(--gold); }
.chip[aria-pressed="true"] { background: var(--green-tint); border-color: var(--green); color: var(--green); font-weight: 600; }
.chooser-result { display: grid; gap: 10px; min-width: 0; }
.chooser-label { font-size: .78rem; color: var(--gold-ink); font-weight: 600; }
.chooser-pick { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; align-items: start; }
.chooser-pick .price { grid-column: 2; }
.chooser-name { font-weight: 700; color: var(--ink); }
.chooser-pick .muted { font-size: .88rem; line-height: 1.6; }
@media (max-width: 960px) { .chooser { grid-template-columns: minmax(0, 1fr); } }

/* ---------- كيف تعمل ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.step { display: grid; gap: 10px; align-content: start; padding-top: 22px; border-top: 2px solid var(--green); position: relative; }
.step-num { font-family: var(--font-display); font-size: 2.4rem; line-height: 1; color: var(--gold); }
.step h3 { font-size: var(--step-1); }
.step p { color: var(--muted); }
.step .tag { justify-self: start; }
@media (max-width: 760px) { .steps { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

/* ---------- لماذا البوصلة + عن ---------- */
.why { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.why-list { display: grid; gap: 0; }
.why-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.why-list li:first-child { border-top: 1px solid var(--line); }
.why-list .ico { color: var(--gold); margin-top: .25em; stroke-width: 2.2; }
.why-list strong { display: block; color: var(--ink); }
.why-list span { color: var(--muted); font-size: .98rem; }
.about-card { display: grid; gap: 14px; }
.about-card h2 { font-size: var(--step-3); }
.about-card p { color: var(--muted); }
.about-card .disclaimer { color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; font-size: .95rem; }
@media (max-width: 820px) { .why { grid-template-columns: minmax(0, 1fr); } }

/* ---------- الأسئلة الشائعة ---------- */
.faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.faq-wrap .section-head { margin: 0; }
.faq { display: grid; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 2px; font-weight: 600; font-size: 1.05rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--green); }
.faq-sign { position: relative; width: 18px; height: 18px; flex: none; }
.faq-sign::before, .faq-sign::after { content: ""; position: absolute; inset: 50% 0 auto; height: 1.6px; background: var(--gold); transition: transform .2s ease; }
.faq-sign::after { transform: rotate(90deg); }
.faq-item[open] .faq-sign::after { transform: rotate(0deg); }
.faq-a { padding: 0 2px 20px; color: var(--muted); display: grid; gap: 10px; max-width: 66ch; }
@media (max-width: 820px) { .faq-wrap { grid-template-columns: minmax(0, 1fr); } }

/* ---------- خاتمة / دعوة ---------- */
.cta-band { background: var(--green-deep); color: #F3EEE2; }
.cta-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 40px; padding-block: clamp(40px, 6vw, 64px); }
.cta-inner h2 { color: #FAF7F0; font-size: var(--step-3); }
.cta-inner p { color: #C9D6CE; margin-top: 6px; }
.cta-band .btn-gold { background: #C99A4E; color: #0B2C21; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cta-band { background: #143528; } }
:root[data-theme="dark"] .cta-band { background: #143528; }

/* ---------- صفحات الباقات والتفاصيل ---------- */
.page-head { padding-block: clamp(36px, 6vw, 72px) clamp(24px, 4vw, 40px); }
.page-head h1 { font-size: var(--step-4); color: var(--green); margin-top: 10px; }
.page-head .lead { margin-top: 14px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .88rem; color: var(--muted); padding-top: 22px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--green); }
.pd-hero { padding-block: 26px 48px; }
.pd-hero-inner { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, .8fr); gap: 32px 56px; align-items: start; }
.pd-intro { display: grid; gap: 14px; padding-top: 10px; }
.pd-intro h1 { font-size: var(--step-4); color: var(--green); }
.buybox { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; gap: 14px; box-shadow: var(--shadow); }
.pd-hero-featured .buybox { border-color: var(--gold); }
.buybox-label { font-size: .82rem; font-weight: 600; color: var(--gold-ink); }
.pd-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; padding-bottom: 64px; }
.pd-block { padding-block: 28px; border-top: 1px solid var(--line); display: grid; gap: 14px; align-content: start; }
.pd-block h2 { font-size: var(--step-2); }
.pd-block > p { color: var(--muted); max-width: 62ch; }
.pd-contents, .pd-access { grid-column: 1 / -1; }
.ticks-lg { font-size: 1.04rem; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
.status-note { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); background: var(--sand); border-radius: var(--radius-sm); padding: 12px 14px; }
.status-note .ico { color: var(--gold-ink); margin-top: .25em; }
.plain-list { display: grid; gap: 8px; }
.plain-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; color: var(--ink); }
.plain-list .ico { color: var(--gold); margin-top: .3em; }
.mini-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.mini { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; align-items: center; text-decoration: none; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; transition: border-color .15s; }
.mini:hover { border-color: var(--gold); color: var(--ink); }
.mini .price { grid-column: 2; }
.mini-name { font-weight: 700; }
.back-link { margin-top: 24px; }
.back-link a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 600; }
@media (max-width: 860px) {
  .pd-hero-inner, .pd-body { grid-template-columns: minmax(0, 1fr); }
  .ticks-lg { grid-template-columns: minmax(0, 1fr); }
  .mini-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- المقارنة ---------- */
.table-scroll { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.compare { width: 100%; border-collapse: collapse; min-width: 760px; font-size: .96rem; }
.compare th, .compare td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.compare thead th { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; background: var(--sand); }
.compare thead th a { color: var(--ink); text-decoration: none; }
.compare thead th a:hover { color: var(--green); }
.compare .c-feature { text-align: right; font-weight: 500; width: 34%; }
.compare tbody th.c-feature { font-family: var(--font-body); }
.c-note { display: block; font-size: .8rem; color: var(--muted); font-weight: 400; }
.compare .c-featured { background: color-mix(in srgb, var(--gold-soft) 55%, transparent); }
.compare thead .c-featured { background: var(--gold-soft); }
.compare .yes { color: var(--green); display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--green-tint); }
.compare .yes .ico { stroke-width: 2.4; width: 18px; height: 18px; }
.compare .no { color: var(--muted); }
.compare .price { justify-content: center; }
.compare tr:last-child td, .compare tr:last-child th { border-bottom: 0; }
.compare-sum { margin-top: 16px; color: var(--muted); font-size: .95rem; }
.compare-sum strong { color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---------- الحساب (معاينة غير مفعّلة) ---------- */
.preview-banner { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius); background: var(--notice-bg); color: var(--notice-fg); margin-bottom: 28px; }
.preview-banner .ico { margin-top: .2em; }
.account-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: 28px; align-items: start; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 16px; }
.panel h2 { font-size: var(--step-2); }
.field { display: grid; gap: 6px; }
.field label { font-size: .9rem; font-weight: 600; }
.field input { font: inherit; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--sand); color: var(--locked-fg); }
.owned { display: grid; gap: 12px; }
.owned-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px 14px; align-items: center; padding: 16px; border: 1px dashed var(--line); border-radius: var(--radius-sm); }
.owned-item .meta { font-size: .86rem; color: var(--muted); }
.owned-item .tag { justify-self: start; }
@media (max-width: 860px) { .account-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .owned-item { grid-template-columns: auto minmax(0, 1fr); } .owned-item .btn { grid-column: 1 / -1; } }

/* ---------- صفحات السياسات ---------- */
.prose { max-width: 70ch; display: grid; gap: 16px; padding-bottom: 72px; }
.prose h2 { font-size: var(--step-2); margin-top: 18px; }
.prose p, .prose li { color: var(--muted); }
.prose ul { display: grid; gap: 8px; padding-inline-start: 1.2em; list-style: disc; }
.draft-flag { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- التذييل ---------- */
.site-footer { background: var(--green-deep); color: #D6E0D9; padding-top: 56px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .site-footer { background: #08150F; } }
:root[data-theme="dark"] .site-footer { background: #08150F; }
.site-footer a { color: #EDE6D4; text-decoration: none; }
.site-footer a:hover { color: #D9B06B; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-bottom: 40px; }
.footer-brand { display: flex; gap: 16px; align-items: center; }
.footer-brand .seal { box-shadow: 0 0 0 1px rgba(217, 176, 107, .5); }
.footer-name { font-family: var(--font-display); font-size: 1.5rem; color: #FAF7F0; }
.footer-name span { font-family: var(--font-body); font-size: .7rem; letter-spacing: .28em; color: #D9B06B; margin-inline-start: 6px; }
.footer-tag { color: #C3D0C7; }
.footer-col h2 { font-family: var(--font-body); font-size: .85rem; font-weight: 600; color: #D9B06B; margin-bottom: 12px; }
.footer-col ul { display: grid; gap: 8px; font-size: .95rem; }
.insta { display: inline-flex; align-items: center; gap: 8px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 20px calc(20px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid rgba(217, 176, 107, .25); font-size: .84rem; color: #A9B9AF; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

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

/* ---------- روابط الأدلة في صفحة الباقة ---------- */
.pd-guides { grid-column: 1 / -1; }
.guide-link { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); text-decoration: none; color: var(--ink); transition: border-color .15s; }
.guide-link:hover { border-color: var(--gold); color: var(--ink); }
.gl-text { display: grid; gap: 4px; min-width: 0; }
.gl-title { font-weight: 700; font-size: 1.06rem; }
.gl-sum { color: var(--muted); font-size: .94rem; line-height: 1.7; }
.gl-note { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--gold-ink); }
.gl-arrow { color: var(--gold); }

/* ---------- بطاقات الملفات (صفحة الباقة و«ملفاتي») ---------- */
.file-list { display: grid; gap: 12px; }
.file-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.fc-text { display: grid; gap: 8px; min-width: 0; }
.fc-title { font-weight: 700; font-size: 1.06rem; }
.fc-sum { color: var(--muted); font-size: .94rem; line-height: 1.7; }
.fc-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.fc-status { font-size: .86rem; min-height: 1.2em; color: var(--muted); }
.fc-status.ok { color: var(--green); } .fc-status.bad { color: #A33A2A; }
.count-pill { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 8px; border-radius: 999px; background: var(--green-tint); color: var(--green); font-size: .85rem; font-family: var(--font-body); vertical-align: middle; }
.pd-files { grid-column: 1 / -1; }

/* ---------- ملفاتي ---------- */
.acc-head { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.acc-who { display: flex; gap: 12px; align-items: center; }
.acc-avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--green-tint); color: var(--green); }
.acc-who p { line-height: 1.5; }
.pkg { display: grid; gap: 14px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ivory); }
.band-soft .pkg { background: var(--paper); }
.pkg-head { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; }
.pkg-head h3 { font-size: var(--step-1); }
.pkg-list { display: grid; gap: 18px; }
.acc-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.cv-box { display: grid; gap: 12px; }
.cv-row { display: flex; flex-wrap: wrap; gap: 8px; }
.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; font-size: .94rem; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; }
.inline-confirm { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--notice-bg); color: var(--notice-fg); font-size: .92rem; }

/* =====================================================================
   حيوية أكثر: خلفية الواجهة، زر الشراء اللامع، الشريط الثابت، شريط الكود
   ===================================================================== */
.hero { background:
  radial-gradient(60% 70% at 85% 10%, var(--hero-a), transparent 70%),
  radial-gradient(50% 60% at 10% 90%, var(--hero-b), transparent 70%); }
.notice { border-bottom: 1px solid color-mix(in srgb, var(--gold) 35%, transparent); }

/* زر يبدأ الشراء: أخضر فاتح مع لمعة دورية */
.btn-buy {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--buy-bg); color: var(--buy-fg); font-weight: 700;
  box-shadow: 0 8px 20px -10px var(--buy-glow), inset 0 -2px 0 rgba(0,0,0,.08);
}
.btn-buy:hover { color: var(--buy-fg); filter: brightness(1.04) saturate(1.05); }
.btn-buy::after {
  content: ""; position: absolute; z-index: -1; top: -20%; bottom: -20%; width: 38%; left: -60%;
  background: linear-gradient(100deg, transparent 0%, rgba(255,255,255,.85) 50%, transparent 100%);
  transform: skewX(-20deg); animation: albShine 3.4s ease-in-out infinite;
}
.btn-buy > * { position: relative; }
@keyframes albShine { 0% { left: -60%; } 45% { left: 130%; } 100% { left: 130%; } }

/* زر نسخ الكود تحت أزرار الشراء */
.code-chip {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  min-height: 38px; padding: 6px 12px; border-radius: 999px; cursor: pointer; font: inherit; font-size: .88rem;
  border: 1.5px dashed var(--gold); background: var(--gold-soft); color: var(--gold-ink); font-weight: 600;
}
.code-chip b { font-family: var(--font-body); letter-spacing: .06em; direction: ltr; unicode-bidi: isolate; }
.code-chip:hover { border-style: solid; }
.code-chip.is-copied { border-color: var(--green); color: var(--green); background: var(--green-tint); }

/* أسعار العرض */
.price-was { text-decoration: line-through; color: var(--muted); font-size: .95rem; font-variant-numeric: tabular-nums; }
.offer-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: #E5484D; color: #fff; font-size: .78rem; font-weight: 700; }
.offer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.countdown { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; font-weight: 700; }
.code-note { font-size: .82rem; color: var(--gold-ink); }

/* شريط كود الخصم المتحرك في الأعلى */
.promo-ticker { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 55; height: 36px; overflow: hidden;
  background: var(--ticker-bg); color: var(--ticker-fg); font-weight: 700; font-size: .9rem; cursor: pointer; border: 0; width: 100%; display: block; padding: 0; font-family: inherit; }
.promo-track { display: flex; width: max-content; height: 100%; align-items: center; animation: albTicker 28s linear infinite; }
.promo-track span { padding-inline: 28px; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.promo-track b { direction: ltr; unicode-bidi: isolate; background: rgba(255,255,255,.55); padding: 1px 8px; border-radius: 6px; letter-spacing: .06em; }
@keyframes albTicker { from { transform: translateX(0); } to { transform: translateX(50%); } }
body.has-ticker .site-header { top: calc(env(safe-area-inset-top, 0px) + 36px); }

/* شريط الباقة المتكاملة الثابت في الأسفل */
.buy-bar { position: fixed; inset: auto 0 0; z-index: 45; background: var(--bar-bg); color: var(--bar-fg);
  padding-bottom: env(safe-area-inset-bottom, 0px); box-shadow: 0 -10px 30px -12px rgba(0,0,0,.35); }
.buy-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 10px; }
.buy-bar-info { display: grid; gap: 2px; min-width: 0; line-height: 1.4; }
.buy-bar-info b { font-family: var(--font-display); font-size: 1.05rem; font-weight: 400; }
.buy-bar-info small { opacity: .85; font-size: .82rem; }
.buy-bar-info .price-was { color: rgba(244,251,246,.7); font-size: .82rem; }
.buy-bar .btn-buy { flex: none; min-height: 48px; }
body.has-buybar { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 520px) { .buy-bar .btn-buy { padding-inline: 14px; font-size: .86rem; } .buy-bar-info small { display: none; } }

/* لوحة الشراء */
.sheet-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(6, 26, 17, .55); display: grid; place-items: end center; }
@media (min-width: 640px) { .sheet-backdrop { place-items: center; } }
.sheet { width: min(520px, 100%); max-height: 92vh; overflow: auto; background: var(--paper); color: var(--ink); border-radius: 20px 20px 0 0;
  padding: 22px max(18px, env(safe-area-inset-left, 0px)) calc(22px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 14px; box-shadow: 0 -10px 40px rgba(0,0,0,.25); }
@media (min-width: 640px) { .sheet { border-radius: 20px; } }
.sheet-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.sheet-head h2 { font-size: var(--step-2); }
.sheet-close { border: 0; background: var(--sand); width: 38px; height: 38px; border-radius: 50%; cursor: pointer; color: var(--ink); font-size: 1.2rem; }
.sum { display: grid; gap: 8px; padding: 14px; border-radius: var(--radius-sm); background: var(--sand); }
.sum-row { display: flex; justify-content: space-between; gap: 12px; font-size: .95rem; }
.sum-row.total { font-weight: 700; font-size: 1.1rem; border-top: 1px dashed var(--line); padding-top: 8px; }
.sum-row .v { font-variant-numeric: tabular-nums; }
.field-row { display: flex; gap: 8px; }
.field-row input, .sheet .field input { flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--ivory); color: var(--ink); }
.pay-methods { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .85rem; color: var(--muted); }
.pay-methods span { padding: 3px 10px; border-radius: 6px; border: 1px solid var(--line); background: var(--ivory); color: var(--ink); font-weight: 600; }
.sheet .note-box { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--notice-bg); color: var(--notice-fg); font-size: .92rem; line-height: 1.7; }
.sheet .err { color: #B3261E; font-size: .9rem; }

@media (prefers-reduced-motion: reduce) {
  .btn-buy::after { display: none; }
  .promo-track { animation: none; }
}

/* ---------- لوحة التحكم ---------- */
.err { color: #B3261E; }
.adm-status { padding: 12px 16px; border-radius: 12px; margin-bottom: 18px; font-size: .95rem; }
.adm-status.is-on { background: var(--green-tint); color: var(--green-deep); }
.adm-status.is-off { background: var(--sand); color: var(--ink); }
.adm-card { background: var(--ivory); border: 1px solid var(--line); border-radius: 16px; padding: 18px; margin-bottom: 16px; display: grid; gap: 12px; }
.adm-card h2 { font-size: var(--step-1); }
.adm-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.adm-table th, .adm-table td { text-align: start; padding: 10px 8px; border-bottom: 1px solid var(--line); font-size: .92rem; }
.adm-in { font: inherit; font-size: 16px; padding: 8px 10px; border-radius: 9px; border: 1px solid var(--line); background: #fff; color: var(--ink); width: 120px; }
.adm-sm { width: 76px; }
.adm-check, .adm-switch { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; }
.adm-switch { font-weight: 600; }
.adm-inline { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; }
.adm-inline label { display: inline-flex; gap: 8px; align-items: center; }
.adm-live { font-weight: 600; color: var(--green-deep); }
.adm-now { font-variant-numeric: tabular-nums; white-space: nowrap; }
.adm-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .adm-in { background: var(--sand); } }
.adm-card .btn { justify-self: start; }
.code-chip small { font-weight: 700; opacity: .85; }

/* ---------- حد الأجهزة وأجهزتي ---------- */
.device-limit { background: var(--sand); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 8px; color: var(--ink); font-size: .95rem; }
.dl-list, .dv-list { list-style: none; display: grid; gap: 6px; padding: 0; margin: 0; }
.dv-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid var(--line); }
.dv-list li:last-child { border-bottom: 0; }
.devices h2 { font-size: var(--step-1); }
.login-box form, .sheet form { display: grid; gap: 12px; }
form[hidden], [hidden] { display: none !important; }
.adm-xs { width: 64px; }
.adm-pct { display: inline-flex; align-items: center; gap: 4px; }
.adm-modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.adm-mode { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; background: #fff; }
.adm-mode:has(input:checked) { border-color: var(--green); box-shadow: 0 0 0 2px var(--green-tint); }
.adm-mode input { margin-top: 5px; }
.adm-mode b { display: block; }
.adm-mode small { color: var(--muted); }
.launch-note { color: var(--gold-ink) !important; font-weight: 600; }
@media (max-width: 640px) {
  .adm-table { min-width: 0; }
  .adm-table thead { display: none; }
  .adm-table, .adm-table tbody, .adm-table tr, .adm-table th, .adm-table td { display: block; width: 100%; }
  .adm-table tr { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; background: #fff; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
  .adm-table th { grid-column: 1 / -1; border: 0; padding: 0; font-size: 1rem; color: var(--green-deep); }
  .adm-table td { border: 0; padding: 0; }
  .adm-table td::before { content: attr(data-l); display: block; font-size: .78rem; color: var(--muted); margin-bottom: 2px; }
  .adm-table .adm-in { width: 100%; }
  .adm-table .adm-xs { width: 70px; }
}

/* ---------- ضمان الاسترجاع ---------- */
.guarantee { display: flex; gap: 14px; align-items: center; margin-top: 14px; padding: 14px 16px; border-radius: 16px;
  background: linear-gradient(135deg, #FCF3DC, #F2D99C); border: 1.5px solid #D8B060; color: #4A3410; box-shadow: 0 6px 18px rgba(184,135,63,.18); }
.gu-seal { flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: radial-gradient(circle at 35% 30%, #E9C77E, #B8873F 70%); box-shadow: 0 0 0 4px rgba(255,255,255,.65), 0 4px 10px rgba(120,80,20,.3); }
.gu-seal .ico { width: 28px; height: 28px; stroke-width: 1.9; }
.guarantee strong { display: block; font-size: 1rem; line-height: 1.5; color: #3B2A0C; }
.guarantee p { margin: 4px 0 0; font-size: .9rem; color: #5C4316; }
.guarantee a { color: #7A5512; text-decoration: underline; }
.gu-preview { display: inline-block; margin-top: 6px; font-size: .75rem; background: rgba(255,255,255,.7); border-radius: 999px; padding: 1px 10px; color: #7A5512; }
.gu-line { display: flex; gap: 8px; align-items: center; margin: 2px 0 0; font-size: .9rem; color: #7A5512; background: #FBF1DA; border: 1px solid #EBD3A6; border-radius: 10px; padding: 8px 12px; }
.gu-line .ico { width: 20px; height: 20px; color: #B8873F; flex: none; }
:root[data-theme="dark"] .guarantee, :root[data-theme="dark"] .gu-line { color: #3B2A0C; }

/* استجابة فورية عند الانتقال لصفحة أخرى (حتى تظهر الصفحة الجديدة) */
html.is-leaving body { opacity: .55; transition: opacity .12s ease; pointer-events: none; }
html.is-leaving body::after { content: ""; position: fixed; top: 0; inset-inline: 0; height: 3px; background: linear-gradient(90deg, var(--gold), var(--green)); animation: albLoad 1s linear infinite; z-index: 9999; }
@keyframes albLoad { from { transform: translateX(100%); } to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { html.is-leaving body::after { animation: none; } }
