/* ==========================================================================
   منصة "أستاذ المستقبل" — نظام التصميم
   Design System - RTL Arabic
   ========================================================================== */

/* ---------- 1. المتغيرات (Design Tokens) ---------- */
:root {
  /* الألوان الأساسية */
  --brand-50:  #ecfdf5;
  --brand-100: #d1fae5;
  --brand-200: #a7f3d0;
  --brand-300: #6ee7b7;
  --brand-400: #34d399;
  --brand-500: #10b981;
  --brand-600: #0e7c66;
  --brand-700: #0b6153;
  --brand-800: #094c43;
  --brand-900: #063d36;

  --gold-300: #fbd38d;
  --gold-400: #f6ad55;
  --gold-500: #e9a23b;
  --gold-600: #c9822a;

  --red-500: #e14b4b;
  --blue-500: #2563eb;
  --purple-500: #7c3aed;

  /* الأسطح والنصوص */
  --bg: #f7faf9;
  --bg-alt: #ffffff;
  --surface: #ffffff;
  --surface-2: #f1f5f4;
  --ink: #0f1b2d;
  --ink-2: #3d4a5c;
  --ink-3: #6b7a8d;
  --line: #e3eae8;
  --line-2: #cfdad7;

  /* الظلال */
  --shadow-xs: 0 1px 2px rgba(15, 27, 45, .06);
  --shadow-sm: 0 2px 8px rgba(15, 27, 45, .06);
  --shadow-md: 0 8px 24px rgba(15, 27, 45, .08);
  --shadow-lg: 0 18px 48px rgba(15, 27, 45, .12);
  --shadow-brand: 0 12px 30px rgba(14, 124, 102, .25);

  /* القياسات */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --container: 1180px;

  --font: "Tajawal", "Cairo", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-head: "Cairo", "Tajawal", "Segoe UI", system-ui, sans-serif;

  --header-h: 72px;
}

[data-theme="dark"] {
  --bg: #0b1220;
  --bg-alt: #0f1a2b;
  --surface: #121e31;
  --surface-2: #17263c;
  --ink: #eaf1f7;
  --ink-2: #b7c5d4;
  --ink-3: #8496a8;
  --line: #223349;
  --line-2: #2d4257;
  --brand-50: #06251f;
  --brand-100: #073028;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, .35);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, .4);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, .5);
}

/* ---------- 2. إعادة الضبط ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.85;
  font-size: 16.5px;
  overflow-x: hidden;
  transition: background .3s ease, color .3s ease;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  line-height: 1.4;
  margin: 0 0 .6em;
  font-weight: 800;
  letter-spacing: -.2px;
}
h1 { font-size: clamp(1.9rem, 4.6vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.3rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); }
h4 { font-size: 1.08rem; }
p  { margin: 0 0 1em; color: var(--ink-2); }
ul, ol { padding-inline-start: 1.4em; margin: 0 0 1em; }
li { margin-bottom: .45em; color: var(--ink-2); }
strong { color: var(--ink); font-weight: 700; }

::selection { background: var(--brand-500); color: #fff; }

/* شريط التمرير */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--surface-2); }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 99px; border: 3px solid var(--surface-2); }
::-webkit-scrollbar-thumb:hover { background: var(--brand-600); }

