/* ============================================================
   Saudigest — التصميم
   الألوان: أخضر غامق (أساسي)، ذهبي (مميز)، خلفية أوف وايت
   ============================================================ */
:root {
  --bg: #f4f1ea;
  --bg-2: #ece7db;
  --surface: #ffffff;
  --ink: #111a16;
  --ink-2: #2b3530;
  --muted: #5f6a64;
  --brand: #0f3d2e;
  --brand-600: #174f3c;
  --brand-700: #0a2c21;
  --brand-900: #07201a;
  --brand-50: #e8efea;
  --brand-100: #d3e2d8;
  --gold: #b5892f;
  --gold-600: #9a7426;
  --gold-50: #f7efdc;
  --gold-100: #efe0bb;
  --line: #e6e0d2;
  --line-2: #efeae0;
  --ok: #1d6b47;
  --ok-bg: #e4f1e9;
  --err: #a8321f;
  --err-bg: #fbeae5;
  --warn: #7a5b17;
  --warn-bg: #f7efdc;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(17, 26, 22, .05), 0 2px 8px -2px rgba(15, 61, 46, .08);
  --shadow: 0 1px 2px rgba(17, 26, 22, .04), 0 12px 32px -12px rgba(15, 61, 46, .20);
  --shadow-lg: 0 2px 4px rgba(17, 26, 22, .04), 0 28px 60px -20px rgba(15, 61, 46, .32);
  --font: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, "Noto Sans Arabic", "Noto Kufi Arabic", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.35; color: var(--ink); margin: 0; }
p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 24px; }
.container.narrow { max-width: 520px; }
main { display: block; min-height: 60vh; }
:focus-visible { outline: 2.5px solid var(--gold); outline-offset: 2px; }

/* ---------- الأزرار ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--brand); color: #fff; border: 1.5px solid var(--brand);
  padding: 11px 22px; border-radius: 12px;
  font: inherit; font-weight: 700; font-size: 15.5px; line-height: 1.4;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, transform .15s, box-shadow .15s;
  box-shadow: 0 6px 16px -8px rgba(15, 61, 46, .55);
}
.btn:hover { background: var(--brand-600); border-color: var(--brand-600); transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-sm { padding: 8px 16px; font-size: 14.5px; border-radius: 10px; }
.btn-lg { padding: 14px 28px; font-size: 16.5px; border-radius: 14px; }
.btn-block { display: flex; width: 100%; }
.btn-outline { background: transparent; color: var(--brand); box-shadow: none; }
.btn-outline:hover { background: var(--brand-50); color: var(--brand); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); box-shadow: none; }
.btn-ghost:hover { background: var(--bg-2); border-color: transparent; color: var(--ink); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #fff; box-shadow: 0 8px 20px -10px rgba(181, 137, 47, .8); }
.btn-gold:hover { background: var(--gold-600); border-color: var(--gold-600); }
.btn-danger { background: var(--err); border-color: var(--err); box-shadow: none; }
.btn-danger:hover { background: #8e2918; border-color: #8e2918; }
/* توافق مع الأسماء القديمة */
.btn.small { padding: 8px 16px; font-size: 14.5px; }
.btn.ghost { background: transparent; color: var(--brand); box-shadow: none; }

