/* نقاطك — واجهة واحدة للتاجر والزبون، من اليمين لليسار وللجوال أولاً
   الهوية: إسبريسو وكراميل، خط Readex Pro، وضع فاتح وداكن حسب الجوال */

@font-face {
  font-family: "Readex Pro";
  font-style: normal;
  font-display: swap;
  font-weight: 160 700;
  src: url("/fonts/readex-pro-arabic-wght-normal.woff2") format("woff2-variations"), url("/fonts/readex-pro-arabic-wght-normal.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Readex Pro";
  font-style: normal;
  font-display: swap;
  font-weight: 160 700;
  src: url("/fonts/readex-pro-latin-wght-normal.woff2") format("woff2-variations"), url("/fonts/readex-pro-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --brand: #5b3420;
  --brand-ink: #ffffff;
  --brand-text: color-mix(in oklab, var(--brand) 92%, #000);
  --caramel: #d9a066;
  --caramel-2: #f3c98b;
  --espresso: #140c08;
  --bg: #f7f2ec;
  --bg-2: #efe6dc;
  --card: #ffffff;
  --card-2: #f7f2ec;
  --text: #1c130d;
  --muted: #7a6b60;
  --border: rgba(74, 46, 26, .10);
  --border-strong: rgba(74, 46, 26, .18);
  --ok: #12804a;
  --ok-bg: #e3f5ea;
  --bad: #c0352b;
  --bad-bg: #fdebe9;
  --warn: #8a5a00;
  --warn-bg: #fdf1d8;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow-sm: 0 1px 2px rgba(40, 20, 10, .06);
  --shadow: 0 1px 2px rgba(40, 20, 10, .04), 0 10px 28px -10px rgba(40, 20, 10, .14);
  --shadow-lg: 0 30px 60px -18px rgba(40, 20, 10, .30);
  --glass: rgba(255, 255, 255, .72);
  --ring: color-mix(in srgb, var(--brand) 28%, transparent);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%237a6b60' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand-text: color-mix(in oklab, var(--brand) 42%, #fff);
    --bg: #110c09;
    --bg-2: #18110d;
    --card: #1b1410;
    --card-2: #241b16;
    --text: #f6efe8;
    --muted: #a8998d;
    --border: rgba(255, 236, 220, .08);
    --border-strong: rgba(255, 236, 220, .16);
    --ok: #4ade80;
    --ok-bg: rgba(74, 222, 128, .12);
    --bad: #f87171;
    --bad-bg: rgba(248, 113, 113, .12);
    --warn: #fbbf24;
    --warn-bg: rgba(251, 191, 36, .12);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px -10px rgba(0, 0, 0, .6);
    --shadow-lg: 0 30px 60px -18px rgba(0, 0, 0, .7);
    --glass: rgba(27, 20, 16, .72);
    --ring: color-mix(in srgb, var(--brand-text) 30%, transparent);
    --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23a8998d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
    color-scheme: dark;
  }
}

* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
body {
  font-family: "Readex Pro", system-ui, -apple-system, "Segoe UI", Tahoma, "Noto Sans Arabic", sans-serif;
  background: var(--bg); color: var(--text); direction: rtl; line-height: 1.65; min-height: 100vh; min-height: 100dvh;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
::selection { background: color-mix(in srgb, var(--caramel) 45%, transparent); }
a { color: var(--brand-text); text-underline-offset: 3px; }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.3; font-weight: 700; letter-spacing: -.005em; }
b, strong { font-weight: 650; }
.hidden { display: none !important; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.num { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 16px; }
.narrow { max-width: 480px; margin: 0 auto; padding: 16px; }
.stack > * + * { margin-top: 12px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row > .grow { flex: 1 1 160px; min-width: 0; }
.grid2 { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }

/* التحميل */
.loader { display: grid; place-items: center; padding: 90px 0; }
.loader::before { content: ""; width: 34px; height: 34px; border-radius: 50%; border: 3px solid color-mix(in srgb, var(--brand-text) 18%, transparent); border-top-color: var(--brand-text); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── بطاقات وأزرار وحقول ─── */
.panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.panel h2 { font-size: 1.08rem; margin-bottom: 10px; }
.panel + .panel { margin-top: 14px; }
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.field + .field { margin-top: 12px; }
.hint { font-size: .8rem; color: var(--muted); margin-top: 4px; font-weight: 400; }
input, select, textarea {
  width: 100%; font: inherit; padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--card-2); color: var(--text); min-height: 48px;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
input:hover, select:hover, textarea:hover { border-color: var(--border-strong); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand-text); box-shadow: 0 0 0 4px var(--ring); background: var(--card); }
select { appearance: none; -webkit-appearance: none; background-image: var(--chev); background-repeat: no-repeat; background-position: left 14px center; padding-inline-end: 36px; }
html[dir="ltr"] select { background-position: right 14px center; }
input[type="color"] { padding: 4px; width: 64px; cursor: pointer; }
input[type="radio"], input[type="checkbox"] { width: auto; min-height: 0; accent-color: var(--brand); }
input[type="checkbox"] { width: 18px; height: 18px; }
input[type="file"] { padding: 10px; }
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600;
  border: 1px solid transparent; border-radius: 14px; padding: 10px 18px; min-height: 46px; cursor: pointer;
  background-color: var(--brand); color: var(--brand-ink); text-decoration: none; white-space: nowrap;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 60%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 1px 2px rgba(0, 0, 0, .12), 0 8px 18px -8px color-mix(in srgb, var(--brand) 60%, transparent);
  transition: transform .18s var(--ease), box-shadow .2s, filter .2s, background-color .2s, color .2s;
}
.btn:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn:active { transform: scale(.97); filter: brightness(.97); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--ring); }
.btn:disabled { opacity: .5; cursor: not-allowed; filter: none; transform: none; }
.btn.ghost { background-color: var(--card); background-image: none; color: var(--text); border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.btn.ghost:hover { border-color: color-mix(in srgb, var(--brand-text) 40%, var(--border-strong)); filter: none; }
.btn.soft { background-color: color-mix(in srgb, var(--brand) 11%, var(--card)); background-image: none; color: var(--brand-text); box-shadow: none; }
.btn.soft:hover { background-color: color-mix(in srgb, var(--brand) 17%, var(--card)); filter: none; }
.btn.danger { background-color: var(--bad); color: #fff; box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--bad) 70%, transparent); }
.btn.big { min-height: 56px; font-size: 1.05rem; padding: 12px 22px; border-radius: 18px; }
.btn.block { width: 100%; }
.btn.sm { min-height: 36px; padding: 6px 12px; font-size: .85rem; border-radius: 11px; }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; font-weight: 600; padding: 3px 10px; border-radius: 99px; background: color-mix(in srgb, var(--text) 7%, transparent); color: var(--muted); }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.bad { background: var(--bad-bg); color: var(--bad); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.alert { padding: 12px 14px; border-radius: 16px; font-size: .9rem; border: 1px solid transparent; }
.alert.bad { background: var(--bad-bg); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 18%, transparent); }
.alert.ok { background: var(--ok-bg); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 18%, transparent); }
.alert.warn { background: var(--warn-bg); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 18%, transparent); }
.error { color: var(--bad); font-size: .9rem; min-height: 1.2em; }

/* ─── التنبيهات العائمة ─── */
#toast { position: fixed; inset-inline: 0; bottom: calc(108px + env(safe-area-inset-bottom)); display: grid; justify-items: center; gap: 8px; pointer-events: none; z-index: 60; }
.toast {
  background: rgba(28, 19, 13, .9); color: #fff; padding: 12px 18px; border-radius: 18px; font-weight: 600; max-width: calc(100% - 32px);
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .45); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .08); animation: toastIn .5s var(--spring);
}
.toast.ok { background: linear-gradient(135deg, #18a058, #0f7a42); }
.toast.bad { background: linear-gradient(135deg, #dc4a3d, #b02a20); }
@keyframes toastIn { from { transform: translateY(16px) scale(.92); opacity: 0; } }
@keyframes pop { from { transform: translateY(8px); opacity: 0; } }

/* ─── لوحة التاجر ─── */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--border); }
.topbar .wrap { display: flex; align-items: center; gap: 10px; padding-block: 10px; }
.topbar .logo { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #fff; box-shadow: 0 0 0 2px var(--card), 0 0 0 3.5px color-mix(in srgb, var(--brand) 55%, transparent); }
.topbar .title { font-weight: 700; font-size: 1.05rem; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tabs {
  position: fixed; z-index: 30; inset-inline: 10px; bottom: calc(10px + env(safe-area-inset-bottom));
  display: flex; gap: 2px; padding: 6px; border-radius: 26px; overflow-x: auto; scrollbar-width: none;
  background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px);
  border: 1px solid var(--border); box-shadow: var(--shadow-lg);
}
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  flex: 1 0 54px; display: grid; justify-items: center; gap: 3px; padding: 7px 2px 6px; border-radius: 20px;
  color: var(--muted); text-decoration: none; font-size: .68rem; font-weight: 600; white-space: nowrap;
  transition: color .25s, background-color .25s;
}
.tabs a span { line-height: 0; }
.tabs a svg { width: 22px; height: 22px; transition: transform .35s var(--spring); }
.tabs a.on { color: var(--brand-text); background: color-mix(in srgb, var(--brand) 13%, transparent); }
.tabs a.on svg { transform: translateY(-1px) scale(1.08); }
.has-tabs { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
/* 7 تبويبات على الجوال: أيقونات بس، واللي مفتوح بيكبر ويبيّن اسمه */
@media (max-width: 899px) {
  .tabs:has(> a:nth-of-type(7):not(.hidden)) a { flex: 1 1 0; min-width: 0; font-size: 0; gap: 0; transition: flex-grow .35s var(--ease), color .25s, background-color .25s; }
  .tabs:has(> a:nth-of-type(7):not(.hidden)) a.on { flex-grow: 2.3; font-size: .66rem; gap: 3px; }
}
@media (min-width: 900px) {
  .tabs { position: sticky; top: 72px; bottom: auto; inset-inline: auto; width: fit-content; margin: 14px auto 0; border-radius: 20px; box-shadow: var(--shadow); }
  .tabs a { flex: 0 0 auto; grid-auto-flow: column; align-items: center; gap: 7px; padding: 9px 16px; font-size: .88rem; border-radius: 14px; }
  .tabs a svg { width: 18px; height: 18px; }
  .has-tabs { padding-bottom: 32px; }
  #toast { bottom: 28px; }
}
#view { view-transition-name: view; }
::view-transition-old(view) { animation: vtOut .18s ease both; }
::view-transition-new(view) { animation: vtIn .28s var(--ease) both; }
@keyframes vtOut { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(10px); } }

/* التبويبات الفرعية (العروض، الإعدادات، المنصة) */
.subnav {
  position: sticky; top: 61px; z-index: 15; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  margin: -4px -16px 12px; padding: 10px 16px 12px; background: linear-gradient(var(--bg) 78%, transparent);
}
.subnav::-webkit-scrollbar { display: none; }
.subnav button {
  flex: none; border: 1px solid var(--border-strong); background: var(--card); color: var(--muted); border-radius: 99px;
  padding: 8px 15px; font: inherit; font-size: .86rem; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .15s;
}
.subnav button:active { transform: scale(.96); }
.subnav button.on { background: var(--text); border-color: var(--text); color: var(--card); box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .5); }
@media (min-width: 900px) { .subnav { position: static; justify-content: center; margin: 0 0 16px; padding: 4px 0; background: none; } }
.group { animation: vtIn .3s var(--ease); }
.grid2 > .panel + .panel, .grid2 > section + form, .grid2 > form + section { margin-top: 0; }
.grid2.group { align-items: start; }

/* الكاشير */
.scanner { position: relative; border-radius: var(--radius); overflow: hidden; background: #0b0806; aspect-ratio: 4 / 3; max-height: 50vh; width: 100%; }
.scanner video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scanner::after { content: ""; position: absolute; inset: 16%; border-radius: 22px; box-shadow: 0 0 0 999px rgba(0, 0, 0, .35); border: 2px solid rgba(255, 255, 255, .9); }
.scanner::before { content: ""; position: absolute; inset-inline: 18%; top: 18%; height: 2px; z-index: 2; background: linear-gradient(90deg, transparent, var(--caramel-2), transparent); box-shadow: 0 0 14px var(--caramel); animation: scanLine 2.2s ease-in-out infinite alternate; }
@keyframes scanLine { to { top: 82%; } }
.member-head { display: flex; gap: 12px; align-items: center; }
.avatar {
  width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; font-weight: 700; font-size: 1.25rem; flex: none;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 85%, #fff), var(--brand)); color: var(--brand-ink);
  box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--brand) 70%, transparent);
}
.balance { font-size: 2.8rem; font-weight: 700; line-height: 1; color: var(--brand-text); letter-spacing: -.02em; }
.bar { height: 10px; border-radius: 99px; background: color-mix(in srgb, var(--text) 8%, transparent); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--brand) 75%, #fff), var(--brand)); transition: width .6s var(--ease); }
.stamps { display: flex; flex-wrap: wrap; gap: 7px; direction: rtl; }
.stamps i {
  width: 32px; height: 32px; border-radius: 50%; border: 2px dashed color-mix(in srgb, var(--brand-text) 40%, transparent);
  display: grid; place-items: center; font-style: normal; font-size: .85rem; font-weight: 700; color: color-mix(in srgb, var(--brand-text) 60%, transparent);
}
.stamps i.on { background: var(--brand); border: 2px solid var(--brand); color: var(--brand-ink); animation: stampIn .45s var(--spring) both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes stampIn { from { transform: scale(.3); opacity: 0; } }
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper button { width: 48px; }
.stepper output { min-width: 44px; text-align: center; font-size: 1.5rem; font-weight: 700; }
.reward-ready {
  position: relative; overflow: hidden; border-radius: 16px; padding: 12px 14px; font-weight: 650; color: #fff;
  background: linear-gradient(135deg, #1aa35e, #0e7a43); box-shadow: 0 10px 24px -12px rgba(16, 140, 75, .8);
}
.reward-ready::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .28) 50%, transparent 65%); transform: translateX(100%); animation: sweep 2.8s ease-in-out infinite; }
@keyframes sweep { 60%, 100% { transform: translateX(-100%); } }

