/* تحسينات بوابة المنتسب: رسومات، مزايا، شرح البنود، الاطلاع دون إنترنت */
.hero-lines, .grid-art { display: none !important; }
.hero-station { position: absolute; inset-inline: 0; bottom: 0; width: 100%; height: clamp(150px, 26vw, 300px); object-fit: cover; object-position: center bottom; z-index: -1; pointer-events: none; }
.hero-station { animation: stIn 1.4s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes stIn { from { opacity: 0; transform: translateY(24px); } }
.trust { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.trust li { display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px; border-radius: 999px; font-size: 13.5px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); backdrop-filter: blur(6px); }
.trust .i { color: #ffd37a; }
/* مزايا الخدمة */
.why { background: linear-gradient(180deg, #041a33, #062a52); color: #fff; padding: 56px 0 64px; }
.why h2 { text-align: center; font-size: clamp(22px, 3.4vw, 30px); margin-bottom: 30px; }
.why-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.why-c { text-align: center; padding: 22px 18px 24px; border-radius: 22px; background: linear-gradient(160deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03)); border: 1px solid rgba(255, 255, 255, .14); transition: transform .3s, border-color .3s; }
.why-c:hover { transform: translateY(-5px); border-color: rgba(255, 211, 122, .5); }
.why-c img { height: 100px; width: auto; margin: 0 auto 10px; display: block; filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .35)); }
.why-c:first-child img { height: 118px; }
.why-c h3 { font-size: 17.5px; margin-bottom: 6px; } .why-c p { font-size: 14px; opacity: .8; line-height: 1.85; }
/* فتح النسخة المحفوظة دون اتصال */
.off-open { display: flex; align-items: center; gap: 12px; width: 100%; margin-bottom: 14px; padding: 12px 14px; border: 1.5px dashed var(--line-2); border-radius: 16px; background: var(--sky-100); cursor: pointer; font-family: inherit; text-align: start; color: var(--ink); }
.off-open b { display: block; font-size: 15px; } .off-open small { color: var(--muted); }
.off-open:hover { border-color: var(--blue); }
/* ملاحظة أمنية بعد الدخول */
.sec-note { display: grid; gap: 8px; margin: 12px 0 14px; }
.sec-note .sn { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border-radius: 14px; font-size: 13.5px; background: var(--sky-100); color: var(--navy); border: 1px solid var(--line-2); }
.sec-note .sn.warn { background: var(--warn-bg); color: var(--warn); border-color: #f1d9a0; }
.sec-note .sn .i { margin-top: 3px; }
.sec-note .sn button { margin-inline-start: auto; background: none; border: 0; color: inherit; cursor: pointer; font-size: 18px; line-height: 1; }
/* شرح البنود */
.lines li[data-ex] { cursor: pointer; transition: background .2s; border-radius: 8px; }
.lines li[data-ex]:hover, .lines li[data-ex]:focus-visible { background: var(--sky-100); outline: none; }
.lines li[data-ex] > span::after { content: "؟"; display: inline-grid; place-items: center; width: 17px; height: 17px; margin-inline-start: 7px; border-radius: 50%; background: var(--sky-100); color: var(--blue); font-size: 11px; font-weight: 800; vertical-align: 1px; }
.ex-box { display: grid; gap: 10px; }
.ex-box .ex-amt { font-size: 28px; font-weight: 800; color: var(--navy); } .ex-box .ex-amt small { font-size: 14px; color: var(--muted); font-weight: 600; margin-inline-start: 6px; }
.ex-box .ex-share { height: 10px; border-radius: 9px; background: var(--sky-100); overflow: hidden; } .ex-box .ex-share i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), #3b7bc4); border-radius: 9px; }
.ex-box p { line-height: 1.95; } .ex-box .ex-hist { font-size: 13.5px; color: var(--muted); }
/* لمحات سريعة */
.insights { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 12px 0; }
.ins { display: flex; gap: 10px; align-items: center; padding: 11px 13px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh-1); }
.ins .ii { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: none; background: var(--sky-100); color: var(--blue); }
.ins.g .ii { background: var(--ok-bg); color: var(--ok); } .ins.r .ii { background: var(--err-bg); color: var(--err); } .ins.a .ii { background: var(--warn-bg); color: var(--warn); }
.ins small { display: block; color: var(--muted); font-size: 12px; line-height: 1.5; } .ins b { font-size: 14.5px; line-height: 1.5; display: block; }
/* حالات فارغة مصوّرة */
.card.empty .art { width: 170px; max-width: 60%; height: auto; margin: 0 auto 8px; display: block; animation: floaty 4s ease-in-out infinite; }
.card.empty svg { animation: none; }
@media (max-width: 700px) { .why { padding: 40px 0 48px; } .hero-station { height: 150px; } }
:root[data-theme="dark"] .ins, :root[data-theme="dark"] .off-open { background: var(--card); }
:root[data-theme="dark"] .sec-note .sn { background: #0c2442; color: #cfe3f7; border-color: #17406f; }
:root[data-theme="dark"] .sec-note .sn.warn { background: #3a2c0b; color: #f6d58a; border-color: #6b5314; }

@media (max-width: 700px) { .insights { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(168px, 1fr); overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -4px; padding: 2px 4px 6px; scrollbar-width: none; } .insights::-webkit-scrollbar { display: none; } .ins { scroll-snap-align: start; } }

/* خطوات إنشاء الحساب */
.steps3 { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 4px 0 18px; padding: 0; counter-reset: s; position: relative; }
.steps3 li { display: grid; justify-items: center; gap: 6px; text-align: center; font-size: 12.5px; color: var(--muted); font-weight: 600; position: relative; }
.steps3 li::before { content: ""; position: absolute; top: 15px; inset-inline-start: 50%; width: 100%; height: 3px; background: var(--line-2); z-index: 0; border-radius: 3px; }
.steps3 li:last-child::before { display: none; }
.steps3 li.done::before { background: var(--ok); }
.steps3 i { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 800; background: var(--sky-100); color: var(--muted); border: 2px solid var(--line-2); transition: all .3s var(--ease); }
.steps3 li.on { color: var(--navy); } .steps3 li.on i { background: var(--navy); color: #fff; border-color: var(--navy); box-shadow: 0 0 0 5px rgba(11, 61, 120, .14); }
.steps3 li.done i { background: var(--ok); border-color: var(--ok); color: #fff; font-size: 0; } .steps3 li.done i::after { content: "✓"; font-size: 16px; }
:root[data-theme="dark"] .steps3 li.on { color: #cfe3f7; }
/* دليل إنشاء الحساب */
.how { padding: 52px 0 12px; background: var(--bg); }
.how h2 { text-align: center; font-size: clamp(22px, 3.4vw, 30px); margin-bottom: 26px; color: var(--navy); }
.how-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.how-grid li { position: relative; text-align: center; padding: 26px 18px 22px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--sh-1); }
.how-grid .hn { position: absolute; top: -14px; inset-inline-start: 50%; transform: translateX(50%); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--red, #c4162a); color: #fff; font-weight: 800; box-shadow: 0 6px 14px rgba(196, 22, 42, .35); }
[dir="rtl"] .how-grid .hn { transform: translateX(50%); }
.how-grid img { height: 84px; width: auto; margin: 0 auto 10px; display: block; }
.how-grid h3 { font-size: 16.5px; margin-bottom: 4px; color: var(--navy); } .how-grid p { font-size: 14px; color: var(--muted); line-height: 1.8; margin: 0; }
.how-cta { text-align: center; margin: 24px 0 0; }
:root[data-theme="dark"] .how h2, :root[data-theme="dark"] .how-grid h3 { color: #cfe3f7; }

.inst-btns { display: grid; gap: 10px; margin-top: 14px; } .inst-btns .btn { justify-content: center; }

/* ===== الهاتف: واجهة افتتاحية مضغوطة ومرتبة ===== */
@media (max-width: 760px) {
  #landing .nav { padding: 12px 0; gap: 10px; flex-wrap: nowrap; }
  #landing .brand { gap: 10px; flex: 1 1 auto; }
  #landing .brand .logo { width: 42px; height: 42px; border-radius: 12px; padding: 3px; }
  #landing .brand b { font-size: 15px; } #landing .brand small { font-size: 11px; line-height: 1.4; }
  #landing .nav-actions { flex: none; gap: 6px; }
  #landing .nav-actions .btn { width: 40px; height: 40px; min-height: 40px; padding: 0; justify-content: center; border-radius: 12px; }
  #landing .nav-actions .bt { display: none; }
  .hero-grid { gap: 20px; padding: 6px 0 110px; }
  .eyebrow { font-size: 12.5px; padding: 5px 12px; }
  .hero h1 { font-size: 30px; margin: 14px 0 8px; line-height: 1.4; }
  .hero .lead { font-size: 14.5px; line-height: 1.8; margin: 0; }
  .trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 14px; }
  .trust li { justify-content: center; padding: 6px 4px; font-size: 12px; gap: 0; white-space: nowrap; }
  .trust li .i { display: none; }
  .auth { padding: 20px 18px 22px; border-radius: 22px; }
  .why { padding: 36px 0 42px; } .why h2 { font-size: 21px; margin-bottom: 20px; }
  .why-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .why-c { padding: 16px 10px 16px; border-radius: 18px; }
  .why-c img, .why-c:first-child img { height: 62px; margin-bottom: 8px; }
  .why-c h3 { font-size: 14.5px; margin-bottom: 4px; } .why-c p { font-size: 12.5px; line-height: 1.75; }
  .how { padding: 34px 0 6px; } .how h2 { font-size: 21px; margin-bottom: 18px; }
  .how-grid { grid-template-columns: 1fr; gap: 10px; }
  .how-grid li { display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; row-gap: 2px; text-align: start; align-items: start; padding: 14px 14px; border-radius: 18px; }
  .how-grid img { display: none; }
  .how-grid .hn, [dir="rtl"] .how-grid .hn { position: static; transform: none; grid-row: 1 / 3; width: 34px; height: 34px; box-shadow: none; }
  .how-grid h3 { font-size: 15px; margin: 0; } .how-grid p { font-size: 13px; line-height: 1.7; }
  .how-cta { margin-top: 18px; } .how-cta .btn { width: 100%; max-width: 360px; }
}

/* ===== شاشة الدخول على الهاتف: شاشة واحدة بلا تمرير — العنوان في الأعلى والبطاقة كورقة سفلية ===== */
.r-back { display: none; } .hero-art { display: none; }
@media (min-width: 761px) { #r-next, .r-back { display: none !important; } }
@media (max-width: 760px) {
  #landing .hero { min-height: 100vh; min-height: 100svh; }
  #landing .hero > .container:first-of-type { padding-top: env(safe-area-inset-top); }
  .hero-grid { display: flex; flex-direction: column; gap: 0; padding: 0; flex: 1; min-height: 0; }
  #landing .hero-grid { align-items: stretch !important; padding: 0 !important; }
  .hero-text { padding: 2px 0 14px; }
  #landing.reg .hero .lead, #landing.reg .trust { display: none; } #landing.reg .hero h1 { font-size: 24px; }
  #f-reg .pw-hint { display: none; }
  .eyebrow { display: none; }
  .hero h1 { font-size: 29px; margin: 8px 0 6px; letter-spacing: 0; }
  .hero .lead { font-size: 13.5px; line-height: 1.75; opacity: .82; max-width: 300px; }
  .trust { margin-top: 12px; }
  .hero-station { display: none; }
  .hero-art { display: block; flex: 1 1 0; min-height: 0; margin: 0 -16px; background: url(/assets/art/station.svg) center bottom / min(100%, 560px) auto no-repeat; opacity: .9; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 40%); mask-image: linear-gradient(180deg, transparent 0, #000 40%); }
  html[data-lite="1"] .hero-art { display: none; }
  .notices.pub { margin-top: 10px; }
  /* الورقة السفلية */
  .auth { margin: auto -16px 0; width: auto; border-radius: 28px 28px 0 0; padding: 16px 18px calc(16px + env(safe-area-inset-bottom)); box-shadow: 0 -18px 50px rgba(2, 12, 28, .45); }
  .auth::before { inset-inline: 38%; top: 8px; height: 4px; border-radius: 4px; background: var(--line-2); }
  .tabs { margin: 8px 0 2px; }
  .tab { padding: 9px 6px; font-size: 14.5px; }
  .auth h2, .auth .sub { display: none; }
  .field { margin-top: 10px; } .field > span { font-size: 13px; margin-bottom: 4px; }
  .input { min-height: 46px; padding-block: 10px; border-radius: 13px; }
  .auth .btn.lg { min-height: 48px; padding-block: 11px; }
  #l-go, #r-go, #r-next { margin-top: 14px !important; }
  .auth .foot { margin: 10px 0 0; font-size: 13.5px; }
  .pw-hint, .field small { font-size: 12px; margin-top: 3px; }
  .strength { margin-top: 6px; }
  .alert { margin-top: 10px; padding: 9px 12px; font-size: 13px; }
  .bio-box { margin-bottom: 4px; }
  /* التسجيل بخطوتين */
  #f-reg[data-step="1"] [data-rs="2"], #f-reg[data-step="1"] #r-go, #f-reg[data-step="1"] .r-back { display: none; }
  #f-reg[data-step="2"] [data-rs="1"], #f-reg[data-step="2"] #r-next { display: none; }
  .r-back { display: block; margin: 8px auto 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: 13.5px; font-weight: 700; padding: 6px 14px; cursor: pointer; }
  #f-reg[data-step="1"] .r-back { display: none; }
  .steps3 { margin: 8px 0 4px; } .steps3 li { font-size: 11.5px; gap: 4px; } .steps3 i { width: 28px; height: 28px; font-size: 13px; } .steps3 li::before { top: 13px; }
}
/* هواتف قصيرة جداً */
@media (max-width: 760px) and (max-height: 680px) {
  .hero .lead, .trust { display: none; }
  .hero h1 { font-size: 26px; }
}