/* ---------- الشريط العلوي ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 241, 234, .86);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid rgba(230, 224, 210, .7);
}
.nav { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand img { width: 36px; height: 36px; }
.wordmark { font-size: 23px; font-weight: 700; letter-spacing: -.02em; color: var(--brand); line-height: 1; font-family: "IBM Plex Sans Arabic", "Segoe UI", Inter, Arial, sans-serif; }
.wordmark span { color: var(--gold); }
.nav-links { display: flex; gap: 26px; }
.nav-links a, .nav-link { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav-links a:hover, .nav-link:hover { color: var(--brand); }
.nav-actions { display: flex; align-items: center; gap: 18px; margin-inline-start: auto; }

/* ---------- التنبيهات ---------- */
.alert {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 13px 16px; border-radius: var(--radius-sm); margin: 0 0 18px;
  font-size: 15px; font-weight: 500; border: 1px solid transparent;
}
.alert::before {
  content: ""; flex: 0 0 8px; height: 8px; border-radius: 50%; margin-top: 9px; background: currentColor;
}
.alert.ok { background: var(--ok-bg); color: var(--ok); border-color: #cfe5d8; }
.alert.err { background: var(--err-bg); color: var(--err); border-color: #f2d3ca; }
.alert.info { background: var(--warn-bg); color: var(--warn); border-color: var(--gold-100); }
.alert.flash { max-width: 1132px; margin: 18px auto 0; width: calc(100% - 48px); }

/* ---------- عناصر مشتركة ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--gold-600); font-weight: 700; font-size: 14px; letter-spacing: .01em;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.eyebrow:has(.squiggle)::before { display: none; }
.eyebrow.on-dark { color: var(--gold-100); }
.squiggle {
  width: 34px; height: 10px; flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 10'%3E%3Cpath d='M1 6.5c2.6-4 5.4-4 8 0s5.4 4 8 0 5.4-4 8 0 5.4 4 8 0' fill='none' stroke='%23b5892f' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
}
.chip {
  display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: 12px; font-weight: 700;
  background: var(--brand-50); color: var(--brand); line-height: 1.7;
}
.chip.gold { background: var(--gold-50); color: var(--gold-600); }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-inline-start: 30px; }
.ticks li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m6 10.2 2.6 2.6L14 7.4' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}
.ticks.dark li::before { background-color: var(--brand); }
.badge-ico {
  display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 16px;
  background: var(--brand-50); color: var(--brand); margin-bottom: 18px;
}
.badge-ico svg { width: 26px; height: 26px; }
.badge-ico.ok { background: var(--ok-bg); color: var(--ok); }
.badge-ico.warn { background: var(--gold-50); color: var(--gold-600); }
.badge-ico.gold { background: var(--gold-50); color: var(--gold-600); }

/* ============================================================
   الصفحة الرئيسية
   ============================================================ */
.hero { position: relative; padding: 56px 0 56px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent); mask-image: linear-gradient(180deg, #000 60%, transparent);
  background:
    radial-gradient(600px 380px at 12% 30%, rgba(181, 137, 47, .13), transparent 70%),
    radial-gradient(520px 420px at 95% 0%, rgba(15, 61, 46, .07), transparent 70%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: 48px; align-items: center; }
.hero-copy .eyebrow { margin-bottom: 18px; }
.hero h1 { font-size: clamp(34px, 4.6vw, 58px); line-height: 1.25; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.hero h1 .hl { color: var(--brand); position: relative; }
.lead { font-size: 18.5px; color: var(--muted); max-width: 560px; margin: 20px 0 30px; line-height: 1.85; }

.cta-bar {
  display: flex; align-items: center; gap: 8px; max-width: 540px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 8px; box-shadow: var(--shadow);
}
.cta-bar:focus-within { border-color: var(--brand-100); box-shadow: var(--shadow), 0 0 0 4px rgba(15, 61, 46, .08); }
.cta-ico { color: var(--muted); margin-inline-start: 10px; flex-shrink: 0; }
.cta-bar input, .cta-bar input[type=email] {
  flex: 1; min-width: 0; height: auto; border: 0; outline: 0; background: transparent; box-shadow: none;
  font: inherit; font-size: 16px; padding: 12px 6px; color: var(--ink); text-align: right;
}
.cta-bar input::placeholder { color: #8b948f; }
.cta-bar input:not(:placeholder-shown) { text-align: left; }
.cta-bar .btn { padding: 13px 24px; border-radius: 12px; font-size: 16px; }
.hero-ticks { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: 14.5px; font-weight: 500; }
.hero-ticks li { display: inline-flex; align-items: center; gap: 8px; }
.hero-ticks li::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0;
  background: var(--brand-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m6 10.2 2.6 2.6L14 7.4' fill='none' stroke='%230f3d2e' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}

/* الرسمة: جوال فيه معاينة الملخص */
.hero-visual { position: relative; height: 600px; display: grid; place-items: center; }
.blob {
  position: absolute; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(239, 224, 187, .95), rgba(239, 224, 187, .35) 55%, rgba(239, 224, 187, 0) 70%);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.dots { position: absolute; width: 120px; height: 120px; background-image: radial-gradient(rgba(15, 61, 46, .28) 1.6px, transparent 1.8px); background-size: 16px 16px; }
.dots-a { top: 20px; right: 8%; }
.dots-b { bottom: 30px; left: 2%; background-image: radial-gradient(rgba(181, 137, 47, .45) 1.6px, transparent 1.8px); }
.phone {
  position: relative; width: 296px; height: 574px; border-radius: 46px;
  background: var(--ink); padding: 11px;
  box-shadow: 0 0 0 1.5px #2f3a35 inset, var(--shadow-lg), 0 40px 80px -30px rgba(7, 32, 26, .55);
  transform: rotate(-3deg);
}
.phone-notch { position: absolute; top: 20px; left: 50%; width: 88px; height: 24px; border-radius: 20px; background: var(--ink); transform: translateX(-50%); z-index: 2; }
.phone-screen { height: 100%; border-radius: 36px; background: #faf8f3; overflow: hidden; padding: 54px 16px 16px; }
.mail-top { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; margin-bottom: 6px; border-bottom: 1px solid var(--line-2); }
.mail-logo { width: 38px; height: 38px; border-radius: 12px; background: var(--brand-50); display: grid; place-items: center; }
.mail-top b { display: block; font-size: 15px; line-height: 1.3; }
.mail-top small { color: var(--muted); font-size: 11.5px; }
.mail-sec { margin: 12px 0 6px; }
.story { display: flex; gap: 10px; align-items: flex-start; background: #fff; border-radius: 14px; padding: 10px 11px; margin-bottom: 8px; box-shadow: var(--shadow-sm); }
.story .num { flex: 0 0 22px; height: 22px; border-radius: 7px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; margin-top: 2px; }
.story > div { flex: 1; min-width: 0; }
.story b { display: block; font-size: 12.5px; line-height: 1.5; margin-bottom: 5px; color: var(--ink); }
.story i { display: block; height: 5px; border-radius: 4px; background: var(--line); margin-top: 5px; }
.story.faded { opacity: .55; }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px; z-index: 3;
  background: var(--surface); border-radius: 16px; padding: 12px 16px 12px 20px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line-2);
  animation: bob 6s ease-in-out infinite;
}
.float-card small { display: block; color: var(--muted); font-size: 12px; line-height: 1.3; }
.float-card b { display: block; font-size: 19px; color: var(--brand); line-height: 1.35; }
.fc-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--brand); color: #fff; flex-shrink: 0; }
.fc-ico.gold { background: var(--gold); }
.fc-1 { top: 118px; left: -8px; }
.fc-2 { top: 318px; left: -28px; animation-delay: -2s; }
.fc-3 { bottom: 40px; right: 0; animation-delay: -4s; }
.float-pill {
  position: absolute; z-index: 3; top: 30px; right: 10%;
  background: var(--brand); color: #fff; font-weight: 700; font-size: 13.5px;
  padding: 7px 16px; border-radius: 99px; box-shadow: var(--shadow);
}
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .float-card { animation: none; } html { scroll-behavior: auto; } }

/* شريط المزايا */
.features {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  background: var(--surface); border-radius: 22px; box-shadow: var(--shadow); border: 1px solid var(--line-2);
  margin: 8px 0 0; overflow: hidden;
}
.feature { display: flex; gap: 16px; align-items: flex-start; padding: 26px 28px; }
.feature + .feature { border-inline-start: 1px solid var(--line-2); }
.f-ico { flex: 0 0 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--gold-50); color: var(--gold-600); }
.feature b { display: block; font-size: 17px; color: var(--ink); margin-bottom: 2px; }
.feature span { color: var(--muted); font-size: 15px; line-height: 1.7; }

/* الأقسام */
.section { padding: 96px 0; }
.section-alt { background: linear-gradient(180deg, transparent, var(--bg-2) 18%, var(--bg-2) 82%, transparent); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head .eyebrow { justify-content: center; }
.section-head .eyebrow::after { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; margin-top: 10px; letter-spacing: -.01em; }
.section-head p { color: var(--muted); font-size: 17px; margin-top: 12px; }

/* شبكة المجالات */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat-tile {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 20px;
  padding: 34px 16px 30px; text-decoration: none; color: var(--ink); text-align: center;
  box-shadow: var(--shadow-sm); transition: background .2s, color .2s, transform .2s, box-shadow .2s, border-color .2s;
}
.ct-ico { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); transition: background .2s, color .2s; }
.ct-ico .ico { width: 30px; height: 30px; }
.cat-tile b { font-size: 17.5px; font-weight: 700; }
.ct-arrow { position: absolute; top: 14px; left: 16px; font-size: 18px; color: var(--gold-100); opacity: 0; transform: translateX(6px); transition: opacity .2s, transform .2s; }
.cat-tile:hover, .cat-tile:focus-visible {
  background: var(--brand); color: #fff; border-color: var(--brand); transform: translateY(-4px);
  box-shadow: 0 22px 40px -18px rgba(15, 61, 46, .6);
}
.cat-tile:hover .ct-ico, .cat-tile:focus-visible .ct-ico { background: rgba(255, 255, 255, .1); color: var(--gold-100); }
.cat-tile:hover .ct-arrow, .cat-tile:focus-visible .ct-arrow { opacity: 1; transform: none; }

/* الخطوات */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 58px; right: 16%; left: 16%; height: 2px;
  background-image: linear-gradient(90deg, var(--gold) 50%, transparent 50%); background-size: 12px 2px; opacity: .6;
}
.step { position: relative; background: var(--surface); border-radius: 22px; padding: 30px 28px 32px; box-shadow: var(--shadow); border: 1px solid var(--line-2); }
.step-num {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px;
  background: var(--brand); color: #fff; font-size: 24px; font-weight: 700; margin-bottom: 20px;
  box-shadow: 0 0 0 7px var(--surface), 0 10px 22px -10px rgba(15, 61, 46, .7);
}
.step:nth-child(2) .step-num { background: var(--gold); }
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15.5px; }

/* شريط الدعوة الأخير */
.cta-band {
  position: relative; overflow: hidden; margin: 24px 0 88px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  background: var(--brand); color: #fff; border-radius: 28px; padding: 56px 56px;
  box-shadow: var(--shadow-lg);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(420px 260px at 8% 110%, rgba(181, 137, 47, .45), transparent 70%),
    radial-gradient(rgba(255, 255, 255, .09) 1.4px, transparent 1.6px) 0 0/18px 18px;
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 70%); mask-image: linear-gradient(90deg, #000, transparent 70%);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; font-size: clamp(26px, 3vw, 36px); }
.cta-band p { color: rgba(255, 255, 255, .78); font-size: 17px; margin-top: 8px; max-width: 520px; }
.cta-band-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.link-on-dark { color: #fff; font-weight: 600; opacity: .9; }

/* ---------- الفوتر ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg); padding-top: 40px; }
.foot-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.foot-brand p { color: var(--muted); margin-top: 12px; font-size: 15px; }
.foot-links { display: flex; gap: 10px 28px; flex-wrap: wrap; padding-top: 6px; }
.foot-links a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 15px; }
.foot-links a:hover { color: var(--brand); }
.foot-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 13.5px; padding-top: 28px; padding-bottom: 32px; margin-top: 28px; background: linear-gradient(var(--line), var(--line)) top center / calc(100% - 48px) 1px no-repeat; }

/* ============================================================
   النماذج وصفحات الدخول
   ============================================================ */
label { display: block; font-weight: 600; font-size: 14.5px; color: var(--ink-2); margin: 18px 0 8px; }
input[type=email], input[type=password], input[type=text], select {
  width: 100%; height: 52px; padding: 0 16px;
  border: 1.5px solid var(--line); border-radius: 13px;
  font: inherit; font-size: 16px; color: var(--ink); background: #fcfbf8;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
input[type=email]:hover, input[type=password]:hover, select:hover { border-color: #d6cebd; }
input:focus, select:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(15, 61, 46, .1); }
input::placeholder { color: #9aa29d; }
select {
  -webkit-appearance: none; appearance: none; cursor: pointer; padding-left: 44px;
  background: #fcfbf8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m6 8 4 4 4-4' fill='none' stroke='%230f3d2e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") left 14px center/20px no-repeat;
}
.hint { color: var(--muted); font-size: 13px; font-weight: 400; margin-top: 6px; }
label .hint { display: inline; margin: 0; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.label-row label { margin-bottom: 8px; }
.small-link { font-size: 14px; font-weight: 600; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; align-items: center; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
form .btn-block { margin-top: 26px; }
.switch-auth { text-align: center; color: var(--muted); font-size: 15px; margin-top: 18px; }
.switch-auth a { font-weight: 700; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }

.card, .auth-card {
  background: var(--surface); border-radius: 24px; padding: 40px;
  box-shadow: var(--shadow); border: 1px solid var(--line-2);
}
.card h1, .auth-card h1 { font-size: 28px; font-weight: 700; }
.card .sub, .auth-card .sub { color: var(--muted); margin: 6px 0 24px; font-size: 16px; }
.center-card { text-align: center; margin: 56px 0 72px; }
.center-card .badge-ico { margin-inline: auto; }
.center-card form, .center-card label { text-align: start; }
.center-card > .btn:not(.btn-block) { min-width: 200px; }
.center-card .btn-ghost { margin-top: 8px; }
.center-card form .btn-block { margin-top: 20px; }

.auth { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 44px; margin-bottom: 72px; align-items: stretch; }
.auth-card { border-radius: 26px 0 0 26px; padding: 48px 52px; border-left: 0; }
[dir=rtl] .auth-card { border-radius: 0 26px 26px 0; border-left: 1px solid var(--line-2); border-right: 1px solid var(--line-2); }
.auth-aside {
  position: relative; overflow: hidden; color: #fff; border-radius: 26px 0 0 26px;
  background: linear-gradient(160deg, var(--brand-600), var(--brand) 45%, var(--brand-700));
  display: flex; align-items: center; padding: 48px;
}
.auth-aside::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(360px 260px at 90% 105%, rgba(181, 137, 47, .45), transparent 70%),
    radial-gradient(rgba(255, 255, 255, .08) 1.4px, transparent 1.6px) 0 0/18px 18px;
}
.auth-aside-inner { position: relative; width: 100%; max-width: 420px; }
.auth-aside h2 { color: #fff; font-size: 32px; line-height: 1.4; margin: 14px 0 24px; }
.auth-aside .ticks { color: rgba(255, 255, 255, .9); margin-bottom: 34px; }
.mini-digest { background: rgba(255, 255, 255, .96); color: var(--ink); border-radius: 18px; padding: 16px; box-shadow: 0 24px 48px -20px rgba(0, 0, 0, .5); transform: rotate(-1.5deg); }
.md-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.md-head b { font-size: 14.5px; }
.md-head small { margin-inline-start: auto; color: var(--muted); font-size: 12px; }
.md-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.md-row { border-top: 1px solid var(--line-2); padding: 10px 0 4px; }
.md-row i { display: block; height: 6px; border-radius: 4px; background: var(--line); margin-top: 7px; }

/* ============================================================
   صفحة الإعدادات (لوحة التحكم)
   ============================================================ */
.dash { padding-top: 36px; padding-bottom: 72px; }
.dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 24px; }
.dash-head h1 { font-size: 34px; font-weight: 700; margin-top: 4px; }
.email-chip { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; padding: 5px 14px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); font-size: 14px; font-weight: 500; max-width: 100%; }
.email-chip svg { color: var(--muted); flex-shrink: 0; }
.email-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 99px; font-size: 13.5px; font-weight: 600; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pill.ok i { background: #2f9a66; box-shadow: 0 0 0 3px rgba(47, 154, 102, .18); }
.pill.off i { background: #9aa29d; }
.pill.warn i { background: var(--gold); box-shadow: 0 0 0 3px rgba(181, 137, 47, .2); }

.banner {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: linear-gradient(90deg, var(--gold-50), #fbf6ea);
  border: 1px solid var(--gold-100); border-inline-start: 4px solid var(--gold);
  border-radius: 16px; padding: 16px 20px; margin-bottom: 24px;
}
.banner-ico { flex: 0 0 44px; height: 44px; border-radius: 12px; background: var(--gold); color: #fff; display: grid; place-items: center; }
.banner-text { flex: 1 1 280px; min-width: 0; }
.banner-text b { display: block; color: var(--ink); font-size: 16px; }
.banner-text > span { color: var(--warn); font-size: 14.5px; overflow-wrap: anywhere; }
.banner-action { flex-shrink: 0; }

.dash-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.panel { background: var(--surface); border-radius: 22px; padding: 32px; box-shadow: var(--shadow); border: 1px solid var(--line-2); }
.dash-side { display: grid; gap: 20px; position: sticky; top: 96px; }
.group { padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--line-2); }
.group-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.group h2, .group-title { font-size: 18px; font-weight: 700; margin: 0 0 12px; }
.group-head h2 { margin: 0; }
.group-hint { color: var(--muted); font-size: 14px; margin: 2px 0 16px; }
.group.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.group .row label { margin-top: 0; }
.count-badge { font-size: 13px; font-weight: 700; color: var(--brand); background: var(--brand-50); padding: 3px 12px; border-radius: 99px; transition: background .15s, color .15s; }
.count-badge.full { background: var(--brand); color: #fff; }

.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.cat { position: relative; margin: 0; font-weight: 600; }
.cat input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cat-box {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 20px 10px 16px; border: 1.5px solid var(--line); border-radius: 16px;
  background: #fcfbf8; cursor: pointer; text-align: center; color: var(--ink);
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .15s;
}
.cat .ct-ico { width: 48px; height: 48px; border-radius: 14px; }
.cat .ct-ico .ico { width: 24px; height: 24px; }
.cat-name { font-size: 15px; font-weight: 700; line-height: 1.4; }
.cat-check {
  position: absolute; top: 10px; left: 10px; width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid var(--line); background: #fff;
}
.cat-box:hover { border-color: var(--brand-100); background: #fff; transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.cat input:checked + .cat-box { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 14px 28px -14px rgba(15, 61, 46, .7); }
.cat input:checked + .cat-box .ct-ico { background: rgba(255, 255, 255, .1); color: var(--gold-100); }
.cat input:checked + .cat-box .cat-check {
  border-color: var(--gold); background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m6 10.2 2.6 2.6L14 7.4' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}
.cat input:disabled + .cat-box { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.cat input:focus-visible + .cat-box { outline: 2.5px solid var(--gold); outline-offset: 2px; }

.seg { display: flex; gap: 4px; padding: 5px; background: var(--bg); border-radius: 14px; border: 1px solid var(--line); }
.seg label { flex: 1; margin: 0; position: relative; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span { display: block; text-align: center; padding: 9px 10px; border-radius: 10px; cursor: pointer; font-weight: 600; color: var(--muted); transition: background .15s, color .15s, box-shadow .15s; }
.seg span:hover { color: var(--ink); }
.seg input:checked + span { background: var(--brand); color: #fff; box-shadow: 0 6px 14px -8px rgba(15, 61, 46, .8); }
.seg input:focus-visible + span { outline: 2.5px solid var(--gold); outline-offset: 1px; }

.switch-row { display: flex; align-items: center; gap: 14px; margin: 0; cursor: pointer; }
.switch-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch { position: relative; flex: 0 0 52px; height: 30px; border-radius: 99px; background: #cfd4d0; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 3px; right: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); transition: transform .2s; }
.switch-row input:checked + .switch { background: var(--brand); }
.switch-row input:checked + .switch::after { transform: translateX(-22px); }
.switch-row input:focus-visible + .switch { outline: 2.5px solid var(--gold); outline-offset: 2px; }
.switch-text b { display: block; font-size: 16px; color: var(--ink); }
.switch-text small { color: var(--muted); font-size: 13.5px; font-weight: 400; }
.group:has(.switch-row) { margin-bottom: 24px; }
.form-foot { display: flex; justify-content: flex-start; }

.preview-card { background: linear-gradient(180deg, #fff, #fbf8f1); border-color: var(--gold-100); }
.preview-card h2 { font-size: 19px; margin-bottom: 8px; }
.preview-card p { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.preview-card .btn-block { margin-top: 0; }
.muted-note { display: block; margin-top: 12px; color: var(--muted); font-size: 12.5px; text-align: center; }
.tip-card { padding: 26px 28px; background: var(--bg-2); box-shadow: none; }
.tip-card h3 { font-size: 16px; margin-bottom: 14px; }
.tip-card .ticks { font-size: 14.5px; color: var(--ink-2); gap: 8px; }

/* ============================================================
   الشاشات الصغيرة
   ============================================================ */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-copy { text-align: center; }
  .hero-copy .eyebrow { justify-content: center; }
  .lead, .cta-bar { margin-inline: auto; }
  .hero-ticks { justify-content: center; }
  .hero-visual { max-width: 520px; width: 100%; margin: 0 auto; }
  .cat-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .dash-grid { grid-template-columns: 1fr; }
  .dash-side { position: static; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .features { grid-template-columns: 1fr; }
  .feature + .feature { border-inline-start: 0; border-top: 1px solid var(--line-2); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }
  .auth { grid-template-columns: 1fr; max-width: 560px; margin-top: 28px; }
  .auth-card, [dir=rtl] .auth-card { border-radius: 24px; border: 1px solid var(--line-2); }
  .auth-aside { display: none; }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .dash-side { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .container { padding-inline: 16px; }
  .alert.flash { width: calc(100% - 32px); }
  .foot-bottom { background-size: calc(100% - 32px) 1px; }
  .nav { height: 64px; gap: 12px; }
  .brand img { width: 32px; height: 32px; }
  .wordmark { font-size: 20px; }
  .nav-actions { gap: 12px; }
  .nav-actions .btn-sm { padding: 7px 12px; font-size: 14px; }
  .hero { padding: 32px 0 16px; }
  .hero h1 { font-size: 32px; }
  .lead { font-size: 16.5px; margin: 16px auto 24px; }
  .cta-bar { padding: 6px; border-radius: 16px; }
  .cta-ico { display: none; }
  .cta-bar input, .cta-bar input[type=email] { padding: 10px 10px; font-size: 15.5px; }
  .cta-bar .btn { padding: 12px 16px; font-size: 15px; }
  .hero-ticks { font-size: 13.5px; gap: 6px 14px; }
  .hero-visual { height: 548px; }
  .phone { width: 250px; height: 490px; border-radius: 40px; }
  .phone-screen { border-radius: 31px; padding: 48px 12px 12px; }
  .blob { width: 320px; height: 320px; }
  .float-card { padding: 9px 12px 9px 14px; gap: 9px; border-radius: 14px; }
  .float-card b { font-size: 15.5px; }
  .fc-ico { width: 34px; height: 34px; border-radius: 10px; }
  .fc-ico svg { width: 18px; height: 18px; }
  .fc-1 { top: 100px; left: 0; }
  .fc-2 { top: 280px; left: 0; }
  .fc-3 { bottom: 26px; right: 0; }
  .float-pill { top: 12px; right: 4%; font-size: 12.5px; }
  .dots-a { right: 0; } .dots-b { left: 0; }
  .feature { padding: 20px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }
  .section-head p { font-size: 16px; }
  .cat-grid { gap: 12px; }
  .cat-tile { padding: 24px 10px 22px; border-radius: 18px; }
  .ct-ico { width: 56px; height: 56px; border-radius: 17px; }
  .step { padding: 24px 22px; }
  .cta-band { padding: 36px 24px; border-radius: 24px; margin-bottom: 56px; text-align: center; justify-content: center; }
  .cta-band p { margin-inline: auto; }
  .cta-band-actions { justify-content: center; width: 100%; flex-direction: column; gap: 14px; }
  .cta-band-actions .btn { width: 100%; }
  .foot-inner { flex-direction: column; }
  .card, .auth-card { padding: 28px 22px; border-radius: 22px; }
  .center-card { margin: 32px 0 48px; }
  .auth { margin-top: 20px; margin-bottom: 48px; }
  .dash { padding-top: 24px; }
  .dash-head h1 { font-size: 28px; }
  .panel { padding: 22px 18px; border-radius: 20px; }
  .banner { padding: 16px; gap: 12px; }
  .banner-action, .banner-action .btn { width: 100%; }
  .group.two-col { grid-template-columns: 1fr; gap: 20px; }
  .row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cat-box { padding: 16px 8px 14px; }
  .form-foot .btn { width: 100%; }
}
@media (max-width: 360px) {
  .row { grid-template-columns: 1fr; }
  .nav-link { display: none; }
}