.step-row { display: flex; gap: 12px; align-items: flex-start; }
.step-row > b { flex: none; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); font-size: .9rem; }
.step-row > div { flex: 1; min-width: 0; display: grid; gap: 6px; justify-items: start; }
.sub-banner { display: flex; align-items: center; gap: 10px; justify-content: space-between; flex-wrap: wrap; margin-top: 12px; }

/* القوائم */
.list { list-style: none; padding: 0; }
.list li { display: flex; align-items: center; gap: 12px; padding: 11px 6px; border-bottom: 1px solid var(--border); border-radius: 12px; transition: background-color .15s; }
.list li:last-child { border-bottom: 0; }
.list li.click { cursor: pointer; }
.list li.wrap-row { flex-wrap: wrap; }
.list li.wrap-row > select { order: 9; flex: 1 1 100%; min-height: 40px; padding-block: 6px; }
.list li.click:hover { background: color-mix(in srgb, var(--brand) 6%, transparent); }
.list .main { flex: 1; min-width: 0; }
.list .main b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.delta { font-weight: 700; }
.delta.plus { color: var(--ok); }
.delta.minus { color: var(--bad); }
.stats { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.stat {
  position: relative; overflow: hidden; border-radius: 18px; padding: 14px; border: 1px solid var(--border);
  background: radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--brand) 12%, transparent), transparent 60%), var(--card);
  box-shadow: var(--shadow-sm);
}
@media (max-width: 600px) { .stats > .stat:last-child:nth-child(odd) { grid-column: 1 / -1; } }
.stat b { display: block; font-size: 1.75rem; font-weight: 700; color: var(--brand-text); letter-spacing: -.02em; line-height: 1.2; }

