/* سلّة ظلال — نموذج تطبيق الجوال */
:root { --s: 1; }
body {
  min-height: 100vh; overflow-x: hidden;
  background: linear-gradient(160deg, #F4F0F9 0%, #FAF9FC 40%, #E9F8FB 100%);
  padding-inline: 16px;
}
.bg-blobs { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-blobs span { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .45; }
.bg-blobs span:nth-child(1) { width: 520px; height: 520px; background: #D9CBEA; top: -160px; right: -120px; }
.bg-blobs span:nth-child(2) { width: 460px; height: 460px; background: #BFEAF3; bottom: -160px; left: -120px; }
.bg-blobs span:nth-child(3) { width: 300px; height: 300px; background: #E9E1F2; top: 40%; left: 40%; }

/* ===== رأس صفحة العرض ===== */
.pres-head { max-width: 1240px; margin: 0 auto; padding: 48px 0 24px; text-align: center; }
.pres-brand { display: inline-flex; align-items: center; gap: 14px; text-align: right; }
.pres-brand img { width: 44px; height: auto; }
.pres-kicker { font-size: .85rem; color: var(--purple-700); font-weight: 600; }
.pres-head h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 0; font-weight: 800;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pres-lead { max-width: 640px; margin: 16px auto 14px; color: var(--ink-2); font-size: 1.05rem; }
.pres-meta { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; color: var(--ink-2); margin-bottom: 26px; }
.mode-toggle { display: inline-flex; padding: 5px; gap: 4px; background: #fff; border-radius: 999px; box-shadow: var(--shadow); border: 1px solid var(--line); flex-wrap: wrap; justify-content: center; }
.mode-toggle button { display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; padding: 10px 20px; border-radius: 999px; cursor: pointer; font-weight: 600; color: var(--ink-2); transition: .2s; }
.mode-toggle button [data-lucide], .mode-toggle button svg { width: 18px; height: 18px; }
.mode-toggle button.is-on { background: var(--grad); color: #fff; box-shadow: 0 6px 18px rgba(126,95,166,.35); }

main { max-width: 1400px; margin: 0 auto; }
.pres-foot { text-align: center; color: var(--ink-3); font-size: .82rem; padding: 40px 0 32px; }

/* ===== المعرض ===== */
.gallery { display: flex; flex-wrap: wrap; justify-content: center; gap: 44px 36px; padding: 20px 0; }
.shot { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.shot-cap { text-align: center; max-width: calc(360px * var(--s)); }
.shot-cap b { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); color: var(--navy); font-size: 1.05rem; }
.shot-cap b em { font-style: normal; width: 26px; height: 26px; border-radius: 50%; background: var(--grad); color: #fff; font-size: .78rem; display: inline-grid; place-items: center; }
.shot-cap p { margin: 4px 0 0; font-size: .85rem; color: var(--ink-3); line-height: 1.6; }
.shot-cap .open-live { margin-top: 8px; background: none; border: 0; color: var(--teal-700); font-weight: 600; font-size: .82rem; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.shot-cap .open-live svg { width: 14px; height: 14px; }
.group-title { width: 100%; text-align: center; margin: 24px 0 -10px; }
.group-title h2 { font-size: 1.4rem; margin: 0; }
.group-title p { color: var(--ink-3); margin: 0; font-size: .9rem; }

/* ===== إطار الجوال ===== */
.phone-wrap { width: calc(380px * var(--s)); height: calc(780px * var(--s)); position: relative; flex: none; }
.phone {
  width: 380px; height: 780px; transform: scale(var(--s)); transform-origin: top right;
  position: absolute; top: 0; right: 0;
  border-radius: 54px; padding: 10px; background: linear-gradient(145deg, #2B2F4A, #12142A);
  box-shadow: 0 0 0 2px #444a6e inset, 0 30px 60px rgba(35,40,79,.28), 0 10px 20px rgba(35,40,79,.12);
}
.phone::before, .phone::after { content: ""; position: absolute; width: 4px; border-radius: 2px; background: #2B2F4A; }
.phone::before { left: -3px; top: 150px; height: 60px; box-shadow: 0 80px 0 #2B2F4A; }
.phone::after { right: -3px; top: 190px; height: 90px; }
.screen {
  position: relative; width: 360px; height: 760px; border-radius: 44px; overflow: hidden;
  background: var(--bg); display: flex; flex-direction: column; isolation: isolate;
  font-size: 14px; line-height: 1.55;
}
.island { position: absolute; top: 11px; left: 50%; transform: translateX(-50%); width: 112px; height: 32px; background: #000; border-radius: 20px; z-index: 30; }
.island::after { content: ""; position: absolute; left: 22px; top: 11px; width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #3a4a8a, #0b0d1c 65%); }
.statusbar { height: 50px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 6px 30px 0; font-weight: 700; font-size: 15px; z-index: 20; direction: ltr; font-family: -apple-system, 'SF Pro Text', 'Segoe UI', sans-serif; color: var(--ink); }
.statusbar .sb-icons { display: flex; gap: 6px; align-items: center; }
.statusbar svg { display: block; }
.screen.dark .statusbar { color: #fff; }
.home-ind { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); width: 130px; height: 5px; border-radius: 3px; background: var(--ink); opacity: .85; z-index: 40; }
.screen.dark .home-ind { background: #fff; }

.body { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 4px 18px 24px; scrollbar-width: none; }
.body::-webkit-scrollbar { display: none; }
.screen.has-tabs .body { padding-bottom: 96px; }

/* أيقونات داخل الشاشة */
.screen [data-lucide], .screen svg.lucide { width: 20px; height: 20px; stroke-width: 1.9; flex: none; }

/* ===== رأس الشاشة ===== */
.nav { display: flex; align-items: center; gap: 10px; padding: 4px 18px 12px; flex: none; }
.nav h3 { flex: 1; margin: 0; font-size: 19px; font-weight: 800; }
.icon-btn { width: 40px; height: 40px; border-radius: 14px; border: 0; background: #fff; box-shadow: var(--shadow-sm); display: grid; place-items: center; color: var(--navy); cursor: pointer; position: relative; flex: none; }
.icon-btn .dot { position: absolute; top: 9px; left: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--bad); border: 2px solid #fff; }

/* ===== شريط التبويبات ===== */
.tabbar {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 25; height: 86px; padding: 8px 10px 22px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(230,228,238,.8); display: flex; justify-content: space-around;
}
.tab { flex: 1; border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--ink-3); cursor: pointer; padding-top: 4px; position: relative; }
.tab.on { color: var(--purple-600); }
.tab.on::before { content: ""; position: absolute; top: -9px; width: 26px; height: 3px; border-radius: 0 0 3px 3px; background: var(--grad); }
.tab [data-lucide], .tab svg { width: 23px !important; height: 23px !important; }
.tab.qr-tab .qr-bubble { width: 46px; height: 46px; margin-top: -20px; border-radius: 16px; background: var(--grad); display: grid; place-items: center; color: #fff; box-shadow: 0 8px 18px rgba(126,95,166,.4); }
.tab.qr-tab.on::before { display: none; }

/* ===== عناصر عامة ===== */
.sec-h { display: flex; justify-content: space-between; align-items: center; margin: 20px 0 10px; }
.sec-h h4 { margin: 0; font-size: 16px; font-weight: 800; }
.sec-h a, .sec-h button { font-size: 12.5px; color: var(--purple-600); font-weight: 600; background: none; border: 0; cursor: pointer; }
.panel { background: #fff; border-radius: 20px; box-shadow: var(--shadow-sm); padding: 14px; }
.list { background: #fff; border-radius: 20px; box-shadow: var(--shadow-sm); overflow: hidden; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; position: relative; }
.row + .row::before { content: ""; position: absolute; top: 0; left: 14px; right: 62px; height: 1px; background: var(--line); }
.row .r-ic { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; flex: none; background: var(--purple-50); color: var(--purple-600); }
.row .r-ic.teal { background: var(--teal-50); color: var(--teal-700); }
.row .r-ic.ok { background: var(--ok-50); color: var(--ok); }
.row .r-ic.warn { background: var(--warn-50); color: var(--warn); }
.row .r-ic.navy { background: #E8E9F2; color: var(--navy); }
.row .r-ic.panda { background: #FDE9E8; color: var(--panda); }
.row .r-ic.othaim { background: #FEF1E0; color: var(--othaim); }
.row .r-ic.danube { background: #E0F2E8; color: var(--danube); }
.row .r-ic.tamimi { background: #FBE5E8; color: var(--tamimi); }
.row .r-main { flex: 1; min-width: 0; }
.row .r-t { font-weight: 700; font-size: 14px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .r-s { font-size: 12px; color: var(--ink-3); }
.row .r-end { text-align: left; font-weight: 700; font-size: 14px; white-space: nowrap; }
.row .r-end small { display: block; font-weight: 500; font-size: 11px; color: var(--ink-3); }
.row.click { cursor: pointer; }
.row .chev { color: var(--ink-3); width: 18px !important; height: 18px !important; }
.amt-neg { color: var(--ink); }
.amt-pos { color: var(--ok); }
.sar { font-size: .78em; font-weight: 600; color: var(--ink-3); margin-inline-start: 2px; }
.pbtn { width: 100%; border: 0; border-radius: 16px; padding: 15px; font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; }
.pbtn.primary { background: var(--grad); color: #fff; box-shadow: 0 10px 22px rgba(126,95,166,.32); }
.pbtn.light { background: #fff; color: var(--navy); border: 1.5px solid var(--line); }
.pbtn.dark { background: #000; color: #fff; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; cursor: pointer; }
.chip.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.screen .badge { font-size: 11px; padding: 2px 9px; }
.screen .partner { font-size: 13px; }

/* ===== 1. البداية ===== */
.splash { background: linear-gradient(165deg, #9678B4 0%, #7E5FA6 38%, #1FA3BD 100%); color: #fff; }
.splash .body { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; position: relative; padding: 0 30px; }
.splash .ring { position: absolute; left: 50%; transform: translateX(-50%); border-radius: 50%; border: 1.5px solid rgba(255,255,255,.14); }
.splash .logo { width: 112px; filter: drop-shadow(0 12px 28px rgba(0,0,0,.18)); position: relative; animation: float 4s ease-in-out infinite; }
.splash h2 { color: #fff; font-size: 34px; margin: 26px 0 4px; font-weight: 800; }
.splash .tag { font-size: 16px; opacity: .9; letter-spacing: .5px; }
.splash .from { position: absolute; bottom: 60px; font-size: 12px; opacity: .8; }
.splash .loader { margin-top: 44px; width: 120px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.25); overflow: hidden; }
.splash .loader i { display: block; width: 45%; height: 100%; border-radius: 4px; background: #fff; animation: load 1.6s ease-in-out infinite; }
.splash .waves { position: absolute; bottom: 0; left: 0; width: 100%; }
@keyframes float { 50% { transform: translateY(-8px); } }
@keyframes load { 0% { transform: translateX(120%); } 100% { transform: translateX(-260%); } }

/* ===== 2. الدخول ===== */
.login-top { height: 250px; margin: -54px -18px 0; padding-top: 70px; background: var(--grad-soft); position: relative; display: flex; flex-direction: column; align-items: center; overflow: hidden; }
.login-top img { width: 70px; position: relative; z-index: 1; }
.login-top .lt-name { font-family: var(--font-display); font-weight: 800; color: var(--navy); font-size: 22px; margin-top: 8px; position: relative; z-index: 1; }
.login-top svg.wv { position: absolute; bottom: -1px; left: 0; width: 100%; }
.login h3 { font-size: 22px; margin: 6px 0 4px; }
.login .muted { color: var(--ink-2); font-size: 13.5px; margin-bottom: 18px; }
.nafath { width: 100%; border: 0; cursor: pointer; border-radius: 18px; padding: 14px 16px; background: #0E7C66; color: #fff; display: flex; align-items: center; gap: 12px; text-align: right; box-shadow: 0 10px 22px rgba(14,124,102,.28); }
.nafath .nf-ic { width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.16); display: grid; place-items: center; }
.nafath b { display: block; font-size: 15px; }
.nafath small { font-size: 11.5px; opacity: .85; }
.or { display: flex; align-items: center; gap: 10px; margin: 18px 0; color: var(--ink-3); font-size: 12px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.field { background: #fff; border: 1.5px solid var(--line); border-radius: 16px; padding: 10px 14px; display: flex; align-items: center; gap: 10px; }
.field.focus { border-color: var(--purple); box-shadow: 0 0 0 4px rgba(150,120,180,.12); }
.field label { font-size: 11px; color: var(--ink-3); display: block; }
.field .val { font-weight: 700; font-size: 16px; direction: ltr; text-align: right; letter-spacing: 1px; }
.field .cc { direction: ltr; font-weight: 700; color: var(--ink-2); padding-left: 10px; border-left: 1px solid var(--line); }
.otp { display: flex; gap: 8px; justify-content: center; direction: ltr; margin: 14px 0 6px; }
.otp span { width: 46px; height: 54px; border-radius: 14px; background: #fff; border: 1.5px solid var(--line); display: grid; place-items: center; font-weight: 800; font-size: 20px; color: var(--navy); }
.otp span.f { border-color: var(--purple); }
.otp span.cur { border-color: var(--purple); box-shadow: 0 0 0 4px rgba(150,120,180,.12); }
.otp span.cur::after { content: ""; width: 2px; height: 22px; background: var(--purple); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.resend { text-align: center; font-size: 12px; color: var(--ink-3); margin-bottom: 14px; }
.resend b { color: var(--purple-600); }
.terms { text-align: center; font-size: 11px; color: var(--ink-3); margin-top: 16px; }

/* ===== 3. الرئيسية ===== */
.hello { display: flex; align-items: center; gap: 12px; padding: 2px 0 14px; }
.avatar { width: 46px; height: 46px; border-radius: 16px; background: var(--grad); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 18px; flex: none; }
.hello .h-t { flex: 1; }
.hello .h-t small { color: var(--ink-3); font-size: 12px; display: block; }
.hello .h-t b { font-family: var(--font-display); font-size: 19px; color: var(--navy); }

.zcard { position: relative; border-radius: 26px; padding: 18px 18px 16px; color: #fff; overflow: hidden;
  background: linear-gradient(135deg, #7E5FA6 0%, #6C59A0 40%, #1FA3BD 100%); box-shadow: 0 18px 36px rgba(99,74,135,.35); }
.zcard .deco { position: absolute; inset: 0; pointer-events: none; }
.zcard .zc-top { display: flex; justify-content: space-between; align-items: flex-start; position: relative; }
.zcard .zc-brand { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 800; font-size: 15px; }
.zcard .zc-brand img { width: 24px; }
.zcard .tier { background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.3); padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; backdrop-filter: blur(4px); }
.zcard .zc-mid { display: flex; align-items: center; gap: 14px; margin-top: 14px; position: relative; }
.zcard .bal small { font-size: 12px; opacity: .85; display: block; }
.zcard .bal b { font-size: 32px; font-weight: 800; font-family: var(--font-display); line-height: 1.1; letter-spacing: -.5px; }
.zcard .bal b span { font-size: 14px; font-weight: 600; opacity: .85; margin-inline-start: 4px; }
.zcard .bal .of { font-size: 12px; opacity: .85; }
.ring-wrap { position: relative; width: 74px; height: 74px; margin-inline-start: auto; flex: none; }
.ring-wrap svg { transform: rotate(-90deg); }
.ring-wrap .rv { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font-weight: 800; font-size: 15px; line-height: 1.1; }
.ring-wrap .rv small { display: block; font-size: 9.5px; font-weight: 500; opacity: .85; }
.zcard .bar { height: 6px; border-radius: 6px; background: rgba(255,255,255,.22); margin: 14px 0 12px; position: relative; overflow: hidden; }
.zcard .bar i { position: absolute; inset-block: 0; right: 0; width: 68%; border-radius: 6px; background: linear-gradient(90deg, #fff, #CFF3FA); }
.zcard .zc-bot { display: flex; justify-content: space-between; align-items: flex-end; font-size: 11.5px; position: relative; }
.zcard .zc-bot .no { direction: ltr; font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 14px; font-weight: 700; letter-spacing: 1.5px; }
.zcard .zc-bot small { opacity: .8; display: block; font-size: 10.5px; }

.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 18px; }
.qa { border: 0; background: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 600; color: var(--ink-2); }
.qa .qa-ic { width: 56px; height: 56px; border-radius: 19px; background: #fff; display: grid; place-items: center; box-shadow: var(--shadow-sm); color: var(--purple-600); }
.qa:nth-child(2) .qa-ic { color: var(--teal-700); }
.qa:nth-child(3) .qa-ic { color: var(--warn); }
.qa:nth-child(4) .qa-ic { color: var(--navy); }
.qa .qa-ic [data-lucide], .qa .qa-ic svg { width: 24px !important; height: 24px !important; }

.pickup-banner { margin-top: 18px; border-radius: 20px; padding: 14px; display: flex; gap: 12px; align-items: center; cursor: pointer;
  background: linear-gradient(120deg, #FFF6E5, #FCEFD6); border: 1px solid #F3DDB0; position: relative; overflow: hidden; }
.pickup-banner .pb-ic { width: 46px; height: 46px; border-radius: 15px; background: var(--gold); color: #fff; display: grid; place-items: center; flex: none; }
.pickup-banner b { font-size: 14px; color: #7A5410; display: block; }
.pickup-banner small { font-size: 11.5px; color: #9A7225; }
.pickup-banner .moon { position: absolute; left: -10px; top: -14px; width: 70px; height: 70px; border-radius: 50%; box-shadow: 14px 10px 0 0 rgba(224,160,48,.18); }

/* ===== 4. QR ===== */
.qr-screen { background: linear-gradient(180deg, #2E2A55 0%, #303666 55%, #23284F 100%); color: #fff; }
.qr-screen .nav h3 { color: #fff; }
.qr-screen .icon-btn { background: rgba(255,255,255,.12); color: #fff; box-shadow: none; }
.qr-card { background: #fff; border-radius: 28px; padding: 20px 20px 16px; color: var(--ink); text-align: center; position: relative; box-shadow: 0 24px 50px rgba(0,0,0,.3); }
.qr-card::before, .qr-card::after { content: ""; position: absolute; top: 118px; width: 22px; height: 22px; border-radius: 50%; background: #2F3262; }
.qr-card::before { right: -11px; } .qr-card::after { left: -11px; }
.qr-card .qc-name { font-family: var(--font-display); font-weight: 800; color: var(--navy); font-size: 17px; }
.qr-card .qc-sub { font-size: 12px; color: var(--ink-3); }
.qr-box { width: 228px; height: 228px; margin: 14px auto 8px; padding: 12px; border-radius: 20px; border: 1.5px dashed var(--purple-100); position: relative; }
.qr-box svg { width: 100%; height: 100%; display: block; }
.qr-box .qr-logo { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 12px; background: #fff; display: grid; place-items: center; box-shadow: 0 0 0 4px #fff; }
.qr-box .qr-logo img { width: 30px; }
.qr-box .scan { position: absolute; left: 12px; right: 12px; height: 2px; background: linear-gradient(90deg, transparent, var(--teal), transparent); top: 12px; animation: scan 2.6s ease-in-out infinite; box-shadow: 0 0 12px var(--teal); }
@keyframes scan { 50% { top: calc(100% - 14px); } }
.qr-num { direction: ltr; font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-weight: 700; letter-spacing: 2px; font-size: 16px; color: var(--navy); }
.qr-timer { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 6px 14px; border-radius: 999px; background: var(--teal-50); color: var(--teal-700); font-size: 12.5px; font-weight: 700; }
.qr-timer [data-lucide], .qr-timer svg { width: 15px !important; height: 15px !important; }
.qr-timer .t { direction: ltr; font-variant-numeric: tabular-nums; }
.qr-prog { height: 4px; border-radius: 4px; background: var(--line); margin: 12px 10px 0; overflow: hidden; }
.qr-prog i { display: block; height: 100%; background: var(--grad-teal); width: 75%; transition: width 1s linear; }
.qr-bal { display: flex; justify-content: space-between; margin-top: 14px; padding: 12px 16px; background: rgba(255,255,255,.08); border-radius: 18px; border: 1px solid rgba(255,255,255,.12); font-size: 12px; }
.qr-bal b { font-size: 18px; display: block; font-family: var(--font-display); }
.bright { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 14px; border-radius: 16px; background: rgba(60,192,216,.14); color: #CFF3FA; font-size: 12px; }
.steps-c { margin-top: 12px; display: grid; gap: 8px; }
.steps-c div { display: flex; gap: 10px; align-items: center; font-size: 12.5px; color: rgba(255,255,255,.88); }
.steps-c i.n { font-style: normal; width: 24px; height: 24px; border-radius: 8px; background: rgba(255,255,255,.12); display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }

/* ===== 5. المتاجر ===== */
.map { position: relative; height: 330px; margin: -54px -18px 0; overflow: hidden; background: #EEF1EC; }
.map svg.streets { position: absolute; inset: 0; width: 100%; height: 100%; }
.pin { position: absolute; transform: translate(50%, -100%); display: flex; flex-direction: column; align-items: center; }
.pin .pin-b { width: 34px; height: 34px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--c); display: grid; place-items: center; box-shadow: 0 6px 14px rgba(0,0,0,.22); border: 2.5px solid #fff; }
.pin .pin-b span { transform: rotate(45deg); color: #fff; font-weight: 800; font-size: 12px; font-family: var(--font-display); }
.pin.sel .pin-b { width: 42px; height: 42px; }
.pin .pin-l { margin-top: 4px; background: #fff; border-radius: 8px; padding: 1px 7px; font-size: 10.5px; font-weight: 700; box-shadow: var(--shadow-sm); white-space: nowrap; }
.me-dot { position: absolute; width: 18px; height: 18px; border-radius: 50%; background: #2F7BF6; border: 3px solid #fff; box-shadow: 0 0 0 10px rgba(47,123,246,.18), 0 2px 6px rgba(0,0,0,.2); transform: translate(50%, -50%); }
.map-top { position: absolute; top: 56px; left: 18px; right: 18px; display: flex; gap: 8px; z-index: 5; }
.search { flex: 1; background: #fff; border-radius: 16px; display: flex; align-items: center; gap: 8px; padding: 0 14px; height: 46px; color: var(--ink-3); font-size: 13px; box-shadow: var(--shadow); }
.map-top .icon-btn { width: 46px; height: 46px; box-shadow: var(--shadow); }
.sheet { position: relative; margin: -26px -18px 0; background: var(--bg); border-radius: 26px 26px 0 0; padding: 10px 18px 0; z-index: 4; box-shadow: 0 -8px 24px rgba(35,40,79,.08); }
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 12px; }
.store { display: flex; gap: 12px; align-items: center; background: #fff; border-radius: 18px; padding: 12px; box-shadow: var(--shadow-sm); margin-bottom: 10px; }
.store .s-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 12%, #fff); color: var(--c); flex: none; }
.store .s-m { flex: 1; min-width: 0; }
.store .s-m .partner { --c: inherit; }
.store .s-m small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-3); font-size: 11.5px; }
.store .open { color: var(--ok); font-weight: 600; }
.store .s-d { text-align: center; font-weight: 800; color: var(--navy); font-size: 15px; line-height: 1.1; }
.store .s-d small { display: block; font-size: 10.5px; font-weight: 500; color: var(--ink-3); }
.store .go { width: 36px; height: 36px; border-radius: 12px; background: var(--teal-50); color: var(--teal-700); display: grid; place-items: center; }
.store .disc { display: inline-block; line-height: 1.5; font-size: 10.5px; margin-inline-start: 6px; background: var(--ok-50); color: var(--ok); padding: 1px 7px; border-radius: 6px; font-weight: 700; margin-inline-start: 4px; }

/* ===== 6. السجل ===== */
.month-sum { display: flex; gap: 10px; margin: 4px 0 14px; }
.month-sum div { flex: 1; background: #fff; border-radius: 18px; padding: 12px; box-shadow: var(--shadow-sm); }
.month-sum small { font-size: 11px; color: var(--ink-3); display: block; }
.month-sum b { font-size: 17px; font-family: var(--font-display); }
.month-h { font-size: 12.5px; color: var(--ink-3); font-weight: 700; margin: 16px 4px 8px; display: flex; justify-content: space-between; }

.receipt { background: #fff; border-radius: 22px; padding: 18px 16px; box-shadow: var(--shadow); position: relative; margin-top: 4px; }
.receipt::after { content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 12px;
  background: radial-gradient(circle at 8px 0, #fff 7px, transparent 7.5px) 0 0 / 16px 12px repeat-x; filter: drop-shadow(0 4px 3px rgba(35,40,79,.05)); }
.rc-head { text-align: center; padding-bottom: 14px; border-bottom: 1.5px dashed var(--line); }
.rc-head .rc-ic { width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 8px; background: var(--ok-50); color: var(--ok); display: grid; place-items: center; }
.rc-head .rc-amt { font-size: 28px; font-weight: 800; font-family: var(--font-display); color: var(--navy); }
.rc-head small { color: var(--ink-3); font-size: 12px; }
.rc-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; padding: 12px 0; border-bottom: 1.5px dashed var(--line); font-size: 12px; }
.rc-meta span { color: var(--ink-3); display: block; font-size: 11px; }
.rc-meta b { font-weight: 700; }
.rc-items { padding: 10px 0; border-bottom: 1.5px dashed var(--line); }
.rc-item { display: flex; justify-content: space-between; font-size: 12.5px; padding: 4px 0; gap: 10px; }
.rc-item small { color: var(--ink-3); }
.rc-item .q { color: var(--ink-3); font-size: 11px; margin-inline-start: 4px; }
.rc-tot { padding-top: 10px; font-size: 13px; }
.rc-tot div { display: flex; justify-content: space-between; padding: 3px 0; }
.rc-tot .disc { color: var(--ok); }
.rc-tot .grand { font-weight: 800; font-size: 16px; color: var(--navy); padding-top: 8px; margin-top: 6px; border-top: 1px solid var(--line); }
.blocked { display: flex; gap: 8px; align-items: flex-start; margin-top: 22px; padding: 10px 12px; border-radius: 14px; background: var(--warn-50); color: #8A5F0B; font-size: 11.5px; }
.blocked svg, .blocked [data-lucide] { width: 16px !important; height: 16px !important; margin-top: 2px; }

/* ===== 7. السلال ===== */
.basket-hero { border-radius: 26px; padding: 18px; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(140deg, #303666 0%, #4B3F7E 55%, #7E5FA6 100%); box-shadow: 0 16px 32px rgba(48,54,102,.3); }
.basket-hero .lanterns { position: absolute; left: 12px; top: 0; opacity: .9; }
.basket-hero .bh-k { font-size: 12px; opacity: .85; }
.basket-hero h4 { color: #fff; font-size: 20px; margin: 2px 0 10px; }
.code-box { background: rgba(255,255,255,.1); border: 1px dashed rgba(255,255,255,.4); border-radius: 18px; padding: 12px; text-align: center; }
.code-box small { font-size: 11.5px; opacity: .85; }
.code-box .code { direction: ltr; font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 30px; font-weight: 800; letter-spacing: 6px; color: #FFE7B0; }
.bh-info { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; font-size: 12px; }
.bh-info div { display: flex; gap: 8px; align-items: flex-start; }
.bh-info [data-lucide], .bh-info svg { width: 17px !important; height: 17px !important; opacity: .85; margin-top: 2px; }
.bh-info b { display: block; font-size: 12.5px; }
.bh-info span { opacity: .8; font-size: 11px; }
.check { display: flex; align-items: center; gap: 10px; padding: 10px 14px; font-size: 13px; }
.check + .check { border-top: 1px solid var(--line); }
.check .cb { width: 22px; height: 22px; border-radius: 7px; background: var(--ok); color: #fff; display: grid; place-items: center; flex: none; }
.check .cb [data-lucide], .check .cb svg { width: 14px !important; height: 14px !important; stroke-width: 3; }
.check .cq { margin-inline-start: auto; color: var(--ink-3); font-size: 12px; }
.other-b { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 0 -18px; padding: 0 18px 4px; }
.other-b::-webkit-scrollbar { display: none; }
.ob { flex: none; width: 140px; background: #fff; border-radius: 18px; padding: 12px; box-shadow: var(--shadow-sm); }
.ob .ob-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 8px; }
.ob b { display: block; font-size: 13px; }
.ob small { font-size: 11px; color: var(--ink-3); }

/* ===== 8. الطلبات ===== */
.req-card { background: #fff; border-radius: 22px; padding: 16px; box-shadow: var(--shadow-sm); }
.req-top { display: flex; align-items: center; gap: 12px; }
.req-top .r-ic { width: 46px; height: 46px; border-radius: 15px; background: #FDEBF3; color: #C2477F; display: grid; place-items: center; flex: none; }
.req-top b { display: block; font-size: 15px; }
.req-top small { color: var(--ink-3); font-size: 11.5px; }
.timeline { margin: 14px 0 4px; padding-inline-start: 4px; }
.tl { display: flex; gap: 12px; position: relative; padding-bottom: 14px; }
.tl:last-child { padding-bottom: 0; }
.tl::before { content: ""; position: absolute; right: 10px; top: 24px; bottom: 0; width: 2px; background: var(--line); }
.tl:last-child::before { display: none; }
.tl.done::before { background: var(--ok); }
.tl .tl-d { width: 22px; height: 22px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--line); color: #fff; position: relative; z-index: 1; }
.tl.done .tl-d { background: var(--ok); }
.tl.cur .tl-d { background: #fff; border: 2.5px solid var(--purple); box-shadow: 0 0 0 4px rgba(150,120,180,.15); }
.tl.cur .tl-d::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--purple); }
.tl .tl-d [data-lucide], .tl .tl-d svg { width: 13px !important; height: 13px !important; stroke-width: 3; }
.tl b { font-size: 13px; display: block; }
.tl small { font-size: 11.5px; color: var(--ink-3); }
.tl.todo b { color: var(--ink-3); }
.docs { display: grid; gap: 8px; margin-top: 12px; }
.doc { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--bg); font-size: 12.5px; }
.doc .d-ic { width: 34px; height: 34px; border-radius: 10px; background: #fff; display: grid; place-items: center; color: var(--purple-600); flex: none; }
.doc .d-m { flex: 1; }
.doc .d-m small { display: block; color: var(--ink-3); font-size: 11px; }
.doc .ok-ic { color: var(--ok); }
.upload { border: 2px dashed var(--purple-100); border-radius: 16px; padding: 14px; text-align: center; color: var(--purple-600); background: var(--purple-50); font-size: 12.5px; font-weight: 600; }
.upload small { display: block; color: var(--ink-3); font-weight: 400; font-size: 11px; }
.new-req { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.new-req button { border: 0; background: #fff; border-radius: 18px; padding: 14px 12px; text-align: right; box-shadow: var(--shadow-sm); cursor: pointer; display: flex; flex-direction: column; gap: 8px; font-weight: 700; font-size: 12.5px; color: var(--ink); }
.new-req button span.i { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; }
.new-req button small { font-weight: 400; color: var(--ink-3); font-size: 11px; }

/* ===== 9. الإشعارات ===== */
.notif { display: flex; gap: 12px; padding: 14px; background: #fff; border-radius: 20px; box-shadow: var(--shadow-sm); margin-bottom: 10px; position: relative; }
.notif.unread::after { content: ""; position: absolute; top: 18px; left: 16px; width: 9px; height: 9px; border-radius: 50%; background: var(--purple); }
.notif .n-ic { width: 44px; height: 44px; border-radius: 15px; display: grid; place-items: center; flex: none; }
.notif b { font-size: 14px; display: block; padding-left: 16px; }
.notif p { margin: 2px 0 6px; font-size: 12.5px; color: var(--ink-2); line-height: 1.6; }
.notif small { font-size: 11px; color: var(--ink-3); }
.notif .n-act { display: flex; gap: 8px; margin-top: 8px; }
.notif .n-act button { border: 0; border-radius: 10px; padding: 6px 12px; font-size: 12px; font-weight: 700; cursor: pointer; }
.notif .n-act .a1 { background: var(--purple-600); color: #fff; }
.notif .n-act .a2 { background: var(--bg); color: var(--ink-2); }
.n-big { font-family: var(--font-display); font-size: 22px; color: var(--ok); font-weight: 800; }

/* ===== 10. حسابي ===== */
.prof { text-align: center; padding: 6px 0 4px; }
.prof .avatar { width: 76px; height: 76px; border-radius: 26px; font-size: 28px; margin: 0 auto 10px; box-shadow: 0 12px 26px rgba(126,95,166,.3); }
.prof b { font-family: var(--font-display); font-size: 20px; color: var(--navy); display: block; }
.prof small { color: var(--ink-3); font-size: 12px; }
.prof .badges { display: flex; gap: 6px; justify-content: center; margin-top: 8px; flex-wrap: wrap; }
.stats3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.stats3 div { background: #fff; border-radius: 16px; padding: 10px 6px; text-align: center; box-shadow: var(--shadow-sm); }
.stats3 b { font-family: var(--font-display); font-size: 18px; color: var(--navy); display: block; }
.stats3 small { font-size: 11px; color: var(--ink-3); }
.members { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 0 -18px; padding: 0 18px 4px; }
.members::-webkit-scrollbar { display: none; }
.mem { flex: none; width: 82px; text-align: center; background: #fff; border-radius: 18px; padding: 10px 4px; box-shadow: var(--shadow-sm); }
.mem .m-av { width: 42px; height: 42px; border-radius: 50%; margin: 0 auto 6px; display: grid; place-items: center; font-weight: 800; color: #fff; font-family: var(--font-display); }
.mem b { font-size: 12px; display: block; }
.mem small { font-size: 10.5px; color: var(--ink-3); }
.logout { color: var(--bad) !important; }
.toggle { width: 44px; height: 26px; border-radius: 13px; background: var(--ok); position: relative; flex: none; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); }

/* ===== 11–12. المتبرع ===== */
.donor-hero { margin: -54px -18px 0; padding: 66px 18px 26px; background: linear-gradient(160deg, #303666, #634A87 60%, #1FA3BD); color: #fff; border-radius: 0 0 32px 32px; position: relative; overflow: hidden; }
.donor-hero h3 { color: #fff; font-size: 22px; margin: 6px 0 4px; }
.donor-hero p { font-size: 12.5px; opacity: .85; margin: 0; }
.donor-hero .dh-ic { width: 44px; height: 44px; border-radius: 15px; background: rgba(255,255,255,.15); display: grid; place-items: center; }
.seg { display: flex; background: #EDEBF3; border-radius: 14px; padding: 4px; margin: 16px 0 12px; }
.seg span { flex: 1; text-align: center; padding: 8px; border-radius: 11px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.seg span.on { background: #fff; color: var(--purple-700); box-shadow: var(--shadow-sm); }
.amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.amounts button { border: 1.5px solid var(--line); background: #fff; border-radius: 16px; padding: 12px 4px; font-weight: 800; font-size: 16px; font-family: var(--font-display); color: var(--navy); cursor: pointer; }
.amounts button small { display: block; font-family: var(--font); font-weight: 500; font-size: 10.5px; color: var(--ink-3); }
.amounts button.on { border-color: var(--purple); background: var(--purple-50); color: var(--purple-700); box-shadow: 0 0 0 3px rgba(150,120,180,.14); }
.give-impact { display: flex; gap: 10px; align-items: center; margin: 12px 0; padding: 12px; border-radius: 16px; background: var(--teal-50); color: var(--teal-700); font-size: 12.5px; font-weight: 600; }
.apple-pay { width: 100%; border: 0; border-radius: 16px; padding: 14px; background: #000; color: #fff; font-weight: 600; font-size: 17px; display: flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; direction: ltr; font-family: -apple-system, 'SF Pro Text', 'Segoe UI', sans-serif; }
.apple-pay svg { width: 20px !important; height: 20px !important; }
.pay-alt { display: flex; gap: 8px; margin-top: 8px; }
.pay-alt span { flex: 1; text-align: center; border: 1.5px solid var(--line); border-radius: 14px; padding: 9px; font-size: 12.5px; font-weight: 700; background: #fff; color: var(--ink-2); }
.trust { display: flex; justify-content: center; gap: 6px; align-items: center; color: var(--ink-3); font-size: 11px; margin-top: 12px; }
.trust svg, .trust [data-lucide] { width: 14px !important; height: 14px !important; }

.impact-top { text-align: center; padding: 8px 0 0; }
.impact-medal { width: 130px; height: 130px; margin: 0 auto; position: relative; display: grid; place-items: center; }
.impact-medal .halo { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, #9678B4, #3CC0D8, #9678B4); animation: spin 8s linear infinite; }
.impact-medal .halo::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--bg); }
.impact-medal .core { position: relative; width: 98px; height: 98px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; box-shadow: 0 14px 30px rgba(126,95,166,.35); }
.impact-medal .core svg { width: 44px !important; height: 44px !important; }
@keyframes spin { to { transform: rotate(360deg); } }
.impact-top h3 { font-size: 22px; margin: 14px 0 2px; }
.impact-top h3 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.impact-top p { color: var(--ink-2); font-size: 13px; margin: 0; }
.imp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.imp-grid div { background: #fff; border-radius: 18px; padding: 12px; box-shadow: var(--shadow-sm); }
.imp-grid .ii { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 6px; }
.imp-grid b { font-family: var(--font-display); font-size: 20px; color: var(--navy); display: block; line-height: 1.2; }
.imp-grid small { font-size: 11px; color: var(--ink-3); }
.story { margin-top: 12px; background: #fff; border-radius: 20px; padding: 14px; box-shadow: var(--shadow-sm); font-size: 12.5px; color: var(--ink-2); position: relative; }
.story .q { position: absolute; top: 8px; left: 12px; color: var(--purple-100); }
.story .q svg { width: 34px !important; height: 34px !important; }
.story b { color: var(--navy); }
.dist-bar { display: flex; height: 10px; border-radius: 6px; overflow: hidden; margin: 10px 0 6px; }
.dist-legend { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-3); }
.dist-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-inline-end: 4px; }

/* ===== الوضع التفاعلي ===== */
.live { display: flex; gap: 40px; justify-content: center; align-items: flex-start; padding: 20px 0; flex-wrap: wrap; }
.live[hidden], .gallery[hidden], [hidden] { display: none !important; }
.live-side { width: 300px; max-width: 100%; position: sticky; top: 20px; }
.live-side h2 { font-size: 1.4rem; margin-bottom: 4px; }
.live-side p { color: var(--ink-2); font-size: .92rem; }
.live-nav { display: grid; gap: 4px; background: #fff; padding: 8px; border-radius: 20px; box-shadow: var(--shadow); }
.live-nav button { display: flex; align-items: center; gap: 10px; border: 0; background: none; padding: 9px 12px; border-radius: 12px; cursor: pointer; text-align: right; font-weight: 600; color: var(--ink-2); font-size: .9rem; }
.live-nav button:hover { background: var(--purple-50); }
.live-nav button.on { background: var(--purple-50); color: var(--purple-700); }
.live-nav button em { font-style: normal; width: 24px; height: 24px; flex: none; border-radius: 8px; display: grid; place-items: center; background: var(--bg); font-size: .75rem; color: var(--ink-3); }
.live-nav button.on em { background: var(--grad); color: #fff; }
.live-nav .ln-sep { font-size: .75rem; color: var(--ink-3); padding: 8px 12px 2px; font-weight: 700; }
.live-stage { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.live-caption { text-align: center; max-width: calc(380px * var(--s)); }
.live-caption b { font-family: var(--font-display); color: var(--navy); font-size: 1.1rem; }
.live-caption p { margin: 2px 0 0; color: var(--ink-3); font-size: .88rem; }
#livePhone .screen .body { animation: fadeIn .28s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } }
.live [data-go], .live .tab, .live .qa { cursor: pointer; }
.shot .phone { cursor: zoom-in; }
.toast { position: absolute; top: 58px; left: 50%; transform: translateX(-50%); background: rgba(35,40,79,.94); color: #fff; padding: 8px 16px; border-radius: 14px; font-size: 12.5px; z-index: 50; white-space: nowrap; animation: fadeIn .2s ease; }

/* ===== استجابة ===== */
@media (max-width: 900px) {
  .live-side { position: static; width: 100%; }
  .live-nav { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
@media (max-width: 820px) { :root { --s: .9; } }
@media (max-width: 440px) {
  :root { --s: .86; }
  .pres-head { padding-top: 28px; }
  .mode-toggle button { padding: 9px 14px; font-size: .85rem; }
  .gallery { gap: 32px; }
}
@media (max-width: 370px) { :root { --s: .78; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; } }