/* ---------- 3. التخطيط ---------- */
.container {
  width: min(100% - 2.4rem, var(--container));
  margin-inline: auto;
}
.section { padding: clamp(3.2rem, 7vw, 5.5rem) 0; }
.section--tight { padding: clamp(2.2rem, 4vw, 3.2rem) 0; }
.section--alt { background: var(--bg-alt); }
.section--brand {
  background: linear-gradient(135deg, var(--brand-800), var(--brand-600) 60%, #0d8a72);
  color: #fff;
}
.section--brand h2, .section--brand h3, .section--brand strong { color: #fff; }
.section--brand p, .section--brand li { color: rgba(255, 255, 255, .88); }

.grid { display: grid; gap: 1.4rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(275px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }

.stack > * + * { margin-top: 1rem; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 1.2rem; } .mt-3 { margin-top: 2rem; }
.flex { display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; }
.flex-center { justify-content: center; }
.hidden { display: none !important; }

/* ---------- 4. عناوين الأقسام ---------- */
.section-head {
  max-width: 720px;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
  text-align: center;
}
.section-head p { font-size: 1.06rem; color: var(--ink-3); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--brand-50);
  color: var(--brand-700);
  border: 1px solid var(--brand-200);
  padding: .35rem 1rem;
  border-radius: 99px;
  font-size: .85rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
[data-theme="dark"] .eyebrow { background: rgba(16,185,129,.12); border-color: rgba(16,185,129,.3); color: var(--brand-300); }
.section--brand .eyebrow { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.3); color: #fff; }

/* ---------- 5. الأزرار ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .85rem 1.7rem;
  border-radius: 99px;
  font-weight: 700;
  font-size: .98rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .22s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
  font-family: var(--font-head);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--brand-400); outline-offset: 3px; }

.btn-primary {
  background: linear-gradient(135deg, var(--brand-600), var(--brand-500));
  color: #fff;
  box-shadow: var(--shadow-brand);
}
.btn-primary:hover { box-shadow: 0 16px 38px rgba(14, 124, 102, .38); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: #3a2708;
  box-shadow: 0 12px 30px rgba(233, 162, 59, .32);
}

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-2);
  box-shadow: var(--shadow-xs);
}
.btn-ghost:hover { border-color: var(--brand-500); color: var(--brand-600); }

.btn-white { background: #fff; color: var(--brand-700); }
.btn-outline-white { border-color: rgba(255,255,255,.55); color: #fff; background: transparent; }
.btn-outline-white:hover { background: rgba(255,255,255,.12); }

.btn-sm { padding: .55rem 1.1rem; font-size: .88rem; }
.btn-lg { padding: 1.05rem 2.3rem; font-size: 1.08rem; }
.btn-block { width: 100%; }

/* ---------- 6. الهيدر ---------- */
.topbar {
  background: linear-gradient(90deg, var(--brand-800), var(--brand-600), var(--gold-600));
  color: #fff;
  font-size: .87rem;
  text-align: center;
  padding: .5rem 1rem;
  font-weight: 600;
}
.topbar a { text-decoration: underline; font-weight: 800; }
.countdown-chip {
  display: inline-flex;
  gap: .3rem;
  background: rgba(0,0,0,.22);
  padding: .1rem .6rem;
  border-radius: 99px;
  font-variant-numeric: tabular-nums;
  margin-inline-start: .3rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg-alt) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: var(--header-h);
}
.logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.12rem;
  color: var(--ink);
  flex-shrink: 0;
}
.logo-mark {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-400));
  color: #fff;
  font-size: 1.25rem;
  box-shadow: var(--shadow-brand);
}
.logo small { display: block; font-size: .68rem; color: var(--ink-3); font-weight: 500; line-height: 1; }

.nav-links {
  display: flex;
  align-items: center;
  gap: .15rem;
  margin-inline-start: auto;
  list-style: none;
  padding: 0; margin-block: 0;
}
.nav-links a {
  padding: .5rem .75rem;
  border-radius: 10px;
  font-size: .93rem;
  font-weight: 600;
  color: var(--ink-2);
  transition: .2s;
  white-space: nowrap;
}
.nav-links a:hover { background: var(--surface-2); color: var(--brand-600); }
.nav-links a.active { color: var(--brand-600); background: var(--brand-50); }
[data-theme="dark"] .nav-links a.active { background: rgba(16,185,129,.12); }

