/* ===== نظام الطلبات والحساب ===== */
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.25); border-top-color: currentColor; display: inline-block; animation: spin .8s linear infinite; vertical-align: middle; }
.loading-box { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 60px 20px; color: var(--muted); }
.boot-loader { min-height: 60vh; display: grid; place-items: center; align-content: center; gap: 22px; color: var(--cyan); }
.boot-loader img { animation: bob 2.4s ease-in-out infinite; filter: drop-shadow(0 0 30px rgba(25,181,224,.4)); }
@keyframes bob { 50% { transform: translateY(-12px); } }
.boot-loader .spinner { width: 26px; height: 26px; }
#userBtn.logged::after { content: ''; position: absolute; top: 8px; left: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 2px var(--bg); }
.tile .photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }

.note-box { display: flex; gap: 10px; align-items: flex-start; margin-top: 22px; padding: 14px 16px; border-radius: 14px; background: rgba(140,214,42,.08); border: 1px solid rgba(140,214,42,.3); color: #d9f6b3; font-size: 14.5px; }
.note-box .ic { color: var(--lime); flex: none; margin-top: 2px; }

.channels { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.channel { position: relative; cursor: pointer; }
.channel input { position: absolute; opacity: 0; }
.channel > span { display: grid; gap: 4px; height: 100%; padding: 16px; border-radius: 16px; background: rgba(10,20,50,.6); border: 1.5px solid var(--line); transition: all .2s; }
.channel > span .ic { width: 26px; height: 26px; color: var(--cyan); margin-bottom: 4px; }
.channel b { font-size: 16px; }
.channel small { color: var(--dim); font-size: 13px; line-height: 1.5; }
.channel input:checked + span { border-color: var(--cyan); background: rgba(25,181,224,.1); box-shadow: 0 0 0 4px rgba(25,181,224,.12); }
.channel input[value="whatsapp"]:checked + span { border-color: #25d366; background: rgba(37,211,102,.08); box-shadow: 0 0 0 4px rgba(37,211,102,.12); }
.channel input[value="whatsapp"] + span .ic { color: #25d366; }
.channel input:focus-visible + span { outline: 2px solid var(--lime); outline-offset: 2px; }
.pay-opt span { flex-direction: column; gap: 2px; }
.pay-opt span small { font-weight: 500; font-size: 12px; color: var(--dim); }
.login-hint { display: flex; gap: 8px; align-items: center; padding: 12px 14px; margin-bottom: 16px; border-radius: 12px; background: rgba(120,175,255,.07); border: 1px dashed var(--line-2); color: var(--muted); font-size: 14px; }
.login-hint .ic { width: 18px; height: 18px; color: var(--cyan); flex: none; }
.login-hint a { color: var(--cyan); font-weight: 700; }

.order-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 18px; }
.order-top .order-no { margin: 0; }
.ost { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; background: rgba(255,203,69,.12); color: #ffd36e; border: 1px solid rgba(255,203,69,.3); }
.ost .ic { width: 16px; height: 16px; }
.ost-paid, .ost-processing { background: rgba(25,181,224,.12); color: #7fdcf5; border-color: rgba(25,181,224,.35); }
.ost-completed { background: rgba(140,214,42,.12); color: var(--lime-2); border-color: rgba(140,214,42,.35); }
.ost-cancelled, .ost-failed { background: rgba(255,77,106,.1); color: #ff8da0; border-color: rgba(255,77,106,.35); }
.stepper { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; isolation: isolate; }
.stepper li { display: grid; justify-items: center; gap: 8px; text-align: center; position: relative; color: var(--dim); font-size: 13.5px; font-weight: 600; }
.stepper li::before { content: ''; position: absolute; top: 17px; left: 50%; width: 100%; height: 3px; background: var(--line-2); z-index: -1; }
.stepper li:first-child::before { display: none; }
.stepper li.done::before, .stepper li.now::before { background: var(--lime); }
.stepper i { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 800; background: var(--surface-solid); border: 2px solid var(--line-2); }
.stepper i .ic { width: 18px; height: 18px; }
.stepper li.done { color: var(--text); }
.stepper li.done i { background: var(--grad-lime); color: #072208; border-color: transparent; }
.stepper li.now { color: var(--cyan); }
.stepper li.now i { border-color: var(--cyan); color: var(--cyan); box-shadow: 0 0 0 6px rgba(25,181,224,.15); }
.oitems { display: grid; gap: 12px; }
.oitem { padding: 14px; border-radius: 16px; background: rgba(10,20,50,.5); border: 1px solid var(--line); }
.oitem.delivered { border-color: rgba(140,214,42,.35); }
.oitem-head { display: flex; gap: 12px; align-items: center; }
.oitem-head .tile { width: 52px; aspect-ratio: 1; border-radius: 12px; flex: none; }
.oitem-head .tile .main { width: 52%; }
.oitem-head .tile .mono { font-size: 15px; }
.oitem-head .tile::after, .oitem-head .tile .ghost { display: none; }
.oitem-head > div { flex: 1; min-width: 0; }
.oitem-head small { display: block; color: var(--dim); font-size: 13px; word-break: break-all; }
.ist { font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: rgba(255,203,69,.12); color: #ffd36e; white-space: nowrap; }
.ist-delivered { background: rgba(140,214,42,.14); color: var(--lime-2); }
.ist-processing, .ist-awaiting_stock { background: rgba(25,181,224,.12); color: #7fdcf5; }
.ist-failed { background: rgba(255,77,106,.12); color: #ff8da0; }
.delivery { margin-top: 12px; display: grid; gap: 8px; animation: fade .5s; }
.code-row { display: flex; gap: 8px; align-items: stretch; }
.code-row code { flex: 1; min-width: 0; padding: 12px 14px; border-radius: 12px; background: #040817; border: 1px dashed rgba(140,214,42,.5); color: var(--lime-2); font-family: ui-monospace, Consolas, monospace; font-size: 16px; font-weight: 700; letter-spacing: .04em; word-break: break-all; }
.code-row .btn { min-height: 46px; padding: 0 16px; }
.dtext { color: #d4e2fb; padding: 10px 12px; border-radius: 12px; background: rgba(120,175,255,.06); }
.pay-box p { color: var(--muted); margin-bottom: 12px; }
.pay-box .amt { color: var(--lime-2); font-family: 'Changa', sans-serif; font-size: 20px; }
.pay-box .hint { margin-top: 10px; color: var(--dim); font-size: 13.5px; }
.proof-form { display: flex; gap: 10px; margin-top: 14px; }
.proof-form .input { flex: 1; min-width: 0; }
.ok-line { display: flex; gap: 8px; align-items: center; margin-top: 14px; color: var(--lime-2) !important; }
.pay-again { display: flex; gap: 10px; flex-wrap: wrap; }
.success-banner { display: flex; gap: 18px; align-items: center; margin-top: 18px; padding: 20px; border-radius: 20px; background: linear-gradient(135deg, rgba(140,214,42,.14), rgba(25,181,224,.1)); border: 1px solid rgba(140,214,42,.35); }
.success-banner .check { width: 62px; height: 62px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--grad-lime); color: #072208; animation: popIn .6s var(--ease); box-shadow: 0 0 0 10px rgba(140,214,42,.12); }
.success-banner .check .ic { width: 32px; height: 32px; }
.success-banner h1 { font-size: clamp(22px, 3vw, 28px); }
.success-banner p { color: var(--muted); margin-top: 4px; }
a.order { transition: border-color .2s, transform .2s; }
a.order:hover { border-color: rgba(25,181,224,.45); transform: translateY(-2px); }
.account-head { display: flex; align-items: center; gap: 16px; margin: 18px 0 30px; flex-wrap: wrap; }
.account-head > div { flex: 1; min-width: 180px; }
.account-head h1 { font-size: 24px; }
.account-head p { color: var(--muted); text-align: right; }
.avatar.big { width: 64px; height: 64px; font-size: 26px; }
.auth-wrap { display: grid; grid-template-columns: minmax(0, 460px) 1fr; gap: 30px; margin-top: 20px; align-items: start; }
.auth-card { display: grid; gap: 16px; }
.auth-mark { margin: 0 auto; filter: drop-shadow(0 0 24px rgba(25,181,224,.35)); }
.auth-tabs { justify-content: center; }
.auth-tabs .tab { flex: 1; }
@media (max-width: 900px) { .auth-wrap { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  #userBtn { display: none; }
  .channels { grid-template-columns: 1fr; }
  .stepper li { font-size: 11.5px; }
  .proof-form { flex-direction: column; }
  .success-banner { padding: 16px; gap: 12px; }
  .success-banner .check { width: 48px; height: 48px; }
}

/* ===== الوضع التجريبي والكوبونات ===== */
.demo-bar { position: relative; z-index: 41; text-align: center; padding: 6px 12px; font-size: 13px; font-weight: 700; color: #2b1d00; background: repeating-linear-gradient(135deg, #ffcb45 0 14px, #ffd86e 14px 28px); }
.coupon-box { display: flex; gap: 8px; margin: 10px 0 4px; }
.coupon-box .input { height: 46px; flex: 1; min-width: 0; text-transform: uppercase; }
.coupon-box .btn { min-height: 46px; padding: 0 16px; }
.coupon-row b { color: var(--lime-2); }
.link-btn { color: var(--red); font-size: 12.5px; text-decoration: underline; margin-inline-start: 6px; }
.demo-note { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(255,203,69,.1); border: 1px dashed rgba(255,203,69,.5); color: #ffd36e; font-size: 13.5px; }
.demo-gw { max-width: 460px; margin: 20px auto 0; padding: 26px; border-radius: 24px; background: #f6f8fc; color: #0f172a; box-shadow: 0 40px 80px -30px rgba(0,0,0,.8); }
.demo-gw .input { background: #fff; border-color: #cbd5e1; color: #0f172a; }
.demo-gw .field label { color: #334155; }
.demo-gw .hint { color: #64748b; font-size: 13px; margin: 10px 0 14px; }
.demo-gw .btn-ghost { background: #fff; color: #b91c1c; border-color: #fecaca; margin-top: 8px; }
.demo-gw-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.demo-chip { padding: 4px 12px; border-radius: 999px; background: #fef3c7; color: #92400e; font-weight: 700; font-size: 13px; }
.demo-amt { text-align: center; padding: 16px; border-radius: 16px; background: #fff; border: 1px solid #e2e8f0; margin-bottom: 18px; }
.demo-amt small { display: block; color: #64748b; }
.demo-amt b { display: block; font-family: 'Changa', sans-serif; font-size: 34px; color: #1e5bd8; }
.demo-amt span { color: #94a3b8; font-size: 13px; }
.demo-card { display: grid; gap: 12px; }

/* عناوين اتحوّلت h1 تلقائيًا — بنفس شكل h2 */
.section-head h1.h2like { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; }
.panel h1.h2like { font-size: 22px; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.panel h1.h2like .ic { color: var(--cyan); }
.empty h1.h2like { font-size: 24px; color: var(--text); }
h1.order-no.h2like { margin: 0; font-size: 20px; }
