/* ══════════════════════════════════════════════════════════
   لُحمة — الصفحة الرئيسية
   هيرو زمردي داكن (في الوضعين) بزخرفة السدو + معاينة حية للصفحة والملف
   ══════════════════════════════════════════════════════════ */
.page-home { --emerald: #062A21; --emerald-2: #0A3B2F; --mint: #2FD6A3; --sand: #F6EEDC; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 16.5px; }
.h-btn-line { background: transparent; color: inherit; border-color: currentColor; }
.h-btn-line:hover { background: rgba(255, 255, 255, .08); }
.page-home main { overflow-x: clip; }

/* ─── الهيرو ─── */
.h-hero { position: relative; isolation: isolate; color: #fff; background:
  radial-gradient(70% 90% at 100% 0%, rgba(47, 214, 163, .16), transparent 60%),
  radial-gradient(60% 80% at 0% 100%, rgba(201, 168, 76, .16), transparent 60%),
  linear-gradient(160deg, var(--emerald-2) 0%, var(--emerald) 70%); }
.h-hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.h-arc { position: absolute; border-radius: 50%; border: 1.5px solid rgba(201, 168, 76, .22); }
.h-arc-1 { width: 760px; height: 760px; top: -380px; inset-inline-start: -260px; }
.h-arc-2 { width: 520px; height: 520px; top: -260px; inset-inline-start: -140px; border-color: rgba(201, 168, 76, .14); }
.h-arc-3 { width: 420px; height: 420px; bottom: -260px; inset-inline-end: -120px; border-color: rgba(47, 214, 163, .18); }
.h-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .05; pointer-events: none;
  background: repeating-linear-gradient(45deg, #fff 0 1px, transparent 1px 22px), repeating-linear-gradient(-45deg, #fff 0 1px, transparent 1px 22px); }
.h-hero-in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 44px; padding-top: 56px; padding-bottom: 64px; align-items: center; }
.h-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 800;
  color: #F3D98B; background: rgba(201, 168, 76, .12); border: 1px solid rgba(201, 168, 76, .3); }
.h-title { font-family: var(--display); font-weight: 700; font-size: clamp(52px, 12vw, 104px); line-height: 1.02; margin: 18px 0 16px; letter-spacing: -.01em; }
.h-title span { color: #E9C866; text-shadow: 0 10px 40px rgba(201, 168, 76, .25); }
.h-lead { font-size: clamp(17px, 2.3vw, 20px); line-height: 1.9; color: rgba(255, 255, 255, .82); max-width: 560px; margin: 0 0 26px; }

.h-search { position: relative; display: flex; align-items: center; gap: 8px; max-width: 540px; padding: 6px; padding-inline-start: 48px; border-radius: 999px;
  background: #fff; box-shadow: 0 20px 50px -18px rgba(0, 0, 0, .55); margin-bottom: 18px; }
.h-search .ic { position: absolute; inset-inline-start: 18px; color: #6B6153; }
.h-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 16px; color: #211D17; height: 46px; }
.h-search input::placeholder { color: #8C8273; }
.h-search:focus-within { box-shadow: 0 0 0 3px rgba(201, 168, 76, .55), 0 20px 50px -18px rgba(0, 0, 0, .55); }
.h-search .btn { min-height: 46px; padding: 0 24px; }

.h-hero .h-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.h-hero .btn-primary { background: var(--mint); color: #04271D; box-shadow: 0 14px 30px -14px rgba(47, 214, 163, .8); }
.h-hero .btn-primary:hover { background: #5BE3B9; filter: none; }
.h-hero .h-btn-line { color: #fff; border-color: rgba(255, 255, 255, .35); }
.h-hero .h-btn-line:hover { border-color: #fff; color: #fff; }
.h-trust { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13.5px; color: rgba(255, 255, 255, .7); }
.h-trust li { display: inline-flex; align-items: center; gap: 6px; }
.h-trust .ic { color: var(--mint); }
.h-hero-sadu { position: absolute; bottom: 0; inset-inline: 0; height: 12px; }

/* المعاينة: كارت صفحة القبيلة + كارت الملف */
.h-stage { position: relative; min-height: 500px; max-width: 520px; width: 100%; margin: 0 auto; }
.h-card { position: absolute; background: #FFFDF9; color: #211D17; border-radius: 22px; box-shadow: 0 30px 70px -24px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .06); }
.h-tribe { width: 76%; inset-inline-end: 0; top: 36px; overflow: hidden; animation: hFloat 7s ease-in-out infinite; }
.h-tribe-cover { height: 84px; position: relative; background:
  radial-gradient(80% 120% at 80% 0%, rgba(47, 214, 163, .35), transparent 60%), linear-gradient(135deg, #0E5A4A, #0A3B2F); }
.h-tribe-cover .sadu { position: absolute; bottom: 0; inset-inline: 0; }
.h-tribe-body { padding: 0 20px 20px; display: grid; gap: 6px; }
.h-tribe-logo { width: 62px; height: 62px; border-radius: 18px; margin-top: -32px; display: grid; place-items: center; background: #0E5A4A; color: #E9C866;
  font-family: var(--display); font-size: 28px; font-weight: 700; border: 4px solid #FFFDF9; }
.h-tribe-body strong { font-family: var(--display); font-size: 24px; line-height: 1.2; }
.h-sub { font-size: 12.5px; color: #6B6153; direction: ltr; text-align: end; }
.h-tribe-body .h-sub { text-align: start; direction: rtl; }
.h-tabs { display: flex; gap: 6px; margin: 8px 0 6px; flex-wrap: wrap; }
.h-tabs span { font-size: 12px; font-weight: 800; padding: 5px 11px; border-radius: 999px; background: #F2EDE3; color: #4D463B; }
.h-tabs .on { background: #0E5A4A; color: #fff; }
.h-line { display: block; height: 8px; border-radius: 6px; background: #EDE6D8; }
.h-line.w90 { width: 92%; } .h-line.w70 { width: 70%; } .h-line.w80 { width: 82%; }
.h-faces { display: flex; align-items: center; margin-top: 10px; }
.h-faces i { width: 30px; height: 30px; border-radius: 50%; border: 2.5px solid #FFFDF9; margin-inline-start: -8px; background: linear-gradient(135deg, #C9A84C, #8A6420); }
.h-faces i:first-child { margin-inline-start: 0; background: linear-gradient(135deg, #2FD6A3, #0E5A4A); }
.h-faces i:nth-child(3) { background: linear-gradient(135deg, #7FA196, #3A5A50); }
.h-faces b { margin-inline-start: 8px; font-size: 12.5px; color: #4D463B; }

.h-profile { width: 58%; inset-inline-start: 0; bottom: 0; padding: 18px; animation: hFloat 7s ease-in-out -3.5s infinite; }
.h-pf-top { display: flex; gap: 12px; align-items: center; }
.h-pf-av { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #0E5A4A, #2FD6A3); color: #fff; font-family: var(--display); font-size: 22px; font-weight: 700; flex-shrink: 0; }
.h-pf-top strong { display: flex; align-items: center; gap: 4px; font-size: 16px; }
.h-pf-top .h-sub { direction: rtl; text-align: start; display: block; }
.h-ver { color: #C9A84C; display: inline-flex; }
.h-pf-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0; }
.h-pf-btns span { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 9px; border-radius: 12px; font-size: 12.5px; font-weight: 800; background: #F2EDE3; }
.h-pf-btns span:first-child { background: #0E5A4A; color: #fff; }
.h-pf-qr { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; border: 1px dashed rgba(33, 29, 23, .18); }
.h-pf-qr svg { width: 74px; height: 74px; flex-shrink: 0; border-radius: 8px; }
.h-pf-qr span { font-size: 12.5px; font-weight: 700; color: #4D463B; line-height: 1.6; }

.h-chip { position: absolute; display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 800;
  background: rgba(6, 42, 33, .78); color: #fff; border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); white-space: nowrap; }
.h-chip .ic { color: var(--mint); }
.h-chip-1 { bottom: 6%; inset-inline-end: 0; }
.h-chip-2 { top: 4%; inset-inline-start: 0; }
.h-chip-2 .ic { color: #E9C866; }
@keyframes hFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ─── الأرقام ─── */
.h-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: -34px; position: relative; z-index: 2; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); box-shadow: var(--shadow-lg); overflow: hidden; width: min(calc(100% - 40px), 760px); padding: 0; }
.h-stats div { padding: 20px 12px; text-align: center; }
.h-stats div + div { border-inline-start: 1px solid var(--border); }
.h-stats b { display: block; font-family: var(--display); font-size: clamp(28px, 5vw, 40px); line-height: 1.1; color: var(--brand-text); }
.h-stats span { font-size: 13.5px; font-weight: 700; color: var(--faint); }

/* ─── الأقسام ─── */
.h-sec { padding-top: 88px; }
.h-head { text-align: center; max-width: 680px; margin: 0 auto 34px; }
.h-head h2 { font-family: var(--display); font-weight: 700; font-size: clamp(32px, 5.6vw, 48px); line-height: 1.2; margin: 0 0 10px; }
.h-head p { margin: 0; color: var(--muted); font-size: 17px; }
.h-head .eyebrow { margin-bottom: 12px; }
.h-head-row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; text-align: start; }
.h-head-row h2 { margin: 0; }

.h-feats { display: grid; gap: 16px; }
.h-feat { position: relative; overflow: hidden; padding: 26px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); transition: transform var(--tr), border-color var(--tr); }
.h-feat:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--brand-ui) 45%, var(--border)); }
.h-feat-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--brand-ui); color: #fff; box-shadow: 0 12px 24px -12px rgba(var(--brand-rgb), .9); margin-bottom: 18px; position: relative; }
.h-feat h3 { font-family: var(--display); font-size: 26px; margin: 0 0 8px; }
.h-feat p { margin: 0 0 16px; color: var(--muted); font-size: 15px; line-height: 1.85; }
.h-feat ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.h-feat li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; }
.h-feat li::before { content: ''; width: 8px; height: 8px; border-radius: 2px; transform: rotate(45deg); background: var(--gold); flex-shrink: 0; }
.h-feat-art { position: absolute; top: 18px; inset-inline-end: 18px; width: 110px; height: 76px; opacity: .9; pointer-events: none; }
.h-feat-art span { position: absolute; border-radius: 8px; background: var(--brand-50); border: 1px solid var(--brand-100); }
.art-tribe span:nth-child(1) { inset: 0 0 auto 0; height: 28px; background: linear-gradient(135deg, rgba(var(--brand-rgb), .35), rgba(var(--brand-rgb), .12)); }
.art-tribe span:nth-child(2) { top: 36px; inset-inline: 0 30%; height: 10px; }
.art-tribe span:nth-child(3) { top: 54px; inset-inline: 0 50%; height: 10px; }
.art-profile span:nth-child(1) { top: 4px; inset-inline-end: 34px; width: 44px; height: 44px; border-radius: 50%; }
.art-profile span:nth-child(2) { top: 18px; inset-inline-end: 0; width: 26px; height: 26px; border-radius: 6px; background: repeating-linear-gradient(90deg, rgba(var(--brand-rgb), .45) 0 3px, transparent 3px 6px); }
.art-majlis span { height: 16px; border-radius: 10px; }
.art-majlis span:nth-child(1) { top: 4px; inset-inline: 0 24%; }
.art-majlis span:nth-child(2) { top: 28px; inset-inline: 24% 0; background: rgba(201, 168, 76, .18); border-color: rgba(201, 168, 76, .35); }
.art-majlis span:nth-child(3) { top: 52px; inset-inline: 0 40%; }

/* شريط القبائل */
.h-band { margin-top: 88px; padding: 72px 0; background: var(--surface-2); border-block: 1px solid var(--border); }
.h-band .h-head { margin-bottom: 26px; }
.h-tribes { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.h-tcard { --tc: #0E5A4A; display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border);
  color: var(--text); box-shadow: var(--shadow); transition: transform var(--tr), border-color var(--tr), box-shadow var(--tr); position: relative; overflow: hidden; }
.h-tcard::before { content: ''; position: absolute; top: 0; inset-inline: 0; height: 4px; background: var(--tc); }
.h-tcard:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--tc) 50%, var(--border)); box-shadow: var(--shadow-lg); text-decoration: none; }
.h-tcard-logo { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; overflow: hidden; background: color-mix(in srgb, var(--tc) 14%, transparent);
  color: var(--tc); font-family: var(--display); font-size: 24px; font-weight: 700; margin-bottom: 4px; }
:root[data-theme="dark"] .h-tcard-logo { color: color-mix(in srgb, var(--tc) 45%, #fff); }
.h-tcard-logo img { width: 100%; height: 100%; object-fit: cover; }
.h-tcard strong { font-family: var(--display); font-size: 22px; line-height: 1.25; }
.h-tcard-bio { font-size: 14px; color: var(--faint); line-height: 1.7; flex: 1; }
.h-tcard-meta { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; color: var(--muted); padding-top: 10px; border-top: 1px dashed var(--border); }
.h-tcard-go { margin-inline-start: auto; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--text); transition: background var(--tr), color var(--tr); }
.h-tcard:hover .h-tcard-go { background: var(--brand-ui); color: #fff; }
.h-tcard-add { border-style: dashed; border-color: var(--border-2); background: transparent; box-shadow: none; --tc: #C9A84C; }
.h-tcard-add::before { display: none; }
.h-tcard-add .h-tcard-logo { color: var(--gold-dk); background: var(--gold-50); }
:root[data-theme="dark"] .h-tcard-add .h-tcard-logo { color: #E9C866; }

/* الخطوات */
.h-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: s; }
.h-steps li { position: relative; padding: 24px 24px 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.h-step-n { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; font-family: var(--display); font-size: 26px; font-weight: 700;
  background: var(--gold-50); color: var(--gold-dk); border: 1.5px solid rgba(201, 168, 76, .5); margin-bottom: 14px; }
:root[data-theme="dark"] .h-step-n { color: #E9C866; }
.h-steps h3 { font-size: 19px; margin: 0 0 6px; }
.h-steps p { margin: 0; color: var(--muted); font-size: 15px; }

/* العضوية — شريط داكن */
.h-band-dark { color: #fff; border: 0; background:
  radial-gradient(60% 80% at 100% 0%, rgba(201, 168, 76, .14), transparent 60%), linear-gradient(160deg, #0A3B2F, #062A21); }
.h-band-dark .h-head h2 { color: #fff; }
.h-band-dark .eyebrow { color: #E9C866; }
.h-plans { display: grid; gap: 16px; max-width: 900px; margin: 0 auto; }
.h-plan { position: relative; padding: 28px; border-radius: var(--r-xl); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); display: flex; flex-direction: column; }
.h-plan h3 { margin: 0 0 12px; font-size: 19px; }
.h-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 18px; }
.h-price b { font-family: var(--display); font-size: 54px; line-height: 1; }
.h-price span { color: rgba(255, 255, 255, .7); font-weight: 700; }
.h-plan ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 12px; flex: 1; align-content: start; }
.h-plan li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-weight: 700; font-size: 14.5px; }
.h-plan li .ic { color: var(--mint); flex-shrink: 0; }
.h-plan li span { flex-basis: 100%; padding-inline-start: 26px; font-weight: 500; font-size: 13px; color: rgba(255, 255, 255, .62); }
.h-plan .h-btn-line { color: #fff; border-color: rgba(255, 255, 255, .35); }
.h-plan-pro { background: linear-gradient(160deg, rgba(201, 168, 76, .16), rgba(255, 255, 255, .04)); border-color: rgba(201, 168, 76, .5); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); }
.h-plan-pro li .ic { color: #E9C866; }
.h-plan-pro .h-price b { color: #E9C866; }
.h-plan-tag { position: absolute; top: -13px; inset-inline-start: 24px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: #C9A84C; color: #1C1405; font-size: 12px; font-weight: 800; }

/* المبادئ */
.h-values { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.h-values > div { padding: 22px; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface); }
.h-values > div > span { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-text); margin-bottom: 14px; }
.h-values h3 { font-size: 17.5px; margin: 0 0 6px; }
.h-values p { margin: 0; color: var(--faint); font-size: 14.5px; line-height: 1.8; }

.h-faq .faq { max-width: 820px; margin: 0 auto; }

/* الدعوة الأخيرة */
.h-final { position: relative; overflow: hidden; margin-top: 88px; padding: 64px 22px 56px; text-align: center; border-radius: var(--r-xl); color: #fff; background:
  radial-gradient(70% 100% at 50% 0%, rgba(47, 214, 163, .2), transparent 60%), linear-gradient(160deg, #0A3B2F, #062A21); }
.h-final .sadu { position: absolute; top: 0; inset-inline: 0; }
.h-final-mark { display: inline-flex; margin-bottom: 16px; filter: drop-shadow(0 14px 30px rgba(0, 0, 0, .4)); }
.h-final h2 { font-family: var(--display); font-size: clamp(30px, 5.4vw, 46px); line-height: 1.25; margin: 0 0 10px; }
.h-final p { color: rgba(255, 255, 255, .78); margin: 0 auto 24px; max-width: 520px; font-size: 17px; }
.h-final .h-cta { justify-content: center; display: flex; gap: 10px; flex-wrap: wrap; }
.h-final .h-btn-line { color: #fff; border-color: rgba(255, 255, 255, .35); }

/* ─── المقاسات ─── */
@media (max-width: 560px) {
  .h-stage { min-height: 470px; }
  .h-tribe { width: 86%; }
  .h-profile { width: 82%; }
  .h-chip-2, .h-chip-1 { display: none; }
  .h-hero-in { padding-top: 40px; gap: 36px; }
  .h-title { font-size: 58px; }
  .h-search .btn { padding: 0 16px; }
}
@media (min-width: 720px) {
  .h-feats { grid-template-columns: repeat(3, 1fr); }
  .h-steps { grid-template-columns: repeat(3, 1fr); }
  .h-plans { grid-template-columns: 1fr 1fr; }
  .h-final { padding: 80px 40px 72px; }
}
@media (min-width: 1000px) {
  .h-hero-in { grid-template-columns: 1.05fr .95fr; gap: 56px; padding-top: 84px; padding-bottom: 104px; min-height: min(760px, calc(100vh - 70px)); }
  .h-stage { min-height: 560px; margin: 0; }
  .h-steps li:not(:last-child)::after { content: ''; position: absolute; top: 48px; inset-inline-end: -15px; width: 16px; height: 2px; background: var(--gold); opacity: .6; }
}
@media (prefers-reduced-motion: reduce) { .h-tribe, .h-profile { animation: none; } }

/* الرئيسية المختصرة: الهيرو بيملا الشاشة */
.home-slim .h-hero-sadu { display: block; }
@media (min-width: 1000px) { .home-slim .h-hero-in { min-height: calc(100vh - 70px - 80px); min-height: calc(100dvh - 70px - 80px); } }

/* ═══ الهيرو الموحّد: عمود واحد في المنتصف (بدون نموذج البطاقات) ═══ */
.h-hero-in { grid-template-columns: minmax(0, 1fr) !important; justify-items: center; text-align: center; }
.h-hero-copy { max-width: 760px; display: flex; flex-direction: column; align-items: center; }
.h-hero .h-lead { margin-inline: auto; max-width: 640px; text-wrap: pretty; }
.h-hero .h-cta { justify-content: center; }
.h-trust { justify-content: center; }
.h-arc-1 { inset-inline-start: 50%; transform: translateX(50%); top: -440px; }
.h-arc-2 { inset-inline-start: 50%; transform: translateX(50%); top: -300px; }
@media (min-width: 1000px) {
  .home-slim .h-hero-in { padding-top: 72px; padding-bottom: 88px; }
  .h-title { font-size: 96px; }
}
@media (max-width: 560px) {
  .h-hero-in { padding-top: 48px; padding-bottom: 56px; }
  .home-slim .h-hero-in { min-height: calc(100svh - 64px - 150px); align-content: center; }
  .h-badge { font-size: 12.5px; padding: 6px 12px; }
  .h-title { font-size: clamp(46px, 14vw, 58px); margin: 16px 0 14px; }
  .h-hero .h-lead { font-size: 16px; line-height: 1.95; margin-bottom: 24px; }
  .h-hero .h-cta { width: 100%; max-width: 360px; flex-direction: column; gap: 10px; }
  .h-hero .h-cta .btn { width: 100%; justify-content: center; }
  .h-trust { flex-direction: column; align-items: center; gap: 6px; margin-top: 18px; }
}