.nav-actions { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.icon-btn {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  font-size: 1.1rem;
  transition: .2s;
}
.icon-btn:hover { border-color: var(--brand-500); color: var(--brand-600); }
.nav-toggle { display: none; }

@media (max-width: 1240px) { .nav .btn-cta { display: none; } }

@media (max-width: 1080px) {
  .nav-links {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.2rem 1.6rem;
    gap: .2rem;
    box-shadow: var(--shadow-lg);
    transform: translateY(-140%);
    transition: transform .35s cubic-bezier(.4, 0, .2, 1);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: .8rem 1rem; font-size: 1rem; }
  .nav-toggle { display: grid; }
  .nav .btn-cta { display: none; }
}

/* ---------- 7. الهيرو ---------- */
.hero {
  position: relative;
  padding: clamp(2.8rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 5rem);
  overflow: hidden;
  background:
    radial-gradient(1000px 480px at 85% -10%, rgba(16, 185, 129, .16), transparent 60%),
    radial-gradient(760px 420px at 5% 10%, rgba(233, 162, 59, .13), transparent 62%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 2.6rem;
  align-items: center;
}
.hero h1 { margin-bottom: .5rem; }
.hero h1 .grad {
  background: linear-gradient(120deg, var(--brand-600), var(--brand-400) 55%, var(--gold-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead { font-size: 1.13rem; max-width: 56ch; }

.hero-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.2rem 0; }
.mini-badge {
  display: inline-flex; align-items: center; gap: .35rem;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: .35rem .85rem;
  border-radius: 99px;
  font-size: .84rem;
  font-weight: 600;
  color: var(--ink-2);
  box-shadow: var(--shadow-xs);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .8rem;
  margin-top: 2rem;
  padding-top: 1.6rem;
  border-top: 1px dashed var(--line-2);
}
.stat b {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  color: var(--brand-600);
  line-height: 1.2;
}
.stat span { font-size: .8rem; color: var(--ink-3); }

/* بطاقة الهيرو */
.hero-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 1.6rem;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, var(--brand-400), transparent 45%, var(--gold-400));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.price-tag { text-align: center; padding: .5rem 0 1rem; border-bottom: 1px dashed var(--line-2); margin-bottom: 1rem; }
.price-old { color: var(--ink-3); text-decoration: line-through; font-size: 1rem; }
.price-now {
  font-family: var(--font-head);
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--brand-600);
  line-height: 1;
  display: flex; align-items: baseline; justify-content: center; gap: .4rem;
}
.price-now small { font-size: 1.1rem; color: var(--ink-2); font-weight: 700; }
.price-note { font-size: .85rem; color: var(--ink-3); }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  position: relative;
  padding-inline-start: 1.9rem;
  margin-bottom: .55rem;
  font-size: .94rem;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  inset-inline-start: 0;
  top: .28em;
  width: 20px; height: 20px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--brand-50);
  color: var(--brand-600);
  font-size: .72rem;
  font-weight: 800;
  line-height: 1;
}
[data-theme="dark"] .check-list li::before { background: rgba(16,185,129,.15); color: var(--brand-300); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- 8. البطاقات ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative;
  height: 100%;
}
.card--hover:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--brand-300); }
.card h3 { margin-bottom: .5rem; }
.card p:last-child { margin-bottom: 0; }
.card--flat { box-shadow: none; }
.card--pad-lg { padding: 2rem; }

