/* ═══════════════════════════════════════════════════════════════════
   نقطة — loyalty cards. Paper, espresso ink, one hot tangerine.
   ═══════════════════════════════════════════════════════════════════ */
:root {
  --paper: #F3ECE0;
  --paper-2: #EAE0CE;
  --surface: #FBF7F0;
  --ink: #3C1950;
  --ink-2: #54406A;
  --muted: #6E6279;
  --line: #DCCFBB;
  --line-2: #CDBDA5;
  --accent: #FF5A1F;
  --accent-2: #E84A12;
  --accent-soft: #FFE3D6;
  --on-ink: #DDD2EA;      /* text on ink (purple) surfaces */
  --on-ink-2: #C3B5D6;
  --on-ink-3: #A898BF;
  --ok: #2F7D4F;
  --ok-soft: #DCEFE2;
  --danger: #B9341A;

  --f-display: 'Alexandria', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --f-body: 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --shadow: 0 1px 0 rgba(60, 25, 80, .05), 0 12px 32px -16px rgba(60, 25, 80, .28);
  --shadow-lg: 0 2px 0 rgba(60, 25, 80, .06), 0 40px 80px -30px rgba(60, 25, 80, .45);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* paper grain */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 100;
  opacity: .35;
  mix-blend-mode: multiply;
  background-image: 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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .1 0 0 0 0 .07 0 0 0 0 .05 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1180px, 100% - var(--gutter) * 2); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.mono { font-family: var(--f-mono); font-size: .92em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
code { font-family: var(--f-mono); font-size: .88em; background: var(--paper-2); padding: .1em .4em; border-radius: 6px; }

.display {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(42px, 7vw, 92px);
  line-height: 1.05;
  letter-spacing: -.01em;
  margin: 0;
}
.display em { font-style: normal; color: var(--accent); }
.h2 { font-family: var(--f-display); font-weight: 800; font-size: clamp(28px, 4vw, 48px); line-height: 1.15; margin: 0 0 .3em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 700 14px/1.2 var(--f-body);
  color: var(--ink-2);
  margin: 0 0 18px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  --b-bg: var(--surface); --b-fg: var(--ink); --b-bd: var(--line-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px;
  border: 1.5px solid var(--b-bd); border-radius: 999px;
  background: var(--b-bg); color: var(--b-fg);
  font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s, box-shadow .2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn-ink { --b-bg: var(--ink); --b-fg: var(--paper); --b-bd: var(--ink); }
.btn-accent { --b-bg: var(--accent); --b-fg: #fff; --b-bd: var(--accent); box-shadow: 0 8px 20px -10px var(--accent); }
.btn-accent:hover { --b-bg: var(--accent-2); }
.btn-ghost { --b-bg: transparent; }
.btn-ghost:hover { --b-bg: var(--surface); }
.btn-gift { --b-bg: var(--ok); --b-fg: #fff; --b-bd: var(--ok); }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 16px; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-lg svg[aria-hidden] { transition: transform .25s var(--ease); }
.btn-lg:hover svg { transform: translateX(-3px); }
.link { background: none; border: 0; padding: 0; color: var(--ink-2); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-2); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.link svg { width: 18px; height: 18px; }
.link:hover { color: var(--accent); text-decoration-color: currentColor; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--paper-2); cursor: pointer; }
.icon-btn svg { width: 18px; height: 18px; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── Brand mark ──────────────────────────────────────────── */
.brandmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 900 24px/1 var(--f-display); }
.brandmark svg { width: 32px; height: 32px; transition: transform .6s var(--ease); }
.brandmark:hover svg { transform: rotate(-90deg); }

/* ── Forms ───────────────────────────────────────────────── */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field > span { font-weight: 600; font-size: 14px; color: var(--ink-2); }
.field input, .field select, .field textarea, .phone-row select, .phone-row input, .search input, .copy-row input {
  width: 100%; min-height: 50px; padding: 12px 16px;
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 80px; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus, .phone-row :focus, .search input:focus {
  outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(60, 25, 80, .08);
}
.hint { font-style: normal; font-size: 13px; color: var(--muted); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-alt { text-align: center; color: var(--muted); margin: 0; }
.form-alt a { color: var(--ink); font-weight: 700; }
.field.has-error input { border-color: var(--danger); }

/* ── Toast ───────────────────────────────────────────────── */
.toast {
  position: fixed; inset-inline: 0; bottom: calc(24px + env(safe-area-inset-bottom)); margin-inline: auto;
  width: max-content; max-width: calc(100% - 32px);
  padding: 12px 20px; border-radius: 999px;
  background: var(--ink); color: var(--paper); font-weight: 600;
  box-shadow: var(--shadow-lg);
  transform: translateY(150%); opacity: 0;
  transition: transform .35s var(--ease), opacity .35s;
  z-index: 200;
}
.toast.is-on { transform: none; opacity: 1; }
.toast.is-error { background: var(--danger); }
.toast.is-ok { background: var(--ok); }

/* ═══ WALLET CARD ═════════════════════════════════════════ */
.wcard {
  --c-bg: #3C1950; --c-fg: #F6EFE3; --c-ac: #FF5A1F;
  position: relative;
  width: 100%; max-width: 360px;
  padding: 18px 18px 20px;
  border-radius: 20px;
  background: var(--c-bg); color: var(--c-fg);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, .08);
  overflow: hidden;
  font-family: var(--f-body);
  isolation: isolate;
}
.wcard::after { /* soft sheen */
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120% 60% at 100% 0%, rgba(255, 255, 255, .10), transparent 60%);
}
.wc-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wc-brand { display: flex; align-items: center; gap: 10px; font: 700 16px/1.2 var(--f-display); min-width: 0; }
.wc-brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wc-logo { width: 34px; height: 34px; border-radius: 9px; object-fit: contain; flex: none; }
.logo-fallback { display: grid; place-items: center; background: var(--c-ac, var(--accent)); color: var(--c-bg, #fff); font: 800 17px/1 var(--f-display); }
.wc-pts { text-align: end; line-height: 1.1; }
.wc-pts small, .wc-goal small, .wc-fields small {
  display: block; font: 600 10.5px/1.3 var(--f-body); letter-spacing: .03em;
  color: var(--c-ac); text-transform: uppercase;
}
.wc-pts b { font: 700 26px/1 var(--f-mono); display: inline-block; }
.wc-strip {
  margin: 16px -18px 14px; padding: 16px 18px;
  background: color-mix(in srgb, var(--c-fg) 7%, transparent);
  border-block: 1px dashed color-mix(in srgb, var(--c-fg) 18%, transparent);
}
.wc-stamps { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 8px; }
.stamp {
  aspect-ratio: 1; display: grid; place-items: center;
  border-radius: 50%;
  border: 1.5px dashed color-mix(in srgb, var(--c-fg) 35%, transparent);
  color: color-mix(in srgb, var(--c-fg) 35%, transparent);
  transition: background .3s, color .3s, border-color .3s, transform .4s var(--ease);
}
.stamp { min-width: 0; }
.stamp svg { width: 56%; height: 56%; max-width: 32px; }
.stamp.is-on { background: var(--c-ac); border: 1.5px solid var(--c-ac); color: var(--c-bg); transform: rotate(-8deg); }
.stamp.is-pop { animation: stampIn .55s var(--ease); }
@keyframes stampIn { 0% { transform: scale(1.8) rotate(-30deg); opacity: 0; } 60% { transform: scale(.9) rotate(-4deg); opacity: 1; } 100% { transform: scale(1) rotate(-8deg); } }
.wc-bar { height: 12px; border-radius: 99px; background: color-mix(in srgb, var(--c-fg) 15%, transparent); overflow: hidden; }
.wc-bar i { display: block; height: 100%; border-radius: inherit; background: var(--c-ac); transition: width .8s var(--ease); }
.wc-goal b { font: 700 18px/1.35 var(--f-display); }
.wc-fields { display: grid; grid-template-columns: 1fr auto; gap: 12px; margin-top: 12px; }
.wc-fields b { font-weight: 600; font-size: 15px; }
.wc-fields > div:last-child { text-align: end; }
.wc-qr { margin: 18px auto 0; width: 150px; padding: 12px 12px 8px; background: #fff; border-radius: 12px; text-align: center; color: #3C1950; }
.wc-qr img { width: 100%; aspect-ratio: 1; }
.wc-qr small { font: 600 11px/1.8 var(--f-mono); letter-spacing: .1em; }
.wcard.is-big { max-width: 400px; }
.wcard.is-big .wc-qr { width: 190px; }

/* ═══ LANDING ═════════════════════════════════════════════ */
.site-nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(12px); background: color-mix(in srgb, var(--paper) 82%, transparent); border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-nav.is-scrolled { border-color: var(--line); }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { text-decoration: none; font-weight: 600; color: var(--ink-2); }
.nav-links a:hover { color: var(--accent); }
.nav-cta { display: flex; align-items: center; gap: 18px; }

.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 110px); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.lede { font-size: clamp(17px, 1.6vw, 19px); color: var(--ink-2); max-width: 54ch; margin: 26px 0 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 48px 0 0; padding-top: 24px; border-top: 1.5px dashed var(--line-2); }
.hero-stats dt { font: 800 20px/1.2 var(--f-display); }
.hero-stats dd { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.hero-copy > * { animation: rise .8s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4) { animation-delay: .24s; }
.hero-copy > :nth-child(5) { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

.hero-stage { position: relative; display: grid; place-items: center; min-height: 560px; }
.stage-ring {
  position: absolute; width: min(480px, 100%); aspect-ratio: 1; border-radius: 50%;
  border: 2px dashed var(--line-2);
  animation: spin 60s linear infinite;
}
.stage-ring::before { content: ''; position: absolute; inset: 14%; border-radius: 50%; background: var(--accent-soft); }
@keyframes spin { to { transform: rotate(360deg); } }
.stage-card { position: relative; width: min(340px, 86%); margin-top: 96px; transform: rotate(-4deg); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: rotate(-2deg) translateY(-10px); } }
.stamp-pop {
  position: absolute; top: 40%; inset-inline-start: 4%;
  padding: 8px 16px; border-radius: 999px;
  background: var(--accent); color: #fff; font: 800 16px/1 var(--f-display);
  box-shadow: var(--shadow); opacity: 0; transform: scale(.6);
  transition: opacity .3s, transform .4s var(--ease);
}
.stamp-pop.is-on { opacity: 1; transform: scale(1) rotate(6deg); }

.lock-notif {
  position: absolute; top: 0; inset-inline-end: 0; z-index: 3;
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center;
  width: min(360px, 94%); padding: 12px 14px;
  border-radius: 22px;
  background: rgba(78, 52, 38, .78); color: #fff;
  backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .5);
  transform: translateY(-20px) scale(.96); opacity: 0;
  transition: transform .6s var(--ease), opacity .5s;
}
.lock-notif.is-on, .lock-notif.is-static { transform: none; opacity: 1; }
.lock-notif b { font-size: 15px; }
.lock-notif p { margin: 0; font-size: 14px; line-height: 1.4; opacity: .95; }
.lock-notif time { align-self: start; font-size: 12px; opacity: .7; }
.ln-icon { width: 40px; height: 40px; border-radius: 10px; background: #fff; color: var(--ink); display: grid; place-items: center; overflow: hidden; }
.ln-icon svg { width: 24px; height: 24px; }
.ln-logo { width: 100%; height: 100%; object-fit: contain; }

.marquee { background: var(--ink); color: var(--paper); overflow: hidden; padding: 18px 0; transform: rotate(-1.2deg); margin: 0 -10px; }
.marquee-track { display: flex; gap: 28px; width: max-content; animation: marquee 40s linear infinite; font: 800 clamp(20px, 2.6vw, 30px)/1 var(--f-display); white-space: nowrap; }
.marquee-track i { color: var(--accent); font-style: normal; font-size: .6em; align-self: center; }
@keyframes marquee { to { transform: translateX(50%); } }

.section { padding: clamp(72px, 10vw, 140px) 0; }
.sec-head { max-width: 640px; margin-bottom: 48px; }
.section-ink { background: var(--ink); color: var(--paper); }
.section-ink .eyebrow { color: var(--line-2); }

.tickets { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: t; }
.ticket {
  position: relative; padding: 28px 26px 30px;
  background: var(--surface);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  /* perforated top edge */
  -webkit-mask: radial-gradient(circle 7px at 50% 0, #0000 98%, #000) 0 0 / 22px 100% repeat-x;
          mask: radial-gradient(circle 7px at 50% 0, #0000 98%, #000) 0 0 / 22px 100% repeat-x;
  transition: transform .35s var(--ease);
}
.ticket:hover { transform: translateY(-6px) rotate(-.6deg); }
.t-num { font: 600 14px/1 var(--f-mono); color: var(--accent); }
.ticket h3 { font: 800 24px/1.3 var(--f-display); margin: 14px 0 8px; }
.ticket p { color: var(--ink-2); margin: 0 0 24px; }
.t-art { height: 86px; display: flex; align-items: flex-end; border-top: 1.5px dashed var(--line); padding-top: 18px; color: var(--ink); }
.t-art svg { height: 60px; width: auto; }

.feats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(243, 236, 224, .14); border-radius: var(--r); overflow: hidden; }
.feat { padding: 34px 30px; background: var(--ink); transition: background .3s; }
.feat:hover { background: #4A2462; }
.feat-ico { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--accent); color: #fff; }
.feat-ico svg { width: 24px; height: 24px; }
.feat h3 { font: 700 20px/1.35 var(--f-display); margin: 20px 0 8px; }
.feat p { margin: 0; color: var(--on-ink-2); }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 32px 28px; border: 1.5px solid var(--line-2); border-radius: var(--r-lg); background: var(--surface); }
.plan h3 { font: 700 18px/1 var(--f-display); margin: 0; color: var(--ink-2); }
.price { margin: 18px 0 22px; display: flex; align-items: baseline; gap: 8px; }
.price b { font: 900 54px/1 var(--f-display); }
.price span { color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; flex: 1; }
.plan li { display: flex; gap: 10px; align-items: center; }
.plan li svg { width: 18px; height: 18px; color: var(--ok); flex: none; }
.plan-hot { background: var(--ink); color: var(--paper); border-color: var(--ink); transform: translateY(-12px); box-shadow: var(--shadow-lg); }
.plan-hot h3, .plan-hot .price span { color: var(--line-2); }
.plan-hot li svg { color: var(--accent); }
.plan-tag { position: absolute; top: -13px; inset-inline-start: 24px; padding: 5px 12px; border-radius: 99px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; }

.final-cta { padding: clamp(72px, 10vw, 140px) 0; background: var(--accent); color: #fff; text-align: center; }
.final-cta .display { margin-bottom: 36px; }
.final-cta .btn-accent { --b-bg: var(--ink); --b-bd: var(--ink); box-shadow: none; }
.site-foot { padding: 32px 0; border-top: 1px solid var(--line); }
.foot-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--muted); }

/* ═══ AUTH ════════════════════════════════════════════════ */
.auth-grid { min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-panel { display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 48px clamp(16px, 7vw, 96px); max-width: 620px; width: 100%; margin-inline: auto; }
.auth-panel .brandmark { margin-bottom: 40px; }
.auth-panel .form { margin-top: 24px; }
.auth-art { position: relative; display: grid; place-items: center; align-content: center; gap: 40px; padding: 48px; background: var(--ink); color: var(--paper); overflow: hidden; }
.auth-art::before { content: ''; position: absolute; width: 140%; aspect-ratio: 1; border-radius: 50%; border: 2px dashed rgba(243, 236, 224, .15); }
.auth-card { width: min(340px, 90%); transform: rotate(5deg); }
.auth-quote { position: relative; max-width: 30ch; text-align: center; font: 700 22px/1.5 var(--f-display); margin: 0; }

/* ═══ JOIN (customer) ═════════════════════════════════════ */
.join, .cardpage { background: var(--m-bg); color: var(--m-fg); }
.join::before, .cardpage::before { mix-blend-mode: overlay; }
.join-wrap { width: min(480px, 100% - 32px); margin-inline: auto; padding: 40px 0 32px; }
.join-head { text-align: center; padding: 0 8px 28px; }
.join-logo { width: 84px; height: 84px; margin: 0 auto 16px; border-radius: 22px; object-fit: contain; background: color-mix(in srgb, var(--m-fg) 8%, transparent); }
.join-logo.logo-fallback { font-size: 38px; --c-ac: var(--m-ac); --c-bg: var(--m-bg); }
.join-head h1 { font: 900 30px/1.2 var(--f-display); margin: 0 0 6px; }
.join-head > p { margin: 0; opacity: .8; }
.join-offer { display: flex; gap: 12px; align-items: center; text-align: start; margin-top: 22px; padding: 14px 16px; border-radius: var(--r); border: 1.5px dashed color-mix(in srgb, var(--m-ac) 70%, transparent); }
.join-offer svg { width: 32px; height: 32px; color: var(--m-ac); flex: none; }
.join-offer b { color: var(--m-ac); }
.join-form { background: var(--surface); color: var(--ink); padding: 24px 20px; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.phone-row { display: grid; grid-template-columns: 128px 1fr; gap: 8px; }
.phone-row select { padding-inline: 10px; }
.btn-m { --b-bg: var(--m-ac); --b-fg: var(--m-bg); --b-bd: var(--m-ac); }
.fine { margin: 0; font-size: 12.5px; color: var(--muted); text-align: center; }
.powered { text-align: center; margin-top: 28px; font-size: 13px; opacity: .6; }
.powered a { font-weight: 700; }

/* ═══ CARD (customer) ═════════════════════════════════════ */
.card-wrap { width: min(440px, 100% - 32px); margin-inline: auto; padding: 28px 0 40px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; justify-items: center; }
.card-tip { display: flex; gap: 8px; align-items: center; margin: 0; font-size: 14px; opacity: .8; }
.card-tip svg { width: 18px; height: 18px; }
.news { width: 100%; display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 12px 14px; border-radius: 18px; background: color-mix(in srgb, var(--m-fg) 10%, transparent); }
.news-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--m-ac); color: var(--m-bg); }
.news-ico svg { width: 20px; height: 20px; }
.news p { margin: 2px 0; }
.news time { font-size: 12px; opacity: .6; }
.card-meta { width: 100%; margin: 0; display: grid; gap: 1px; border-radius: var(--r); overflow: hidden; background: color-mix(in srgb, var(--m-fg) 12%, transparent); }
.card-meta > div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; background: var(--m-bg); }
.card-meta dt { opacity: .7; }
.card-meta dd { margin: 0; font-weight: 600; text-align: end; }
.terms { width: 100%; font-size: 14px; opacity: .8; }
.terms summary { cursor: pointer; font-weight: 600; }

.wallet-btns { display: grid; gap: 10px; width: 100%; max-width: 300px; }
.wallet-btns:empty { display: none; }
.wbtn {
  display: flex; align-items: center; justify-content: center; gap: 12px; direction: ltr;
  min-height: 56px; padding: 8px 22px; border-radius: 14px;
  background: #000; color: #fff; text-decoration: none;
  border: 1.5px solid rgba(255, 255, 255, .25);
  font: 600 20px/1.05 -apple-system, 'SF Pro Display', 'Segoe UI', var(--f-body);
  transition: transform .2s var(--ease);
}
.wbtn:hover { transform: translateY(-2px); }
.wbtn small { display: block; font-size: 12px; font-weight: 500; opacity: .9; }
.wbtn span { text-align: left; }
.wglyph { width: 40px; height: 30px; flex: none; }

.sheet { position: fixed; inset: 0; z-index: 150; display: grid; align-items: end; background: rgba(0, 0, 0, .45); animation: fade .3s; }
.sheet[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.sheet-panel {
  position: relative; width: 100%; max-width: 560px; margin-inline: auto;
  padding: 28px 24px calc(28px + env(safe-area-inset-bottom));
  border-radius: 28px 28px 0 0; background: #fff; color: var(--ink);
  display: grid; gap: 14px; justify-items: center; text-align: center;
  animation: sheetUp .5s var(--ease);
}
@keyframes sheetUp { from { transform: translateY(100%); } }
.sheet-panel h2 { font: 800 24px/1.3 var(--f-display); margin: 0; }
.sheet-panel > p { margin: 0; color: var(--ink-2); font-size: 17px; }
.sheet-x { position: absolute; top: 14px; inset-inline-end: 14px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--paper); display: grid; place-items: center; cursor: pointer; }
.sheet-x svg { width: 18px; height: 18px; }
.add-hint { direction: ltr; width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 14px 28px; margin-top: 6px; background: #F4F4F6; border-radius: 4px; box-shadow: 0 -10px 20px -14px rgba(0, 0, 0, .3); color: #1F7BF5; font: 500 20px/1 -apple-system, 'Segoe UI', sans-serif; }
.add-ring { position: relative; font-weight: 600; }
.add-ring::after { content: ''; position: absolute; inset: -12px -16px; border: 3px solid #F5B70A; border-radius: 50%; transform: rotate(-6deg); animation: ring 1.6s ease-in-out infinite; }
@keyframes ring { 50% { transform: rotate(-6deg) scale(1.08); } }
.sheet-note { margin: 0; font: 700 18px/1.4 var(--f-display); }
.sheet .wallet-btns { margin-top: 6px; }
.sheet .wbtn { border-color: transparent; }

/* ═══ DASHBOARD ═══════════════════════════════════════════ */
.dash-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100svh; }
.side { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; gap: 24px; padding: 26px 18px; background: var(--ink); color: var(--paper); }
.side-brand { padding-inline: 8px; }
.side-merchant { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: var(--r-sm); background: rgba(243, 236, 224, .07); }
.side-merchant b { display: block; font-size: 14px; line-height: 1.3; }
.side-merchant small { display: block; font-size: 12px; color: var(--on-ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px; }
.side-logo { width: 38px; height: 38px; border-radius: 10px; object-fit: contain; background: var(--paper); flex: none; }
.side-logo.logo-fallback { --c-ac: var(--accent); --c-bg: #fff; }
.side-nav { display: grid; gap: 4px; }
.side-nav a, .side-out button { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; text-decoration: none; color: var(--on-ink); font-weight: 600; transition: background .2s, color .2s; }
.side-nav a svg, .side-out svg { width: 20px; height: 20px; }
.side-nav a:hover { background: rgba(243, 236, 224, .06); color: var(--paper); }
.side-nav a.is-active { background: var(--accent); color: #fff; }
.side-out { margin-top: auto; }
.side-out button { width: 100%; background: none; border: 0; cursor: pointer; }
.side-out button:hover { color: var(--paper); }
.tabbar { display: none; }

.dash-main { padding: 32px clamp(16px, 3.5vw, 48px) 64px; min-width: 0; }
.dash-head { margin-bottom: 26px; }
.dash-head h1 { font: 800 clamp(24px, 3vw, 34px)/1.2 var(--f-display); margin: 0; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.panel-head h2 { font: 700 18px/1.3 var(--f-display); margin: 0; }
.stack { display: grid; gap: 18px; align-content: start; }
.dash-cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.empty { color: var(--muted); text-align: center; padding: 24px 12px; margin: 0; }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.tile { padding: 18px 20px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 4px; }
.tile:first-child { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tile-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.tile:first-child .tile-label, .tile:first-child small { color: var(--on-ink-3); }
.tile-val { font: 700 34px/1.1 var(--f-mono); font-variant-numeric: tabular-nums; }
.tile small { font-size: 13px; color: var(--muted); }

.activity { list-style: none; padding: 0; margin: 0; }
.activity li { display: grid; grid-template-columns: auto 1fr auto auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.activity li:last-child { border-bottom: 0; }
.activity b { display: block; font-size: 15px; }
.activity small { color: var(--muted); font-size: 13px; }
.activity time { color: var(--muted); font-size: 12.5px; min-width: 64px; text-align: end; }
.act-dot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); }
.act-dot svg { width: 16px; height: 16px; }
.act-redeem { background: var(--ok-soft); color: var(--ok); }
.act-welcome { background: var(--accent-soft); color: var(--accent-2); }
.act-pts { font: 600 14px/1 var(--f-mono); color: var(--ok); }
.act-pts.neg { color: var(--ink-2); }
.activity.compact li { grid-template-columns: auto 1fr auto; padding: 9px 0; }
.activity.compact .act-dot { width: 28px; height: 28px; }

.panel-qr { text-align: center; display: grid; gap: 14px; }
.qr-mini { width: 160px; margin-inline: auto; padding: 10px; background: #fff; border-radius: 14px; border: 1px solid var(--line); }
.copy-row { display: flex; gap: 8px; }
.copy-row input { min-height: 40px; padding: 8px 12px; font-size: 13px; font-family: var(--f-mono); }
.top-list { margin: 0; padding: 0; list-style: none; counter-reset: top; }
.top-list li { counter-increment: top; }
.top-list a { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 8px; padding: 10px 0; text-decoration: none; border-bottom: 1px dashed var(--line); }
.top-list li:last-child a { border: 0; }
.top-list a::before { content: counter(top); font: 600 13px/1 var(--f-mono); color: var(--accent); }
.top-list span { font-size: 13px; color: var(--muted); }
.notice { margin-top: 18px; padding: 16px 20px; border-radius: var(--r); background: var(--accent-soft); color: #6E2A0E; line-height: 1.7; }
.notice b { display: block; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar > p { margin: 0; }
.search { position: relative; flex: 1; min-width: 220px; max-width: 420px; }
.search svg { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.search input { padding-inline-start: 42px; min-height: 46px; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.table { width: 100%; border-collapse: collapse; min-width: 720px; }
.table th { text-align: start; font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--paper); white-space: nowrap; }
.table td { padding: 12px 16px; border-bottom: 1px dashed var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: color-mix(in srgb, var(--paper) 60%, transparent); }
.dob { display: block; font-size: 12px; color: var(--muted); }
.pill { display: inline-block; min-width: 32px; padding: 3px 10px; border-radius: 99px; background: var(--paper-2); font: 600 13px/1.4 var(--f-mono); text-align: center; }
.pill-ready { background: var(--ok-soft); color: var(--ok); }

/* scan */
.scan-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.scan-cam { display: grid; gap: 14px; }
.reader { position: relative; aspect-ratio: 1; border-radius: var(--r); overflow: hidden; background: var(--ink); color: var(--paper); }
.reader video { object-fit: cover; }
.reader-idle { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; color: var(--on-ink-3); cursor: pointer; }
.reader-idle svg { width: 64px; height: 64px; }
.reader-idle p { margin: 0; }
.scan-actions { display: flex; gap: 10px; }
.scan-actions .btn { flex: 1; }
.lookup-results { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.lookup-results button { width: 100%; display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); cursor: pointer; text-align: start; }
.lookup-results button:hover { border-color: var(--ink); }
.lookup-results small { color: var(--muted); font-family: var(--f-mono); }
.scan-result { display: grid; gap: 16px; animation: rise .4s var(--ease); }
.scan-result[hidden], .scan-empty[hidden] { display: none; }
.res-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.res-head h2 { font: 800 24px/1.25 var(--f-display); margin: 0; }
.res-head small { color: var(--muted); }
.res-balance { padding: 20px; border-radius: var(--r); background: var(--ink); color: var(--paper); text-align: center; display: grid; gap: 6px; }
.res-balance > span { font-size: 13px; color: var(--on-ink-3); font-weight: 600; }
.res-balance b { font: 700 56px/1 var(--f-mono); }
.res-balance b.bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.25); color: var(--accent); } }
.res-bar { height: 8px; border-radius: 99px; background: rgba(243, 236, 224, .15); overflow: hidden; margin-top: 6px; }
.res-bar i { display: block; height: 100%; background: var(--accent); border-radius: inherit; transition: width .6s var(--ease); }
.res-balance small { color: var(--on-ink); }
.earn { display: grid; gap: 12px; }
.earn-label { font-weight: 600; font-size: 14px; color: var(--ink-2); }
.stepper { display: grid; grid-template-columns: 56px 1fr 56px; align-items: center; border: 1.5px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.stepper button { height: 56px; border: 0; background: var(--paper); cursor: pointer; display: grid; place-items: center; }
.stepper button:hover { background: var(--paper-2); }
.stepper svg { width: 20px; height: 20px; }
.stepper output { text-align: center; font: 700 28px/1 var(--f-mono); }
.res-sub { font: 700 15px/1 var(--f-display); margin: 6px 0 0; }
.scan-empty { text-align: center; display: grid; justify-items: center; gap: 6px; padding: 48px 24px; }
.scan-empty h2 { font: 700 20px/1.3 var(--f-display); margin: 12px 0 0; }
.scan-empty p { margin: 0; }
.ghost-card { width: 120px; height: 120px; display: grid; place-items: center; border: 2px dashed var(--line-2); border-radius: 24px; color: var(--line-2); }
.ghost-card svg { width: 56px; height: 56px; }

/* notify */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 14px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--paper); cursor: pointer; font-size: 14px; text-align: start; }
.chip:hover { border-color: var(--ink); }
.phone-preview { display: grid; gap: 12px; }
.lockscreen { position: relative; padding: 28px 14px 36px; border-radius: 22px; background: linear-gradient(160deg, #6B4A36, #2A1C15 70%); color: #fff; overflow: hidden; }
.ls-time { display: block; text-align: center; font: 300 56px/1 -apple-system, 'Segoe UI', sans-serif; margin-bottom: 22px; letter-spacing: -.02em; direction: ltr; }
.lockscreen .lock-notif { position: static; width: 100%; }
.history { list-style: none; padding: 0; margin: 0; }
.history li { padding: 12px 0; border-bottom: 1px dashed var(--line); }
.history li:last-child { border: 0; }
.history p { margin: 0 0 2px; }
.history small { color: var(--muted); font-size: 12.5px; }

/* settings */
.settings-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.settings-grid .form { gap: 18px; }
.settings-grid .panel { display: grid; gap: 16px; }
.settings-grid .panel-head { margin-bottom: 0; }
.preview-col { position: sticky; top: 24px; display: grid; gap: 14px; justify-items: center; }
.preview-col .eyebrow { margin: 0; }
.logo-up { display: flex; gap: 16px; align-items: center; }
.logo-up .hint { margin: 6px 0 0; }
.logo-drop { width: 84px; height: 84px; border-radius: 20px; border: 2px dashed var(--line-2); display: grid; place-items: center; overflow: hidden; background: var(--paper); flex: none; }
.logo-prev { width: 100%; height: 100%; object-fit: contain; }
.logo-prev.logo-fallback { --c-ac: var(--accent); --c-bg: #fff; font-size: 32px; }
.swatches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.swatch { position: relative; display: grid; gap: 2px; padding: 10px 12px 10px 54px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; background: #fff; padding-inline: 54px 12px; }
.swatch input { position: absolute; inset-inline-start: 10px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 0; padding: 0; border-radius: 50%; overflow: hidden; cursor: pointer; background: none; }
.swatch input::-webkit-color-swatch-wrapper { padding: 0; }
.swatch input::-webkit-color-swatch { border: 1px solid rgba(0, 0, 0, .15); border-radius: 50%; }
.swatch input::-moz-color-swatch { border: 1px solid rgba(0, 0, 0, .15); border-radius: 50%; }
.swatch span { font-size: 13px; font-weight: 600; }
.swatch code { background: none; padding: 0; font-size: 12px; color: var(--muted); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; background: var(--paper); border-radius: 14px; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border-radius: 10px; cursor: pointer; font-weight: 600; transition: background .2s, box-shadow .2s; }
.seg span svg { width: 20px; height: 20px; }
.seg input:checked + span { background: #fff; box-shadow: var(--shadow); }
.seg input:focus-visible + span { outline: 2.5px solid var(--accent); }
.save-bar { position: sticky; bottom: 16px; display: flex; justify-content: flex-start; }
.save-bar .btn { box-shadow: var(--shadow-lg); }

/* QR poster */
.poster {
  width: min(520px, 100%); margin-inline: auto; padding: 40px 36px;
  border-radius: 28px; background: var(--c-bg); color: var(--c-fg);
  text-align: center; display: grid; gap: 18px; justify-items: center;
  box-shadow: var(--shadow-lg);
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.poster header { display: grid; justify-items: center; gap: 10px; }
.poster-logo { width: 72px; height: 72px; border-radius: 18px; object-fit: contain; }
.poster-logo.logo-fallback { font-size: 32px; }
.poster h2 { font: 800 26px/1.2 var(--f-display); margin: 0; }
.poster-big { font: 900 40px/1.1 var(--f-display); margin: 6px 0; color: var(--c-ac); }
.poster-big span { margin: 0 .25em; opacity: .5; }
.poster-qr { width: 260px; padding: 18px; background: #fff; border-radius: 22px; }
.poster-offer { font-size: 18px; margin: 0; }
.poster-offer b { color: var(--c-ac); }
.poster footer { font-size: 13px; opacity: .75; line-height: 1.8; }

.center-msg { min-height: 100svh; display: grid; place-content: center; justify-items: center; gap: 12px; text-align: center; padding: 24px; }

/* ═══ RESPONSIVE ══════════════════════════════════════════ */
@media (max-width: 1080px) {
  .settings-grid { grid-template-columns: 1fr; }
  .preview-col { position: static; order: -1; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stage { min-height: 480px; }
  .tickets, .feats, .plans { grid-template-columns: 1fr; }
  .plan-hot { transform: none; }
  .nav-links { display: none; }
  .dash-cols, .scan-grid { grid-template-columns: 1fr; }
  .auth-grid { grid-template-columns: 1fr; }
  .auth-art { display: none; }
}
@media (max-width: 820px) {
  .dash-grid { grid-template-columns: 1fr; }
  .side { display: none; }
  .dash-main { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
  .tabbar {
    display: grid; grid-template-columns: repeat(6, 1fr);
    position: fixed; inset-inline: 0; bottom: 0; z-index: 60;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    background: var(--ink); color: var(--on-ink-3);
  }
  .tabbar a { display: grid; justify-items: center; gap: 2px; padding: 6px 0; text-decoration: none; font-size: 10.5px; font-weight: 600; border-radius: 10px; }
  .tabbar a svg { width: 22px; height: 22px; }
  .tabbar a.is-active { color: var(--accent); }
  .scan-grid .scan-empty { display: none; }
  .toast { bottom: calc(90px + env(safe-area-inset-bottom)); }
}
@media (max-width: 560px) {
  .hero-stats { grid-template-columns: 1fr; gap: 14px; }
  .nav-cta .link { display: none; }
  .field-row, .swatches { grid-template-columns: 1fr; }
  .lock-notif { inset-inline-end: 0; }
  .stamp-pop { inset-inline-start: 0; }
  .activity li { grid-template-columns: auto 1fr auto; }
  .activity time { display: none; }
  .poster { padding: 28px 18px; }
  .poster-big { font-size: 30px; }
  .poster-qr { width: 220px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media print {
  body { background: #fff; }
  body::before, .side, .tabbar, .no-print, .dash-head, .toast { display: none !important; }
  .dash-grid { display: block; }
  .dash-main { padding: 0; }
  .poster { box-shadow: none; margin-top: 10mm; }
}