/* النوافذ: من تحت على الجوال */
dialog {
  margin: auto; border: 1px solid var(--border); border-radius: 26px; padding: 0; width: min(560px, calc(100% - 24px)); max-height: calc(100% - 24px);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .45); color: var(--text); background: var(--card);
}
dialog[open] { animation: dlgIn .32s var(--ease); }
dialog::backdrop { background: rgba(12, 7, 4, .5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
dialog .dlg-head { display: flex; align-items: center; gap: 8px; padding: 16px 18px 12px; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 2; background: var(--card); }
dialog .dlg-head h3 { flex: 1; font-size: 1.05rem; }
dialog .dlg-body { padding: 18px; }
@keyframes dlgIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }
@media (max-width: 640px) {
  dialog { margin: auto 0 0; width: 100%; max-width: 100%; max-height: 92dvh; border-radius: 28px 28px 0 0; border-bottom: 0; padding-bottom: env(safe-area-inset-bottom); }
  dialog[open] { animation: sheetUp .38s var(--ease); }
  dialog .dlg-head { padding-top: 22px; }
  dialog .dlg-head::before { content: ""; position: absolute; top: 8px; inset-inline: 0; margin: auto; width: 40px; height: 5px; border-radius: 99px; background: var(--border-strong); }
}
@keyframes sheetUp { from { transform: translateY(100%); } }

/* ─── بطاقة الولاء (الزبون والمعاينة) ─── */
.loyalty-card {
  --c: var(--brand);
  --ci: #fff;
  position: relative; isolation: isolate; overflow: hidden; color: var(--ci); border-radius: 26px; padding: 20px;
  background:
    radial-gradient(130% 90% at 100% 0%, color-mix(in srgb, var(--c) 55%, #fff) 0%, transparent 55%),
    radial-gradient(90% 80% at 0% 100%, color-mix(in srgb, var(--c) 55%, #000) 0%, transparent 60%),
    linear-gradient(150deg, color-mix(in srgb, var(--c) 92%, #fff), color-mix(in srgb, var(--c) 82%, #000));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 0 0 1px rgba(255, 255, 255, .08), 0 26px 50px -20px color-mix(in srgb, var(--c) 75%, transparent), 0 10px 20px -10px rgba(0, 0, 0, .35);
}
.loyalty-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--noise); opacity: .16; mix-blend-mode: overlay; pointer-events: none; }
.loyalty-card::after {
  content: ""; position: absolute; inset: -40%; z-index: -1; pointer-events: none;
  background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, .26) 50%, transparent 58%);
  transform: translateX(-70%) rotate(0.001deg); animation: sheen 7s ease-in-out infinite;
}
@keyframes sheen { 0%, 55% { transform: translateX(70%); } 85%, 100% { transform: translateX(-70%); } }
.loyalty-card.ready { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 0 0 3px color-mix(in srgb, var(--caramel-2) 70%, transparent), 0 26px 50px -16px color-mix(in srgb, var(--c) 80%, transparent); }
.loyalty-card .lc-head { display: flex; align-items: center; gap: 12px; }
.loyalty-card .lc-logo { width: 46px; height: 46px; border-radius: 14px; background: #fff; object-fit: cover; flex: none; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .45); }
.loyalty-card .lc-name { font-weight: 700; font-size: 1.12rem; text-shadow: 0 1px 2px rgba(0, 0, 0, .15); }
.loyalty-card .lc-chip { margin-inline-start: auto; width: 34px; height: 26px; border-radius: 6px; background: linear-gradient(135deg, #f8e2b0, #c99a4f 55%, #f3d48f); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); opacity: .9; }
.loyalty-card .lc-row { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; }
.loyalty-card .lc-label { font-size: .72rem; opacity: .78; letter-spacing: .02em; }
.loyalty-card .lc-value { font-size: 1.3rem; font-weight: 700; letter-spacing: -.01em; }
.loyalty-card .lc-qr { margin: 18px auto 6px; background: #fff; border-radius: 20px; padding: 12px; width: min(220px, 74%); box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .55); }
.loyalty-card .lc-qr svg { display: block; width: 100%; height: auto; }
.loyalty-card .lc-cardno { text-align: center; font-size: .82rem; letter-spacing: .24em; opacity: .85; }
.loyalty-card .lc-end { text-align: end; }
.loyalty-card .stamps i { border-color: color-mix(in srgb, var(--ci) 55%, transparent); color: color-mix(in srgb, var(--ci) 70%, transparent); background: color-mix(in srgb, var(--ci) 8%, transparent); width: 30px; height: 30px; }
.loyalty-card .stamps i.on { background: var(--ci); border-color: var(--ci); color: var(--c); box-shadow: 0 5px 12px -4px rgba(0, 0, 0, .35); }
.loyalty-card .bar { height: 8px; background: color-mix(in srgb, var(--ci) 22%, transparent); }
.loyalty-card .bar > i { background: var(--ci); box-shadow: 0 0 12px color-mix(in srgb, var(--ci) 70%, transparent); transform-origin: 100% 50%; animation: barIn .9s var(--ease) both; }
html[dir="ltr"] .loyalty-card .bar > i { transform-origin: 0 50%; }
@keyframes barIn { from { transform: scaleX(0); } }

.gw-button { display: block; text-align: center; line-height: 0; transition: transform .2s var(--ease); }
.gw-button:active { transform: scale(.97); }
.gw-button img { height: 50px; width: auto; max-width: 100%; }
.gw-button img.apple-badge { height: 52px; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ─── صفحات الزبون (البطاقة، الانضمام، الهدية، المنيو، كل بطاقاتي) ─── */
body.cust { background: radial-gradient(130% 55% at 50% -8%, color-mix(in srgb, var(--brand) 24%, transparent), transparent 62%), var(--bg); background-attachment: fixed; }
.brand-hero { text-align: center; padding: 30px 16px 10px; position: relative; }
.brand-hero img { width: 104px; height: 104px; border-radius: 30px; background: #fff; border: 4px solid var(--card); box-shadow: var(--shadow-lg); object-fit: cover; animation: heroIn .7s var(--spring) both; }
.brand-hero h1 { margin-top: 12px; font-size: 1.6rem; letter-spacing: -.01em; }
@keyframes heroIn { from { transform: translateY(14px) scale(.9); opacity: 0; } }
.brand-strip {
  height: 190px; margin-bottom: -124px; position: relative; overflow: hidden;
  background:
    radial-gradient(60% 120% at 85% 0%, color-mix(in srgb, var(--brand) 55%, #fff) 0%, transparent 60%),
    radial-gradient(50% 100% at 10% 100%, color-mix(in srgb, var(--brand) 60%, #000) 0%, transparent 70%),
    var(--brand);
  border-radius: 0 0 36px 36px;
}
.brand-strip::after { content: ""; position: absolute; inset: 0; background-image: var(--noise); opacity: .18; mix-blend-mode: overlay; }
.lang-switch { text-align: end; margin: -4px 0 10px; font-size: .82rem; position: relative; z-index: 3; }
.lang-switch button { background: var(--glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); padding: 5px 14px; border-radius: 99px; border: 1px solid var(--border); color: var(--text); text-decoration: none; font-weight: 600; }
.powered { text-align: center; font-size: .8rem; color: var(--muted); margin: 22px 0 8px; }
.powered a { color: var(--muted); font-weight: 700; text-decoration: none; }

/* ─── صفحة البيع ─── */
.lp { background: var(--bg); }
.site-nav { position: sticky; top: 0; z-index: 40; background: rgba(16, 10, 7, .62); -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px); border-bottom: 1px solid rgba(255, 255, 255, .06); color: #fff; transition: background-color .3s; }
.site-nav.scrolled { background: rgba(16, 10, 7, .82); }
.site-nav .wrap { display: flex; align-items: center; gap: 12px; padding-block: 10px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 1.2rem; color: inherit; text-decoration: none; }
.brand img { border-radius: 10px; box-shadow: 0 4px 12px -4px rgba(0, 0, 0, .5); }
.nav-links { display: flex; gap: 4px; margin-inline-start: auto; }
.nav-links a { color: rgba(255, 255, 255, .72); text-decoration: none; font-weight: 500; font-size: .92rem; padding: 6px 12px; border-radius: 99px; transition: color .2s, background-color .2s; }
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.site-nav .btn.ghost { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .16); box-shadow: none; }
.site-nav .nav-cta { background: linear-gradient(135deg, var(--caramel-2), var(--caramel)); color: #1c0f07; box-shadow: 0 6px 18px -8px rgba(217, 160, 102, .9); }
@media (max-width: 760px) { .nav-links { display: none; } .site-nav #navLogin { margin-inline-start: auto; } }
@media (max-width: 380px) { .site-nav .nav-cta { display: none; } }

.hero { position: relative; overflow: hidden; isolation: isolate; background: var(--espresso); color: #fff; padding: 36px 0 70px; margin-top: -61px; padding-top: 97px; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-bg .blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: drift 18s ease-in-out infinite alternate; }
.hero-bg .b1 { width: 520px; height: 520px; background: #c27a3e; top: -180px; right: -120px; }
.hero-bg .b2 { width: 420px; height: 420px; background: #6e3417; bottom: -160px; left: -120px; animation-duration: 22s; }
.hero-bg .b3 { width: 300px; height: 300px; background: #f0c27b; top: 40%; left: 35%; opacity: .22; animation-duration: 26s; }
.hero-bg .grain { position: absolute; inset: 0; background-image: var(--noise); opacity: .09; }
.hero-bg .grid-lines { position: absolute; inset: 0; opacity: .5; background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent); mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent); }
@keyframes drift { to { transform: translate(-60px, 40px) scale(1.12); } }
.hero-grid { display: grid; gap: 40px; align-items: center; grid-template-columns: 1.08fr .92fr; }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; gap: 28px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 12px; border-radius: 99px; font-size: .82rem; font-weight: 500; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); animation: rise .8s var(--ease) both; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74, 222, 128, .6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }
.hero-copy h1 { font-size: clamp(2.3rem, 7.4vw, 4rem); margin: 16px 0 14px; line-height: 1.12; letter-spacing: -.02em; animation: rise .8s .08s var(--ease) both; }
.grad { background: linear-gradient(90deg, var(--caramel-2), #e7a35e, #ffe1b0, var(--caramel-2)); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 7s linear infinite; }
@keyframes shimmer { to { background-position: -250% 0; } }
.hero-copy .lead { color: rgba(255, 255, 255, .76); font-size: 1.08rem; max-width: 560px; animation: rise .8s .16s var(--ease) both; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; animation: rise .8s .24s var(--ease) both; }
.btn.glow { background: linear-gradient(135deg, var(--caramel-2), var(--caramel) 55%, #c4813f); color: #1c0f07; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 14px 34px -10px rgba(217, 160, 102, .75); }
.btn.glow span { transition: transform .25s var(--ease); }
.btn.glow:hover span { transform: translateX(-4px); }
.btn.glass { background: rgba(255, 255, 255, .07); background-image: none; color: #fff; border: 1px solid rgba(255, 255, 255, .18); box-shadow: none; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn.glass:hover { background: rgba(255, 255, 255, .12); }
.btn.glass .play { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #fff; color: var(--espresso); font-size: .62rem; padding-inline-start: 2px; }
@media (max-width: 520px) { .hero-cta .btn { flex: 1 1 100%; } }
.trust { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; color: rgba(255, 255, 255, .66); font-size: .88rem; animation: rise .8s .32s var(--ease) both; }
.trust li::before { content: "✓"; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; margin-inline-end: 7px; background: rgba(74, 222, 128, .16); color: #4ade80; font-size: .7rem; font-weight: 700; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

.hero-visual { position: relative; display: grid; place-items: center; padding: 10px 0 20px; animation: rise 1s .2s var(--ease) both; }
.phone {
  position: relative; width: min(300px, 80vw); aspect-ratio: 9 / 18.8; border-radius: 50px; padding: 11px;
  background: linear-gradient(150deg, #3b3a40, #0d0d10 45%, #2a292e); color: var(--text);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .12), 0 50px 90px -30px rgba(0, 0, 0, .85), 0 0 0 1px rgba(0, 0, 0, .6);
  transform: perspective(1400px) rotateY(-12deg) rotateX(5deg); animation: phoneFloat 8s ease-in-out infinite;
}
@keyframes phoneFloat { 50% { transform: perspective(1400px) rotateY(-8deg) rotateX(3deg) translateY(-10px); } }
.phone-island { position: absolute; top: 22px; inset-inline: 0; margin: auto; width: 92px; height: 27px; border-radius: 20px; background: #000; z-index: 3; }
.phone-screen {
  position: relative; height: 100%; border-radius: 40px; overflow: hidden; padding: 48px 12px 14px;
  background: radial-gradient(120% 70% at 80% 0%, #8a5434 0%, transparent 60%), radial-gradient(100% 60% at 0% 100%, #3a1d0e, transparent 70%), linear-gradient(180deg, #2a160c, #120a06);
}
.phone-time { text-align: center; color: #fff; font-size: 2.6rem; font-weight: 600; letter-spacing: -.03em; line-height: 1; margin: 2px 0 2px; }
.phone-date { text-align: center; color: rgba(255, 255, 255, .7); font-size: .78rem; margin-bottom: 12px; }
.phone-notif {
  display: flex; gap: 10px; align-items: center; background: rgba(255, 255, 255, .78); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-radius: 20px; padding: 10px 12px; margin-bottom: 12px; color: #1c130d; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5);
  animation: notifIn 1s .9s var(--spring) both;
}
.phone-notif img { width: 34px; height: 34px; border-radius: 9px; flex: none; }
.phone-notif div { flex: 1; min-width: 0; }
.phone-notif b { display: block; font-size: .8rem; }
.phone-notif span { font-size: .74rem; color: #5d5049; display: block; }
.phone-notif small { font-size: .66rem; color: #8a7d74; align-self: flex-start; }
@keyframes notifIn { from { opacity: 0; transform: translateY(-24px) scale(.94); } }
.phone .loyalty-card { padding: 14px; border-radius: 22px; }
.phone .loyalty-card .lc-logo { width: 36px; height: 36px; border-radius: 11px; }
.phone .loyalty-card .lc-chip { display: none; }
.phone .loyalty-card .lc-row { margin-top: 10px; }
.phone .loyalty-card .lc-qr { width: 54%; padding: 7px; margin-top: 10px; border-radius: 14px; }
.phone .loyalty-card .stamps { gap: 4px; }
.phone .loyalty-card .stamps i { width: 21px; height: 21px; font-size: .62rem; }
.float-chip {
  position: absolute; z-index: 4; display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 16px;
  background: rgba(255, 255, 255, .9); color: #1c130d; font-size: .82rem; font-weight: 600; white-space: nowrap;
  box-shadow: 0 18px 36px -14px rgba(0, 0, 0, .6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  animation: chipFloat 6s ease-in-out infinite;
}
.float-chip b { color: #12804a; }
.float-chip.c1 { top: 16%; right: -2%; }
.float-chip.c2 { top: 52%; left: -4%; animation-delay: -2s; }
.float-chip.c3 { bottom: 8%; right: 2%; animation-delay: -4s; }
@keyframes chipFloat { 50% { transform: translateY(-12px); } }
@media (max-width: 520px) { .float-chip { font-size: .74rem; padding: 7px 11px; } .float-chip.c1 { right: 0; } .float-chip.c2 { left: 0; } }

.marquee { overflow: hidden; padding: 16px 0; border-block: 1px solid var(--border); background: var(--card); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 99px; background: var(--card-2); border: 1px solid var(--border); font-weight: 500; font-size: .92rem; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(50%); } }
html[dir="ltr"] .marquee-track { animation-name: marqueeLtr; }
@keyframes marqueeLtr { to { transform: translateX(-50%); } }

.section { padding: 64px 0 8px; }
.kicker { display: block; width: fit-content; margin: 0 auto 10px; padding: 5px 14px; border-radius: 99px; font-size: .8rem; font-weight: 600; color: var(--brand-text); background: color-mix(in srgb, var(--caramel) 18%, transparent); }
.section-title { text-align: center; font-size: clamp(1.6rem, 4.6vw, 2.4rem); margin-bottom: 10px; letter-spacing: -.02em; }
.section-sub { text-align: center; color: var(--muted); max-width: 560px; margin: 0 auto 26px; }
.steps { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); counter-reset: step; }
.step { position: relative; overflow: hidden; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s; }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step > b { position: absolute; top: 8px; inset-inline-end: 14px; font-size: 3.4rem; font-weight: 700; line-height: 1; color: color-mix(in srgb, var(--caramel) 30%, transparent); }
.step .step-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 1.6rem; background: linear-gradient(135deg, color-mix(in srgb, var(--caramel) 30%, var(--card)), color-mix(in srgb, var(--caramel) 12%, var(--card))); }
.step h3 { font-size: 1.08rem; margin: 14px 0 6px; }
.step p { color: var(--muted); font-size: .92rem; }

.bento { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); grid-auto-flow: dense; }
@media (min-width: 880px) { .bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(190px, auto); } .bento .t-wide { grid-column: span 2; grid-row: span 2; } .bento .t-tall { grid-row: span 2; } .bento .t-h { grid-column: span 2; } }
@media (max-width: 879px) { .bento .t-wide, .bento .t-tall, .bento .t-h { grid-column: span 2; } .bento .t-tall .mini-bars { height: 70px; } }
.tile { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; min-height: 170px; background: var(--card); border: 1px solid var(--border); border-radius: 24px; padding: 18px; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s; }
.tile:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.tile h3 { font-size: 1.02rem; }
.tile p { color: var(--muted); font-size: .86rem; line-height: 1.55; }
.tile .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.4rem; margin-bottom: auto; background: color-mix(in srgb, var(--caramel) 18%, transparent); }
.tile-dark { color: #fff; background: radial-gradient(90% 80% at 100% 0%, #8a5434 0%, transparent 60%), radial-gradient(70% 70% at 0% 100%, #3a1d0e, transparent 70%), #1a0f09; border-color: transparent; }
.tile-dark p { color: rgba(255, 255, 255, .7); }
.tile-dark h3 { font-size: 1.35rem; }
.wallet-stack { position: relative; height: 170px; margin: 6px 0 auto; }
.wallet-stack i { position: absolute; inset-inline: 8%; height: 104px; border-radius: 18px; box-shadow: 0 18px 30px -14px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .25); transition: transform .5s var(--ease); }
.wallet-stack i:nth-child(1) { top: 0; background: linear-gradient(135deg, #2f5d50, #1d3d34); transform: rotate(-4deg); }
.wallet-stack i:nth-child(2) { top: 26px; background: linear-gradient(135deg, #e0a96d, #b5763a); transform: rotate(2deg); }
.wallet-stack i:nth-child(3) { top: 54px; background: linear-gradient(135deg, #7a4a2e, #4a2716); transform: rotate(-1deg); }
.wallet-stack i:nth-child(3)::after { content: "☕  6 / 9"; position: absolute; inset: auto 16px 14px auto; color: #fff; font-weight: 700; font-size: .9rem; }
.tile:hover .wallet-stack i:nth-child(1) { transform: rotate(-7deg) translateY(-8px); }
.tile:hover .wallet-stack i:nth-child(2) { transform: rotate(4deg) translateY(-4px); }
.pin { position: relative; width: 56px; height: 56px; margin-bottom: auto; display: grid; place-items: center; font-size: 1.5rem; }
.pin i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--caramel) 70%, transparent); animation: ring 2.4s ease-out infinite; }
.pin i:nth-child(2) { animation-delay: 1.2s; }
@keyframes ring { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.mini-notif { margin-bottom: auto; background: var(--card-2); border: 1px solid var(--border); border-radius: 14px; padding: 9px 11px; font-size: .78rem; box-shadow: var(--shadow-sm); }
.mini-notif b { display: block; font-size: .8rem; }
.mini-notif span { color: var(--muted); }
.mini-bars { display: flex; align-items: flex-end; gap: 6px; height: 96px; margin-bottom: auto; }
.mini-bars i { flex: 1; height: var(--h); border-radius: 7px 7px 3px 3px; background: linear-gradient(180deg, var(--caramel), color-mix(in srgb, var(--caramel) 40%, var(--brand))); transform-origin: bottom; }
.in .mini-bars i { animation: growUp .9s var(--ease) both; animation-delay: calc(var(--d, 0) * 80ms); }
@keyframes growUp { from { transform: scaleY(0); } }
/* الميزات على الجوال: صفوف مرتبة، أيقونة وجنبها الكلام */
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; gap: 10px; }
  .bento .t-wide, .bento .t-tall, .bento .t-h { grid-column: auto; }
  .tile { min-height: 0; padding: 16px; }
  .tile:has(> .ico), .tile:has(> .pin) { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "i h" "i p"; column-gap: 14px; row-gap: 2px; align-items: center; }
  .tile > .ico, .tile > .pin { grid-area: i; margin: 0; }
  .tile:has(> .ico) > h3, .tile:has(> .pin) > h3 { grid-area: h; align-self: end; }
  .tile:has(> .ico) > p, .tile:has(> .pin) > p { grid-area: p; align-self: start; }
  .tile .mini-notif { margin-bottom: 8px; }
  .tile .mini-bars { height: 64px; margin-bottom: 10px; }
  .wallet-stack { height: 150px; }
}

.cta-band {
  position: relative; overflow: hidden; isolation: isolate; margin-top: 64px; border-radius: 30px; padding: 34px 24px; color: #fff;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
  background: radial-gradient(70% 120% at 100% 0%, #b06a35, transparent 60%), radial-gradient(60% 100% at 0% 100%, #4a2716, transparent 70%), #1d110a;
}
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--noise); opacity: .1; }
.cta-band h2 { font-size: clamp(1.4rem, 4vw, 1.9rem); }
.cta-band p { color: rgba(255, 255, 255, .72); margin-top: 4px; }
.btn.light { background: #fff; background-image: none; color: #2a160c; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .6); }

.plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); max-width: 680px; margin: 26px auto 0; }
.plan { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: 26px; padding: 26px 22px; text-align: center; display: grid; gap: 12px; align-content: start; box-shadow: var(--shadow-sm); }
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.plan.best { border: 2px solid transparent; background: linear-gradient(var(--card), var(--card)) padding-box, conic-gradient(from var(--angle), var(--caramel), #7a4a2e, var(--caramel-2), #c4813f, var(--caramel)) border-box; box-shadow: 0 30px 60px -28px color-mix(in srgb, var(--caramel) 80%, transparent); animation: spinBorder 6s linear infinite; }
@keyframes spinBorder { to { --angle: 360deg; } }
.plan .badge { position: absolute; top: -12px; inset-inline: 0; margin: auto; width: fit-content; padding: 4px 12px; }
.plan h3 { font-size: 1.05rem; color: var(--muted); font-weight: 600; }
.plan .price { display: flex; align-items: baseline; justify-content: center; gap: 8px; }
.plan .price b { font-size: 3.2rem; font-weight: 700; color: var(--text); letter-spacing: -.03em; line-height: 1; }
.plan .price span { color: var(--muted); font-size: .92rem; }
/* 💎 الباقتين بميزاتهم */
.plans-tiers { max-width: 860px; }
.feats { list-style: none; margin: 4px 0 0; padding: 16px 0 0; display: grid; gap: 10px; text-align: start; border-top: 1px solid var(--border); }
.feats li { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; line-height: 1.55; }
.feats li i { flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: .72rem; font-weight: 700; }
.feats li.yes i { background: var(--ok-bg); color: var(--ok); }
.feats li.no { color: var(--muted); }
.feats li.no i { background: color-mix(in srgb, var(--muted) 14%, transparent); color: var(--muted); }
.feats li b { color: var(--brand-text); font-weight: 600; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* قفل الميزات المميزة بالباقة الأساسية */
.pro-lock { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 14px 16px; border-radius: 18px; text-decoration: none; color: var(--text); background: linear-gradient(135deg, color-mix(in srgb, var(--caramel) 18%, var(--card)), var(--card)); border: 1px solid color-mix(in srgb, var(--caramel) 45%, transparent); }
.pro-lock b { font-weight: 700; }
.pro-lock span { color: var(--muted); font-size: .88rem; }
.grid2 > .pro-lock { grid-column: 1 / -1; }
form.locked, section.locked { opacity: .55; }
form.locked button[type=submit] { display: none; }
.tier-pick { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.tier-card { text-align: start; border: 2px solid var(--border); border-radius: 20px; padding: 14px 16px; background: var(--card); cursor: pointer; display: grid; gap: 6px; font: inherit; color: inherit; }
.tier-card.on { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent); }
.tier-card .price { font-size: 1.5rem; font-weight: 700; }
.tier-card .feats { font-size: .84rem; gap: 6px; padding-top: 10px; }
.tier-card .feats li { font-size: .84rem; }
.compare { width: 100%; border-collapse: collapse; font-size: .85rem; margin-top: 8px; }
.compare th, .compare td { padding: 8px 6px; border-bottom: 1px solid var(--border); text-align: start; vertical-align: top; }
.compare th:not(:first-child), .compare td:not(:first-child) { text-align: center; width: 24%; }
.compare th { font-size: .8rem; color: var(--muted); font-weight: 600; }
.compare .yes { color: var(--ok); font-weight: 700; }
.compare .no { color: var(--muted); }
.compare b { font-weight: 600; color: var(--brand-text); font-size: .8rem; }
.checks { list-style: none; padding: 0; max-width: 680px; margin: 24px auto 0; display: grid; gap: 10px 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.checks li { display: flex; align-items: center; gap: 10px; }
.checks li::before { content: "✓"; flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); font-weight: 700; font-size: .78rem; }
.faq { max-width: 740px; margin: 22px auto 0; display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 4px 18px; transition: box-shadow .25s, border-color .25s; }
.faq details[open] { box-shadow: var(--shadow); border-color: var(--border-strong); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; font-weight: 600; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--card-2); color: var(--brand-text); font-size: 1.2rem; font-weight: 400; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 14px; color: var(--muted); }
.duo { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); align-items: start; padding-top: 64px; }
.duo .section { padding-top: 0; }
.duo .panel { padding: 22px; }
.site-foot { margin-top: 64px; border-top: 1px solid var(--border); background: var(--card); }
.site-foot .wrap { gap: 16px; padding-block: 22px; }
.site-foot a { color: var(--muted); text-decoration: none; font-size: .9rem; }
.site-foot a:hover { color: var(--text); }
.site-foot .brand { color: var(--text); }
.wa-fab { position: fixed; z-index: 45; bottom: calc(18px + env(safe-area-inset-bottom)); inset-inline-end: 18px; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 14px 30px -10px rgba(37, 211, 102, .8); transition: transform .25s var(--spring); }
.wa-fab:hover { transform: scale(1.08); }
.wa-fab svg { width: 28px; height: 28px; }
.btn.wa { background: #1fa855; background-image: none; color: #fff; box-shadow: 0 10px 22px -10px rgba(31, 168, 85, .8); }
.seg { display: flex; background: var(--card-2); border: 1px solid var(--border); border-radius: 16px; padding: 4px; gap: 4px; }
.seg button { flex: 1; border: 0; background: transparent; font: inherit; font-weight: 600; padding: 9px; border-radius: 12px; cursor: pointer; color: var(--muted); transition: background-color .2s, color .2s, box-shadow .2s; }
.seg button.on { background: var(--card); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 4px 10px -6px rgba(0, 0, 0, .2); }

/* ظهور الأقسام مع التمرير */
.reveal-on [data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal-on [data-reveal].in { opacity: 1; transform: none; }
.reveal-on [data-reveal] .tile, .reveal-on [data-reveal] .step { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease), box-shadow .35s; transition-delay: calc(var(--d, 0) * 70ms); }
.reveal-on [data-reveal].in .tile, .reveal-on [data-reveal].in .step { opacity: 1; transform: none; }
.reveal-on [data-reveal].in .tile:hover, .reveal-on [data-reveal].in .step:hover { transform: translateY(-5px); transition-delay: 0s; }

/* صفحة الخصوصية */
.policy h1 { margin: 24px 0 2px; font-size: 1.9rem; }
.policy h2 { font-size: 1.1rem; margin: 26px 0 8px; }
.policy ul { padding-inline-start: 20px; }
.policy li + li { margin-top: 8px; }

/* ملصق الانضمام للطباعة */
.poster { text-align: center; padding: 24px; border: 2px dashed var(--border-strong); border-radius: 22px; background: #fff; color: #1c130d; }
.poster img.logo { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; }
.poster .qr { width: min(280px, 80%); margin: 14px auto; }
.poster .qr svg { width: 100%; height: auto; display: block; }

/* العروض على بطاقة الزبون */
.stars { display: flex; justify-content: center; gap: 4px; }
.stars button { font-size: 2.2rem; line-height: 1; background: none; border: 0; color: color-mix(in srgb, var(--text) 18%, transparent); cursor: pointer; padding: 2px 4px; min-height: 0; transition: transform .2s var(--spring), color .2s; }
.stars button:hover { transform: scale(1.15); }
.stars button.on { color: #f5a524; text-shadow: 0 4px 14px rgba(245, 165, 36, .45); }
.tier { position: relative; overflow: hidden; }
.tier-gold { border-color: #e8b923; background: linear-gradient(135deg, color-mix(in srgb, #f6d365 22%, var(--card)), var(--card) 60%); }
.tier-silver { border-color: #b4aca5; background: linear-gradient(135deg, color-mix(in srgb, #cfd3d6 30%, var(--card)), var(--card) 60%); }
.tier-bronze { background: linear-gradient(135deg, color-mix(in srgb, #d7a17a 18%, var(--card)), var(--card) 60%); }
.row.tight > .grow { flex-basis: 90px; }

/* تبويب العروض */
.check { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.boost { border: 1px solid var(--border); border-radius: 16px; padding: 12px; display: grid; gap: 8px; background: var(--card-2); }
.boost + .boost { margin-top: 8px; }
.boost .row label { display: flex; align-items: center; gap: 6px; }
.boost input[type="time"] { width: auto; }
.boost select { width: auto; }
.days { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--border-strong); background: var(--card); color: var(--text); border-radius: 999px; padding: 5px 12px; font: inherit; font-size: .84rem; font-weight: 500; cursor: pointer; min-height: 0; transition: background-color .2s, color .2s, border-color .2s, transform .15s; }
.chip:active { transform: scale(.95); }
.chip.on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }

/* التقارير: أعمدة بسلسلة وحدة بلون المحل */
.cols { display: flex; align-items: flex-end; gap: 3px; height: 150px; padding-top: 22px; border-bottom: 1px solid var(--border); }
.cols .col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; outline: none; }
.cols .col i { display: block; width: 100%; max-width: 26px; background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 70%, #fff), var(--brand)); border-radius: 7px 7px 2px 2px; transform-origin: bottom; animation: growUp .7s var(--ease) both; }
.cols .col b { position: absolute; top: -20px; font-size: .72rem; color: var(--muted); font-weight: 600; }
.cols .col:hover i, .cols .col:focus i { filter: brightness(1.15); }
.cols .col:hover::after, .cols .col:focus::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 4px); white-space: nowrap; background: #1c130d; color: #fff; font-size: .74rem; padding: 5px 9px; border-radius: 8px; z-index: 2; pointer-events: none; box-shadow: var(--shadow); }
.cols-x { display: flex; gap: 3px; }
.cols-x span { flex: 1; text-align: center; font-size: .66rem; color: var(--muted); white-space: nowrap; overflow: visible; }
table.mini { width: 100%; border-collapse: collapse; margin-top: 6px; }
table.mini td { padding: 5px 6px; border-bottom: 1px solid var(--border); }
.hbars { display: grid; gap: 9px; }
.hbar { display: grid; grid-template-columns: 38px 1fr 36px; align-items: center; gap: 8px; font-size: .85rem; }
.hbar .track { height: 12px; }
.hbar .track i { display: block; height: 100%; background: linear-gradient(270deg, color-mix(in srgb, var(--brand) 70%, #fff), var(--brand)); border-start-end-radius: 6px; border-end-end-radius: 6px; }
.hbar b { color: var(--muted); font-weight: 600; }
.hbar.wide { grid-template-columns: 90px 1fr 36px; }
code.alias { font-size: 1.15rem; font-weight: 700; background: var(--card-2); border: 1px dashed var(--border-strong); border-radius: 10px; padding: 4px 12px; letter-spacing: .03em; font-family: inherit; }

/* الكوبونات والرصيد */
.coupon { border: 1.5px dashed color-mix(in srgb, var(--brand-text) 55%, transparent); border-radius: 14px; padding: 10px 12px; background: color-mix(in srgb, var(--brand) 5%, transparent); }
.credit-box { border: 1px solid var(--border); border-radius: 16px; padding: 12px; background: var(--card-2); }
.coupon-card { position: relative; border: 1.5px dashed color-mix(in srgb, var(--brand-text) 60%, transparent); background: radial-gradient(circle at 0 50%, var(--bg) 9px, transparent 10px), radial-gradient(circle at 100% 50%, var(--bg) 9px, transparent 10px), linear-gradient(135deg, color-mix(in srgb, var(--brand) 9%, var(--card)), var(--card)); }

/* صفحات الزبون بالإنجليزي (من اليسار لليمين) */
html[dir="ltr"] body, html[dir="ltr"] .stamps { direction: ltr; }
.hero-demo { margin-top: 10px; } .hero-demo .linkish { color: inherit; font-weight: 700; text-decoration: underline; }

/* خطوات البداية */
.onboard { background: radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--caramel) 18%, transparent), transparent 60%), var(--card); }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.checklist li.done { color: var(--muted); text-decoration: line-through; }
.onboard .bar { background: color-mix(in srgb, var(--brand) 15%, transparent); }

/* المنيو بلوحة التحكم */
.thumb { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; flex: none; }
.list li.off { opacity: .55; }

/* المنيو الإلكتروني */
.menu-cats { display: flex; gap: 6px; overflow-x: auto; padding: 8px 0 12px; position: sticky; top: 0; z-index: 5; scrollbar-width: none; background: linear-gradient(var(--bg) 70%, transparent); }
.menu-cats::-webkit-scrollbar { display: none; }
.menu-cats .chip { text-decoration: none; white-space: nowrap; padding: 7px 14px; }
.menu-sec h2 { margin-bottom: 10px; }
.menu-items { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.menu-items li { display: flex; gap: 12px; align-items: center; }
.menu-items li + li { padding-top: 12px; border-top: 1px solid var(--border); }
.menu-items img { width: 70px; height: 70px; border-radius: 16px; object-fit: cover; flex: none; box-shadow: var(--shadow-sm); }
.menu-items .price { font-weight: 700; white-space: nowrap; color: var(--brand-text); background: color-mix(in srgb, var(--brand) 9%, transparent); padding: 3px 10px; border-radius: 99px; font-size: .88rem; }
.menu-items li .grow { flex: 1; min-width: 0; }
.fix-list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; max-height: 260px; overflow: auto; }
.fix-list .check { align-items: flex-start; }
.version-chip { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; margin-bottom: 12px; padding: 12px 16px; }
.version-chip .badge { flex: none; }
.version-chip .grow { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.updates-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; }
.updates-list > li { position: relative; padding: 0 0 18px; padding-inline-start: 22px; border-inline-start: 2px solid var(--border); margin-inline-start: 6px; }
.updates-list > li::before { content: ''; position: absolute; inset-inline-start: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--border-strong); }
.updates-list > li.current::before { background: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 22%, transparent); }
.updates-list > li:last-child { border-color: transparent; padding-bottom: 0; }
.updates-list .row { gap: 8px; }
.updates-list ul { margin: 6px 0 0; padding-inline-start: 18px; display: grid; gap: 4px; font-size: .92rem; }
.row.size-row { flex-wrap: nowrap; gap: 8px; }
/* 🤖 دردشة المساعد */
body.has-ai { padding-bottom: 88px; }
.ai-fab { position: fixed; inset-inline-start: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border: 0; border-radius: 999px; background: var(--brand); color: var(--brand-ink); font: inherit; font-weight: 600; box-shadow: 0 14px 30px -12px color-mix(in srgb, var(--brand) 70%, #000); cursor: pointer; animation: aiIn .5s var(--spring, ease) both; }
.ai-fab:active { transform: scale(.96); }
@keyframes aiIn { from { transform: translateY(20px); opacity: 0; } }
dialog.ai-chat { width: min(560px, 100%); max-width: 100%; height: min(80dvh, 680px); max-height: 100dvh; margin: auto auto 0; padding: 0; border: 0; border-radius: 26px 26px 0 0; background: var(--card); color: var(--text); box-shadow: 0 -20px 50px -20px rgba(0, 0, 0, .4); }
dialog.ai-chat[open] { display: flex; flex-direction: column; }
dialog.ai-chat::backdrop { background: rgba(20, 12, 8, .45); backdrop-filter: blur(2px); }
.ai-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.ai-x { border: 0; background: transparent; color: var(--muted); font-size: 1.1rem; min-height: 0; padding: 4px 8px; cursor: pointer; }
.ai-log { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.ai-msg { max-width: 86%; padding: 10px 14px; border-radius: 18px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .95rem; }
.ai-msg.user { align-self: flex-start; background: var(--brand); color: var(--brand-ink); border-end-start-radius: 6px; }
.ai-msg.bot { align-self: flex-end; background: color-mix(in srgb, var(--brand) 7%, var(--card)); border: 1px solid var(--border); border-end-end-radius: 6px; }
html[dir=ltr] .ai-msg.user { align-self: flex-end; }
html[dir=ltr] .ai-msg.bot { align-self: flex-start; }
.ai-msg.err { color: var(--bad, #b42318); }
.ai-msg.typing { min-width: 56px; min-height: 40px; }
.ai-msg.typing::after { content: '•••'; letter-spacing: 3px; animation: aiDots 1s infinite; }
@keyframes aiDots { 50% { opacity: .3; } }
.ai-sugg { display: flex; gap: 6px; overflow-x: auto; padding: 0 16px 10px; scrollbar-width: none; }
.ai-sugg .chip { white-space: nowrap; }
.ai-sugg[hidden] { display: none; }
.ai-form { display: flex; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--border); }
.ai-form input { flex: 1; min-width: 0; }
.ai-note { margin: 0; padding: 0 16px calc(10px + env(safe-area-inset-bottom)); text-align: center; }
.ai-msg a { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.ai-cta { display: flex; gap: 8px; padding: 0 16px 10px; }
.ai-cta .btn { flex: 1; }
.offer-banner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; padding: 10px 14px; border-radius: 16px; background: color-mix(in srgb, var(--brand) 14%, transparent); border: 1px solid color-mix(in srgb, var(--brand) 40%, transparent); font-weight: 600; }
.offer-banner span { flex: 1; min-width: 200px; }
/* 🎯 المبيعات بصفحة المنصة */
.sales-list { display: grid; gap: 10px; }
.prospect { padding: 12px 14px; border: 1px solid var(--border); border-radius: 16px; background: var(--card); }
.prospect-top { display: flex; align-items: flex-start; gap: 10px; }
.prospect-top .grow { min-width: 0; }
.prospect .acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.prospect .acts .btn { min-height: 34px; padding: 4px 12px; }
.st { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; background: color-mix(in srgb, var(--muted) 15%, transparent); white-space: nowrap; }
.st.hot, .st.won { background: color-mix(in srgb, #12b76a 18%, transparent); color: #067647; }
.st.talking { background: color-mix(in srgb, var(--brand) 18%, transparent); }
.st.failed, .st.optout, .st.lost { background: color-mix(in srgb, #f04438 14%, transparent); color: #b42318; }
.sales-chat { display: flex; flex-direction: column; gap: 8px; max-height: 50vh; overflow-y: auto; padding: 10px; border-radius: 14px; background: color-mix(in srgb, var(--brand) 4%, var(--card)); border: 1px solid var(--border); }
.sales-chat .ai-msg { font-size: .9rem; }
.sales-chat .ai-msg.owner { align-self: flex-end; background: color-mix(in srgb, #12b76a 14%, var(--card)); border: 1px solid var(--border); }
.sales-chat .ai-msg small { display: block; opacity: .6; font-size: .72rem; margin-top: 2px; }
.steps-list { margin: 0; padding-inline-start: 20px; display: grid; gap: 6px; }
.steps-list code { font-size: .82rem; direction: ltr; unicode-bidi: embed; overflow-wrap: anywhere; }

.row.size-row > input { min-width: 0; flex: 1 1 0; }
.row.size-row > [name=sizeName] { flex-grow: 1.4; }
.row.size-row > .btn { flex: none; }
.menu-items .sizes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.menu-items .size { border: 1px solid var(--border-strong); background: var(--card); color: var(--text); border-radius: 999px; padding: 4px 12px; min-height: 30px; font: inherit; font-size: .8rem; font-weight: 500; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .15s; }
.menu-items .size:active { transform: scale(.94); }
.menu-items .size.on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.menu-items .price.bump { animation: bump .3s ease; }
@keyframes bump { 40% { transform: scale(1.12); } }
.menu-pdf { display: grid; gap: 8px; padding: 14px; border-radius: 18px; border: 1.5px dashed var(--border-strong); background: var(--card-2); }
.menu-pdf .bar { height: 8px; }
.menu-pdf-open { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; text-decoration: none; color: inherit; transition: transform .2s var(--ease); }
.menu-pdf-open:active { transform: scale(.98); }
.menu-pdf-open .grow { flex: 1; min-width: 0; display: grid; }
.menu-pdf-open .pdf-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; background: color-mix(in srgb, var(--brand) 12%, transparent); }
.menu-join { margin-top: 14px; background: radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 60%), var(--card); }

/* صفحة الطباعة */
.print-bar { max-width: 820px; margin: 14px auto; padding: 0 16px; display: grid; gap: 10px; }
.sheet { width: 210mm; min-height: 297mm; margin: 0 auto 20px; background: #fff; display: grid; box-shadow: 0 2px 12px rgba(0, 0, 0, .12); }
.sheet-poster { grid-template-columns: 1fr; }
.sheet-table { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.sheet-sticker { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, 1fr); padding: 8mm; gap: 6mm; }
.pt { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #1f1a17; padding: 10mm; border-top: 8px solid var(--c); }
.sheet-table .pt { border: 1px dashed #bbb; border-top: 6px solid var(--c); padding: 6mm; }
.sheet-sticker .pt { border: 2px solid var(--c); border-radius: 6mm; padding: 4mm; }
.pt-logo { width: 26mm; height: 26mm; border-radius: 50%; object-fit: cover; }
.pt-name { font-weight: 700; font-size: 22pt; margin-top: 4mm; }
.pt-head { font-weight: 700; font-size: 20pt; margin-top: 4mm; color: var(--c); }
.pt-qr { width: 120mm; margin-top: 6mm; }
.pt-sub { font-size: 13pt; margin-top: 5mm; }
.pt-rule { font-size: 12pt; margin-top: 3mm; opacity: .8; }
.pt-foot { font-size: 9pt; opacity: .55; margin-top: 6mm; }
.sheet-table .pt-logo { width: 16mm; height: 16mm; }
.sheet-table .pt-name { font-size: 14pt; margin-top: 2mm; }
.sheet-table .pt-head { font-size: 13pt; margin-top: 2mm; }
.sheet-table .pt-qr { width: 55mm; margin-top: 3mm; }
.sheet-table .pt-sub { font-size: 9pt; margin-top: 2mm; }
.sheet-sticker .pt-logo { width: 12mm; height: 12mm; }
.sheet-sticker .pt-name { font-size: 11pt; margin-top: 1mm; }
.sheet-sticker .pt-head { font-size: 10pt; margin-top: 1mm; }
.sheet-sticker .pt-qr { width: 42mm; margin-top: 2mm; }
.sheet-sticker .pt-sub, .sheet-sticker .pt-foot { display: none; }
@media print {
  @page { size: A4; margin: 0; }
  body { background: #fff !important; }
  .no-print { display: none !important; }
  .sheet { box-shadow: none; margin: 0; page-break-after: always; }
}

/* «كل بطاقاتي» */
.my-card { margin-bottom: 20px; }
.my-card > a { display: block; color: inherit; text-decoration: none; transition: transform .25s var(--ease); }
.my-card > a:hover { transform: translateY(-3px); }
.my-card > a:active { transform: scale(.98); }

/* الاحتفال (قصاصات ملونة) */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 80; }

/* بدون حركة للي طالبين هيك */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .loyalty-card::after, .reward-ready::after, .hero-bg .blob { display: none; }
}