.card-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 15px;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  background: var(--brand-50);
  color: var(--brand-600);
}
[data-theme="dark"] .card-icon { background: rgba(16,185,129,.12); }
.card-icon.gold { background: #fff5e6; color: var(--gold-600); }
.card-icon.blue { background: #eaf1ff; color: var(--blue-500); }
.card-icon.purple { background: #f3ecff; color: var(--purple-500); }
.card-icon.red { background: #ffeeee; color: var(--red-500); }
[data-theme="dark"] .card-icon.gold { background: rgba(233,162,59,.14); }
[data-theme="dark"] .card-icon.blue { background: rgba(37,99,235,.16); }
[data-theme="dark"] .card-icon.purple { background: rgba(124,58,237,.16); }
[data-theme="dark"] .card-icon.red { background: rgba(225,75,75,.14); }

.num-badge {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-400));
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: .9rem;
  box-shadow: var(--shadow-brand);
}

/* ---------- 9. الشارات ---------- */
.badge {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .22rem .7rem;
  border-radius: 99px;
  font-size: .78rem;
  font-weight: 700;
  background: var(--surface-2);
  color: var(--ink-2);
  border: 1px solid var(--line);
}
.badge-brand { background: var(--brand-50); color: var(--brand-700); border-color: var(--brand-200); }
.badge-gold  { background: #fff6e8; color: var(--gold-600); border-color: var(--gold-300); }
.badge-blue  { background: #eaf1ff; color: var(--blue-500); border-color: #c7d8ff; }
.badge-red   { background: #ffeded; color: var(--red-500); border-color: #ffc9c9; }
[data-theme="dark"] .badge-brand { background: rgba(16,185,129,.14); border-color: rgba(16,185,129,.3); color: var(--brand-300); }
[data-theme="dark"] .badge-gold { background: rgba(233,162,59,.14); border-color: rgba(233,162,59,.3); color: var(--gold-400); }
[data-theme="dark"] .badge-blue { background: rgba(37,99,235,.16); border-color: rgba(37,99,235,.35); color: #93b4ff; }
[data-theme="dark"] .badge-red { background: rgba(225,75,75,.14); border-color: rgba(225,75,75,.3); color: #ff9a9a; }

/* ---------- 10. التبويبات ---------- */
.tabs {
  display: flex;
  gap: .4rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  background: var(--surface-2);
  padding: .4rem;
  border-radius: 99px;
  width: fit-content;
  margin-inline: auto;
  max-width: 100%;
}
.tab {
  padding: .6rem 1.35rem;
  border-radius: 99px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-weight: 700;
  font-size: .93rem;
  color: var(--ink-2);
  transition: .22s;
  font-family: var(--font-head);
}
.tab:hover { color: var(--brand-600); }
.tab.active { background: var(--surface); color: var(--brand-600); box-shadow: var(--shadow-sm); }
.tab-panel { display: none; animation: fadeUp .4s ease; }
.tab-panel.active { display: block; }

/* ---------- 11. الأكورديون ---------- */
.acc { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); margin-bottom: .75rem; }
.acc-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.3rem;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: start;
  font-weight: 700;
  font-size: 1rem;
  font-family: var(--font-head);
  color: var(--ink);
  transition: background .2s;
}
.acc-head:hover { background: var(--surface-2); }
.acc-head::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--brand-600);
  transition: transform .3s;
  flex-shrink: 0;
  line-height: 1;
}
.acc.open .acc-head::after { transform: rotate(45deg); }
.acc.open .acc-head { background: var(--brand-50); color: var(--brand-700); }
[data-theme="dark"] .acc.open .acc-head { background: rgba(16,185,129,.1); color: var(--brand-300); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height .38s ease; }
.acc-body-inner { padding: .3rem 1.3rem 1.3rem; border-top: 1px solid var(--line); padding-top: 1.1rem; }
.acc-body-inner > *:last-child { margin-bottom: 0; }

/* ---------- 12. الجداول ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: .93rem; }
thead th {
  background: var(--brand-600);
  color: #fff;
  text-align: start;
  padding: .85rem 1rem;
  font-weight: 700;
  font-family: var(--font-head);
  white-space: nowrap;
}
tbody td { padding: .8rem 1rem; border-bottom: 1px solid var(--line); color: var(--ink-2); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background: var(--surface-2); }
tbody tr:hover { background: var(--brand-50); }
[data-theme="dark"] tbody tr:hover { background: rgba(16,185,129,.07); }

/* ---------- 13. التسعير ---------- */
.pricing-card {
  background: var(--surface);
  border: 2px solid var(--brand-500);
  border-radius: var(--radius-xl);
  padding: 2.4rem 2rem;
  box-shadow: var(--shadow-lg);
  max-width: 560px;
  margin-inline: auto;
  position: relative;
  overflow: hidden;
}
.pricing-card::after {
  content: "";
  position: absolute;
  top: -60px; inset-inline-start: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(16,185,129,.16), transparent 70%);
}
.ribbon {
  position: absolute;
  top: 22px;
  inset-inline-end: -46px;
  background: var(--gold-500);
  color: #3a2708;
  padding: .35rem 3.2rem;
  font-size: .8rem;
  font-weight: 800;
  transform: rotate(45deg);
  box-shadow: var(--shadow-sm);
}
html[dir="rtl"] .ribbon { transform: rotate(-45deg); }

/* ---------- 14. النماذج ---------- */
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: .4rem; color: var(--ink); }
.field .hint { font-size: .82rem; color: var(--ink-3); font-weight: 400; }
.input, select.input, textarea.input {
  width: 100%;
  padding: .8rem 1rem;
  border: 1.5px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: .2s;
  font-size: .96rem;
}
.input:focus { outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 4px rgba(16,185,129,.14); }
textarea.input { min-height: 110px; resize: vertical; }
select.input { cursor: pointer; }
.input-error { border-color: var(--red-500) !important; }
.err-msg { color: var(--red-500); font-size: .82rem; margin-top: .25rem; display: none; }
.err-msg.show { display: block; }

.radio-cards { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.radio-card {
  border: 1.5px solid var(--line-2);
  border-radius: var(--radius);
  padding: .9rem 1rem;
  cursor: pointer;
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  transition: .2s;
  background: var(--surface);
}
.radio-card:hover { border-color: var(--brand-400); }
.radio-card input { margin-top: .35rem; accent-color: var(--brand-600); flex-shrink: 0; }
.radio-card b { display: block; font-size: .95rem; }
.radio-card span { font-size: .8rem; color: var(--ink-3); }
.radio-card:has(input:checked) { border-color: var(--brand-600); background: var(--brand-50); box-shadow: 0 0 0 3px rgba(16,185,129,.12); }
[data-theme="dark"] .radio-card:has(input:checked) { background: rgba(16,185,129,.1); }

/* ---------- 15. التنبيهات ---------- */
.alert {
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  border-inline-start: 4px solid var(--brand-500);
  background: var(--brand-50);
  font-size: .93rem;
  margin-bottom: 1.2rem;
}
.alert strong { display: block; margin-bottom: .2rem; }
.alert p:last-child { margin-bottom: 0; }
.alert-gold { background: #fff8ec; border-color: var(--gold-500); }
.alert-red { background: #fff0f0; border-color: var(--red-500); }
.alert-blue { background: #eef4ff; border-color: var(--blue-500); }
[data-theme="dark"] .alert { background: rgba(16,185,129,.08); }
[data-theme="dark"] .alert-gold { background: rgba(233,162,59,.09); }
[data-theme="dark"] .alert-red { background: rgba(225,75,75,.09); }
[data-theme="dark"] .alert-blue { background: rgba(37,99,235,.1); }

/* ---------- 16. الاختبار التفاعلي ---------- */
.quiz-shell {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.quiz-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.4rem;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.quiz-timer {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  font-family: var(--font-head);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: .3rem .9rem;
  border-radius: 99px;
}
.quiz-timer.warn { color: var(--red-500); border-color: var(--red-500); animation: pulse 1s infinite; }
.progress-bar { height: 7px; background: var(--surface-2); overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--brand-600), var(--brand-400)); transition: width .35s ease; }
.quiz-body { padding: 1.8rem 1.6rem; }
.q-text { font-family: var(--font-head); font-size: 1.16rem; font-weight: 700; margin-bottom: 1.2rem; line-height: 1.7; }

.opt {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  width: 100%;
  text-align: start;
  padding: .9rem 1.1rem;
  border: 1.5px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  margin-bottom: .6rem;
  transition: .18s;
  font-size: .97rem;
  line-height: 1.6;
}
.opt:hover:not(:disabled) { border-color: var(--brand-400); background: var(--brand-50); }
[data-theme="dark"] .opt:hover:not(:disabled) { background: rgba(16,185,129,.07); }
.opt-key {
  width: 28px; height: 28px;
  flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 8px;
  background: var(--surface-2);
  font-weight: 800;
  font-size: .85rem;
}
.opt.selected { border-color: var(--brand-600); background: var(--brand-50); }
.opt.correct { border-color: var(--brand-600); background: var(--brand-50); }
.opt.correct .opt-key { background: var(--brand-600); color: #fff; }
.opt.wrong { border-color: var(--red-500); background: #fff2f2; }
.opt.wrong .opt-key { background: var(--red-500); color: #fff; }
[data-theme="dark"] .opt.correct, [data-theme="dark"] .opt.selected { background: rgba(16,185,129,.12); }
[data-theme="dark"] .opt.wrong { background: rgba(225,75,75,.12); }
.opt:disabled { cursor: default; }

.explain {
  margin-top: 1rem;
  padding: 1rem 1.2rem;
  border-radius: var(--radius);
  background: var(--surface-2);
  border-inline-start: 4px solid var(--brand-500);
  font-size: .93rem;
  animation: fadeUp .3s ease;
}
.quiz-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  padding: 1.1rem 1.6rem;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  flex-wrap: wrap;
}

.score-ring {
  width: 160px; height: 160px;
  border-radius: 50%;
  display: grid; place-items: center;
  margin: 0 auto 1.2rem;
  background: conic-gradient(var(--brand-500) var(--pct, 0%), var(--surface-2) 0);
  position: relative;
}
.score-ring::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: var(--surface);
}
.score-ring b { position: relative; font-family: var(--font-head); font-size: 2.3rem; color: var(--brand-600); }

/* شبكة مؤشرات الأسئلة */
.q-dots { display: flex; flex-wrap: wrap; gap: .3rem; justify-content: center; margin-top: 1rem; }
.q-dot {
  width: 30px; height: 30px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
  display: grid; place-items: center;
}
.q-dot.answered { background: var(--brand-100); border-color: var(--brand-400); color: var(--brand-800); }
.q-dot.current { background: var(--brand-600); color: #fff; border-color: var(--brand-600); }
[data-theme="dark"] .q-dot.answered { background: rgba(16,185,129,.2); color: var(--brand-200); }

/* ---------- 17. الخط الزمني ---------- */
.timeline { position: relative; padding-inline-start: 2.2rem; }
.timeline::before {
  content: "";
  position: absolute;
  inset-inline-start: 8px;
  top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--brand-400), var(--gold-400));
}
.tl-item { position: relative; margin-bottom: 1.8rem; }
.tl-item::before {
  content: "";
  position: absolute;
  inset-inline-start: -2.2rem;
  top: .55rem;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--brand-500);
  transform: translateX(calc(var(--dir, 1) * 4px));
}
.tl-item h4 { margin-bottom: .25rem; }

/* ---------- 18. متتبع التقدم ---------- */
.tracker-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .75rem .9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  margin-bottom: .5rem;
  cursor: pointer;
  transition: .2s;
}
.tracker-item:hover { border-color: var(--brand-400); }
.tracker-item input { accent-color: var(--brand-600); width: 19px; height: 19px; margin-top: .25rem; flex-shrink: 0; cursor: pointer; }
.tracker-item:has(input:checked) { background: var(--brand-50); border-color: var(--brand-300); }
.tracker-item:has(input:checked) span { text-decoration: line-through; color: var(--ink-3); }
[data-theme="dark"] .tracker-item:has(input:checked) { background: rgba(16,185,129,.08); }

.progress-line { height: 10px; background: var(--surface-2); border-radius: 99px; overflow: hidden; margin: .6rem 0; }
.progress-line i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-600), var(--brand-400)); border-radius: 99px; transition: width .4s ease; }

