:root {
  --bg: #f5f6f4;
  --surface: #ffffff;
  --ink: #17221f;
  --muted: #5b6763;
  --line: #e2e6e3;
  --brand: #1f5e5b;
  --brand-ink: #ffffff;
  --brand-soft: #e5f0ee;
  --ok: #1d7a46;
  --ok-soft: #e4f4ea;
  --warn: #9a5b00;
  --warn-soft: #fdf1dc;
  --bad: #b3261e;
  --bad-soft: #fbe7e5;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(23, 34, 31, .06), 0 4px 16px rgba(23, 34, 31, .05);
  /* هوية التصميم المعتمد (design/*.png): أخضر غامق، ذهبي، نعناعي فاتح، وكريمي */
  --gold: #e0a13a;
  --gold-ink: #3b2a08;
  --gold-soft: #fbefd7;
  --mint: #e3f2ec;
  --mint-2: #cfe6dd;
  --cream: #fbf8f1;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: 16px; line-height: 1.65;
}
a { color: var(--brand); }
img { max-width: 100%; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

/* الشريط العلوي */
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.topbar .wrap { display: flex; align-items: center; gap: 12px; min-height: 58px; }
.brand { font-weight: 700; font-size: 20px; color: var(--brand); text-decoration: none; display: flex; align-items: center; gap: 8px; }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 16px; }
.spacer { flex: 1; }
.nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { text-decoration: none; color: var(--muted); padding: 8px 12px; border-radius: 10px; white-space: nowrap; font-size: 15px; }
.nav a.on { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.nav .count { background: var(--warn); color: #fff; border-radius: 99px; font-size: 12px; padding: 0 7px; margin-inline-start: 4px; }
.logout { background: none; border: 0; color: var(--muted); font: inherit; cursor: pointer; padding: 8px; }
@media (max-width: 720px) {
  .topbar .wrap { flex-wrap: wrap; padding-top: 8px; }
  .nav { order: 3; width: 100%; padding-bottom: 8px; }
}

.banner { background: var(--warn-soft); color: var(--warn); font-size: 14px; text-align: center; padding: 6px 16px; }
main { padding: 22px 0 48px; }
h1 { font-size: 24px; margin: 0 0 4px; }
h2 { font-size: 18px; margin: 0 0 12px; }
.lead { color: var(--muted); margin: 0 0 20px; }

.flash { padding: 12px 14px; border-radius: 12px; margin: 0 0 16px; }
.flash.ok { background: var(--ok-soft); color: var(--ok); }
.flash.bad { background: var(--bad-soft); color: var(--bad); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin-bottom: 16px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.stat .label { color: var(--muted); font-size: 14px; }
.stat .value { font-size: 30px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat .hint { color: var(--muted); font-size: 13px; }
.meter { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; margin-top: 8px; }
.meter span { display: block; height: 100%; background: var(--brand); border-radius: 99px; }

.gaps { background: var(--warn-soft); border: 1px solid #f1d8a8; color: var(--warn); }
.gaps ul { margin: 6px 0 0; padding-inline-start: 20px; }

.list { display: grid; gap: 10px; }
.item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.item-top { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.item-title { font-weight: 700; font-size: 16px; }
.item-meta { color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 2px; }
.item-reason { font-size: 14px; margin-top: 8px; color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.pill { display: inline-block; font-size: 13px; padding: 2px 10px; border-radius: 99px; white-space: nowrap; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.muted { background: var(--line); color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); border-radius: 10px; padding: 8px 14px; font: inherit; font-size: 14px; text-decoration: none; cursor: pointer; min-height: 40px; }
.btn:hover { border-color: #c9d1cd; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); font-weight: 600; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.block { width: 100%; }
.btn.small { min-height: 34px; padding: 5px 10px; font-size: 13px; }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs a { text-decoration: none; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); font-size: 14px; background: var(--surface); }
.tabs a.on { background: var(--brand); color: #fff; border-color: var(--brand); }

form .field { margin-bottom: 14px; }
label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 15px; }
.help { color: var(--muted); font-size: 13px; margin-top: 4px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel], select, textarea {
  width: 100%; border: 1px solid #cfd6d2; border-radius: 10px; padding: 10px 12px; font: inherit; background: #fff; color: var(--ink); min-height: 44px; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--brand-soft); border-color: var(--brand); }
input.code { letter-spacing: 3px; text-align: center; font-size: 22px; direction: ltr; font-family: "Consolas", monospace; text-transform: uppercase; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px; }
.check { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-weight: 400; background: #fff; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }
.check.disabled { opacity: .5; cursor: not-allowed; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .grid2 { grid-template-columns: 1fr; } }

.auth { max-width: 440px; margin: 40px auto; }
.auth .card { padding: 24px; }
.auth h1 { text-align: center; }
.auth .lead { text-align: center; }
.center { text-align: center; }
.muted { color: var(--muted); }
.empty { text-align: center; color: var(--muted); padding: 30px 10px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 15px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
bdi.ltr { direction: ltr; unicode-bidi: isolate; }

.footer { border-top: 1px solid var(--line); padding: 18px 0 28px; color: var(--muted); font-size: 14px; }
.footer .wrap { display: flex; gap: 18px; flex-wrap: wrap; }
.footer a { color: var(--muted); text-decoration: none; }
.btn.danger { background: var(--bad); border-color: var(--bad); color: #fff; font-weight: 600; }
.check.consent { margin: 4px 0 14px; align-items: flex-start; line-height: 1.6; }
.check.consent input { margin-top: 4px; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th, table.data td { text-align: start; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { color: var(--muted); font-weight: 600; background: #fafbfa; position: sticky; top: 0; }
table.data td.num, table.data th.num { text-align: end; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; }
.inline-form .field { margin: 0; min-width: 120px; flex: 1; }
code, .mono { font-family: Consolas, "Courier New", monospace; direction: ltr; unicode-bidi: isolate; }

/* الصفحة التعريفية */
.hero { text-align: center; padding: 34px 0 26px; }
.eyebrow { color: var(--brand); font-weight: 600; margin: 0 0 8px; }
.hero h1 { font-size: clamp(28px, 6vw, 44px); line-height: 1.3; margin: 0 0 14px; }
.hero-lead { color: var(--muted); max-width: 640px; margin: 0 auto 22px; font-size: 17px; }
.hero-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.hero-actions .btn { min-width: 150px; min-height: 46px; font-size: 16px; }
.steps, .features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 26px 0; }
.step, .feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.step h3, .feature h3 { margin: 6px 0 6px; font-size: 17px; }
.step p, .feature p { margin: 0; color: var(--muted); }
.step-n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 700; }
.plans-section { margin: 36px 0; }
.plans-section h2, .faq h2, .cta h2 { font-size: 24px; text-align: center; margin-bottom: 6px; }
.plans-section .lead { text-align: center; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; align-items: stretch; }
.plan { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--brand); }
.plan-tag { position: absolute; top: -12px; inset-inline-start: 18px; background: var(--brand); color: #fff; font-size: 13px; padding: 2px 12px; border-radius: 99px; }
.plan h3 { margin: 0; font-size: 19px; }
.price { margin: 8px 0 12px; color: var(--muted); }
.price .amount { font-size: 38px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.plan ul { margin: 0 0 18px; padding-inline-start: 20px; flex: 1; }
.plan li { margin-bottom: 6px; }
.faq { max-width: 760px; margin: 36px auto; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin-bottom: 8px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 8px 0 0; color: var(--muted); }
.cta { text-align: center; margin: 40px 0 10px; }
.legal { max-width: 780px; }
.legal h2 { margin-top: 22px; }
.legal p, .legal li { color: #2c3835; }
bdi.ltr { white-space: nowrap; display: inline-block; max-width: 100%; overflow-wrap: anywhere; }

/* ===== معالج التسجيل ===== */
.wizard { max-width: 760px; margin: 0 auto; }
.progress { list-style: none; padding: 0; margin: 4px 0 18px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; counter-reset: stage; }
.progress li { position: relative; text-align: center; font-size: 12.5px; color: var(--muted); padding-top: 34px; }
.progress li::before { counter-increment: stage; content: counter(stage); position: absolute; top: 0; inset-inline-start: 50%; transform: translateX(50%);
  width: 28px; height: 28px; line-height: 28px; border-radius: 50%; background: var(--line); color: var(--muted); font-weight: 700; font-size: 14px; }
[dir="ltr"] .progress li::before { transform: translateX(-50%); }
.progress li.done::before { background: var(--brand-soft); color: var(--brand); content: "✓"; }
.progress li.on { color: var(--ink); font-weight: 600; }
.progress li.on::before { background: var(--brand); color: #fff; }
.progress-bar { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; margin: -8px 0 18px; }
.progress-bar span { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.step-title { margin: 0 0 4px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: space-between; align-items: center; margin-top: 16px; }
.actions .btn.primary { min-width: 140px; }
.later { font-size: 14px; color: var(--muted); }
.tasklist { display: grid; gap: 6px; }
.tasklist .check { align-items: flex-start; line-height: 1.55; }
.tasklist .check input { margin-top: 3px; flex: none; }
details.box { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #fff; margin: 8px 0; }
details.box > summary { cursor: pointer; font-weight: 600; list-style-position: inside; }
details.box[open] > summary { margin-bottom: 8px; }
.choice { display: grid; gap: 8px; }
.choice .check { align-items: flex-start; }
.choice .check strong { display: block; }
.choice .check span { color: var(--muted); font-size: 14px; }
.items { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 8px; }
.items li { display: flex; gap: 10px; justify-content: space-between; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #fff; }
.items li .meta { color: var(--muted); font-size: 14px; }
.items li form { margin: 0; }
.flag { background: var(--warn-soft); border-radius: 8px; padding: 2px 6px; font-size: 12.5px; color: var(--warn); }
.cv-frame { width: 100%; height: 560px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.edit-cv textarea { min-height: 64px; }
.edit-cv .bullet { margin-bottom: 6px; }
.lang-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: end; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--brand); animation: spin 1s linear infinite; margin: 10px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.estimate { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.estimate .num { font-size: 28px; font-weight: 700; color: var(--brand); line-height: 1.2; }
.estimate .card { margin: 0; text-align: center; }
@media (max-width: 600px) {
  .progress li { font-size: 0; padding-top: 30px; }
  .progress li.on { font-size: 12px; }
  .lang-row, .estimate { grid-template-columns: 1fr; }
  .cv-frame { height: 440px; }
  .actions { flex-direction: column-reverse; align-items: stretch; }
  .actions .btn { width: 100%; }
}
@media (max-width: 720px) {
  .nav a { padding: 7px 9px; font-size: 14px; }
  /* تلميح أن القائمة تتمرر أفقياً: تلاشي عند طرفها (اليسار في RTL) */
  .nav { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 28px); mask-image: linear-gradient(to right, transparent 0, #000 28px); }
}

/* ===== المرحلة السادسة: الشعار، ولوحة المشترك (شاشة واحدة)، والقوائم ===== */
.brand { display: inline-flex; align-items: center; gap: 8px; }
.logo { display: block; border-radius: 9px; }
.who { color: var(--muted); font-size: 13px; }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); font-weight: 600; }
.btn.gold:hover { filter: brightness(1.05); }
.btn.outline { background: #fff; border-color: var(--brand); color: var(--brand); font-weight: 600; }
.link-btn { background: none; border: 0; color: var(--muted); font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; padding: 4px 6px; }
.link-btn:hover { color: var(--brand); }

.board { max-width: 980px; margin: 8px auto 24px; }
.board-hero { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 8px; background: linear-gradient(180deg, var(--mint) 0%, var(--cream) 100%);
  border: 1px solid var(--line); border-radius: 20px; overflow: hidden; padding: 18px 22px; box-shadow: var(--shadow); }
.hero-text { order: 1; }
.hero-art { order: 2; }
.art-desk { width: 100%; height: auto; display: block; }
.welcome { font-size: 34px; line-height: 1.2; margin: 0 0 4px; display: flex; align-items: center; gap: 10px; }
.spark { width: 26px; height: 26px; background:
  linear-gradient(var(--gold), var(--gold)) 50% 0 / 3px 9px no-repeat,
  linear-gradient(var(--gold), var(--gold)) 100% 60% / 9px 3px no-repeat,
  linear-gradient(var(--gold), var(--gold)) 80% 20% / 3px 8px no-repeat; transform: rotate(-10deg); }
.days { color: var(--muted); margin: 0 0 16px; font-size: 15px; }
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mode-form { margin: 0; }
.mode { width: 100%; min-height: 74px; border-radius: 16px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-weight: 700;
  font-size: 16px; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 10px 12px;
  box-shadow: 0 2px 0 rgba(23,34,31,.04); transition: background .2s, color .2s, border-color .2s, transform .15s; }
.mode:hover { border-color: #c4d3cd; }
.mode:active { transform: scale(.98); }
.mode .mode-label { display: inline-flex; align-items: center; gap: 6px; }
.mode .on-badge { display: none; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; background: #fff; color: var(--brand); border-radius: 99px; padding: 1px 9px 1px 7px; }
.mode.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.mode.on .on-badge { display: inline-flex; }
.mode-notice { margin: 10px 0 0; background: var(--gold-soft); color: #6a4a10; border-radius: 12px; padding: 10px 12px; font-size: 14px; }

.board-stats { display: grid; grid-template-columns: 1fr 1.5fr; gap: 14px; margin-top: 16px; align-items: stretch; }
.big-card { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: linear-gradient(135deg, var(--mint) 0%, #f3faf7 100%);
  border: 1px solid var(--line); border-radius: 20px; padding: 18px 22px; box-shadow: var(--shadow); }
.big-num { font-size: 64px; font-weight: 700; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.big-label { font-size: 20px; font-weight: 700; margin-top: 4px; }
.doc-art { flex: none; }
.stat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px 10px 14px; text-align: center; box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font: inherit; color: inherit; }
.stat-card.clickable { cursor: pointer; transition: transform .15s, box-shadow .15s, border-color .15s; }
.stat-card.clickable:hover { transform: translateY(-2px); border-color: var(--mint-2); }
.stat-card:focus-visible, .mode:focus-visible, .btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.sc-num { font-size: 30px; font-weight: 700; line-height: 1.2; }
.sc-label { font-size: 14px; color: var(--muted); font-weight: 600; }
.dot { position: absolute; top: 10px; inset-inline-end: 10px; width: 22px; height: 22px; border-radius: 50%; background: var(--gold); color: #fff; font-weight: 700;
  font-size: 14px; line-height: 22px; text-align: center; box-shadow: 0 0 0 4px var(--gold-soft); }
.settings-link { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 22px auto 0; width: max-content; color: var(--ink); font-weight: 700;
  text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--brand); padding: 8px 12px; }

/* القوائم: من الجنب في الكمبيوتر، ومن تحت في الجوال */
dialog.drawer { border: 0; padding: 18px; margin: 0; max-height: 100vh; height: 100vh; width: min(460px, 100vw); inset-inline-start: auto; inset-inline-end: 0;
  top: 0; background: var(--cream); box-shadow: -10px 0 40px rgba(23,34,31,.18); overflow-y: auto; }
dialog.drawer[open] { animation: slide-side .28s ease-out; }
dialog.drawer::backdrop { background: rgba(23, 34, 31, .38); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.drawer-head h2 { display: flex; align-items: center; gap: 8px; font-size: 19px; margin: 0; }
.drawer-head h2 svg { width: 32px; height: 32px; }
.x { border: 0; background: none; font-size: 30px; line-height: 1; cursor: pointer; color: var(--muted); padding: 4px 8px; }
.jobs { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.job { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px; display: grid; gap: 10px; transition: opacity .25s, transform .25s; }
.job.leaving { opacity: 0; transform: translateX(-24px); }
.job-text { display: grid; gap: 2px; }
.job-text span { color: var(--muted); font-size: 14px; }
.job-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.job-actions form { margin: 0; margin-inline-start: auto; }
.job-actions .btn { gap: 6px; }
.empty-note { color: var(--muted); text-align: center; margin-top: 20px; }

/* الحركة */
.reveal { animation: rise .5s ease-out both; animation-delay: calc(var(--i, 0) * 110ms); }
.art-desk .plane { animation: glide 7s ease-in-out infinite; transform-origin: 460px 50px; }
.art-desk .trail { animation: dash 7s linear infinite; }
.doc-art .mini-plane { animation: glide-small 5s ease-in-out infinite; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes glide { 0%, 100% { transform: translate(0, 0) rotate(0deg); } 50% { transform: translate(-14px, 9px) rotate(-4deg); } }
@keyframes glide-small { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-5px, 4px); } }
@keyframes dash { to { stroke-dashoffset: -120; } }
@keyframes slide-side { from { transform: translateX(-100%); } to { transform: none; } }
@keyframes slide-up { from { transform: translateY(100%); } to { transform: none; } }

@media (max-width: 720px) {
  .board-hero { grid-template-columns: 1fr; padding: 16px; }
  .hero-art { order: 0; margin: -16px -16px -6px; max-height: 118px; overflow: hidden; }
  .hero-art .art-desk { margin-top: -26px; }
  .hero-art .laptop, .hero-art .dallah, .hero-art .leaves, .hero-art .trail { display: none; }
  .welcome { font-size: 30px; }
  .modes { grid-template-columns: 1fr; }
  .mode { flex-direction: row-reverse; justify-content: space-between; min-height: 62px; padding: 10px 16px; }
  .mode:not(.on) { justify-content: center; }
  .board-stats { grid-template-columns: 1fr; }
  .big-num { font-size: 56px; }
  .stat-cards { gap: 8px; }
  .stat-card { padding: 14px 6px 12px; }
  .sc-num { font-size: 26px; }
  .sc-label { font-size: 13px; }
  .who { display: none; }
  dialog.drawer { inset-inline: 0; top: auto; bottom: 0; width: 100vw; max-width: 100vw; height: auto; max-height: 86vh; border-radius: 22px 22px 0 0;
    box-shadow: 0 -10px 40px rgba(23,34,31,.2); }
  dialog.drawer[open] { animation: slide-up .28s ease-out; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal, dialog.drawer[open], .art-desk .plane, .art-desk .trail, .doc-art .mini-plane { animation: none !important; }
  .job, .mode, .stat-card { transition: none !important; }
}

/* الدخول والتفعيل وشاشة رقم العميل */
.big-input { font-size: 22px; letter-spacing: 2px; text-align: center; font-variant-numeric: tabular-nums; }
.ticket-art { text-align: center; margin-bottom: -6px; }
.remember { border: 0; background: none; padding: 4px 0 12px; }
.small { font-size: 13px; }
.creds { display: grid; gap: 12px; text-align: center; }
.cred { display: grid; gap: 2px; background: var(--mint); border-radius: 14px; padding: 12px; }
.cred span { color: var(--muted); font-size: 14px; font-weight: 600; }
.cred-value { font-size: 40px; font-weight: 700; letter-spacing: 3px; direction: ltr; font-variant-numeric: tabular-nums; color: var(--ink); }
.creds-page .lead { text-align: center; }
.settings-page { max-width: 820px; margin: 0 auto; }
.settings-page section { scroll-margin-top: 80px; }

/* ===== المرحلة السابعة: الشروحات ===== */
.guide { max-width: 860px; margin: 0 auto 30px; }
.guide h1 { font-size: 30px; margin: 4px 0 8px; }
.eyebrow { color: var(--brand); font-weight: 700; font-size: 14px; margin: 0; }
.g-steps { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 14px; }
.g-step { display: grid; grid-template-columns: 64px 1fr 280px; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line);
  border-radius: 18px; padding: 16px; box-shadow: var(--shadow); }
.g-num { width: 52px; height: 52px; border-radius: 16px; background: var(--brand); color: #fff; font-size: 26px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; }
.g-step:nth-child(even) .g-num { background: var(--gold); color: var(--gold-ink); }
.g-text p { margin: 0 0 6px; font-size: 17px; }
.g-text h2 { font-size: 19px; margin: 0 0 6px; }
.g-note { color: var(--muted); font-size: 14px !important; background: var(--mint); border-radius: 10px; padding: 6px 10px; display: inline-block; }
.g-sub { margin: 4px 0 8px; padding-inline-start: 20px; }
.g-art { width: 100%; height: auto; display: block; }
.g-art .pulse { animation: pulse-soft 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.g-art .draw { stroke-dasharray: 60; animation: draw 1.4s ease-out both .4s; }
.g-section { margin-top: 26px; }
.g-section h2 { font-size: 22px; }
.small-steps .g-step { grid-template-columns: 52px 1fr 240px; }
.small-steps .g-step:first-child { grid-template-columns: 52px 1fr; }
.small-steps .g-num { width: 42px; height: 42px; font-size: 20px; border-radius: 12px; }
.tips ul { background: var(--gold-soft); border-radius: 16px; padding: 14px 34px 14px 16px; }
.tips li { margin: 4px 0; }
.g-footer { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--mint); border-radius: 18px; padding: 16px 18px; }
.g-footer .btn { min-width: 150px; }
.g-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.g-links a { font-weight: 600; }
@keyframes pulse-soft { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes draw { from { stroke-dashoffset: 60; } to { stroke-dashoffset: 0; } }
@media (max-width: 720px) {
  .guide h1 { font-size: 25px; }
  .g-step, .small-steps .g-step, .small-steps .g-step:first-child { grid-template-columns: 48px 1fr; }
  .g-step .g-art { grid-column: 1 / -1; max-width: 360px; justify-self: center; }
  .g-num { width: 44px; height: 44px; font-size: 22px; border-radius: 13px; }
  .g-text p { font-size: 16px; }
  .g-footer { flex-direction: column; align-items: stretch; text-align: center; }
  .g-links { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .g-art .pulse, .g-art .draw { animation: none !important; } }

/* ================= لوحة الإدارة (المرحلة الثامنة): قائمة جانبية ================= */
input[type=url] { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font: inherit; background: #fff; }
.admin-body { --c1: #008c7e; --c2: #d48a1f; --side: #17403d; background: #f3f5f3; }
.side { position: fixed; inset: 0 0 0 auto; width: 232px; background: var(--side); color: #d7e5e1; display: flex; flex-direction: column;
  padding: 18px 12px; gap: 14px; z-index: 20; overflow-y: auto; }
.side-brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 17px; padding: 4px 8px 10px; }
.side-brand svg { width: 30px; height: 30px; }
.side-brand.plain { color: var(--brand); margin: 0 0 18px; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a { display: flex; align-items: center; gap: 10px; color: #c6d8d3; text-decoration: none; padding: 10px 12px; border-radius: 10px; font-size: 15px; }
.side-nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.side-nav a.on { background: var(--gold); color: var(--gold-ink); font-weight: 700; }
.side-icon { width: 20px; height: 20px; flex: none; }
.side-out { margin-top: auto; }
.side-out .logout { color: #c6d8d3; }
.admin-main { margin-right: 232px; padding-top: 26px; }
.admin-main.no-side { margin-right: 0; }
.admin-main .wrap { max-width: 1180px; }
.a-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.a-head h1 { margin: 0 0 4px; }
.kpis { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 14px; margin: 8px 0 16px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; box-shadow: var(--shadow); }
.kpi-label { color: var(--muted); font-size: 14px; }
.kpi-value { font-size: 30px; font-weight: 700; line-height: 1.2; }
.kpi-value small { font-size: 15px; font-weight: 600; color: var(--muted); }
.kpi-value.hero { font-size: 48px; }
.kpi-hint { color: var(--muted); font-size: 13px; }
.lead-kpi { background: linear-gradient(160deg, #fff, var(--mint)); }
.a-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.a-grid > .card { margin-bottom: 0; min-width: 0; }
.a-grid + .a-grid { margin-top: 16px; }
.chart-card h2 { margin: 0; font-size: 18px; }
.chart-sub { color: var(--muted); margin: 2px 0 10px; font-size: 14px; }
.chart { position: relative; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid { stroke: #e7ebe8; stroke-width: 1; }
.chart .tick { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart .peak { fill: var(--ink); font-size: 12px; font-weight: 700; }
.chart .col { fill: var(--c1); }
.chart .ln { fill: none; stroke: var(--c2); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { fill: var(--c2); opacity: .1; }
.chart .end { fill: var(--c2); stroke: var(--surface); stroke-width: 2; }
.chart .xhair { stroke: #b9c4bf; stroke-width: 1; }
.chart .hit { fill: transparent; cursor: crosshair; }
.chart .hit.on { fill: rgba(0, 140, 126, .07); }
.chart .tip { position: absolute; top: -6px; background: var(--ink); color: #fff; font-size: 13px; padding: 5px 9px; border-radius: 8px;
  pointer-events: none; white-space: nowrap; direction: rtl; }
.table-view { margin-top: 8px; font-size: 14px; }
.table-view summary { color: var(--brand); cursor: pointer; }
.table-view table { margin-top: 8px; }
.hbars { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.hbars li { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: 2px 12px; align-items: center; }
.hb-name { font-weight: 600; font-size: 14px; }
.hb-track { display: flex; align-items: center; gap: 8px; min-width: 0; }
.hb-bar { height: 14px; background: var(--c1); border-radius: 4px 0 0 4px; min-width: 2px; }
.hb-val { font-weight: 700; font-size: 13px; white-space: nowrap; }
.hb-sub { grid-column: 2; color: var(--muted); font-size: 12px; }
.seg { display: flex; gap: 2px; height: 28px; margin: 6px 0 12px; }
.seg-part { border-radius: 4px; display: flex; align-items: center; padding: 0 10px; font-size: 13px; font-weight: 700; min-width: 2px; }
.seg-part.a { background: var(--c1); color: #fff; }
.seg-part.m { background: var(--c2); color: #1b1407; }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.legend .key { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-left: 8px; vertical-align: -1px; }
.legend .key.a { background: var(--c1); }
.legend .key.m { background: var(--c2); }
.badge { display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 99px; background: var(--gold-soft); color: #6a4a10; font-weight: 600; vertical-align: 1px; }
.muted-row td { color: var(--muted); }
td.actions { display: table-cell; white-space: nowrap; }
td.actions form { display: inline; margin-inline-start: 10px; }
.linkish { background: none; border: 0; padding: 0; color: var(--brand); font: inherit; cursor: pointer; text-decoration: underline; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; max-width: 820px; }
.form-grid .field { margin-bottom: 8px; }
.form-grid .check, .form-grid .form-actions { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 10px; margin-top: 6px; }
.help-list { margin: 0; padding-inline-start: 20px; line-height: 1.9; color: var(--muted); }
.errs { margin: 0 0 8px; padding-inline-start: 18px; line-height: 1.8; font-size: 14px; }
.resolved { margin: 6px 0 0; font-size: 13px; line-height: 1.7; white-space: normal; min-width: 260px; max-width: 640px; }
.admin-body table.data td:has(.resolved), .admin-body table.data td:has(details.resolve) { white-space: normal; min-width: 280px; }
details.resolve { margin-top: 6px; font-size: 13px; }
details.resolve summary { cursor: pointer; color: var(--brand); }
details.resolve .inline-form { margin-top: 6px; }
details.resolve input[name=note] { flex: 1; min-width: 200px; }
@media (max-width: 1100px) { .kpis { grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) {
  .side { position: sticky; top: 0; inset: auto; width: auto; flex-direction: row; align-items: center; padding: 8px 10px; gap: 6px; }
  .side-brand span, .side-out { display: none; }
  .side-brand { padding: 0 4px; }
  .side-nav { flex-direction: row; overflow-x: auto; scrollbar-width: none; gap: 4px; }
  .side-nav a { padding: 8px 10px; white-space: nowrap; font-size: 14px; }
  .side-nav a .side-icon { width: 18px; height: 18px; }
  .admin-main { margin-right: 0; padding-top: 16px; }
  .a-grid, .form-grid { grid-template-columns: 1fr; }
  .kpi-value.hero { font-size: 40px; }
}
@media (max-width: 520px) { .kpis { grid-template-columns: 1fr; } .hbars li { grid-template-columns: 1fr; } .hb-sub { grid-column: 1; } }

/* ================= الصفحة التعريفية (المرحلة الثامنة) ================= */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.btn.big { min-height: 50px; padding: 12px 26px; font-size: 17px; border-radius: 14px; }
body.landing { background: #fbfcfb; }
.l-wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.l-narrow { max-width: 820px; }
.l-top { position: sticky; top: 0; z-index: 30; background: rgba(251, 252, 251, .92); backdrop-filter: blur(8px); border-bottom: 1px solid #e8eeeb; }
.l-top-in { display: flex; align-items: center; gap: 18px; min-height: 66px; }
.l-brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--brand); font-weight: 700; font-size: 21px; }
.l-brand svg { width: 34px; height: 34px; }
.l-brand.light { color: #fff; }
.l-nav { display: flex; gap: 4px; margin-inline-start: auto; }
.l-nav a { text-decoration: none; color: var(--muted); padding: 8px 14px; border-radius: 99px; font-size: 15px; white-space: nowrap; }
.l-nav a:hover { color: var(--brand); }
.l-nav a.on { background: var(--mint); color: var(--brand); font-weight: 700; }
.l-top-actions { display: flex; align-items: center; gap: 10px; }
.l-burger { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 12px; background: #fff; flex-direction: column;
  justify-content: center; align-items: center; gap: 4px; cursor: pointer; }
.l-burger span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; }
.l-hero { background: radial-gradient(120% 90% at 85% 0%, #ffffff 0%, var(--mint) 60%, #d9eee7 100%); overflow: hidden; }
.l-hero-in { display: grid; grid-template-columns: 1fr 1.25fr; align-items: center; gap: 24px; padding-top: 38px; padding-bottom: 70px; }
.l-hero-text h1 { font-size: clamp(44px, 6vw, 72px); line-height: 1.05; margin: 0; color: var(--brand); letter-spacing: 0; }
.l-sub { font-size: clamp(20px, 2.4vw, 27px); font-weight: 700; margin: 8px 0 14px; color: var(--ink); }
.l-lead { font-size: 19px; line-height: 1.85; margin: 0 0 10px; color: var(--ink); max-width: 34em; }
.l-note { color: var(--muted); margin: 0 0 22px; }
.l-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.l-hero-art { min-width: 0; }
.l-art { width: 100%; height: auto; display: block; overflow: visible; }
.l-art .fly-static { display: none; }
.l-art .orb-halo { transform-box: fill-box; transform-origin: center; animation: orb-pulse 3.2s ease-in-out infinite; }
.l-art .plane-move { animation: plane-glide 26s linear infinite; }
.l-art .steam { animation: steam 3s ease-in-out infinite; }
.l-art .send-btn { transform-box: fill-box; transform-origin: center; animation: send-tap 4.8s ease-in-out infinite; }
@keyframes orb-pulse { 0%, 100% { transform: scale(.88); opacity: .22; } 50% { transform: scale(1.12); opacity: .42; } }
@keyframes plane-glide { 0% { transform: translate(0, 0); } 25% { transform: translate(-150px, 14px); } 50% { transform: translate(-300px, -6px); }
  75% { transform: translate(-440px, 18px); } 100% { transform: translate(-620px, 4px); } }
@keyframes steam { 0%, 100% { opacity: .2; transform: translateY(2px); } 50% { opacity: .8; transform: translateY(-3px); } }
@keyframes send-tap { 0%, 8%, 100% { transform: scale(1); } 4% { transform: scale(.92); } }
.l-estimate { margin-top: -46px; position: relative; z-index: 2; }
.l-est-card { background: #fff; border: 1px solid #e3ebe7; border-radius: 22px; box-shadow: 0 10px 40px rgba(23, 60, 54, .10); padding: 22px 24px;
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 22px; align-items: center; }
.l-est-card h2 { margin: 0; font-size: 22px; }
.l-est-sub { margin: 4px 0 14px; color: var(--muted); font-size: 14px; }
.l-est-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; }
.l-select { position: relative; margin: 0; font-weight: 400; }
.l-select svg { position: absolute; right: 12px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--brand); pointer-events: none; }
.l-select select { padding-right: 40px; min-height: 50px; border-radius: 14px; background: #f7faf9; font-size: 16px; }
.l-est-go { min-height: 50px; padding: 0 18px; border-radius: 14px; }
.l-est-go svg { width: 22px; height: 22px; }
.l-est-result { background: var(--mint); border-radius: 18px; padding: 16px 18px; min-height: 112px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.l-est-result.loading { opacity: .55; }
.l-est-num { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.l-est-num strong { font-size: 44px; line-height: 1; color: var(--brand); }
.l-est-num span { font-weight: 600; }
.l-est-num.idle { align-items: center; color: var(--muted); }
.l-est-num.idle svg { width: 48px; height: 40px; }
.l-est-split { display: flex; gap: 14px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.l-est-split b { color: var(--ink); font-size: 16px; }
.l-est-empty { margin: 0; font-size: 14px; color: var(--muted); }
.l-section { padding: 70px 0; }
.l-tint { background: linear-gradient(180deg, #f2f8f6, #f8fbfa); }
.l-h2 { text-align: center; font-size: clamp(26px, 3vw, 34px); margin: 0 0 8px; }
.l-h2-sub { text-align: center; color: var(--muted); margin: 0 0 30px; }
.l-steps { list-style: none; margin: 34px 0 0; padding: 0; display: flex; align-items: flex-start; justify-content: center; gap: 10px; }
.l-step { flex: 1; max-width: 300px; text-align: center; }
.l-step-art { width: 150px; height: 105px; display: block; margin: 0 auto 6px; }
.l-step h3 { margin: 0 0 6px; font-size: 19px; }
.l-step p { margin: 0; color: var(--muted); line-height: 1.75; }
.l-step-arrow { color: #9cc2b9; padding-top: 42px; }
.l-step-arrow svg { width: 28px; height: 28px; }
.l-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; }
.l-feat { background: #fff; border: 1px solid #e3ebe7; border-radius: 18px; padding: 20px; text-align: center; transition: transform .2s ease, box-shadow .2s ease; }
.l-feat:hover { transform: translateY(-3px); box-shadow: 0 8px 26px rgba(23, 60, 54, .08); }
.l-feat-art { width: 64px; height: 64px; display: block; margin: 0 auto 8px; }
.l-feat h3 { margin: 0 0 6px; font-size: 17px; }
.l-feat p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.75; }
.l-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.l-plan { position: relative; background: linear-gradient(180deg, #fff, #f5faf8); border: 1px solid #dfe9e5; border-radius: 22px; padding: 22px;
  display: flex; flex-direction: column; gap: 10px; }
.l-plan.featured { background: linear-gradient(170deg, #1f5e5b, #17403d); color: #fff; border-color: transparent; box-shadow: 0 14px 40px rgba(23, 64, 61, .25); }
.l-plan-head { display: flex; align-items: center; gap: 10px; }
.l-plan-head h3 { margin: 0; font-size: 22px; }
.l-plan-art { width: 54px; height: 40px; flex: none; }
.l-plan-cities { margin: 0; color: var(--muted); }
.l-plan.featured .l-plan-cities, .l-plan.featured .l-perday, .l-plan.featured .l-amount span, .l-plan.featured .l-plan-list { color: #cfe3de; }
.dur-input { position: absolute; opacity: 0; pointer-events: none; }
.dur-labels { display: flex; background: rgba(31, 94, 91, .08); border-radius: 12px; padding: 4px; gap: 4px; }
.l-plan.featured .dur-labels { background: rgba(255, 255, 255, .12); }
.dur-labels label { flex: 1; text-align: center; margin: 0; padding: 8px; border-radius: 9px; cursor: pointer; font-weight: 600; font-size: 15px; }
.l-price { display: none; }
.l-plan .l-price:only-of-type, .dur-input:nth-of-type(1):checked ~ .l-price:nth-of-type(1), .dur-input:nth-of-type(2):checked ~ .l-price:nth-of-type(2),
.dur-input:nth-of-type(3):checked ~ .l-price:nth-of-type(3), .dur-input:nth-of-type(4):checked ~ .l-price:nth-of-type(4) { display: block; }
.dur-input:nth-of-type(1):checked ~ .dur-labels label:nth-of-type(1), .dur-input:nth-of-type(2):checked ~ .dur-labels label:nth-of-type(2),
.dur-input:nth-of-type(3):checked ~ .dur-labels label:nth-of-type(3), .dur-input:nth-of-type(4):checked ~ .dur-labels label:nth-of-type(4) {
  background: #fff; color: var(--brand); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.dur-input:nth-of-type(1):focus-visible ~ .dur-labels label:nth-of-type(1), .dur-input:nth-of-type(2):focus-visible ~ .dur-labels label:nth-of-type(2),
.dur-input:nth-of-type(3):focus-visible ~ .dur-labels label:nth-of-type(3) { outline: 3px solid var(--gold); outline-offset: 1px; }
.l-amount { margin: 6px 0 0; font-size: 18px; }
.l-amount strong { font-size: 46px; line-height: 1; }
.l-amount span { color: var(--muted); font-size: 15px; }
.l-perday { margin: 2px 0 12px; color: var(--muted); font-size: 14px; }
.l-plan-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 7px; font-size: 14px; color: var(--muted); }
.l-plan-list li::before { content: "✓"; color: var(--gold); font-weight: 700; margin-left: 8px; }
.l-plans-note { text-align: center; color: var(--muted); margin: 22px 0 0; }
.l-faq { display: grid; gap: 10px; margin-top: 26px; }
.l-faq details { background: #fff; border: 1px solid #e3ebe7; border-radius: 14px; padding: 0 18px; }
.l-faq summary { cursor: pointer; padding: 16px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.l-faq summary::-webkit-details-marker { display: none; }
.l-faq summary::after { content: "+"; color: var(--brand); font-size: 22px; line-height: 1; transition: transform .2s ease; }
.l-faq details[open] summary::after { transform: rotate(45deg); }
.l-faq details p { margin: 0 0 16px; color: var(--muted); line-height: 1.85; }
.l-cta { padding: 60px 0 70px; text-align: center; }
.l-cta h2 { font-size: clamp(22px, 3vw, 30px); margin: 0 0 18px; }
.l-cta .l-actions { justify-content: center; }
.l-foot { background: #1f5e5b; color: #d7e7e3; position: relative; padding-bottom: 26px; }
.l-foot-art { display: block; width: 100%; height: 90px; background: #fbfcfb; }
.l-foot-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 18px; }
.l-foot nav { display: flex; gap: 16px; flex-wrap: wrap; }
.l-foot nav a { color: #d7e7e3; text-decoration: none; font-size: 14px; }
.l-foot nav a:hover { color: #fff; text-decoration: underline; }
/* الظهور مع النزول */
.js .sr { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 90ms); }
.js .sr.in { opacity: 1; transform: none; }
@media (max-width: 960px) {
  .l-hero-in { grid-template-columns: 1fr; padding-top: 14px; text-align: center; }
  .l-hero-art { order: -1; max-width: 560px; margin: 0 auto; width: 100%; }
  .l-actions { justify-content: center; }
  .l-lead { margin-inline: auto; }
  .l-est-card { grid-template-columns: 1fr; }
  .l-feats { grid-template-columns: repeat(2, 1fr); }
  .l-plans { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
}
@media (max-width: 760px) {
  .l-nav { display: none; position: absolute; top: 66px; inset-inline: 12px; flex-direction: column; background: #fff; border: 1px solid var(--line);
    border-radius: 16px; padding: 8px; box-shadow: 0 12px 30px rgba(0, 0, 0, .10); }
  .l-nav.open { display: flex; }
  .l-nav a { padding: 12px 14px; }
  .l-burger { display: flex; }
  .l-top-actions { margin-inline-start: auto; }
  .l-top-actions .btn { min-height: 40px; padding: 8px 16px; }
  .l-section { padding: 52px 0; }
  .l-steps { flex-direction: column; align-items: center; gap: 4px; }
  .l-step-arrow { padding: 0; transform: rotate(-90deg); }
  .l-est-form { grid-template-columns: 1fr; }
  .l-est-go span { display: inline; }
  .l-est-card { padding: 18px; }
  .l-feats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .l-feat { padding: 14px 10px; }
  .l-feat p { font-size: 13.5px; }
}
@media (min-width: 761px) { .l-est-go span { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .l-art .orb-halo, .l-art .plane-move, .l-art .steam, .l-art .send-btn { animation: none; }
  .js .sr { opacity: 1; transform: none; transition: none; }
  .l-feat { transition: none; }
}

main.l-main { padding: 0; }
@media (max-width: 960px) { .l-hero-art { margin-bottom: -34px; } .l-hero-in { gap: 0; } }
/* القائمة الجانبية: عمود ممتد بطول الصفحة، ومحتواه ثابت أثناء النزول */
.admin-body { display: flex; align-items: stretch; min-height: 100vh; }
.admin-body .side { position: relative; inset: auto; flex: none; align-self: stretch; padding: 0; display: block; overflow: visible; }
.side-inner { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 14px; padding: 18px 12px; overflow-y: auto; }
.admin-main { flex: 1; min-width: 0; margin-right: 0; }
.chart .tick { font-size: 13px; }
.chart .peak { font-size: 14px; }
@media (max-width: 860px) {
  .admin-body { display: block; }
  .admin-body .side { position: sticky; top: 0; }
  .side-inner { height: auto; flex-direction: row; align-items: center; padding: 8px 10px; gap: 6px; }
}

.admin-body table.data td { white-space: nowrap; }

/* ===================== المرحلة التاسعة: تسهيل تجربة العميل ===================== */
.iv-strip { display: flex; align-items: center; gap: 10px; background: var(--gold-soft); color: var(--gold-ink); border: 1px solid #f0d49e;
  border-radius: 12px; padding: 10px 14px; margin: 0 0 14px; text-decoration: none; font-size: 15px; }
.iv-strip strong { font-weight: 700; }
.iv-strip .go { margin-inline-start: auto; font-weight: 700; }
.iv-strip:hover { background: #f8e4bd; }
.bot-state { margin: 4px 0 10px; font-size: 14px; color: var(--muted); }
.pack { margin-top: 8px; border-top: 1px dashed var(--line); padding-top: 8px; width: 100%; }
.pack summary { cursor: pointer; font-weight: 600; color: var(--brand); font-size: 14px; }
.pack summary .muted { font-weight: 400; font-size: 12px; }
.pack-list { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 6px; }
.pack-list li { display: grid; grid-template-columns: 86px 1fr auto; gap: 8px; align-items: start; background: var(--cream);
  border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; font-size: 14px; }
.pack-list .pk { color: var(--muted); font-size: 13px; }
.pack-list .pv { overflow-wrap: anywhere; line-height: 1.6; }
button.copy { border: 1px solid var(--line); background: var(--surface); color: var(--brand); border-radius: 8px; padding: 3px 10px;
  font: inherit; font-size: 13px; cursor: pointer; min-height: 30px; }
button.copy:hover { background: var(--brand-soft); }
button.copy.copied { background: var(--ok-soft); color: var(--ok); border-color: #bfe3cc; }
.btn.copy { color: inherit; }
.pack-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ext-link { font-size: 13px; }
.doc-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.doc-list li { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.doc-list .doc-kind { font-size: 12px; background: var(--brand-soft); color: var(--brand); border-radius: 99px; padding: 2px 10px; }
.doc-list .doc-title { flex: 1; min-width: 140px; }
.doc-list form { margin: 0; }
.danger-text { color: var(--bad) !important; }
.ref-box { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; background: var(--mint); border-radius: 12px; padding: 12px 14px; }
.ref-box > div { display: flex; flex-direction: column; margin-inline-end: auto; }
.ref-code { font-size: 22px; letter-spacing: 1px; color: var(--brand); }
.hired-hero { text-align: center; padding: 8px 0 6px; }
.hired-hero h1 { margin: 6px 0; }
.confetti { width: 240px; max-width: 70%; height: auto; }
.confetti .cf { animation: cf-float 2.6s ease-in-out infinite alternate; transform-origin: center; }
@keyframes cf-float { from { transform: translateY(0); } to { transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .confetti .cf { animation: none; } }
.stars { display: flex; flex-wrap: wrap; gap: 6px; }
.stars .star input { position: absolute; opacity: 0; }
.stars .star span { display: inline-block; border: 1px solid var(--line); border-radius: 99px; padding: 5px 12px; cursor: pointer; background: var(--surface); }
.stars .star input:checked + span { background: var(--gold-soft); border-color: var(--gold); color: var(--gold-ink); font-weight: 700; }
.stars .star input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 1px; }
.qa { padding-inline-start: 22px; margin: 0; display: grid; gap: 8px; }
.qa summary { cursor: pointer; font-weight: 600; }
.qa p { margin: 6px 0 0; color: var(--ink); line-height: 1.8; }
.tips { display: grid; grid-template-columns: 120px 1fr; gap: 8px 14px; margin: 0; }
.tips dt { font-weight: 700; color: var(--brand); }
.tips dd { margin: 0; }
@media (max-width: 560px) { .tips { grid-template-columns: 1fr; } .tips dd { margin-bottom: 6px; } .pack-list li { grid-template-columns: 1fr auto; }
  .pack-list .pk { grid-column: 1 / -1; } }
.l-coupon { max-width: 640px; margin: 0 auto 18px; text-align: center; background: var(--gold-soft); color: var(--gold-ink);
  border-radius: 12px; padding: 10px 14px; }
.story { margin: 0 0 12px; padding: 10px 14px; border-inline-start: 4px solid var(--gold); background: var(--cream); border-radius: 8px; }
.story footer { font-size: 13px; color: var(--muted); margin-top: 4px; }
.plain-list { margin: 0; padding-inline-start: 18px; line-height: 1.9; }

/* ===================== المرحلة العاشرة: لوحة التغطية ===================== */
.sa-map { width: 100%; height: auto; max-height: 460px; }
.sa-map .land { fill: var(--mint); stroke: var(--mint-2); stroke-width: 1.5; }
.sa-map .bubble { fill: #008c7e; fill-opacity: .55; stroke: #fff; stroke-width: 2; }
.sa-map .bubble.empty { fill: #b9c4c0; fill-opacity: .6; }
.sa-map .bubble-label { font-size: 11px; fill: var(--ink); font-weight: 600; paint-order: stroke; stroke: var(--mint); stroke-width: 3px; }
.sa-map .hit { fill: transparent; cursor: pointer; }
table.data tr.region-row td { background: var(--cream); }
table.data td.sub { padding-inline-start: 26px; color: var(--muted); }
.sources-table .src-name { font-weight: 600; white-space: normal; max-width: 260px; }
.sources-table .src-note { color: var(--warn); white-space: normal; max-width: 300px; }
.admin-body table.sources-table td:first-child { white-space: normal; }
.filters { margin-bottom: 10px; }
.g-forward { background: var(--gold-soft); color: var(--gold-ink); border-radius: 12px; padding: 12px 16px; margin: 18px 0 8px; line-height: 1.8; }

/* ============ المرحلة 11: الصفحات العامة والإعلانات وفيديو المكافأة ============ */
.nav .nav-cta { background: var(--gold); color: var(--gold-ink); padding: 6px 12px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.who-link { font-size: 14px; }
.site-page { padding: 18px 0 40px; }
.site-page.narrow { max-width: 620px; margin: 0 auto; }
.site-page h1 { font-size: 26px; line-height: 1.4; margin: 6px 0 10px; }
.crumbs { font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.area-lead { background: var(--mint); border-radius: var(--radius); padding: 12px 14px; }
.filters-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; align-items: end; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin: 14px 0; }
.filters-bar .field { margin: 0; }
.filters-bar select { width: 100%; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.chips.center { justify-content: center; }
.center { text-align: center; }
.chip { display: inline-flex; gap: 6px; align-items: center; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  text-decoration: none; color: var(--ink); font-size: 14px; }
.chip.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.chip small { color: var(--muted); }
.chip.on small { color: #e3f2ec; }
.count-line { color: var(--muted); font-size: 14px; margin: 8px 0; }
.job-list { display: grid; gap: 10px; }
/* بطاقة الوظيفة: حدود وخلفية بيضاء. الإعلان شكله مختلف تماماً (رمادي مع كلمة «إعلان») حتى ما يتلخبط معها */
.job-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; box-shadow: var(--shadow); }
.job-card h3 { margin: 0 0 4px; font-size: 17px; line-height: 1.5; }
.job-card h3 a { text-decoration: none; color: var(--ink); }
.job-card h3 a:hover { color: var(--brand); text-decoration: underline; }
.job-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; color: var(--muted); font-size: 14px; }
.tag { background: var(--brand-soft); color: var(--brand); border-radius: 6px; padding: 0 8px; font-size: 13px; }
.tag.soft { background: var(--gold-soft); color: var(--gold-ink); }
.pager { display: flex; gap: 12px; align-items: center; justify-content: center; margin: 18px 0; }
.btn.ghost { background: transparent; color: var(--brand); border: 1px solid var(--line); }
.cta-band { margin-top: 28px; background: var(--brand); color: #fff; border-radius: var(--radius); padding: 18px; text-align: center; }
.cta-band h2 { margin: 0 0 6px; }
.cta-band .btn { background: var(--gold); color: var(--gold-ink); }

.ad-slot { margin: 26px 0; padding: 0; display: block; contain: layout; }
.ad-label { font-size: 12px; color: #6b7280; letter-spacing: .02em; margin-bottom: 4px; text-align: center; }
.ad-fake { background: repeating-linear-gradient(45deg, #e9ebea, #e9ebea 10px, #e3e6e4 10px, #e3e6e4 20px); color: #6b7280; border-radius: 4px;
  display: flex; align-items: center; justify-content: center; font-size: 14px; border: 1px dashed #c9cecb; }
.ad-video .ad-video-box { width: 100%; max-width: 400px; aspect-ratio: 16 / 9; margin: 0 auto; }
.ad-video { margin-top: 30px; }

.job-page h1 { margin-bottom: 6px; }
.job-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; margin: 10px 0 16px; }
.job-facts div { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.job-facts dt { font-size: 12px; color: var(--muted); }
.job-facts dd { margin: 0; font-weight: 600; }
.points { padding-inline-start: 18px; margin: 6px 0 10px; }
.points li { margin-bottom: 6px; }
.quote { border-inline-start: 3px solid var(--line); margin: 8px 0; padding: 4px 12px; color: var(--muted); }
/* زر التقديم في صندوقه الخاص، ومسافة واضحة (26–30px) عن أي إعلان قبله أو بعده: ما فيه ضغط بالغلط */
.apply-box { margin: 30px 0; }
.btn.big { font-size: 18px; padding: 12px 22px; }
.source-link { font-weight: 700; }
.expired-box { background: var(--warn-soft); color: var(--warn); border-radius: var(--radius); padding: 12px 14px; margin: 10px 0; }
.ok-note { color: var(--ok); font-weight: 600; }
.error-note { color: var(--bad); font-weight: 600; }
.similar h2 { font-size: 20px; }

.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin: 14px 0; }
.guide-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.guide-card h2, .guide-card h3 { font-size: 17px; margin: 0 0 6px; line-height: 1.5; }
.guide-card p { margin: 0 0 6px; color: var(--muted); font-size: 15px; }
.article { max-width: 760px; margin: 0 auto; }
.prose { font-size: 17px; line-height: 1.9; }
.prose h2 { font-size: 21px; margin: 26px 0 8px; }
.prose h3 { font-size: 18px; margin: 18px 0 6px; }
.prose li { margin-bottom: 6px; }
.more-guides { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 12px; }
.prose-page { max-width: 760px; margin: 0 auto; }

.kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 14px 0; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; text-align: center; }
.stat-num { display: block; font-size: 28px; font-weight: 700; color: var(--brand); }
.stat-label { color: var(--muted); font-size: 14px; }
.bars { display: grid; gap: 8px; }
.bar-row { display: grid; grid-template-columns: minmax(90px, 160px) 1fr 44px; gap: 8px; align-items: center; font-size: 14px; }
.bar { background: var(--mint); border-radius: 6px; height: 14px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--brand); border-radius: 6px; }
.bar-num { text-align: start; font-variant-numeric: tabular-nums; }

.form-card .field { margin-bottom: 12px; }
.form-card input, .form-card select, .form-card textarea { width: 100%; }
/* الحقل المخفي ضد البوتات: بدون left سالب (في RTL يوسّع الصفحة للجنب ويغطي الأزرار على الجوال) */
.hp { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.big-number { font-size: 30px; letter-spacing: .05em; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: center; }

.cookie-note { position: fixed; inset-inline: 12px; bottom: 12px; z-index: 50; background: var(--ink); color: #fff; border-radius: 12px; padding: 10px 14px;
  display: flex; gap: 12px; align-items: center; max-width: 720px; margin: 0 auto; box-shadow: var(--shadow); font-size: 14px; }
.cookie-note[hidden] { display: none; }
.cookie-note p { margin: 0; }
.cookie-note a { color: var(--gold); }

.verify-note { background: var(--warn-soft); color: var(--warn); border-radius: 10px; padding: 8px 12px; margin: 8px 0; font-size: 14px; }
.verify-note form.inline { display: inline; }
.linklike { background: none; border: 0; color: var(--brand); text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }
.credit-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin: 16px 0; text-align: center; }
.credit-card h2 { margin: 0 0 6px; font-size: 18px; }
.credit-line { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: center; color: var(--muted); font-size: 14px; }
.reward-btn { background: var(--gold); color: var(--gold-ink); margin-top: 8px; }
.reward-dialog { border: 0; border-radius: 16px; max-width: 460px; width: calc(100% - 24px); padding: 18px; }
.reward-dialog::backdrop { background: rgba(10, 20, 18, .55); }
.reward-dialog .actions { display: flex; gap: 10px; justify-content: center; margin-top: 12px; }
.fake-video { aspect-ratio: 16 / 9; background: linear-gradient(135deg, #1f5e5b, #2b7d77); border-radius: 10px; color: #fff; display: flex; flex-direction: column;
  align-items: center; justify-content: center; position: relative; overflow: hidden; }
.fake-video-bar { position: absolute; inset-inline: 0; bottom: 0; height: 6px; background: rgba(255,255,255,.25); }
.fake-video-bar span { display: block; height: 100%; width: 0; background: var(--gold); transition: width 1s linear; }
.fake-video-text { margin: 0; font-weight: 700; }
.fake-video-count { margin: 4px 0 0; font-size: 28px; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .site-page h1 { font-size: 22px; }
  .bar-row { grid-template-columns: 90px 1fr 36px; }
  .cookie-note { flex-direction: column; align-items: stretch; }
}

.apply-box .btn, .cta-band .btn { box-shadow: var(--shadow); }
.apply-box .btn.big { background: var(--brand); color: #fff; border: 0; }


/* ============ المرحلة 12: الخدمات ============ */
.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 16px 0; }
.tool-grid.compact { gap: 10px; }
@media (max-width: 720px) { .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tool-tile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 18px 12px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 16px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .15s ease, border-color .15s ease; }
.tool-tile:hover, .tool-tile:focus-visible { transform: translateY(-2px); border-color: var(--brand); }
.tool-grid.compact .tool-tile { padding: 12px 8px; }
.tool-name { font-weight: 700; font-size: 17px; }
.tool-desc { color: var(--muted); font-size: 14px; line-height: 1.5; }
.tool-grid.compact .tool-desc { font-size: 13px; }
@media (prefers-reduced-motion: reduce) { .tool-tile { transition: none; } .tool-tile:hover { transform: none; } }
.tool-head { display: flex; gap: 14px; align-items: center; }
.tool-head h1 { margin: 0; }
.tool-head .lead { margin: 4px 0 0; }
.tool-box { margin: 16px 0; }
.tool-form .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 560px) { .tool-form .grid2 { grid-template-columns: 1fr; } }
.tool-form input, .tool-form select, .tool-form textarea { width: 100%; font-size: 17px; padding: 10px 12px; }
.tool-form .btn.big, .cvb-nav .btn { min-width: 160px; }
.tool-form fieldset { border: 0; padding: 0; margin: 0 0 12px; }
.tool-form legend { font-weight: 600; margin-bottom: 4px; }
.help { color: var(--muted); font-size: 13px; margin: 4px 0 0; }
.rules { margin: 18px 0 0; padding-inline-start: 18px; font-size: 14px; }
.rules li { margin-bottom: 4px; }
/* النتيجة: صندوقها مسافة بين زر «احسب» وأي إعلان، والإعلان يطلع تحتها بس */
#tool-result { scroll-margin-top: 72px; }
.tool-result { margin: 18px 0 6px; border-inline-start: 4px solid var(--brand); }
.result-big { font-size: 20px; margin: 0 0 8px; }
.result-big strong { color: var(--brand); font-size: 26px; }
.calc-lines { padding-inline-start: 20px; }
.calc-lines li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.calc-lines li bdi { font-variant-numeric: tabular-nums; font-weight: 600; }
.disclaimer { background: var(--warn-soft); color: var(--warn); border-radius: 10px; padding: 8px 12px; font-size: 14px; }
.result-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.verdict { font-size: 20px; display: flex; align-items: center; gap: 8px; }
.verdict-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--ok); display: inline-block; }
.verdict-warn { border-inline-start-color: var(--warn); } .verdict-warn .verdict-dot { background: var(--gold); }
.verdict-fraud { border-inline-start-color: var(--bad); } .verdict-fraud .verdict-dot { background: var(--bad); }
.reasons li { color: var(--bad); } .signals li { color: var(--warn); }
.report-form { margin-top: 12px; }
.more-inputs { margin: 8px 0 12px; }
.tool-explain { margin-top: 28px; }
.tool-faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin-bottom: 8px; }
.tool-faq summary { font-weight: 600; cursor: pointer; }
.tool-others { margin-top: 26px; }
.qa-list li { margin-bottom: 8px; }
.qa-list summary { font-weight: 600; cursor: pointer; }
.mock-box { margin-top: 18px; }
.mock-item { border-bottom: 1px dashed var(--line); padding: 8px 0; }
.score { background: var(--brand); color: #fff; border-radius: 6px; padding: 0 8px; font-weight: 700; }
.improve { color: var(--warn); }
.letter-pick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.letter-preview { white-space: pre-wrap; background: var(--cream); border: 1px solid var(--line); border-radius: 10px; padding: 14px; line-height: 1.9; margin: 12px 0; }
.inline-add { display: flex; gap: 10px; align-items: end; }
.inline-add .grow { flex: 1; margin: 0; }
.tracker-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.tr-main { display: flex; flex-direction: column; }
.status-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.status-buttons .chip { cursor: pointer; font: inherit; font-size: 13px; }
.share-box { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.qr-box { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.qr-box svg { width: 180px; height: 180px; }
form.inline { display: inline; }
.need-login { text-align: center; }
.cv-builder .progress { height: 8px; background: var(--mint); border-radius: 8px; overflow: hidden; }
.cv-builder .progress span { display: block; height: 100%; width: 0; background: var(--gold); transition: width .3s ease; }
.step-count { color: var(--muted); font-size: 13px; margin: 6px 0 10px; }
.cvb-step h2 { margin-top: 4px; }
.cvb-step input, .cvb-step textarea { width: 100%; font-size: 17px; padding: 10px 12px; }
.row-card { border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin-bottom: 10px; background: var(--cream); }
.cvb-nav { display: flex; justify-content: space-between; margin-top: 14px; }
.file-btn { cursor: pointer; display: inline-block; }
.theme-pick { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 14px; }
.theme-card { display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; }
.theme-thumb { width: 84px; height: 110px; border: 1px solid var(--line); border-radius: 6px; background: #fff; position: relative; overflow: hidden; }
.theme-thumb::before { content: ""; position: absolute; inset: 10px 10px auto 10px; height: 10px; background: #1f5e5b; border-radius: 2px; }
.theme-thumb::after { content: ""; position: absolute; inset: 28px 10px 10px 10px; background: repeating-linear-gradient(#e2e6e3 0 3px, transparent 3px 9px); }
.theme-modern::before { inset: 0 0 auto 0; height: 26px; border-radius: 0; }
.theme-compact::before { inset: 10px 26px auto 26px; height: 6px; background: #17221f; }
.limits-strip { background: var(--mint); border-radius: 12px; padding: 8px 14px; font-size: 14px; text-align: center; margin: 10px 0; }
.shared-cv { max-width: 760px; margin: 20px auto; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.shared-cv header { border-bottom: 2px solid var(--brand); margin-bottom: 12px; }
.shared-cv h1 { margin: 0; }
.shared-cv .role { color: var(--brand); margin: 2px 0; }
.shared-cv h2 { color: var(--brand); font-size: 18px; margin: 16px 0 6px; }
.home-tools { margin-top: 10px; }

/* ===== المرحلة 13: معالج «سؤال واحد في كل صفحة» وربط الإيميل والإضافة (للجوال أولاً) ===== */
.ez { max-width: 640px; margin: 0 auto; padding: 12px 4px 40px; }
.ez-top { display: flex; justify-content: space-between; align-items: center; min-height: 40px; }
.ez-back { font-weight: 600; text-decoration: none; padding: 8px 4px; font-size: 1rem; }
.ez-count { color: var(--muted); font-size: .95rem; }
.ez-bar { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; margin: 6px 0 22px; }
.ez-bar span { display: block; height: 100%; background: var(--brand); border-radius: 99px; transition: width .3s; }
.ez-q { font-size: clamp(1.6rem, 6vw, 2.1rem); line-height: 1.35; margin: 0 0 18px; font-weight: 700; }
.ez-q2 { font-size: 1.3rem; margin: 26px 0 12px; }
.ez-lead { font-size: 1.12rem; color: var(--muted); margin: 0 0 18px; line-height: 1.7; }
.ez-hint { color: var(--muted); margin: 0 0 12px; }
.ez-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 0 0 14px; }
.ez-years { grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); }
.ez-list { max-height: 46vh; overflow-y: auto; padding: 2px; grid-template-columns: 1fr; }
.opt { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 58px; padding: 12px 14px; border-radius: 14px;
  border: 2px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 1.08rem; font-weight: 600;
  text-align: center; cursor: pointer; text-decoration: none; box-shadow: var(--shadow); transition: border-color .15s, background .15s; }
.opt:hover, .opt:focus-visible { border-color: var(--brand); outline: none; }
.opt.on, .opt-check:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.opt-more { border-style: dashed; color: var(--brand); }
.opt-check { position: relative; }
.opt-check input { position: absolute; opacity: 0; pointer-events: none; }
.opt-check:has(input:checked)::before { content: "✓"; font-weight: 700; }
.opt-check:has(input:disabled) { opacity: .45; cursor: not-allowed; }
.opt-check:has(input:focus-visible) { outline: 3px solid var(--brand); outline-offset: 2px; }
.ez-multi { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.ez-input { width: 100%; min-height: 54px; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; font: inherit; font-size: 1.08rem;
  background: var(--surface); color: var(--ink); margin-bottom: 12px; }
.ez-input:focus { border-color: var(--brand); outline: none; }
.ez-label { display: block; font-weight: 700; margin: 6px 0 6px; font-size: 1.02rem; }
.ez-check { display: flex; align-items: center; gap: 10px; min-height: 48px; font-size: 1.05rem; cursor: pointer; }
.ez-check input { width: 24px; height: 24px; accent-color: var(--brand); }
.ez-row { margin-bottom: 8px; }
.ez-inline { display: flex; gap: 8px; margin-top: 10px; }
.ez-inline .ez-input { margin: 0; }
.ez-search { margin-top: 6px; }
.ez-skip { margin: 4px 0 0; }
.ez-next { width: 100%; min-height: 58px; font-size: 1.15rem; margin-top: 10px; }
.ez-pair { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; }
.ez-big { display: block; width: 100%; min-height: 60px; font-size: 1.2rem; text-align: center; padding: 16px; }
.ez-seg { border: 0; padding: 0; margin: 0 0 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ez-seg legend { padding: 0; }
.btn.small { padding: 8px 12px; font-size: .95rem; margin: 2px 0 10px; }
/* النصيحة: محتوى مفيد تحت كل خطوة (بدون إعلانات في صفحات الأسئلة، قرار 211) */
.ez-tip { margin: 28px 0 6px; padding: 14px 16px; border-radius: 12px; background: var(--cream); border: 1px solid var(--gold-soft); line-height: 1.7; }
.ez-saved { color: var(--muted); font-size: .88rem; margin: 10px 0 0; text-align: center; }
.ez-points { padding-inline-start: 20px; line-height: 1.9; font-size: 1.05rem; margin: 0 0 22px; }
.ez-fine { color: var(--muted); font-size: .9rem; line-height: 1.7; margin-top: 12px; }
.ez-done { width: 72px; height: 72px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); font-size: 2.4rem; font-weight: 700;
  display: grid; place-items: center; margin: 4px auto 12px; }
.ez-ready .ez-q, .ez-ready .ez-lead, .ez-ext #linked, .ez-ext #linking { text-align: center; }
.ez-themes { display: flex; gap: 8px; justify-content: center; margin: 0 0 16px; flex-wrap: wrap; }
.ez-themes .opt { min-height: 46px; padding: 8px 18px; font-size: 1rem; }
.ez-previews { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 900px) { .ez-ready, .ez-preview { max-width: 1040px; } .ez-previews { grid-template-columns: 1fr 1fr; } }
.ez-cv { margin: 0; display: grid; gap: 8px; }
.ez-cv figcaption { display: flex; justify-content: space-between; font-weight: 700; }
.ez-frame { position: relative; width: 100%; aspect-ratio: 210 / 297; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.ez-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ez-frame-big { max-width: 820px; margin: 0 auto 14px; }
.ez-warn { background: var(--warn-soft); color: var(--warn); padding: 12px 14px; border-radius: 12px; margin-top: 14px; }
.ez-next-steps { display: grid; gap: 10px; margin: 22px 0; }
.ez-card { display: grid; gap: 4px; padding: 16px 18px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface);
  text-decoration: none; color: var(--ink); box-shadow: var(--shadow); margin: 0; }
.ez-card span { color: var(--muted); }
.ez-card-main { border-color: var(--brand); background: var(--brand-soft); }
.ez-card-ok { border-color: var(--ok-soft); background: var(--ok-soft); }
.ez-edit { margin: 10px 0; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.ez-edit summary { font-weight: 700; cursor: pointer; min-height: 32px; }
.ez-edit ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 6px; }
.ez-edit a { display: block; padding: 10px 12px; border-radius: 10px; background: var(--bg); text-decoration: none; }
.ez-tips-box { margin-top: 18px; padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.ez-tips-box h2 { font-size: 1.15rem; margin: 0 0 8px; }
.ez-tips-box ul { margin: 0; padding-inline-start: 20px; line-height: 1.9; }
/* الإعلان بعيد عن الأزرار بمسافة كبيرة (أكثر من 100 بكسل) وتحت المحتوى */
.ez-ad-gap { margin-top: 120px; }
/* ربط الإيميل */
.mail-buttons { display: grid; gap: 12px; margin: 8px 0 14px; }
.mail-buttons form { display: grid; gap: 0; }
.brand-btn { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 60px; padding: 12px 18px; border-radius: 14px;
  border: 1.5px solid #dadce0; background: #fff; color: #1f1f1f; font: inherit; font-size: 1.1rem; font-weight: 600; cursor: pointer; text-decoration: none; box-shadow: var(--shadow); }
.brand-btn:hover { border-color: #9aa0a6; }
.brand-btn:disabled { opacity: .5; cursor: not-allowed; }
.brand-ms { border-color: #8c8c8c; color: #5e5e5e; }
.brand-other { color: var(--brand); }
.brand-logo { flex: none; }
.mail-promise { text-align: center; font-weight: 600; color: var(--ink); margin: 14px 0; padding: 12px; border-radius: 12px; background: var(--mint); }
.ez-linked { padding: 16px; border-radius: 14px; background: var(--ok-soft); display: grid; gap: 10px; margin-bottom: 16px; }
.ez-linked p { margin: 0; }
.ok-note { color: var(--ok); }
.ez-steps { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
.ez-steps li { display: grid; grid-template-columns: 36px 64px 1fr; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.ez-step-n { width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; }
.ez-step-pic { width: 64px; height: 40px; }
.ez-steps-big li { grid-template-columns: 36px 1fr; }
.ez-steps-big .ez-step-art { grid-column: 1 / -1; width: 100%; max-width: 360px; height: auto; margin: 0 auto; order: 3; }
.ez-steps-big li > span:last-child { order: 2; font-size: 1.05rem; line-height: 1.7; }
.ez-spinner { width: 48px; height: 48px; border: 5px solid var(--line); border-top-color: var(--brand); border-radius: 50%; margin: 24px auto; animation: ez-spin 1s linear infinite; }
@keyframes ez-spin { to { transform: rotate(360deg); } }
.mail-nudge { margin: 12px 0; padding: 14px 16px; border-radius: 14px; background: var(--brand-soft); border: 1px solid var(--mint-2); display: grid; gap: 10px; }
.mail-nudge p { margin: 0; line-height: 1.7; }
.mail-nudge-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.mail-nudge-actions form { margin: 0; }
.ez-ext .ez-themes { margin-top: 14px; }

/* ================= المرحلة 14: مسار التنقل، والموافقات، والإحصائيات، وجاهزية قوقل، والامتثال، و«بياناتي» ================= */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0 12px; padding: 0; }
.crumbs li { display: inline-flex; align-items: center; gap: 4px; }
.crumbs li + li::before { content: "‹"; color: var(--muted); opacity: .7; }
.crumbs [aria-current] { color: var(--ink); }
.cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie-note .btn.ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.55); }
.cookie-note a { color: #fff; text-decoration: underline; }
.footer-note { font-size: 12.5px; color: var(--muted); text-align: center; margin: 6px auto 0; }
fieldset.consents { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 10px 0; display: grid; gap: 8px; }
fieldset.consents legend { font-weight: 600; padding: 0 6px; }
.req { color: var(--bad); font-size: 12px; white-space: nowrap; }
.opt-tag { color: var(--muted); font-size: 12px; white-space: nowrap; }
.toc ol { columns: 2; column-gap: 24px; padding-inline-start: 20px; margin: 8px 0 16px; font-size: 14px; }
@media (max-width: 640px) { .toc ol { columns: 1; } }
.legal table.data td, .legal table.data th { vertical-align: top; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.ok-text { color: var(--ok); }
.bad-text { color: var(--bad); }
.ez-suggest .chip { cursor: pointer; border: 1px dashed var(--brand); background: var(--brand-soft); color: var(--brand); border-radius: 99px; padding: 3px 10px; font: inherit; }
.ez-block { display: grid; gap: 6px; margin-top: 10px; }
.tools-about, .job-tips { margin-top: 18px; }
.job-tips ul, .tools-about p { line-height: 1.8; }
.related-tools li { margin-bottom: 4px; }
.mydata section.card { margin-bottom: 14px; }
.mydata .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.danger-zone { border-color: var(--bad-soft); }
.btn.danger { background: var(--bad); color: #fff; border-color: var(--bad); }
/* الإحصائيات */
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.sec-head h2 { margin: 0; }
a.csv { font-size: 12px; font-weight: 600; color: var(--brand); border: 1px solid var(--line); border-radius: 8px; padding: 1px 8px; text-decoration: none; }
a.csv:hover { background: var(--brand-soft); }
.stats-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 14px; }
.stats-filters input[type=date] { padding: 4px 6px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.seg-links { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.chip.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.kpis-10 { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.kpis-10 .kpi-value { font-size: 24px; }
.delta { white-space: nowrap; }
.delta.up { color: var(--ok); }
.delta.down { color: var(--bad); }
.a-grid.three { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.funnel { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 6px; }
.funnel li { display: grid; grid-template-columns: minmax(110px, 160px) 1fr; gap: 10px; align-items: center; }
.funnel-table tr.worst td { background: var(--bad-soft); }
.status-list { list-style: none; padding: 0; margin: 6px 0; display: grid; gap: 4px; }
.plain-list { padding-inline-start: 18px; line-height: 1.8; }
/* جاهزية قوقل والامتثال */
.ready-list { list-style: none; padding: 0; display: grid; gap: 10px; counter-reset: ready; }
.ready-list > li { counter-increment: ready; }
.ready-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ready-head h2 { font-size: 16px; margin: 0; flex: 1 1 260px; }
.ready-head h2::before { content: counter(ready) ". "; color: var(--muted); }
.ready-mark { font-size: 20px; }
.ready-items { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.ready-fail { border-inline-start: 4px solid var(--bad); }
.ready-ok { border-inline-start: 4px solid var(--ok); }
.ready-launch { border-inline-start: 4px solid var(--gold); }
.comp-table td:first-child { font-size: 18px; width: 32px; text-align: center; }
.comp-table tr.st-fail td { background: var(--bad-soft); }
tr.late td { background: var(--bad-soft); }
.incident { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-top: 10px; }
.incident h3 { font-size: 15px; margin: 0 0 4px; }
.incident .notes { white-space: pre-wrap; font-size: 12px; background: var(--bg); padding: 6px; border-radius: 8px; }
.incident-form .grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; }
@media (max-width: 640px) {
  .funnel li { grid-template-columns: 1fr; gap: 2px; }
  .kpis-10 { grid-template-columns: repeat(2, 1fr); }
  .kpis-10 .kpi-value { font-size: 20px; }
}@media (max-width: 640px) {
  .funnel-table th, .funnel-table td { padding: 6px 6px; font-size: 13px; }
  .funnel-table th:nth-child(5), .funnel-table td:nth-child(5) { display: none; }   /* نسبة الترك: تطلع من «طلع» ÷ «وصل» */
  .funnel-table .badge { display: block; width: max-content; margin-top: 2px; }
}

/* ===== المرحلة 16: ربط الإيميل بضغطة وحدة، مع فيديو شرح ===== */
.link-box { max-width: 520px; margin: 0 auto; text-align: center; }
.link-title { font-size: 26px; line-height: 1.35; margin: 4px 0 8px; }
.link-lead { color: var(--muted); font-size: 16px; margin: 0 0 18px; }
.link-failed { background: var(--warn-soft); color: var(--warn); border-radius: 10px; padding: 10px 12px; margin: 0 0 14px; font-weight: 600; }
.mail-link-btn { display: block; width: 100%; min-height: 60px; border: 0; border-radius: 14px; background: var(--ok); color: #fff;
  font: inherit; font-size: 20px; font-weight: 700; cursor: pointer; box-shadow: 0 4px 14px rgba(29, 122, 70, .25); }
.mail-link-btn:hover { filter: brightness(1.07); }
.mail-link-btn:focus-visible { outline: 3px solid var(--ok-soft); outline-offset: 3px; }
.mail-link-btn[disabled] { background: #9db8a8; box-shadow: none; cursor: not-allowed; }
.link-soon { color: var(--muted); font-size: 14px; margin: 8px 0 0; }
.link-video { margin: 18px auto 0; max-width: 480px; }
.link-video video { display: block; width: 100%; max-width: 480px; height: auto; aspect-ratio: 1 / 1; border-radius: 16px; background: #0f2b29; }
.link-video figcaption { color: var(--muted); font-size: 13px; margin-top: 6px; }
.link-more { margin-top: 14px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.link-text { background: none; border: 0; padding: 4px; font: inherit; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: 14px; }
.link-text.small { font-size: 13px; }
.link-done { text-align: center; max-width: 520px; margin: 0 auto; }
.link-done .done-mark { font-size: 26px; font-weight: 700; color: var(--ok); margin: 6px 0; }
.link-done .mail-link-btn { margin-top: 14px; }
.link-done .btn { margin-top: 10px; width: 100%; min-height: 48px; }
.link-later { margin-top: 18px; text-align: center; }
@media (max-width: 480px) { .link-title { font-size: 22px; } .mail-link-btn { font-size: 18px; } }
