:root {
  --brand: #0b7a5a;
  --brand-dark: #086447;
  --brand-soft: #e6f4ee;
  --green: #0f2a22;
  --green-soft: #e6f4ee;
  --red: #b42318;
  --red-soft: #fdecea;
  --ink: #0f2a22;
  --muted: #5b6f67;
  --line: #e2e8f0;
  --bg: #f3f8f5;
  --card: #ffffff;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(15, 42, 34, .05), 0 6px 20px rgba(15, 42, 34, .05);
  /* الخطوط: Tajawal للنصوص والواجهة، وCairo للعناوين والأسعار */
  --f-body: 'Tajawal', 'Segoe UI', Tahoma, system-ui, sans-serif;
  --f-head: 'Cairo', 'Tajawal', 'Segoe UI', Tahoma, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--f-body); background: var(--bg); color: var(--ink);
  line-height: 1.6; font-size: 16px;
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--brand-dark); }
.wrap { max-width: 640px; margin: 0 auto; padding: 0 16px; }
.num { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* ── header ── */
.top { position: sticky; top: 0; z-index: 10; background: rgba(243, 248, 245, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-weight: 900; font-size: 22px; }
.logo svg { width: 34px; height: 34px; }
.top-link { font-size: 14px; font-weight: 700; color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 99px; border: 1px solid var(--line); background: #fff; }

/* ── hero ── */
.hero { padding: 20px 0 0; }
.hero h1 { margin: 0; font-size: clamp(24px, 6.4vw, 34px); line-height: 1.3; font-weight: 900; }
.hero h1 span { color: var(--brand); }
.hero p { margin: 8px 0 0; color: var(--muted); font-size: 16px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0; padding: 0; list-style: none; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 6px; text-align: center; font-size: 12.5px; font-weight: 700; line-height: 1.4; }
.steps b { display: grid; place-items: center; width: 26px; height: 26px; margin: 0 auto 4px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-dark); font-size: 13px; }

.section-title { font-size: 20px; font-weight: 900; margin: 28px 0 12px; display: flex; align-items: center; gap: 8px; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(15, 42, 34, .5); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(15, 42, 34, 0); } 100% { box-shadow: 0 0 0 0 rgba(15, 42, 34, 0); } }
@media (prefers-reduced-motion: reduce) { .live-dot, .bump { animation: none !important; } }

/* ── deal card ── */
.deals { display: grid; gap: 18px; }
.deal { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; scroll-margin-top: 76px; }
.deal.flash { outline: 3px solid var(--brand); outline-offset: 2px; }
.deal-media { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(135deg, #e6f4ee, #dcebe3); }
.deal-media img { width: 100%; height: 100%; object-fit: cover; }
.deal-media .ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 56px; opacity: .5; }
.badge { position: absolute; top: 12px; padding: 4px 12px; border-radius: 99px; font-size: 13px; font-weight: 800; }
.badge.save { inset-inline-start: 12px; background: var(--green); color: #fff; font-size: 15px; }
.badge.state { inset-inline-end: 12px; background: #fff; color: var(--ink); }
.badge.state.complete { background: var(--green-soft); color: var(--green); }
.badge.state.cancelled, .badge.state.expired { background: var(--red-soft); color: var(--red); }
.deal-body { padding: 16px; }
.deal h3 { margin: 0 0 4px; font-size: 20px; font-weight: 900; line-height: 1.4; }
.deal .desc { margin: 0 0 12px; color: var(--muted); font-size: 14.5px; white-space: pre-line; }

.prices { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 4px 14px; padding: 12px 14px; background: var(--brand-soft); border-radius: 14px; }
.price-k { font-size: 30px; font-weight: 900; color: var(--brand-dark); line-height: 1.1; }
.price-k small, .price-m small { font-size: 14px; font-weight: 700; }
.price-label { display: block; font-size: 12px; font-weight: 700; color: var(--muted); }
.price-m { color: var(--muted); font-size: 17px; text-decoration: line-through; text-decoration-color: var(--red); }
.saving { margin-inline-start: auto; font-size: 14px; font-weight: 800; color: var(--green); }

.progress { margin: 16px 0 6px; }
.progress-head { display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; }
.progress-head .count { font-size: 22px; }
.progress-head .count small { font-size: 14px; color: var(--muted); font-weight: 700; }
.bar { height: 12px; border-radius: 99px; background: #e4ecf8; overflow: hidden; margin-top: 6px; }
.bar { position: relative; }
.bar i.paid { position: absolute; top: 0; right: 0; background: var(--green) !important; }
.bar-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; font-size: 13px; color: var(--muted); font-weight: 700; }
.bar-legend span:last-child { margin-inline-start: auto; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-end: 4px; vertical-align: -1px; }
.dot.j { background: var(--brand); } .dot.p { background: var(--green); }
.my-status { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: #e6f4ee; color: #086447; font-size: 14.5px; text-align: center; }
.my-status.paid { background: var(--green-soft); color: var(--green); }
.my-status .pay { font-weight: 800; margin-top: 2px; }
.my-status .wa-group { display: inline-block; margin-top: 8px; background: #25d366; color: #fff; font-weight: 800; padding: 7px 14px; border-radius: 99px; text-decoration: none; }
.bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), #0b7a5a); border-radius: 99px; transition: width .6s ease; }
.deal.is-complete .bar i { background: var(--green); }
.bump { animation: bump .6s ease; }
@keyframes bump { 30% { transform: scale(1.25); color: var(--brand); } }

.status-msg { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; font-weight: 800; font-size: 15px; text-align: center; background: #f2f6f4; }
.status-msg.hot { background: #fff0ec; color: #c2412a; }
.status-msg.ok { background: var(--green-soft); color: var(--green); }
.status-msg.bad { background: var(--red-soft); color: var(--red); }

.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 0; direction: rtl; }
.countdown div { background: var(--ink); color: #fff; border-radius: 12px; text-align: center; padding: 8px 0 4px; }
.countdown b { display: block; font-size: 22px; font-weight: 900; line-height: 1.1; font-variant-numeric: tabular-nums; }
.countdown span { font-size: 11.5px; opacity: .75; }
.countdown.done div { background: #d5deea; color: var(--muted); }

.deposit-note { font-size: 13.5px; color: var(--muted); text-align: center; margin: 4px 0 12px; }
.deposit-note b { color: var(--ink); }
.pickup { font-size: 13.5px; color: var(--muted); margin: 0 0 10px; }

.btn-join { width: 100%; font-size: 20px; min-height: 56px; }
.share-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 12px; font-size: 13.5px; color: var(--muted); font-weight: 700; }
.share-row > span { margin-inline-end: 2px; }
.sh { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 6px 12px; font-size: 13.5px; font-weight: 800; color: var(--ink); text-decoration: none; cursor: pointer; }
.sh svg { width: 17px; height: 17px; }
.sh-wa svg { color: #25d366; }
.sh-fb svg { color: #1877f2; }
.btn-fb { background: #1877f2; color: #fff; font-size: 15px; }
.btn-fb svg, .btn-wa svg { width: 22px; height: 22px; }
body.single .hero { display: none; }
body.single .deals .btn-ghost { margin-top: 0; }
.btn { appearance: none; border: 0; border-radius: 14px; padding: 14px 18px; font-weight: 900; font-size: 18px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; min-height: 52px; transition: transform .1s, background .2s; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 4px 14px rgba(11, 122, 90, .35); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-primary:disabled { background: #b9c6d8; box-shadow: none; cursor: not-allowed; }
.btn-wa { background: #25d366; color: #fff; padding: 14px; font-size: 15px; }
.btn-wa svg { width: 22px; height: 22px; }
.btn-ghost { background: #fff; border: 1px solid var(--line); color: var(--ink); font-size: 15px; }
.joined-tag { margin-top: 10px; text-align: center; font-size: 14px; font-weight: 800; color: var(--green); }

.empty { text-align: center; padding: 40px 16px; background: #fff; border-radius: var(--radius); color: var(--muted); border: 1px dashed var(--line); }

/* ── trust ── */
.trust { display: grid; gap: 10px; padding: 0; margin: 0; list-style: none; }
.trust li { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; }
.trust li b { display: block; font-size: 15.5px; }
.trust .ic { font-size: 22px; line-height: 1.2; }
footer { margin: 36px 0 0; padding: 24px 0 40px; border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: 14px; }
footer .slogan { font-weight: 800; color: var(--ink); font-size: 16px; }

/* ── bottom sheet ── */
.sheet-bg { position: fixed; inset: 0; background: rgba(15, 42, 34, .5); z-index: 50; display: none; align-items: flex-end; justify-content: center; }
.sheet-bg.open { display: flex; }
.sheet { background: #fff; width: 100%; max-width: 520px; border-radius: 22px 22px 0 0; padding: 10px 18px calc(22px + env(safe-area-inset-bottom)); max-height: 92vh; overflow: auto; animation: up .25s ease; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
@media (min-width: 600px) { .sheet-bg { align-items: center; } .sheet { border-radius: 22px; } }
.grab { width: 44px; height: 5px; background: var(--line); border-radius: 9px; margin: 0 auto 10px; }
.sheet h2 { margin: 0; font-size: 22px; font-weight: 900; }
.sheet .sub { margin: 2px 0 14px; color: var(--muted); font-size: 14px; }
.field { margin-bottom: 12px; }
.field label { display: block; font-weight: 800; font-size: 14.5px; margin-bottom: 4px; }
.field input, .field select, .field textarea { width: 100%; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font-size: 17px; outline: none; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.field .hint { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.form-err { background: var(--red-soft); color: var(--red); padding: 10px 12px; border-radius: 12px; font-weight: 700; font-size: 14.5px; margin-bottom: 12px; display: none; }
.form-err.show { display: block; }
.summary { display: flex; justify-content: space-between; gap: 10px; background: var(--brand-soft); border-radius: 12px; padding: 10px 12px; margin-bottom: 14px; font-size: 14px; }
.summary b { font-size: 16px; }
.success { text-align: center; padding: 10px 0 4px; }
.success .big { font-size: 56px; line-height: 1; }
.success h2 { margin: 10px 0 4px; }
.success p { color: var(--muted); margin: 6px 0; }
.success .pos { font-size: 18px; font-weight: 900; color: var(--ink); }
.btn-block { width: 100%; margin-top: 8px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 99px; font-weight: 700; z-index: 60; font-size: 14px; display: none; }
.toast.show { display: block; }
.steps { scroll-margin-top: 130px; }
.announce { background: var(--ink); color: #fff; text-align: center; font-size: 14px; font-weight: 700; padding: 8px 16px; }
.socials a { font-weight: 800; }
.wa-float { position: fixed; bottom: calc(18px + env(safe-area-inset-bottom)); left: 16px; z-index: 40; display: inline-flex; align-items: center; gap: 6px; background: #25d366; color: #fff; text-decoration: none; font-weight: 800; padding: 10px 16px 10px 14px; border-radius: 99px; box-shadow: 0 6px 20px rgba(0, 0, 0, .2); font-size: 15px; }
.wa-float[hidden] { display: none; }
.wa-float svg { width: 22px; height: 22px; }

/* العناوين الكبيرة في الواجهة العامة بخط Cairo (site.css)، ولوحة التحكم كلها بخط Tajawal */

.price-m { text-decoration-color: var(--muted); }
.price-m .num { text-decoration: inherit; text-decoration-color: inherit; }

/* ═══ هوية "بحر": أزرق وكحلي وأبيض فقط ═══ */
.logo img { height: 36px; width: auto; }
h1, h2, h3 { letter-spacing: 0; }

/* شريط المشتركين بالنقاط: كل نقطة مشترك (كحلي دفع العربون، أزرق سجّل، فاتح باقي) */
.seats { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 14px)); gap: 5px 4px; margin-top: 8px; }
.seats i { display: block; aspect-ratio: 1; border-radius: 50%; background: #e1e9f6; transition: background .3s; }
.seats i.j { background: var(--brand); }
.seats i.p { background: var(--ink); }
.is-complete .seats i.j { background: var(--ink); }
.dot { border-radius: 50%; }
.dot.p { background: var(--ink); }

/* صورة بديلة لما العرض ما عندهش صورة: نقاط الشعار */
.deal-media .ph, .spot-media .ph { display: grid; place-content: center; grid-template-columns: repeat(2, 30px); gap: 10px 16px; opacity: 1; font-size: 0; }
.ph i { display: block; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); opacity: .35; }
.ph i:first-child { grid-column: 1 / -1; justify-self: center; }

/* الحالات بالأزرق والكحلي بس */
.badge.save { background: var(--ink); color: #fff; }
.badge.state.complete { background: var(--ink); color: #fff; }
.badge.state.cancelled, .badge.state.expired { background: #eef1f5; color: var(--muted); }
.saving { color: var(--brand-dark); }
.status-msg.hot { background: #fff0ec; color: #c2412a; }
.my-status { background: var(--brand-soft); color: var(--brand-dark); }
.status-msg.ok, .my-status.paid { background: var(--green-soft); color: var(--ink); }
.status-msg.bad { background: #f2f6f4; color: var(--muted); }
.joined-tag { color: var(--brand); }
.btn-wa, .wa-float, .my-status .wa-group { background: var(--ink); }
.sh-wa svg, .sh-fb svg { color: var(--brand); }
.btn-fb { background: var(--brand); }
.bar i { background: var(--brand); }
.live-dot { background: var(--brand); box-shadow: 0 0 0 0 rgba(11, 122, 90, .5); }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(11, 122, 90, 0); } 100% { box-shadow: 0 0 0 0 rgba(11, 122, 90, 0); } }
.success .big svg { margin: 0 auto; display: block; }