/* ---------- 19. التذييل ---------- */
.site-footer {
  background: #08161f;
  color: #b9c8d3;
  padding: 3.4rem 0 1.5rem;
  margin-top: auto;
}
[data-theme="dark"] .site-footer { background: #060d18; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 2rem; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer a { color: #b9c8d3; font-size: .93rem; transition: .2s; }
.site-footer a:hover { color: var(--brand-300); padding-inline-start: 4px; }
.site-footer p { color: #91a3b1; font-size: .93rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 2.4rem;
  padding-top: 1.2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .85rem;
  color: #8598a6;
}
.social { display: flex; gap: .5rem; }
.social a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: rgba(255,255,255,.07);
  font-size: 1.05rem;
}
.social a:hover { background: var(--brand-600); color: #fff; padding: 0; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- 20. عناصر عائمة ---------- */
.fab {
  position: fixed;
  inset-inline-end: 18px;
  bottom: 18px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  align-items: center;
}
.fab a, .fab button {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: var(--shadow-md);
  font-size: 1.35rem;
  border: none;
  cursor: pointer;
  transition: transform .2s;
}
.fab a:hover, .fab button:hover { transform: scale(1.08); }
.fab-wa { background: #25D366; color: #fff; }
.fab-top { background: var(--surface); color: var(--brand-600); border: 1px solid var(--line) !important; opacity: 0; pointer-events: none; transition: opacity .3s, transform .2s; }
.fab-top.show { opacity: 1; pointer-events: auto; }

/* ---------- 21. صفحة داخلية: هيدر ---------- */
.page-hero {
  padding: clamp(2.4rem, 5vw, 3.6rem) 0;
  background:
    radial-gradient(700px 320px at 80% 0%, rgba(16,185,129,.14), transparent 60%),
    var(--bg-alt);
  border-bottom: 1px solid var(--line);
}
.breadcrumb { font-size: .85rem; color: var(--ink-3); margin-bottom: .7rem; }
.breadcrumb a:hover { color: var(--brand-600); }
.page-hero h1 { margin-bottom: .4rem; }
.page-hero p { font-size: 1.05rem; max-width: 68ch; margin-bottom: 0; }

/* ---------- 22. أدوات مساعدة ---------- */
.note-box {
  background: var(--surface-2);
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  font-size: .93rem;
}
.kbd {
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: .1rem .45rem;
  font-size: .85rem;
  font-weight: 700;
}
.divider { height: 1px; background: var(--line); border: 0; margin: 2rem 0; }
.quote {
  border-inline-start: 4px solid var(--gold-500);
  padding: .3rem 0 .3rem 0;
  padding-inline-start: 1.2rem;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--ink-2);
}
.pill-row { display: flex; flex-wrap: wrap; gap: .45rem; }

/* شبكة الشهادات */
.testimonial { display: flex; flex-direction: column; gap: .9rem; }
.testimonial .stars { color: var(--gold-500); letter-spacing: 2px; }
.tst-person { display: flex; align-items: center; gap: .7rem; margin-top: auto; }
.avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-300));
  color: #fff;
  font-weight: 800;
  font-family: var(--font-head);
  flex-shrink: 0;
}
.tst-person b { display: block; font-size: .93rem; }
.tst-person span { font-size: .8rem; color: var(--ink-3); }

