/* ==========================================================
   منشئ المتاجر — الصفحة الرئيسية وصفحات الدخول
   ========================================================== */
:root {
    --paper: #f7f9f6;
    --ink: #14261e;
    --ink2: #56675e;
    --line: #dfe7e0;
    --g: #12805c;
    --g-d: #0b5f44;
    --g-t: #ddf3e7;
    --lemon: #ffc93c;
    --lemon-t: #fff1c2;
    --sky-t: #e3edfa;
    --lav-t: #ece8fb;
    --font: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; overflow-x: hidden; overflow-x: clip; }
body.lp, body.auth-body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.75;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden; overflow-x: clip;
}
img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid rgba(18, 128, 92, .45); outline-offset: 3px; border-radius: 6px; }

.lp-wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }

/* ---------- الأزرار ---------- */
.lp-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 24px; border-radius: 999px; border: 1.5px solid transparent;
    font: 600 1rem/1.4 var(--font); text-decoration: none; cursor: pointer;
    transition: background .18s, border-color .18s, transform .18s;
}
.lp-btn-primary { background: var(--g); color: #fff; }
.lp-btn-primary:hover { background: var(--g-d); }
.lp-btn-primary:active { transform: translateY(1px); }
.lp-btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.lp-btn-ghost:hover { background: #fff; border-color: #c7d3ca; }
.lp-btn-lg { padding: 14px 30px; font-size: 1.06rem; }
.lp-btn-sm { padding: 8px 18px; font-size: .95rem; }
.lp-btn-block { display: flex; width: 100%; }
.lp-link { text-decoration: none; font-weight: 500; color: var(--ink2); padding: 8px 10px; }
.lp-link:hover { color: var(--ink); }

/* ---------- الترويسة ---------- */
.lp-head {
    position: sticky; top: 0; z-index: 50;
    background: rgba(247, 249, 246, .88);
    -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--line);
}
.lp-head-in { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.lp-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 1.2rem; }
.lp-nav { display: flex; gap: 6px; margin-inline-start: 8px; }
.lp-nav a { text-decoration: none; padding: 8px 12px; border-radius: 10px; color: var(--ink2); font-weight: 500; }
.lp-nav a:hover { color: var(--ink); background: #eaf0eb; }
.lp-head-cta { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.lp-burger { display: none; width: 42px; height: 42px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; padding: 0; position: relative; }
.lp-burger span { position: absolute; inset-inline: 11px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s; }
.lp-burger span:first-child { top: 15px; }
.lp-burger span:last-child { top: 25px; }
.lp-head.is-open .lp-burger span:first-child { transform: translateY(5px) rotate(45deg); }
.lp-head.is-open .lp-burger span:last-child { transform: translateY(-5px) rotate(-45deg); }

/* ---------- الهيرو ---------- */
.lp-hero {
    overflow-x: clip;
    padding: 56px 0 72px;
    background:
        radial-gradient(55% 60% at 12% 30%, var(--g-t) 0, rgba(221, 243, 231, 0) 70%),
        radial-gradient(40% 45% at 92% 8%, var(--lemon-t) 0, rgba(255, 241, 194, 0) 70%);
}
.lp-hero-in { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 48px; align-items: center; }
.lp-hero h1 { font-size: clamp(2.05rem, 4.3vw, 3.5rem); line-height: 1.28; font-weight: 700; max-width: 16ch; }
.lp-lead { margin-top: 20px; font-size: 1.18rem; color: var(--ink2); max-width: 46ch; }
.lp-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.lp-note { margin-top: 14px; font-size: .95rem; color: var(--ink2); }
.lp-cur { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.lp-cur li { min-width: 38px; padding: 3px 11px; text-align: center; border: 1px solid var(--line); background: rgba(255, 255, 255, .7); border-radius: 8px; font-weight: 600; font-size: .95rem; }
.lp-cur .lp-cur-more { border: 0; background: none; color: var(--ink2); font-weight: 500; }

/* مشهد الهاتف */
.lp-hero-vis { position: relative; display: grid; place-items: center; min-height: 560px; }
.lp-phone {
    position: relative; width: 272px; height: 548px; padding: 10px;
    background: var(--ink); border-radius: 42px;
    box-shadow: 0 34px 60px -28px rgba(20, 38, 30, .55);
}
.lp-phone-notch { position: absolute; top: 14px; left: 50%; width: 70px; height: 18px; margin-left: -35px; background: var(--ink); border-radius: 12px; z-index: 3; }
.lp-mini { position: relative; height: 100%; background: #fff; border-radius: 32px; overflow: hidden; font-size: 12.5px; line-height: 1.5; }
.lp-mini-cover { height: 108px; background: linear-gradient(135deg, #12805c 0%, #3ba57d 55%, #ffc93c 130%); }
.lp-mini-head { display: flex; align-items: center; gap: 10px; padding: 0 14px; margin-top: -26px; }
.lp-mini-logo { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #fff; border: 3px solid #fff; font-size: 24px; box-shadow: 0 4px 10px rgba(0, 0, 0, .14); }
.lp-mini-head b { display: block; font-size: 14px; margin-top: 24px; }
.lp-mini-head small { color: var(--g); font-weight: 600; }
.lp-mini-pills { display: flex; gap: 6px; padding: 12px 14px 4px; }
.lp-mini-pills span { padding: 3px 12px; border-radius: 99px; background: #eef2ee; font-size: 11.5px; font-weight: 500; }
.lp-mini-pills .on { background: var(--g); color: #fff; }
.lp-mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px 14px; }
.lp-mini-grid div { border: 1px solid #edf1ed; border-radius: 14px; padding: 8px; }
.lp-mini-grid i { display: grid; place-items: center; height: 64px; border-radius: 10px; font-style: normal; font-size: 30px; }
.lp-mini-grid b { display: block; margin-top: 6px; font-size: 12px; }
.lp-mini-grid em { font-style: normal; color: var(--g); font-weight: 700; }
.lp-mini-bar { position: absolute; inset-inline: 12px; bottom: 12px; display: flex; justify-content: space-between; padding: 11px 16px; border-radius: 14px; background: var(--g); color: #fff; font-weight: 600; }

.lp-toast {
    position: absolute; z-index: 4; bottom: 96px; inset-inline-start: -26px;
    display: flex; align-items: center; gap: 12px; padding: 12px 16px;
    background: #fff; border: 1px solid var(--line); border-radius: 18px;
    box-shadow: 0 22px 40px -18px rgba(20, 38, 30, .4);
    animation: lp-toast 9s ease-in-out infinite;
}
.lp-toast b { display: block; font-size: .95rem; line-height: 1.4; }
.lp-toast small { color: var(--ink2); font-size: .82rem; }
.lp-toast-bell { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--lemon); color: var(--ink); flex: none; }
.lp-wave { display: flex; align-items: center; gap: 2px; height: 20px; margin-inline-start: 4px; }
.lp-wave i { width: 3px; height: 8px; border-radius: 2px; background: var(--g); animation: lp-wave 1s ease-in-out infinite; }
.lp-wave i:nth-child(2) { animation-delay: .15s; }
.lp-wave i:nth-child(3) { animation-delay: .3s; }
.lp-wave i:nth-child(4) { animation-delay: .45s; }
@keyframes lp-toast {
    0%, 8% { opacity: 0; transform: translateY(24px) scale(.96); }
    14%, 72% { opacity: 1; transform: none; }
    80%, 100% { opacity: 0; transform: translateY(-10px) scale(.98); }
}
@keyframes lp-wave { 0%, 100% { height: 6px; } 50% { height: 18px; } }

.lp-stat {
    position: absolute; z-index: 4; top: 40px; inset-inline-end: -14px;
    padding: 12px 18px; background: var(--lemon-t); border: 1px solid #f3dc8c; border-radius: 16px;
    transform: rotate(-3deg);
}
.lp-stat small { display: block; font-size: .8rem; color: #7a5b00; }
.lp-stat b { display: block; font-size: 1.5rem; line-height: 1.3; }
.lp-stat span { font-size: .82rem; color: #7a5b00; }

/* ---------- الأقسام ---------- */
.lp-sec { padding: 88px 0; }
.lp-sec-tint { background: #eef4ef; border-block: 1px solid var(--line); }
.lp-sec-head { max-width: 640px; margin-bottom: 44px; }
.lp-sec-head h2, .lp-show-txt h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); line-height: 1.35; font-weight: 700; }
.lp-sec-head p { margin-top: 12px; color: var(--ink2); font-size: 1.08rem; }

/* بنتو */
.lp-bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.lp-tile { padding: 28px; border-radius: 24px; border: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; gap: 14px; }
.lp-tile h3 { font-size: 1.25rem; line-height: 1.4; }
.lp-tile p { color: var(--ink2); font-size: 1rem; line-height: 1.7; }
.lp-t-link { grid-column: span 4; background: var(--g-t); border-color: #c5e6d3; justify-content: space-between; }
.lp-t-live { grid-column: span 2; background: var(--lemon-t); border-color: #f3dc8c; }
.lp-t-prod, .lp-t-ship, .lp-t-brand, .lp-t-sm, .lp-t-wa { grid-column: span 2; }
.lp-t-md { grid-column: span 4; }
.lp-t-lav { background: var(--lav-t); border-color: #d8d1f3; }
.lp-t-sky { background: var(--sky-t); border-color: #c9d9ef; }
.lp-t-lem { background: var(--lemon-t); border-color: #f3dc8c; }
.lp-t-grn { background: var(--g-t); border-color: #c5e6d3; }
.lp-t-brand { background: var(--sky-t); border-color: #c9d9ef; justify-content: space-between; }
.lp-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--g-t); color: var(--g-d); }
.lp-t-live .lp-ico { background: var(--lemon); color: var(--ink); }
.lp-urlbar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #fff; border-radius: 14px; border: 1px solid #c5e6d3; }
.lp-urlbar b { font-weight: 500; font-size: 1.02rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-urlbar u { text-decoration: none; font-weight: 700; color: var(--g-d); }
.lp-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--g); box-shadow: 0 0 0 4px rgba(18, 128, 92, .18); flex: none; }
.lp-swatches { display: flex; gap: 8px; }
.lp-swatches i { width: 30px; height: 30px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px rgba(20, 38, 30, .12); }

/* الخطوات */
.lp-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; position: relative; }
.lp-steps li { position: relative; }
.lp-steps li:not(:last-child)::after { content: ''; position: absolute; top: 24px; inset-inline-start: 64px; inset-inline-end: -20px; border-top: 2px dashed #b9cbbf; }
.lp-step-n { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--g); color: #fff; font-weight: 700; font-size: 1.15rem; position: relative; z-index: 1; }
.lp-steps h3 { margin-top: 18px; font-size: 1.25rem; }
.lp-steps p { margin-top: 8px; color: var(--ink2); max-width: 30ch; }

/* عرض اللوحة */
.lp-show { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.lp-show-txt p { margin-top: 14px; color: var(--ink2); font-size: 1.08rem; }
.lp-ticks { margin-top: 22px; display: grid; gap: 12px; }
.lp-ticks li { position: relative; padding-inline-start: 34px; }
.lp-ticks li::before {
    content: ''; position: absolute; inset-inline-start: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%;
    background: var(--g-t) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b5f44' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/13px no-repeat;
}
.lp-board { background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 18px; box-shadow: 0 30px 50px -34px rgba(20, 38, 30, .4); }
.lp-board-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.lp-board-stats div { padding: 12px 14px; background: var(--paper); border-radius: 14px; }
.lp-board-stats small { color: var(--ink2); font-size: .82rem; }
.lp-board-stats b { display: block; font-size: 1.3rem; line-height: 1.4; }
.lp-order { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 13px 14px; border-radius: 14px; border-top: 1px solid var(--line); }
.lp-order:first-of-type { border-top: 0; }
.lp-order-new { background: var(--lemon-t); border: 1px solid #f3dc8c; }
.lp-order b { display: block; line-height: 1.5; }
.lp-order small { color: var(--ink2); font-size: .86rem; }
.lp-order em { font-style: normal; font-weight: 700; min-width: 56px; text-align: end; }
.lp-tag { padding: 2px 12px; border-radius: 99px; font-size: .82rem; font-weight: 600; white-space: nowrap; }
.t-new { background: var(--lemon); color: #3d2e00; }
.t-prep { background: var(--sky-t); color: #1c4c8c; }
.t-ship { background: var(--lav-t); color: #4a35a8; }
.t-done { background: var(--g-t); color: var(--g-d); }

/* الأسعار */
.lp-price { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 48px; align-items: center; }
.lp-price-list h3 { font-size: 1.3rem; }
.lp-price-card { background: #fff; border: 2px solid var(--g); border-radius: 30px; padding: 34px 30px; text-align: center; }
.lp-trial { display: inline-block; padding: 3px 16px; background: var(--lemon); border-radius: 99px; font-weight: 700; font-size: .92rem; }
.lp-amount { margin: 16px 0 22px; }
.lp-amount b { display: block; font-size: 3.1rem; line-height: 1.2; }
.lp-amount span { color: var(--ink2); }

/* الأسئلة */
.lp-faq-wrap { max-width: 820px; }
.lp-faq details { border-bottom: 1px solid var(--line); }
.lp-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-weight: 600; font-size: 1.1rem; cursor: pointer; list-style: none; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: '+'; display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--g-t); color: var(--g-d); font-size: 1.3rem; font-weight: 500; line-height: 1; transition: transform .2s; }
.lp-faq details[open] summary::after { transform: rotate(45deg); }
.lp-faq details p { padding: 0 0 22px; color: var(--ink2); max-width: 62ch; }

/* الختام */
.lp-final { padding: 72px 0; text-align: center; background: var(--g-t); border-top: 1px solid #c5e6d3; }
.lp-final h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 24px; }

/* التذييل */
.lp-foot { border-top: 1px solid var(--line); padding: 44px 0 20px; background: var(--paper); }
.lp-foot-in { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.lp-foot-brand { max-width: 380px; }
.lp-foot-brand strong { font-size: 1.15rem; }
.lp-foot-brand p { margin-top: 8px; color: var(--ink2); font-size: .98rem; }
.lp-foot-links { display: grid; gap: 8px; align-content: start; }
.lp-foot-links a { text-decoration: none; color: var(--ink2); }
.lp-foot-links a:hover { color: var(--g-d); text-decoration: underline; }
.lp-foot-copy { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--ink2); font-size: .9rem; }

/* صفحات عامة */
.lp-doc { padding: 56px 0 80px; min-height: 50vh; }
.lp-doc h1 { font-size: 2rem; margin-bottom: 20px; }
.lp-post { margin-bottom: 28px; }
.lp-prose { max-width: 70ch; }
.lp-prose p { margin-bottom: 1em; }
.lp-404 { text-align: center; }

/* ---------- الدخول والتسجيل ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); overflow-x: clip; }
.auth-form-side { display: flex; flex-direction: column; padding: 28px clamp(20px, 5vw, 64px) 40px; }
.auth-logo { align-self: flex-start; }
.auth-card { width: min(440px, 100%); margin: auto; padding: 28px 0; }
.auth-card h1 { font-size: 2rem; line-height: 1.35; }
.auth-sub { margin: 6px 0 24px; color: var(--ink2); }
.auth-fields { display: grid; gap: 16px; }
.auth-fields label { display: grid; gap: 6px; font-weight: 600; font-size: .96rem; }
.auth-fields small { font-weight: 400; color: var(--ink2); font-size: .85rem; }
.auth-fields input {
    width: 100%; height: 48px; padding: 0 14px; font: 400 1rem var(--font); color: var(--ink);
    background: #fff; border: 1.5px solid var(--line); border-radius: 12px; transition: border-color .15s, box-shadow .15s;
}
.auth-fields input:focus { outline: none; border-color: var(--g); box-shadow: 0 0 0 4px rgba(18, 128, 92, .14); }
.auth-slug { display: flex; align-items: stretch; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; direction: ltr; }
.auth-slug:focus-within { border-color: var(--g); box-shadow: 0 0 0 4px rgba(18, 128, 92, .14); }
.auth-slug i { display: grid; align-items: center; padding: 0 4px 0 14px; font-style: normal; color: var(--ink2); background: #f1f5f2; white-space: nowrap; font-weight: 400; }
.auth-slug input { border: 0; border-radius: 0; box-shadow: none !important; text-align: left; }
.auth-hp { position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important; margin: -1px !important; padding: 0 !important; border: 0 !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; opacity: 0 !important; pointer-events: none !important; }
.auth-msg { padding: 11px 14px; border-radius: 12px; background: #fdeae5; color: #a12c15; font-size: .95rem; font-weight: 500; }
.auth-alt { margin-top: 22px; color: var(--ink2); font-size: .98rem; }
.auth-alt a { color: var(--g-d); font-weight: 600; }
.auth-art { background: var(--g-t); display: grid; place-items: center; padding: 48px; position: relative; overflow: hidden; }
.auth-art::before { content: ''; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: var(--lemon-t); inset-block-start: -180px; inset-inline-end: -160px; }
.auth-art-in { position: relative; max-width: 420px; }
.auth-art h2 { font-size: 2rem; line-height: 1.45; margin-bottom: 8px; }
.auth-mini { display: flex; align-items: center; gap: 12px; margin-top: 34px; width: max-content; padding: 12px 18px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 22px 40px -22px rgba(20, 38, 30, .4); }
.auth-mini b { display: block; font-size: .95rem; line-height: 1.4; }
.auth-mini small { color: var(--ink2); }

/* ---------- استجابة ---------- */
@media (max-width: 980px) {
    .lp-hero-in { grid-template-columns: 1fr; gap: 24px; }
    .lp-hero h1 { max-width: none; }
    .lp-hero-vis { min-height: 0; padding: 30px 0 10px; }
    .lp-toast { inset-inline-start: 4%; }
    .lp-stat { inset-inline-end: 6%; }
    .lp-show, .lp-price { grid-template-columns: 1fr; gap: 32px; }
    .lp-t-link { grid-column: span 6; }
    .lp-t-live, .lp-t-prod, .lp-t-ship, .lp-t-brand, .lp-t-sm { grid-column: span 3; }
    .lp-t-md, .lp-t-wa { grid-column: span 6; }
    .auth { grid-template-columns: minmax(0, 1fr); }
    .auth-art { display: none; }
}
@media (max-width: 860px) {
    .lp-burger { display: block; }
    .lp-head-in { gap: 12px; flex-wrap: wrap; }
    .lp-head-cta { margin-inline-start: auto; }
    .lp-nav { display: none; order: 5; width: 100%; flex-direction: column; margin: 0; padding: 6px 0 14px; }
    .lp-head.is-open .lp-nav { display: flex; }
    .lp-nav a { padding: 12px 8px; }
    .lp-link { display: none; }
}
@media (max-width: 640px) {
    body.lp { font-size: 16px; }
    .lp-sec { padding: 60px 0; }
    .lp-hero { padding: 36px 0 48px; }
    .lp-bento { grid-template-columns: 1fr; }
    .lp-t-link, .lp-t-live, .lp-t-prod, .lp-t-ship, .lp-t-brand, .lp-t-sm, .lp-t-md, .lp-t-wa { grid-column: auto; }
    .lp-steps { grid-template-columns: 1fr; gap: 28px; }
    .lp-steps li:not(:last-child)::after { display: none; }
    .lp-order { grid-template-columns: minmax(0, 1fr) auto; }
    .lp-order .lp-tag { grid-row: 2; grid-column: 1; justify-self: start; }
    .lp-order em { grid-row: 1 / span 2; grid-column: 2; }
    .lp-board-stats b { font-size: 1.05rem; }
    .lp-foot-in { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .lp-toast, .lp-wave i { animation: none; }
    .lp-wave i { height: 12px; }
}

/* شعار المنصة */
.sb-logo { display: block; height: 30px; width: auto; max-width: 160px; object-fit: contain; flex: none; }
