/* ============================================================
   إقرار (نسخة المتجر) — أنماط الصفحات الجديدة: الرئيسية التسويقية · التسجيل · الدخول
   تُحمَّل بعد style.css و hero.css ولا تعدّل شيئاً فيهما
   ============================================================ */

/* ---------- الشريط العلوي للرئيسية ---------- */
.lnav .navlink { color: #cfe1e8; }
.lnav .navlink:hover { background: rgba(255,255,255,.08); }
@media (max-width: 760px) {
  .lnav { flex-wrap: wrap; gap: 10px; padding-top: 16px; padding-bottom: 8px; }
  .lnav .brand small { display: none; }
  .lnav .brand b { font-size: 26px; }
  .lnav .navlink.hide-s { display: none; }
}
@media (max-width: 420px) {
  .lnav .btn.sm { padding: 7px 11px; font-size: 13px; }
}
.hero .cta2 { margin-top: 18px; font-size: 14px; color: #93b3c1; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.hero .cta2 a { color: #f3d98f; font-weight: 600; border-bottom: 1px dashed rgba(243,217,143,.5); }
.hero .cta2 a:hover { color: #fff; }
@media (max-width: 560px) {
  .hero .cta .btn.lg { width: 100%; }
  .hero h1 { margin-top: 18px; }
}

/* ---------- أقسام الرئيسية ---------- */
.sec { position: relative; z-index: 3; max-width: 1380px; margin: 0 auto; padding: 0 clamp(18px, 5vw, 64px) 76px; }
.sec-hd { text-align: center; max-width: 740px; margin: 0 auto 36px; }
.sec-hd .sbadge { display: inline-flex; align-items: center; gap: 8px; padding: 5px 16px; border-radius: 99px; font-size: 13.5px; font-weight: 600; color: #f3d98f;
  background: rgba(200,160,74,.14); box-shadow: 0 0 0 1px rgba(233,201,120,.35) inset; }
.sec-hd h2 { font-size: clamp(32px, 4.6vw, 54px); line-height: 1.35; margin: 16px 0 10px; text-shadow: 0 4px 0 rgba(0,0,0,.25), 0 22px 36px rgba(0,0,0,.35); }
.sec-hd h2 em { font-style: normal; background: linear-gradient(180deg, #f6e3a4, #c8a04a); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; }
.sec-hd p { margin: 0; color: #a9c5d0; line-height: 2; font-size: 16px; }

/* الباقات */
.plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; max-width: 960px; margin: 0 auto; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 30px 26px 26px; border-radius: 26px; color: #e6f2f6;
  background: linear-gradient(180deg, rgba(255,255,255,.11), rgba(255,255,255,.04));
  box-shadow: 0 0 0 1px rgba(255,255,255,.14) inset, 0 8px 0 rgba(0,0,0,.28), 0 36px 48px -22px rgba(0,0,0,.65); transform-style: preserve-3d; }
.plan.feat { background: linear-gradient(180deg, rgba(243,217,143,.20), rgba(200,160,74,.06));
  box-shadow: 0 0 0 2px rgba(233,201,120,.55) inset, 0 8px 0 #6d4f12, 0 36px 60px -22px rgba(200,160,74,.35); }
.plan .ribbon { position: absolute; top: -15px; right: 24px; padding: 4px 16px; border-radius: 99px; font-size: 13px; font-weight: 700; color: #3a2806;
  background: linear-gradient(180deg, #f3d98f, #c8a04a); box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 4px 0 #8f6d1e, 0 12px 16px -6px rgba(0,0,0,.5); }
.plan .pname { display: flex; align-items: center; gap: 12px; }
.plan .pname .cube { --c1: #22c69c; --c2: #0e7c66; --c3: #075846; width: 50px; height: 50px; flex: none; display: grid; place-items: center; color: #fff; border-radius: 15px;
  background: linear-gradient(145deg, var(--c1), var(--c2)); box-shadow: inset 0 2px 2px rgba(255,255,255,.55), inset 0 -5px 8px rgba(0,0,0,.2), 0 7px 0 -1px var(--c3), 0 14px 16px -6px rgba(0,0,0,.5);
  transform: translateY(-3px) rotate(-3deg); }
.plan.feat .pname .cube { --c1: #f3d98f; --c2: #c8a04a; --c3: #8f6d1e; color: #4a3407; }
.plan .pname .cube svg { width: 25px; height: 25px; }
.plan .pname h3 { font-family: var(--ui); font-size: 20px; color: #fff; }
.plan .pname small { display: block; color: #9cbccb; font-size: 12.5px; }
.plan .price { font-family: var(--disp); font-size: 46px; line-height: 1.1; color: #fff; text-shadow: 0 3px 0 rgba(0,0,0,.25); }
.plan.feat .price { background: linear-gradient(180deg, #f6e3a4, #c8a04a); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; }
.plan .price small { font-family: var(--ui); font-size: 14px; color: #93b3c1; -webkit-text-fill-color: #93b3c1; margin-inline-start: 8px; }
.plan ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.plan li { display: flex; gap: 11px; align-items: flex-start; font-size: 14.5px; line-height: 1.8; color: #cfe1e8; }
.plan li svg { width: 20px; height: 20px; flex: none; margin-top: 4px; color: #2fd3aa; }
.plan.feat li svg { color: #e9c978; }
.plan .pact { display: flex; flex-direction: column; gap: 12px; }
.plan .pnote { font-size: 12.5px; color: #93b3c1; line-height: 1.8; text-align: center; }
@media (max-width: 760px) { .plan-grid { grid-template-columns: 1fr; gap: 30px; } }

/* بوابة المنسوبين + التحقق: بطاقتان صغيرتان */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; max-width: 960px; margin: 0 auto; }
.qcard { display: flex; flex-direction: column; gap: 12px; padding: 24px 22px; border-radius: 22px; color: #e6f2f6;
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.04));
  box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset, 0 6px 0 rgba(0,0,0,.25), 0 30px 40px -20px rgba(0,0,0,.6); }
.qcard h3 { font-family: var(--ui); font-size: 17px; color: #fff; display: flex; align-items: center; gap: 10px; }
.qcard h3 svg { width: 22px; height: 22px; color: #e9c978; }
.qcard p { margin: 0; font-size: 13.5px; line-height: 1.9; color: #a9c5d0; }
.qform { display: flex; gap: 10px; }
.qform input { flex: 1; min-width: 0; min-height: 48px; direction: ltr; text-align: center; letter-spacing: 1px; font-size: 16px; }
.qform .btn { min-height: 48px; flex: none; }
.qerr { min-height: 20px; font-size: 12.5px; color: #ffb4ab; }
@media (max-width: 760px) { .duo { grid-template-columns: 1fr; } }

/* أسئلة شائعة */
.faq { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq details { border-radius: 18px; color: #cfe1e8; background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.03));
  box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset, 0 4px 0 rgba(0,0,0,.22); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 20px; font-weight: 700; color: #fff; display: flex; align-items: center; gap: 12px; min-height: 56px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; margin-inline-start: auto; font-size: 22px; color: #e9c978; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 20px 18px; font-size: 14.5px; line-height: 2; color: #a9c5d0; }

.foot a { color: #9cbccb; margin: 0 8px; }
.foot a:hover { color: #fff; }

/* ---------- التسجيل ---------- */
.regcard { width: min(560px, 100%); padding: 28px 26px 24px; }
.regcard h1 { font-size: 36px; }
.auth.reg .r { align-items: start; padding-top: clamp(20px, 5vh, 46px); padding-bottom: 40px; }
.fsec { display: flex; flex-direction: column; gap: 14px; }
.fsec + .fsec { margin-top: 6px; padding-top: 18px; border-top: 1px dashed var(--line-2); }
.fsec-t { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; color: var(--ink); }
.fsec-t i { font-style: normal; width: 26px; height: 26px; border-radius: 9px; display: grid; place-items: center; font-size: 13px; color: #fff;
  background: linear-gradient(145deg, #22c69c, #0e7c66); box-shadow: inset 0 1px 1px rgba(255,255,255,.5), 0 3px 0 #075846; }
.seg.two { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
.seg.two button { min-height: 46px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.seg.two button svg { width: 18px; height: 18px; }
.req { color: var(--dan); margin-inline-start: 3px; }
.slugprev { display: flex; flex-direction: column; gap: 6px; padding: 10px 14px; border-radius: 14px; background: #eef3f5; box-shadow: inset 0 2px 4px rgba(11,34,48,.08); }
.slugprev .u { direction: ltr; text-align: left; font-size: 13.5px; color: var(--ink-2); overflow-wrap: anywhere; word-break: break-all; }
.slugprev .u b { color: var(--pri-3); }
.sstat { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; min-height: 22px; line-height: 1.6; }
.sstat svg { width: 17px; height: 17px; }
.sstat.ok { color: #0b6b4c; } .sstat.bad { color: #a5271b; } .sstat.wait, .sstat.idle { color: var(--ink-3); } .sstat.warn { color: #8c6205; }
input.is-ok { border-color: #4fbf9c !important; }
input.is-bad { border-color: #ee8f86 !important; }
.codetoggle { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 4px; border: 0; background: none; cursor: pointer; color: var(--pri); font-weight: 600; font-size: 14px; min-height: 40px; }
.codetoggle svg { width: 18px; height: 18px; }
.codewrap[hidden] { display: none; }
.codewrap { display: flex; flex-direction: column; gap: 8px; animation: rise .4s cubic-bezier(.2,.9,.2,1) both; }
.codewrap input { text-transform: uppercase; letter-spacing: 1.5px; }
#ferr:empty { display: none; }
.regnote { font-size: 12.5px; color: var(--ink-3); line-height: 1.9; text-align: center; }
.pwmatch { min-height: 20px; font-size: 12.5px; font-weight: 600; }
.pwmatch.ok { color: #0b6b4c; } .pwmatch.bad { color: #a5271b; }
.reg-steps { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; padding: 0; list-style: none; }
.reg-steps li { display: flex; gap: 14px; align-items: flex-start; color: #cfe1e8; font-size: 15px; line-height: 1.9; }
.reg-steps li i { font-style: normal; font-family: var(--disp); font-size: 22px; width: 40px; height: 40px; flex: none; border-radius: 13px; display: grid; place-items: center; color: #3a2806;
  background: linear-gradient(145deg, #f3d98f, #c8a04a); box-shadow: inset 0 2px 2px rgba(255,255,255,.55), 0 4px 0 #8f6d1e; }
.reg-steps b { color: #fff; display: block; }
.reg-steps span { color: #9cbccb; font-size: 13.5px; }
@media (max-width: 420px) { .regcard { padding: 22px 16px 20px; } .regcard h1 { font-size: 30px; } }

/* نافذة مفتاح الاسترجاع */
.keyurl { margin-top: 16px; padding: 12px 14px; border-radius: 14px; background: #eef3f5; box-shadow: inset 0 2px 4px rgba(11,34,48,.08); }
.keyurl small { display: block; color: var(--ink-3); font-size: 12px; margin-bottom: 4px; }
.keyurl .u { direction: ltr; text-align: left; font-size: 13.5px; font-weight: 600; overflow-wrap: anywhere; word-break: break-all; color: var(--ink); }

/* ---------- الدخول: رابط التسجيل ---------- */
.reglink { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 16px; border-radius: 15px; font-weight: 600; font-size: 14.5px; color: #4a3407; text-align: center;
  background: linear-gradient(180deg, #fbf7ea, #f5eed6); border: 1px dashed #c8a04a; box-shadow: 0 3px 0 #e0cf94; transition: transform .12s, box-shadow .12s; }
.reglink:hover { transform: translateY(-2px); box-shadow: 0 5px 0 #e0cf94; }
.reglink:active { transform: translateY(2px); box-shadow: 0 1px 0 #e0cf94; }
.reglink svg { width: 19px; height: 19px; flex: none; color: var(--gold-3); }

@media (prefers-reduced-motion: reduce) { .codewrap { animation: none; } }

/* مفتاح الاسترجاع على الجوال: لا يلتفّ على سطرين */
@media (max-width: 480px) { .keybox { font-size: 20px; letter-spacing: 1px; padding: 16px 6px; } }