/* ---------- 23. الحركات ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .55; } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.floaty { animation: float 5s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   25. مكوّنات التحويل (Conversion components)
   ========================================================================== */

/* --- شريط دعوة ثابت في الأسفل (الهاتف) --- */
.sticky-cta {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 95;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--bg-alt) 94%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 24px rgba(15, 27, 45, .1);
  transform: translateY(110%);
  transition: transform .35s cubic-bezier(.4, 0, .2, 1);
}
.sticky-cta.show { transform: none; }
.sticky-cta .p b { font-family: var(--font-head); font-size: 1.35rem; color: var(--brand-600); line-height: 1; }
.sticky-cta .p span { display: block; font-size: .74rem; color: var(--ink-3); }
.sticky-cta .btn { flex-shrink: 0; }
@media (max-width: 900px) {
  .sticky-cta { display: flex; }
  body { padding-bottom: 4.5rem; }
  .fab { bottom: 5.2rem; }
}

/* --- صف الثقة --- */
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.4rem;
  align-items: center;
  justify-content: center;
  padding: .9rem 1rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px dashed var(--line-2);
}
.trust-item { display: inline-flex; align-items: center; gap: .4rem; font-size: .87rem; font-weight: 600; color: var(--ink-2); }
.trust-item i { font-style: normal; font-size: 1.05rem; }

/* --- نقطة "مباشر" النابضة --- */
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand-500);
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, .7);
  animation: livePulse 2s infinite;
}
@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, .6); }
  70%  { box-shadow: 0 0 0 9px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* --- مقارنة قبل / بعد --- */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.compare-col {
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  border: 1px solid var(--line);
  background: var(--surface);
}
.compare-col.bad { border-color: #f3cccc; background: linear-gradient(180deg, #fff6f6, var(--surface)); }
.compare-col.good { border-color: var(--brand-300); background: linear-gradient(180deg, var(--brand-50), var(--surface)); }
[data-theme="dark"] .compare-col.bad { background: linear-gradient(180deg, rgba(225,75,75,.09), var(--surface)); border-color: rgba(225,75,75,.3); }
[data-theme="dark"] .compare-col.good { background: linear-gradient(180deg, rgba(16,185,129,.09), var(--surface)); border-color: rgba(16,185,129,.3); }
.compare-col h3 { display: flex; align-items: center; gap: .5rem; }
.compare-col ul { list-style: none; padding: 0; margin: 0; }
.compare-col li {
  position: relative;
  padding-inline-start: 1.8rem;
  margin-bottom: .7rem;
  font-size: .95rem;
}
.compare-col li::before {
  position: absolute;
  inset-inline-start: 0;
  top: .12em;
  font-size: 1.05rem;
  line-height: 1.5;
}
.compare-col.bad li::before { content: "✕"; color: var(--red-500); font-weight: 800; }
.compare-col.good li::before { content: "✓"; color: var(--brand-600); font-weight: 800; }
@media (max-width: 780px) { .compare { grid-template-columns: 1fr; } }

/* --- قائمة القيمة (Value stack) --- */
.value-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px dashed var(--line);
}
.value-item:last-child { border-bottom: 0; }
.value-item .vi-icon {
  width: 46px; height: 46px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 13px;
  background: var(--brand-50);
  color: var(--brand-600);
  font-size: 1.3rem;
}
[data-theme="dark"] .value-item .vi-icon { background: rgba(16,185,129,.12); }
.value-item b { display: block; font-family: var(--font-head); font-size: 1rem; }
.value-item p { margin: .15rem 0 0; font-size: .9rem; }
.value-item .vi-price { margin-inline-start: auto; flex-shrink: 0; font-weight: 700; color: var(--ink-3); font-size: .9rem; white-space: nowrap; }
.value-total {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1rem 1.2rem; margin-top: 1rem;
  border-radius: var(--radius);
  background: var(--surface-2);
  font-family: var(--font-head); font-weight: 800;
}
.value-total .now { color: var(--brand-600); font-size: 1.5rem; }

/* --- بطاقة الضمان --- */
.guarantee {
  display: flex;
  gap: 1.4rem;
  align-items: center;
  border: 2px dashed var(--gold-400);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  background: linear-gradient(135deg, #fffaf1, var(--surface));
}
[data-theme="dark"] .guarantee { background: linear-gradient(135deg, rgba(233,162,59,.08), var(--surface)); }
.guarantee .seal {
  width: 84px; height: 84px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-300));
  color: #3a2708;
  font-size: 2.2rem;
  box-shadow: 0 10px 26px rgba(233, 162, 59, .35);
}
@media (max-width: 620px) { .guarantee { flex-direction: column; text-align: center; } }

/* --- خطوات مرقّمة أفقية --- */
.steps-inline { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; counter-reset: st; }
.step-item { position: relative; padding-top: 2.4rem; }
.step-item::before {
  counter-increment: st;
  content: counter(st);
  position: absolute; top: 0; inset-inline-start: 0;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--brand-600); color: #fff;
  font-family: var(--font-head); font-weight: 800;
}
.step-item h4 { margin-bottom: .25rem; }
.step-item p { font-size: .92rem; margin: 0; }

/* --- مجموعة صور رمزية --- */
.avatar-stack { display: flex; align-items: center; }
.avatar-stack .avatar { width: 36px; height: 36px; font-size: .82rem; border: 2px solid var(--surface); margin-inline-start: -10px; }
.avatar-stack .avatar:first-child { margin-inline-start: 0; }

/* --- شريط متحرك للمواد --- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: .6rem; width: max-content; animation: scrollX 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scrollX { from { transform: translateX(0); } to { transform: translateX(50%); } }
html[dir="rtl"] .marquee-track { animation-name: scrollXRtl; }
@keyframes scrollXRtl { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* --- بطاقة عيّنة مجانية --- */
.sample-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  transition: .25s;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.sample-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--brand-300); }
.sample-head { padding: .8rem 1.1rem; background: var(--surface-2); border-bottom: 1px solid var(--line); font-weight: 700; font-family: var(--font-head); display: flex; align-items: center; gap: .5rem; }
.sample-body { padding: 1.1rem; font-size: .93rem; flex: 1; }
.sample-foot { padding: .8rem 1.1rem; border-top: 1px dashed var(--line); font-size: .88rem; font-weight: 700; color: var(--brand-600); }

/* --- نتيجة الاختبار المجاني --- */
.result-hero {
  text-align: center;
  padding: 2.4rem 1.4rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--brand-800), var(--brand-600));
  color: #fff;
}
.result-hero h2, .result-hero h3 { color: #fff; }
.result-hero p { color: rgba(255,255,255,.9); }
.result-ring {
  width: 148px; height: 148px; border-radius: 50%;
  display: grid; place-items: center;
  margin: 0 auto 1.2rem;
  background: conic-gradient(#fff var(--pct, 0%), rgba(255,255,255,.22) 0);
  position: relative;
}
.result-ring::before { content: ""; position: absolute; inset: 13px; border-radius: 50%; background: var(--brand-700); }
.result-ring b { position: relative; font-family: var(--font-head); font-size: 2.2rem; color: #fff; }

/* --- شارة صغيرة عائمة على البطاقة --- */
.corner-badge {
  position: absolute;
  top: 12px; inset-inline-end: 12px;
  background: var(--gold-500);
  color: #3a2708;
  font-size: .72rem;
  font-weight: 800;
  padding: .2rem .7rem;
  border-radius: 99px;
}

/* ---------- 24. الطباعة ---------- */
@media print {
  .site-header, .topbar, .fab, .site-footer, .btn, .no-print, .focus-banner { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .card, .acc { break-inside: avoid; border: 1px solid #ccc; box-shadow: none; }
  .acc-body { max-height: none !important; }
  .section { padding: 1rem 0; }
  a::after { content: ""; }
  /* اطبع كل نماذج التبويبات دفعة واحدة (لا نموذجًا واحدًا فقط) */
  .tabs { display: none !important; }
  .tab-panel { display: block !important; break-before: page; }
  .tab-panel:first-child { break-before: auto; }
}

/* ---------- 25. شريط التركيز الشخصي + فلتر الأسلاك ---------- */
.focus-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .5rem 1rem;
  background: var(--brand-50, #eafbf5);
  border-bottom: 1px solid var(--brand-200, #b7ecd9);
  color: var(--brand-700, var(--brand-600));
  font-size: .86rem;
  font-weight: 600;
  padding: .55rem 1rem;
  text-align: center;
}
.focus-banner b { font-weight: 800; }
.focus-banner .btn { flex-shrink: 0; }
.focus-banner .fb-close {
  background: none; border: none; cursor: pointer; font-size: 1rem;
  color: inherit; opacity: .6; line-height: 1; padding: .2rem .4rem;
}
.focus-banner .fb-close:hover { opacity: 1; }
[data-theme="dark"] .focus-banner {
  background: rgba(16,185,129,.1);
  border-color: rgba(16,185,129,.28);
  color: var(--brand-300);
}

.cycle-filter {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
  margin: 0 0 1.2rem;
}
.cycle-pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--surface);
  font-weight: 700;
  font-size: .88rem;
  cursor: pointer;
  transition: .2s;
}
.cycle-pill:hover { border-color: var(--brand-500); }
.cycle-pill.active {
  background: linear-gradient(135deg, var(--brand-600), var(--brand-500));
  border-color: transparent;
  color: #fff;
}
.spec-tile--focus { border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(233,162,59,.18); }
