/* Wasel landing page
   Layout: one 1160px column. Full-bleed bands alternate deep Saudi green and paper,
   with Sadu-weave strips as seams. The phone and the thermal receipts carry the subject. */
:root {
  color-scheme: light;
  --green: #00563B;
  --green-deep: #003A28;
  --green-ink: #0B2A1E;
  --night: #06140E;
  --saffron: #F2B233;
  --saffron-hi: #F7C557;
  --mist: #EEF3EF;
  --paper: #FFFFFF;
  --receipt: #FBFBF6;
  --line: #D6E0D9;
  --muted: #557063;
  --signal: #22C27A;
  --alarm: #D93A2B;
  --gsod: #0A7A4F;

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

  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}

/* ------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--mist);
  color: var(--green-ink);
  font: 400 17px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: opacity .2s;
}
html[lang="ar"] body { line-height: 1.8; }
.i18n-pending body { opacity: 0; }
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--green-deep);
}
body.in-app { overflow: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { text-wrap: balance; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100; background: var(--saffron); color: var(--green-ink); padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 12px; }

.wrap {
  max-width: calc(1160px + 32px);
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 16px; line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled { cursor: progress; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn-gold { background: var(--saffron); color: var(--green-ink); box-shadow: 0 12px 30px -12px rgba(242, 178, 51, .7); }
.btn-gold:hover { background: var(--saffron-hi); }
.btn-line { border-color: rgba(255, 255, 255, .32); color: #fff; background: transparent; }
.btn-line:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .5); }
.btn-ink { background: var(--green-ink); color: #fff; }
.btn-ink:hover { background: #12392A; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: #046A49; }
.btn-white { background: #fff; color: var(--gsod); }
.arr { transition: transform .2s; }
.btn:hover .arr { transform: translateX(3px); }
[dir="rtl"] .arr { transform: scaleX(-1); }
[dir="rtl"] .btn:hover .arr { transform: scaleX(-1) translateX(3px); }
.linklike { background: none; border: 0; padding: 0; text-align: start; }
.linklike:hover { color: #fff; text-decoration: underline; }

/* ------------------------------------------------------------ announce + nav */
.announce { background: var(--saffron); color: var(--green-ink); font-size: 14px; font-weight: 600; text-align: center; padding-block: 8px; line-height: 1.4; }

.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(0, 58, 40, .92); color: #fff;
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.nav .wrap { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.brand .mark { width: 34px; height: 34px; }
.brand-en { font-family: var(--f-display); font-weight: 800; font-size: 23px; letter-spacing: -.03em; line-height: 1; }
.brand-ar { font-family: var(--f-display); font-weight: 700; font-size: 18px; color: var(--saffron); line-height: 1; padding-inline-start: 10px; border-inline-start: 1px solid rgba(255, 255, 255, .2); }
.nav-links { display: flex; gap: 2px; margin-inline-start: auto; }
.nav-links a { padding: 8px 12px; border-radius: 8px; text-decoration: none; font-size: 15px; color: rgba(255, 255, 255, .78); }
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.nav-actions { display: flex; align-items: center; gap: 6px; }
.lang-btn {
  background: transparent; border: 1px solid rgba(255, 255, 255, .25); color: #fff;
  border-radius: 999px; min-height: 36px; padding: 0 14px; font-size: 14px; font-weight: 600;
}
.lang-btn:hover { background: rgba(255, 255, 255, .1); }
.nav-login { background: none; border: 0; color: rgba(255, 255, 255, .85); font-size: 15px; font-weight: 600; padding: 8px 10px; border-radius: 8px; }
.nav-login:hover { color: #fff; background: rgba(255, 255, 255, .08); }
@media (max-width: 920px) {
  .nav-links { display: none; }
  .nav-actions { margin-inline-start: auto; }
}
@media (max-width: 520px) {
  .nav-login { display: none; }
  .brand-ar { display: none; }
  .nav .wrap { gap: 10px; }
}

/* ------------------------------------------------------------ hero */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 520px at 85% 10%, rgba(34, 194, 122, .18), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(242, 178, 51, .10), transparent 60%),
    var(--green-deep);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%);
}
.hero-grid {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 40px; align-items: center; padding-block: 64px 88px;
}
.hero-copy { min-width: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid rgba(242, 178, 51, .45); color: var(--saffron);
  font: 600 12.5px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase;
}
html[lang="ar"] .eyebrow { font: 600 14px/1.2 var(--f-body); letter-spacing: 0; }
.hero h1 {
  font-family: var(--f-display); font-weight: 800; font-size: clamp(42px, 6.4vw, 80px);
  line-height: 1; letter-spacing: -.04em; margin: 22px 0 0;
}
html[lang="ar"] .hero h1 { line-height: 1.3; letter-spacing: 0; font-size: clamp(38px, 5.6vw, 70px); }
.hero h1 em { font-style: normal; color: var(--saffron); }
.hero-kick {
  font-family: var(--f-display); font-weight: 500; font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: -.02em; line-height: 1.25; margin: 14px 0 0; color: rgba(255, 255, 255, .92);
}
html[lang="ar"] .hero-kick { letter-spacing: 0; line-height: 1.5; }
.hero-kick s { text-decoration-color: var(--alarm); text-decoration-thickness: .12em; color: rgba(255, 255, 255, .6); }
.hero-sub { font-size: 18.5px; color: rgba(255, 255, 255, .76); max-width: 56ch; margin: 22px 0 0; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-fine { font-size: 14px; color: rgba(255, 255, 255, .55); margin: 14px 0 0; max-width: 56ch; }
.hero-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
  margin: 40px 0 0; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .14);
}
.hero-stats div { min-width: 0; }
.hero-stats dt { font-family: var(--f-display); font-weight: 700; font-size: 26px; letter-spacing: -.02em; line-height: 1.1; color: #fff; }
.hero-stats dd { margin: 4px 0 0; font-size: 13.5px; line-height: 1.35; color: rgba(255, 255, 255, .6); }
html[lang="ar"] .hero-stats dt { letter-spacing: 0; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); padding-block: 44px 56px; gap: 24px; }
}
@media (max-width: 560px) {
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; }
  .hero-ctas .btn { flex: 1 1 100%; }
}

/* phone mockup (shared by hero) */
.hero-visual { position: relative; display: grid; place-items: center; min-height: 640px; direction: ltr; }
.phone {
  position: relative; z-index: 2; width: 292px; height: 596px; padding: 12px;
  border-radius: 50px; background: #0A0F0D;
  box-shadow: inset 0 0 0 2px #2B3D35, 0 0 0 1px rgba(255, 255, 255, .06), 0 50px 90px -30px rgba(0, 0, 0, .75);
}
.island { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 98px; height: 28px; border-radius: 20px; background: #000; z-index: 6; }
.ps {
  position: relative; height: 100%; border-radius: 39px; overflow: hidden;
  background: var(--paper); color: var(--green-ink);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 58px 22px 30px;
}
[dir="rtl"] .ps { direction: rtl; }
.ps-head { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.ps-live { display: inline-flex; align-items: center; gap: 6px; color: var(--green); background: #E3F5EC; padding: 3px 10px; border-radius: 999px; font-size: 12px; }
.ps-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); }
.ps-label { margin-top: 40px; font-size: 13px; color: var(--muted); }
.ps-amount { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin-top: 2px; direction: ltr; }
[dir="rtl"] .ps-amount { flex-direction: row-reverse; }
.ps-num { font-family: var(--f-display); font-weight: 800; font-size: 46px; letter-spacing: -.035em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ps-cur { font-size: 17px; font-weight: 600; color: var(--muted); }
.ps-vat { font-size: 12px; color: var(--muted); }
.ps-tap { position: relative; margin-top: auto; width: 156px; height: 156px; display: grid; place-items: center; }
.ps-tap svg { position: relative; z-index: 1; width: 58px; height: 58px; color: var(--green); }
.ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--green); opacity: 0; animation: ring 1.8s ease-out infinite; }
.ring.r2 { animation-delay: .6s; }
.ring.r3 { animation-delay: 1.2s; }
@keyframes ring { 0% { transform: scale(.35); opacity: .9; } 100% { transform: scale(1); opacity: 0; } }
.ps-hint { margin-top: 14px; font-size: 14px; font-weight: 600; }
.ps-done {
  position: absolute; inset: 0; z-index: 4; background: var(--green); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  opacity: 0; animation: psDone 6s infinite;
}
@keyframes psDone { 0%, 47% { opacity: 0; } 51%, 88% { opacity: 1; } 94%, 100% { opacity: 0; } }
.ps-check { width: 88px; height: 88px; border-radius: 50%; background: var(--signal); display: grid; place-items: center; animation: pop 6s infinite; box-shadow: 0 0 0 10px rgba(34, 194, 122, .25); }
@keyframes pop { 0%, 48% { transform: scale(.4); } 55% { transform: scale(1.12); } 60%, 100% { transform: scale(1); } }
.ps-done-title { font-family: var(--f-display); font-size: 30px; font-weight: 800; margin-top: 16px; }
.ps-done-meta { font: 500 13px var(--f-mono); opacity: .8; }

.tapcard {
  position: absolute; z-index: 5; top: 46px; left: 50%; margin-left: -10px;
  width: 232px; height: 146px; border-radius: 16px; padding: 18px 20px;
  background: linear-gradient(135deg, #F6C35A 0%, #E59A2A 55%, #C97A17 100%); color: #3B2604;
  box-shadow: 0 30px 50px -18px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .4);
  display: flex; flex-direction: column; justify-content: space-between;
  animation: tapcard 6s infinite cubic-bezier(.3, .7, .3, 1);
}
@keyframes tapcard {
  0% { transform: translate(170px, 280px) rotate(24deg); opacity: 0; }
  12% { opacity: 1; }
  28%, 46% { transform: translate(-20px, -34px) rotate(-8deg); opacity: 1; }
  62%, 100% { transform: translate(180px, 320px) rotate(28deg); opacity: 0; }
}
.tc-row { display: flex; justify-content: space-between; align-items: center; }
.tc-chip { width: 38px; height: 28px; border-radius: 6px; background: linear-gradient(135deg, #FBE7B0, #D7B062); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.tc-num { font: 600 15px var(--f-mono); letter-spacing: .06em; }
.tc-name { font: 600 11px var(--f-mono); letter-spacing: .16em; opacity: .75; }

.chip {
  position: absolute; z-index: 6; display: flex; align-items: center; gap: 10px;
  background: #fff; color: var(--green-ink); border-radius: 14px; padding: 10px 14px;
  font-size: 13px; line-height: 1.35; white-space: nowrap;
  box-shadow: 0 20px 40px -14px rgba(0, 0, 0, .5);
}
[dir="rtl"] .chip { direction: rtl; }
.chip b { display: block; font-size: 15px; color: var(--green); }
.chip-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 4px rgba(34, 194, 122, .2); flex: none; }
.chip-ic { width: 24px; height: 24px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; flex: none; }
.chip-qr {
  width: 24px; height: 24px; flex: none; border-radius: 4px;
  background:
    conic-gradient(var(--green-ink) 25%, transparent 0 50%, var(--green-ink) 0 75%, transparent 0) 0 0 / 8px 8px,
    #fff;
  box-shadow: 0 0 0 2px var(--green-ink);
}
.chip-a { left: 0; bottom: 132px; animation: chipIn 6s infinite; }
.chip-b { right: 0; bottom: 64px; animation: chipIn 6s infinite; animation-delay: .25s; }
.chip-c { left: -6px; top: 250px; animation: float 5s ease-in-out infinite; }
@keyframes chipIn { 0%, 50% { opacity: 0; transform: translateY(12px); } 56%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: translateY(-6px); } }
@keyframes float { 50% { transform: translateY(-8px); } }

@media (max-width: 1100px) and (min-width: 981px) {
  .chip-a { left: -10px; }
  .chip-c { display: none; }
}
@media (max-width: 560px) {
  .hero-visual { min-height: 560px; }
  .phone { width: 262px; height: 536px; border-radius: 46px; }
  .ps { border-radius: 35px; padding-inline: 18px; }
  .tapcard { width: 200px; height: 126px; padding: 14px 16px; }
  .chip { font-size: 12px; padding: 8px 12px; }
  .chip b { font-size: 14px; }
  .chip-a { left: -4px; bottom: 120px; }
  .chip-b { right: -4px; bottom: 48px; }
  .chip-c { display: none; }
}

/* ------------------------------------------------------------ sadu seam */
.sadu {
  height: 22px; background-color: var(--green-deep); background-repeat: repeat-x; background-size: 44px 22px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='22'%3E%3Crect width='44' height='22' fill='%23003A28'/%3E%3Cpath d='M0 11 11 0 22 11 11 22z' fill='%23F2B233'/%3E%3Cpath d='M5.5 11 11 5.5 16.5 11 11 16.5z' fill='%23003A28'/%3E%3Cpath d='M8.5 11 11 8.5 13.5 11 11 13.5z' fill='%23D93A2B'/%3E%3Cpath d='M22 0h22L33 11z' fill='%23D93A2B'/%3E%3Cpath d='M22 22h22L33 11z' fill='%23F3EBDD'/%3E%3C/svg%3E");
}

/* ------------------------------------------------------------ trust marquee */
.trust { background: var(--paper); padding-block: 30px 34px; border-bottom: 1px solid var(--line); }
.trust p { text-align: center; font-size: 14px; color: var(--muted); margin: 0 0 18px; padding-inline: 16px; }
.marquee { direction: ltr; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.marquee ul { display: flex; gap: 52px; padding: 0 26px; margin: 0; list-style: none; }
.marquee li { display: flex; align-items: center; gap: 14px; white-space: nowrap; font-family: var(--f-display); font-weight: 700; font-size: 21px; letter-spacing: -.02em; color: #5D7A6C; }
.marquee li::before { content: ""; width: 9px; height: 9px; background: var(--saffron); transform: rotate(45deg); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ------------------------------------------------------------ sections */
.band { padding-block: clamp(64px, 9vw, 112px); }
.band-paper { background: var(--paper); }
.sec-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.kicker { font: 600 12.5px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--green); }
html[lang="ar"] .kicker { font: 700 14px/1.2 var(--f-body); letter-spacing: 0; }
.sec-head h2 {
  font-family: var(--f-display); font-weight: 800; font-size: clamp(31px, 4.4vw, 52px);
  line-height: 1.06; letter-spacing: -.035em; margin: 14px 0 0;
}
html[lang="ar"] .sec-head h2, html[lang="ar"] .final h2 { line-height: 1.4; letter-spacing: 0; }
.sec-head p { font-size: 19px; color: var(--muted); margin: 14px 0 0; max-width: 60ch; }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.step { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 28px 26px 30px; }
.step-n { font: 600 14px var(--f-mono); color: var(--green); display: inline-flex; align-items: center; gap: 10px; }
.step-n::after { content: ""; width: 36px; height: 2px; background: var(--saffron); }
.step h3 { font-family: var(--f-display); font-weight: 700; font-size: 24px; letter-spacing: -.02em; line-height: 1.2; margin: 18px 0 8px; }
html[lang="ar"] .step h3 { letter-spacing: 0; line-height: 1.5; }
.step p { margin: 0; color: var(--muted); }
@media (max-width: 860px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* features */
.feats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 32px; }
.feat { min-width: 0; }
.feat-ic { width: 50px; height: 50px; border-radius: 15px; background: var(--mist); color: var(--green); display: grid; place-items: center; }
.feat-ic svg { width: 24px; height: 24px; }
.feat h3 { font-size: 18px; font-weight: 700; line-height: 1.35; margin: 18px 0 6px; }
.feat p { margin: 0; color: var(--muted); font-size: 16px; }
@media (max-width: 1000px) { .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .feats { grid-template-columns: minmax(0, 1fr); gap: 32px; } }

/* comparison */
.vs-wrap { background: var(--paper); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.vs { width: 100%; border-collapse: collapse; }
.vs th, .vs td { padding: 18px 24px; text-align: start; vertical-align: top; border-top: 1px solid var(--line); }
.vs thead th { border-top: 0; font-family: var(--f-display); font-size: 18px; font-weight: 700; padding-block: 22px; }
.vs thead th.us { color: var(--green); background: #EAF6EF; }
.vs thead th.them { color: var(--muted); }
.vs tbody th { font-weight: 600; width: 28%; }
.vs td.us { background: #F5FBF7; font-weight: 600; color: var(--green); }
.vs td.them { color: var(--muted); }
.vs td.them span:last-child { text-decoration: line-through; text-decoration-color: rgba(217, 58, 43, .55); text-decoration-thickness: 1.5px; }
.vs-tag { display: none; }
@media (max-width: 680px) {
  .vs thead { display: none; }
  .vs tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-top: 1px solid var(--line); }
  .vs tbody tr:first-child { border-top: 0; }
  .vs th, .vs td { border-top: 0; padding: 14px 16px; }
  .vs tbody th { grid-column: 1 / -1; width: auto; padding-bottom: 0; font-size: 16px; }
  .vs td { font-size: 15px; }
  .vs td.us { background: transparent; }
  .vs-tag { display: block; font: 600 11px/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; text-decoration: none !important; }
  html[lang="ar"] .vs-tag { font: 600 12px/1.4 var(--f-body); letter-spacing: 0; }
}

/* pricing as thermal receipts */
.pricing { background: var(--green-deep); color: #fff; }
.pricing .kicker { color: var(--saffron); }
.pricing .sec-head p { color: rgba(255, 255, 255, .7); }
.receipts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; align-items: start; }
.receipt {
  position: relative; background: var(--receipt); color: #1D2A24; font-family: var(--f-mono);
  padding: 30px 26px 30px; margin-bottom: 12px;
  filter: drop-shadow(0 26px 34px rgba(0, 0, 0, .35));
}
.receipt::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 10px;
  background:
    linear-gradient(45deg, transparent 33.333%, var(--receipt) 33.333%, var(--receipt) 66.667%, transparent 66.667%),
    linear-gradient(-45deg, transparent 33.333%, var(--receipt) 33.333%, var(--receipt) 66.667%, transparent 66.667%);
  background-size: 20px 40px; background-position: 0 -20px;
}
html[lang="ar"] .receipt * { letter-spacing: 0 !important; }
.receipt.popular { transform: translateY(-14px); }
.r-head { text-align: center; padding-bottom: 18px; border-bottom: 2px dashed #C9D1C9; }
.r-store { font-size: 12px; font-weight: 600; letter-spacing: .28em; color: #6B776F; }
.r-plan { font-family: var(--f-display); font-weight: 800; font-size: 32px; letter-spacing: -.02em; line-height: 1.2; margin: 10px 0 0; color: var(--green-ink); }
.r-desc { font-size: 13px; color: #6B776F; margin: 4px 0 0; font-family: var(--f-body); }
.r-price { display: flex; align-items: baseline; justify-content: center; gap: 8px; padding-block: 20px; border-bottom: 2px dashed #C9D1C9; min-height: 98px; }
.r-amt { font-family: var(--f-display); font-weight: 800; font-size: 56px; line-height: 1; letter-spacing: -.04em; color: var(--green-ink); }
.r-amt-text { font-size: 38px; align-self: center; letter-spacing: -.02em; }
.r-per { font-size: 13px; color: #6B776F; }
.r-lines { list-style: none; margin: 0; padding: 18px 0; display: grid; gap: 10px; font-size: 14px; }
.r-lines li { display: flex; align-items: baseline; gap: 8px; }
.r-lines li i { flex: 1; min-width: 12px; border-bottom: 2px dotted #BFC8BF; transform: translateY(-4px); }
.r-lines b { font-weight: 600; white-space: nowrap; }
.r-total { display: flex; justify-content: space-between; padding-top: 14px; border-top: 2px dashed #C9D1C9; font-weight: 600; font-size: 15px; }
.r-cta { width: 100%; margin-top: 22px; white-space: normal; text-align: center; }
.r-barcode {
  height: 46px; margin-top: 22px;
  background: repeating-linear-gradient(90deg, #1D2A24 0 2px, transparent 2px 4px, #1D2A24 4px 5px, transparent 5px 8px, #1D2A24 8px 11px, transparent 11px 12px, #1D2A24 12px 13px, transparent 13px 16px);
}
.r-thanks { text-align: center; font-size: 12px; letter-spacing: .2em; margin: 10px 0 0; color: #6B776F; }
.r-stamp {
  position: absolute; top: 20px; inset-inline-end: -12px; z-index: 1; transform: rotate(9deg);
  border: 2px solid var(--alarm); color: var(--alarm); background: var(--receipt);
  font: 700 11px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; padding: 6px 9px; border-radius: 6px;
}
html[lang="ar"] .r-stamp { font: 700 13px/1 var(--f-body); }
.price-fine { margin: 36px 0 0; font-size: 14px; color: rgba(255, 255, 255, .6); text-align: center; }
@media (max-width: 960px) {
  .receipts { grid-template-columns: minmax(0, 1fr); max-width: 440px; margin-inline: auto; gap: 40px; }
  .receipt.popular { transform: none; }
}

/* quotes */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; }
.quote { margin: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding-top: 24px; border-top: 3px solid var(--green-ink); }
.quote blockquote { margin: 0; font-family: var(--f-display); font-weight: 500; font-size: 22px; line-height: 1.4; letter-spacing: -.015em; }
html[lang="ar"] .quote blockquote { letter-spacing: 0; line-height: 1.7; font-size: 21px; }
.quote blockquote::before { content: "“"; display: block; font-size: 56px; line-height: .8; color: var(--saffron); margin-bottom: 6px; }
html[lang="ar"] .quote blockquote::before { content: "”"; }
.quote figcaption { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); line-height: 1.4; }
.quote figcaption b { display: block; color: var(--green-ink); font-size: 15px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--mist); color: var(--green); display: grid; place-items: center; font-family: var(--f-display); font-weight: 700; font-size: 18px; flex: none; }
@media (max-width: 900px) { .quotes { grid-template-columns: minmax(0, 1fr); gap: 32px; } }

/* faq */
.faq-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: 48px; align-items: start; }
.faq-grid .sec-head { margin-bottom: 0; position: sticky; top: 100px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font-weight: 600; font-size: 18.5px; line-height: 1.4; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font: 400 30px/1 var(--f-display); color: var(--green); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--green); }
.faq details p { margin: 0 0 24px; color: var(--muted); max-width: 64ch; }
@media (max-width: 860px) {
  .faq-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .faq-grid .sec-head { position: static; }
}

/* final cta */
.final .panel {
  position: relative; overflow: hidden; border-radius: 30px; background: var(--green); color: #fff;
  padding: clamp(48px, 6vw, 76px) clamp(24px, 5vw, 64px) clamp(40px, 5vw, 64px);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center;
}
.final .panel::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 18px; background-size: 36px 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='22'%3E%3Crect width='44' height='22' fill='%23003A28'/%3E%3Cpath d='M0 11 11 0 22 11 11 22z' fill='%23F2B233'/%3E%3Cpath d='M5.5 11 11 5.5 16.5 11 11 16.5z' fill='%23003A28'/%3E%3Cpath d='M8.5 11 11 8.5 13.5 11 11 13.5z' fill='%23D93A2B'/%3E%3Cpath d='M22 0h22L33 11z' fill='%23D93A2B'/%3E%3Cpath d='M22 22h22L33 11z' fill='%23F3EBDD'/%3E%3C/svg%3E");
}
.final h2 { font-family: var(--f-display); font-weight: 800; font-size: clamp(30px, 4vw, 48px); line-height: 1.08; letter-spacing: -.035em; margin: 0; max-width: 20ch; }
.final p { margin: 14px 0 0; font-size: 18px; color: rgba(255, 255, 255, .78); max-width: 52ch; }
@media (max-width: 760px) {
  .final .panel { grid-template-columns: minmax(0, 1fr); }
  .final .panel .btn { width: 100%; }
}

/* footer */
.foot { background: var(--night); color: rgba(255, 255, 255, .68); padding-block: 60px calc(32px + env(safe-area-inset-bottom, 0px)); font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-tag { margin: 16px 0 4px; color: rgba(255, 255, 255, .85); }
.foot-cities { margin: 0; font-size: 14px; }
.foot h4 { margin: 0 0 14px; color: #fff; font-size: 14px; font-weight: 700; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot a { text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.disclaimer { margin: 18px 0 0; font-size: 13px; color: rgba(255, 255, 255, .45); max-width: 75ch; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-grid > div:first-child { grid-column: 1 / -1; } }

/* ------------------------------------------------------------ auth dialog */
dialog.auth {
  border: 0; padding: 0; border-radius: 26px; width: min(450px, calc(100vw - 32px)); max-height: calc(100dvh - 32px);
  background: var(--paper); color: var(--green-ink); overflow: auto;
  box-shadow: 0 50px 120px -30px rgba(0, 0, 0, .6);
}
dialog.auth::backdrop { background: rgba(3, 22, 15, .62); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
dialog.auth[open] { animation: dlgIn .25s ease-out; }
@keyframes dlgIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.auth-inner { position: relative; padding: 26px 26px 22px; }
.auth-inner.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.auth-close { position: absolute; top: 18px; inset-inline-end: 18px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--mist); color: var(--green-ink); display: grid; place-items: center; }
.auth-close:hover { background: #E1EAE4; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 13px; background: var(--mist); margin-inline-end: 50px; }
.auth-tab { border: 0; background: transparent; padding: 9px 8px; border-radius: 10px; font-weight: 600; font-size: 14.5px; color: var(--muted); }
.auth-tab[aria-selected="true"] { background: var(--paper); color: var(--green-ink); box-shadow: 0 1px 3px rgba(11, 42, 30, .12); }
.auth h2 { font-family: var(--f-display); font-weight: 800; font-size: 28px; letter-spacing: -.025em; line-height: 1.2; margin: 24px 0 4px; }
html[lang="ar"] .auth h2 { letter-spacing: 0; line-height: 1.5; }
.auth-sub { margin: 0; color: var(--muted); font-size: 15px; }
.auth[data-mode="signup"] .for-login, .auth[data-mode="login"] .for-signup { display: none; }
.auth-fields { display: grid; gap: 14px; margin-top: 22px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.field input {
  width: 100%; height: 50px; border: 1.5px solid var(--line); border-radius: 13px; padding: 0 14px;
  font: inherit; font-size: 16px; background: #fff; color: var(--green-ink); transition: border-color .15s, box-shadow .15s;
}
.field input::placeholder { color: #93A79C; }
.field input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(0, 86, 59, .12); }
.field.invalid input { border-color: var(--alarm); box-shadow: 0 0 0 4px rgba(217, 58, 43, .1); }
.field .err { font-size: 13px; color: var(--alarm); line-height: 1.4; }
.field .err:empty { display: none; }
.phone-in { display: flex; direction: ltr; }
.phone-in .cc { display: flex; align-items: center; padding: 0 12px; border: 1.5px solid var(--line); border-right: 0; border-radius: 13px 0 0 13px; background: var(--mist); font-weight: 600; font-size: 15px; white-space: nowrap; }
.phone-in input { border-radius: 0 13px 13px 0; letter-spacing: .04em; direction: ltr; text-align: left; }
.auth-submit { width: 100%; margin-top: 22px; position: relative; }
.auth-submit .busy-lbl { display: none; }
.auth-submit.is-busy .lbl { display: none !important; }
.auth-submit.is-busy .busy-lbl, .auth-submit.is-busy .spinner { display: inline-block; }
.spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: spin .7s linear infinite; }
.spinner-dark { display: inline-block; border-color: rgba(11, 42, 30, .2); border-top-color: var(--green); }
@keyframes spin { to { transform: rotate(360deg); } }
.auth-hint { margin: 14px 0 0; font-size: 13px; color: var(--muted); text-align: center; line-height: 1.5; }

/* ------------------------------------------------------------ the app */
.app {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(1100px 620px at 50% -10%, #0B5A3E, #02140D 62%);
}
.device {
  position: relative; width: 392px; height: min(820px, calc(100dvh - 40px)); padding: 12px;
  border-radius: 54px; background: #0A0F0D;
  box-shadow: inset 0 0 0 2px #2B3D35, 0 60px 120px -30px rgba(0, 0, 0, .85);
}
.screen {
  position: relative; height: 100%; overflow: hidden; border-radius: 43px;
  background: #F3F6F4; color: var(--green-ink);
  display: flex; flex-direction: column; gap: 12px; padding: 56px 16px 12px;
}
.screen > .island { top: 10px; }
@media (max-width: 520px) {
  .app { display: block; }
  .device { width: 100%; height: 100%; padding: 0; border-radius: 0; box-shadow: none; }
  .screen { border-radius: 0; padding: calc(14px + env(safe-area-inset-top, 0px)) max(14px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(14px, env(safe-area-inset-left, 0px)); }
  .screen > .island { display: none; }
}

.app-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.app-who { min-width: 0; }
.app-hello { font-size: 15px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-hello b { font-weight: 700; }
.app-shop { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-head-r { display: flex; align-items: center; gap: 8px; flex: none; }
.app-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--green); background: #E1F3E9; padding: 5px 10px; border-radius: 999px; }
.app-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); animation: blink 1.6s infinite; }
.app-status.bad { color: var(--alarm); background: #FBE5E2; }
.app-status.bad i { background: var(--alarm); animation-duration: .25s; }
@keyframes blink { 50% { opacity: .35; } }
.icon-btn { width: 34px; height: 34px; border-radius: 50%; border: 0; background: #E4EBE7; color: var(--green-ink); display: grid; place-items: center; }
[dir="rtl"] .icon-btn svg { transform: scaleX(-1); }

.sales { background: var(--green); color: #fff; border-radius: 20px; padding: 14px 16px; }
.sales-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; color: rgba(255, 255, 255, .8); }
.sales-chip { font-size: 11px; background: rgba(255, 255, 255, .14); padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.sales-val { font-family: var(--f-display); font-weight: 800; font-size: 30px; letter-spacing: -.02em; line-height: 1.25; font-variant-numeric: tabular-nums; margin-top: 2px; white-space: nowrap; overflow: hidden; }
.sales-val small { font-size: 14px; font-weight: 600; opacity: .75; letter-spacing: 0; }
.sales-meta { font-size: 12.5px; color: rgba(255, 255, 255, .7); }

/* catalog + cart */
.catalog-head { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; font-weight: 600; color: var(--muted); padding-inline: 2px; }
.cart-count { min-width: 24px; height: 24px; border-radius: 12px; padding: 0 7px; display: grid; place-items: center; background: #DCE5E0; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; transition: background-color .2s, color .2s; }
.cart-count.on { background: var(--saffron); color: var(--green-ink); }
.catalog { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); gap: 8px; }
.item {
  position: relative; border: 0; border-radius: 16px; background: #fff; color: var(--green-ink); min-height: 0;
  display: grid; place-items: center; align-content: center; gap: 1px; padding: 6px 4px; overflow: visible;
  box-shadow: 0 1px 0 rgba(11, 42, 30, .08); -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.item:active { background: #E6EEE9; }
.item-e { font-size: clamp(26px, 4.4dvh, 36px); line-height: 1.1; }
.item-n { font-size: 12.5px; font-weight: 600; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.item-p { font: 500 11.5px var(--f-mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.item-p.lying { color: var(--alarm); animation: shake .3s; }
.item-q { position: absolute; top: 6px; inset-inline-end: 6px; min-width: 20px; height: 20px; border-radius: 10px; padding: 0 5px; background: var(--green); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.item.boing { animation: boing .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes boing { 0% { transform: scale(1); } 30% { transform: scale(.86, .8); } 60% { transform: scale(1.1, 1.08) rotate(-3deg); } 100% { transform: scale(1); } }
.plus { position: absolute; top: 4px; left: 50%; font: 700 13px var(--f-mono); color: var(--green); pointer-events: none; animation: plusUp .9s ease-out forwards; white-space: nowrap; }
@keyframes plusUp { from { transform: translate(-50%, 0); opacity: 1; } to { transform: translate(-50%, -38px); opacity: 0; } }
.flyer { position: absolute; z-index: 8; font-size: 30px; line-height: 1; pointer-events: none; transform: translate(-50%, -50%); }
.catalog.shiver { animation: tear .25s steps(2) 2; }
.device.wobbly .item:nth-child(3n+1) { animation: wobble 1.3s ease-in-out infinite; }
.device.wobbly .item:nth-child(4n+2) .item-e { display: inline-block; animation: wobble .9s ease-in-out infinite reverse; }
.cart { display: flex; align-items: center; gap: 8px; min-height: 40px; background: #fff; border-radius: 14px; padding: 4px 4px 4px 12px; }
[dir="rtl"] .cart { padding: 4px 12px 4px 4px; }
.cart.nudge { animation: shake .4s; }
.cart-chips { flex: 1; min-width: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.cart-chips::-webkit-scrollbar { display: none; }
.cart-empty { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-chip { flex: none; font-size: 13px; font-weight: 600; background: var(--mist); border-radius: 999px; padding: 3px 9px; animation: dlgIn .25s ease-out; font-variant-numeric: tabular-nums; }
.cart-clear { flex: none; width: 32px; height: 32px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); display: grid; place-items: center; }
.cart-clear:hover { background: var(--mist); color: var(--alarm); }
.charge {
  position: relative; border: 0; border-radius: 18px; min-height: 56px; background: var(--green-ink); color: #fff;
  font-size: 17px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 6px;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation; transition: background-color .2s;
}
.charge:active { transform: scale(.98); }
.charge-amt { font-variant-numeric: tabular-nums; }
.charge.is-empty { background: #9FB1A8; }
.charge.gulp { animation: gulp .35s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes gulp { 40% { transform: scale(1.06, .9); } 70% { transform: scale(.97, 1.05); } }

/* goofy payment */
.tap-notes { position: absolute; top: 200px; left: 50%; width: 220px; margin-left: -110px; height: 40px; pointer-events: none; z-index: 3; }
.tap-notes span { position: absolute; bottom: 0; font-size: 22px; color: var(--saffron); opacity: 0; }
.tap-notes span:nth-child(1) { left: 0; }
.tap-notes span:nth-child(2) { left: 45%; }
.tap-notes span:nth-child(3) { right: 0; }
.tap.dance .tap-notes span { animation: note 1.2s ease-out infinite; }
.tap.dance .tap-notes span:nth-child(2) { animation-delay: .4s; }
.tap.dance .tap-notes span:nth-child(3) { animation-delay: .8s; }
@keyframes note { 0% { transform: translateY(0) rotate(0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(-60px) rotate(25deg); opacity: 0; } }
.tap.dance .tap-card { animation: tapCardIn 1.6s .2s cubic-bezier(.3, .7, .3, 1) forwards, cardDance .6s ease-in-out 1.8s infinite; }
@keyframes cardDance {
  0%, 100% { margin-left: -100px; rotate: 0deg; }
  25% { margin-left: -120px; rotate: -12deg; }
  75% { margin-left: -80px; rotate: 12deg; }
}
.tap.dance .tap-zone { animation: sniff .5s ease-in-out infinite; }
@keyframes sniff { 50% { transform: scale(1.08, .94); } }
.tap.approved .tap-card { animation: tapCardIn 1.6s .2s forwards, cardHappy .5s ease-in-out infinite; }
@keyframes cardHappy { 50% { translate: 0 -24px; rotate: 8deg; } }
.tap.sweat .tap-card { animation: tapCardIn 1.6s .2s forwards, wiggle .12s linear infinite; }
.tap.sweat .tap-zone::after { content: "💦"; position: absolute; top: -6px; right: 8px; font-size: 26px; animation: drip .8s ease-in infinite; }
@keyframes drip { from { transform: translateY(0); opacity: 1; } to { transform: translateY(26px); opacity: 0; } }
.tap.swallow .tap-card { animation: swallow .8s cubic-bezier(.6, 0, .8, .4) forwards !important; }
@keyframes swallow { from { transform: translateY(-40px) rotate(-6deg) scale(1); opacity: 1; } to { transform: translateY(140px) rotate(540deg) scale(0); opacity: 1; } }
.tap.swallow .tap-zone { animation: chomp .2s steps(2) 4; }
@keyframes chomp { 50% { transform: scale(1.25, .7); } }

/* paid + receipt printed by the phone */
.paid { position: absolute; inset: 0; z-index: 5; background: var(--green); color: #fff; display: flex; flex-direction: column; overflow: hidden; }
.slip { position: relative; z-index: 2; padding: 40px 22px 0; height: 52%; overflow: hidden; }
.slip-paper {
  position: relative; background: var(--receipt); color: #1D2A24; font: 12.5px/1.55 var(--f-mono);
  padding: 14px 16px 16px; box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .45);
  transform: translateY(-105%);
}
.paid.show .slip-paper { animation: print 1.8s .35s steps(14) forwards; }
@keyframes print { to { transform: translateY(0); } }
.slip::before { content: ""; position: absolute; top: 34px; left: 14px; right: 14px; height: 8px; border-radius: 4px; background: #02251A; z-index: 3; }
html[lang="ar"] .slip-paper * { letter-spacing: 0 !important; }
.slip-store { text-align: center; font-weight: 600; letter-spacing: .24em; font-size: 11px; color: #6B776F; }
.slip-shop { text-align: center; font-weight: 600; font-family: var(--f-body); margin-bottom: 6px; }
.slip-lines { border-block: 1.5px dashed #C9D1C9; padding-block: 6px; }
.slip-row { display: flex; justify-content: space-between; gap: 10px; }
.slip-row span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slip-row b { font-weight: 600; white-space: nowrap; }
.slip-vat { color: #6B776F; margin-top: 4px; }
.slip-total { font-weight: 700; font-size: 14px; }
.slip-qr { width: 46px; height: 46px; margin: 8px auto 4px; background: conic-gradient(#1D2A24 25%, transparent 0 50%, #1D2A24 0 75%, transparent 0) 0 0 / 9px 9px, #fff; box-shadow: 0 0 0 3px #1D2A24; }
.slip-note { text-align: center; font-size: 11px; color: #6B776F; font-family: var(--f-body); }
.paid-body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; padding: 16px 18px 18px; text-align: center; }
.paid-check { width: 72px; height: 72px; border-radius: 50%; background: var(--signal); display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(34, 194, 122, .25); }
.paid.show .paid-check { animation: popIn .6s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes popIn { from { transform: scale(0) rotate(-90deg); } }
.paid-title { font-family: var(--f-display); font-weight: 800; font-size: 28px; margin-top: 8px; }
.paid-amt { font-family: var(--f-display); font-weight: 700; font-size: 22px; font-variant-numeric: tabular-nums; }
.paid-amt small { font-size: 14px; opacity: .75; }
.paid-meta { font-size: 12.5px; opacity: .8; margin-bottom: 12px; }
.paid .charge { width: 100%; background: #fff; color: var(--green); }
.rain-joy span { animation-timing-function: cubic-bezier(.2, 0, .8, 1); }

.tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; border-top: 1px solid #DCE4DF; padding-top: 8px; }
.tab { border: 0; background: none; display: grid; justify-items: center; gap: 2px; font-size: 11px; color: #7C9187; padding: 4px 0; -webkit-tap-highlight-color: transparent; }
.tab svg { width: 22px; height: 22px; }
.tab.is-on { color: var(--green); font-weight: 600; }
.tab.is-loading svg { animation: spin .6s linear infinite; }

/* tap-to-pay overlay */
.tap {
  position: absolute; inset: 0; z-index: 4; background: #fff;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 64px 20px 28px;
}
.tap-top { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--green); background: #E3F5EC; padding: 7px 12px; border-radius: 999px; }
.tap-zone { position: relative; width: 190px; height: 190px; margin-top: 42px; display: grid; place-items: center; }
.tap-zone svg { position: relative; z-index: 1; width: 70px; height: 70px; color: var(--green); }
.tap-amt { font-family: var(--f-display); font-weight: 800; font-size: 40px; letter-spacing: -.03em; margin-top: 26px; font-variant-numeric: tabular-nums; }
.tap-amt small { font-size: 16px; color: var(--muted); letter-spacing: 0; }
.tap-status { margin-top: 6px; font-weight: 600; min-height: 1.6em; }
.tap-methods { margin-top: auto; font-size: 12px; color: var(--muted); font-family: var(--f-mono); }
.tap-card {
  position: absolute; left: 50%; top: 210px; width: 200px; height: 126px; margin-left: -100px; z-index: 2;
  border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(135deg, #F6C35A 0%, #E59A2A 55%, #C97A17 100%); color: #3B2604;
  box-shadow: 0 24px 40px -14px rgba(0, 0, 0, .45); opacity: 0;
  animation: tapCardIn 1.6s .2s cubic-bezier(.3, .7, .3, 1) forwards;
}
@keyframes tapCardIn { from { transform: translateY(420px) rotate(18deg); opacity: 1; } to { transform: translateY(-40px) rotate(-6deg); opacity: 1; } }
.tap.detected .ring { border-color: var(--signal); }
.tap.detected .tap-status { color: var(--green); }
.tap.uhoh .ring { border-color: var(--alarm); animation-duration: .5s; }
.tap.uhoh .tap-zone svg, .tap.uhoh .tap-status { color: var(--alarm); }
.tap.uhoh .tap-card { animation: tapCardIn 1.6s .2s cubic-bezier(.3, .7, .3, 1) forwards, wiggle .18s linear infinite; }
@keyframes wiggle { 50% { margin-left: -94px; } }

/* boot splash */
.splash {
  position: absolute; inset: 0; z-index: 6; background: var(--green-deep); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 24px;
}
.splash-mark { width: 76px; height: 76px; animation: breathe 1.4s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.07); } }
.splash-name { font-family: var(--f-display); font-weight: 800; font-size: 30px; letter-spacing: -.03em; }
.splash-name span { color: var(--saffron); font-weight: 700; font-size: 22px; margin-inline-start: 6px; letter-spacing: 0; }
.splash-text { font-size: 14px; color: rgba(255, 255, 255, .7); min-height: 1.5em; }
.splash-bar { width: 160px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.splash-bar i { display: block; height: 100%; width: 0; background: var(--saffron); border-radius: inherit; }
.splash-bar i.run { width: 100%; transition: width var(--t, 1.5s) cubic-bezier(.4, .1, .3, 1); }

/* --- crash choreography --- */
@keyframes wobble { 25% { transform: rotate(-1.2deg); } 75% { transform: rotate(1.2deg); } }

.device.glitching { animation: jitter .16s steps(2) infinite; }
.device.glitching .screen { filter: contrast(1.25) saturate(1.7); }
.device.glitching .screen::after {
  content: ""; position: absolute; inset: 0; z-index: 9; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .14) 0 2px, transparent 2px 4px);
  animation: scan .5s steps(5) infinite;
}
.device.glitching .sales-val, .device.glitching .charge-amt, .device.glitching .item-p, .device.glitching .tap-amt { text-shadow: 3px 0 #FF2D55, -3px 0 #00D4FF; }
.device.glitching .item:nth-child(3n+1), .device.glitching .sales, .device.glitching .tabs { animation: tear .22s steps(2) infinite; }
.device.glitching .item:nth-child(3n) { animation: tear .3s steps(2) infinite reverse; }
@keyframes jitter {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-5px, 2px) rotate(-.7deg); }
  50% { transform: translate(4px, -3px) rotate(.6deg); }
  75% { transform: translate(-2px, 4px) skewX(2deg); }
  100% { transform: translate(5px, -1px); }
}
@keyframes tear { 0% { transform: translateX(0); } 50% { transform: translateX(12px) skewX(-6deg); } 100% { transform: translateX(-8px); } }
@keyframes scan { to { background-position: 0 20px; } }

/* variant 1: everything falls out of the phone */
.device.gravity, .device.gravity .screen { overflow: visible; }
.device.gravity .crashable {
  transform: translate(var(--fx, 0), 130vh) rotate(var(--fr, 0));
  transition: transform var(--ft, 1s) cubic-bezier(.5, 0, .9, .4) var(--fd, 0s);
  position: relative; z-index: 3;
}
/* variant 2: old TV switching off */
.device.crt { background: #000; }
.device.crt .screen { animation: crt .8s cubic-bezier(.6, 0, .4, 1) forwards; }
@keyframes crt {
  0% { transform: scale(1, 1); filter: brightness(1); }
  35% { transform: scale(1, .01); filter: brightness(4); }
  65% { transform: scale(.25, .01); filter: brightness(6); }
  100% { transform: scale(0, 0); filter: brightness(8); opacity: 0; }
}
/* variant 3: flushed down a vortex */
.device.vortex .screen { animation: vortex 1.3s cubic-bezier(.55, 0, .8, .4) forwards; }
@keyframes vortex { to { transform: rotate(900deg) scale(0); filter: blur(6px) hue-rotate(180deg); opacity: 0; } }

/* emoji rain */
.rain { position: fixed; inset: 0; z-index: 250; pointer-events: none; overflow: hidden; }
.rain span { position: absolute; top: -70px; left: var(--l); font-size: var(--s); line-height: 1; animation: drop var(--d) cubic-bezier(.4, 0, 1, 1) var(--dl) forwards; }
@keyframes drop { to { transform: translateY(calc(100vh + 140px)) rotate(var(--r)); } }

/* green screen of death */
.crash {
  position: fixed; inset: 0; z-index: 200; overflow: auto; background: var(--gsod); color: #fff;
  padding: max(28px, env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) calc(110px + env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px));
}
.crash.show { animation: gsodIn .45s steps(4); }
@keyframes gsodIn {
  0% { opacity: 0; filter: hue-rotate(120deg) contrast(2); transform: translateX(-12px); }
  50% { opacity: 1; filter: hue-rotate(-60deg); transform: translateX(10px); }
  100% { opacity: 1; filter: none; transform: none; }
}
.crash-in { max-width: 820px; margin: 0 auto; padding-top: clamp(8px, 6vh, 72px); }
.crash-tag { font: 600 12px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
html[lang="ar"] .crash-tag { font: 600 14px/1.2 var(--f-body); letter-spacing: 0; }
.crash-face { font-family: var(--f-display); font-weight: 500; font-size: clamp(96px, 16vw, 156px); line-height: 1; margin: 14px 0 20px; text-align: start; }
html[lang="ar"] .crash-face { text-align: right; }
.crash h2 { font-family: var(--f-display); font-weight: 600; font-size: clamp(24px, 3.4vw, 36px); line-height: 1.3; letter-spacing: -.02em; margin: 0; max-width: 28ch; }
html[lang="ar"] .crash h2 { letter-spacing: 0; line-height: 1.6; }
.crash-sub { font-size: 18px; color: rgba(255, 255, 255, .85); max-width: 60ch; margin: 12px 0 0; }
.crash-pct { font-family: var(--f-display); font-size: 22px; margin: 22px 0 0; font-variant-numeric: tabular-nums; }
.crash-meta { display: flex; gap: 20px; align-items: flex-start; margin-top: 28px; }
.crash-meta canvas { width: 104px; height: 104px; flex: none; image-rendering: pixelated; background: #fff; padding: 6px; border-radius: 6px; }
.crash-meta > div { min-width: 0; }
.crash-qr-note { margin: 0 0 10px; font-size: 14px; color: rgba(255, 255, 255, .85); }
.crash-meta dl { margin: 0; font-size: 14px; }
.crash-meta dt { color: rgba(255, 255, 255, .7); }
.crash-meta dd { margin: 0 0 6px; font-family: var(--f-mono); font-weight: 600; word-break: break-all; }
.crash-log {
  margin-top: 24px; height: 178px; overflow: hidden; border-radius: 14px; padding: 12px 16px;
  background: rgba(0, 0, 0, .24); direction: ltr; text-align: left;
  font: 12.5px/1.6 var(--f-mono); color: rgba(255, 255, 255, .9);
}
.crash-log div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: logIn .2s ease-out; }
.crash-log .ok { color: #A6F5CB; }
.crash-log .warn { color: #FFDE8F; }
.crash-log .bad { color: #FFB8AC; }
@keyframes logIn { from { opacity: 0; transform: translateY(4px); } }
.crash-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.crash-final { margin-top: 22px; background: var(--saffron); color: var(--green-ink); border-radius: 18px; padding: 18px 20px; max-width: 580px; animation: dlgIn .4s ease-out; }
.crash-final strong { font-family: var(--f-display); font-size: 18px; }
.crash-final p { margin: 6px 0 14px; }
.crash-report { margin-top: 22px; background: #fff; color: var(--green-ink); border-radius: 18px; padding: 16px 20px; max-width: 580px; }
.rep-sending { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.rep-reply { display: grid; gap: 2px; }
.rep-label { font-size: 13px; color: var(--muted); }
.rep-quote { font-family: var(--f-display); font-weight: 700; font-size: 26px; }
.rep-tr { font-size: 14px; color: var(--muted); }
.camel { position: fixed; left: 0; bottom: max(14px, env(safe-area-inset-bottom, 0px)); z-index: 201; display: flex; align-items: flex-end; direction: ltr; pointer-events: none; animation: walk 16s linear infinite; }
.camel-body { font-size: 46px; line-height: 1; animation: bob .45s ease-in-out infinite alternate; }
.cable { width: 150px; height: 3px; margin: 0 0 12px -6px; border-radius: 2px; background: #062F20; }
.plug { font-size: 24px; line-height: 1; margin-bottom: 2px; transform: rotate(90deg); }
@keyframes walk { from { transform: translateX(100vw); } to { transform: translateX(-320px); } }
@keyframes bob { to { transform: translateY(-4px) rotate(-3deg); } }
@media (max-width: 560px) {
  .crash-meta { flex-direction: row; gap: 14px; }
  .crash-meta canvas { width: 84px; height: 84px; }
  .crash-actions .btn { flex: 1 1 100%; }
}

/* toast */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 400;
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  max-width: min(calc(100vw - 32px), 460px); width: max-content;
  background: var(--green-ink); color: #fff; border-radius: 14px; padding: 12px 18px;
  font-size: 15px; line-height: 1.45; text-align: center; box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .5);
  transition: opacity .25s, transform .25s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ------------------------------------------------------------ 404 */
.nf { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; text-align: center; background: var(--green-deep); color: #fff; padding: 40px var(--gutter-r) 40px var(--gutter-l); }
.nf-code { font-family: var(--f-display); font-weight: 800; font-size: clamp(96px, 22vw, 200px); line-height: 1; color: var(--saffron); letter-spacing: -.05em; }
.nf h1 { font-family: var(--f-display); font-size: clamp(26px, 4vw, 40px); margin: 12px 0 6px; letter-spacing: -.02em; }
.nf p { margin: 0 auto; color: rgba(255, 255, 255, .75); max-width: 46ch; }
.nf .btn { margin-top: 28px; }

/* ------------------------------------------------------------ motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .ps-done { opacity: 0 !important; }
  .tapcard { opacity: 1 !important; transform: translate(-20px, -34px) rotate(-8deg) !important; }
  .chip-a, .chip-b { opacity: 1 !important; transform: none !important; }
  .camel { display: none; }
}

/* ------------------------------------------------------------ the phone goofing off mid-payment */
.goof-notif {
  position: absolute; z-index: 7; top: 48px; left: 12px; right: 12px; display: flex; gap: 10px; align-items: center;
  background: rgba(255, 255, 255, .96); color: var(--green-ink); border-radius: 18px; padding: 10px 14px;
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .35); text-align: start;
  transform: translateY(-260%); transition: transform .45s cubic-bezier(.3, 1.4, .5, 1);
}
.goof-notif.in { transform: translateY(0); }
@media (max-width: 520px) { .goof-notif { top: calc(10px + env(safe-area-inset-top, 0px)); } }
.gn-ic { font-size: 24px; flex: none; }
.gn-txt { display: grid; font-size: 13px; line-height: 1.35; min-width: 0; }
.gn-txt b { font-size: 13.5px; }
.tap.typing .tap-status::after { content: " ✍️"; display: inline-block; animation: wobble .4s infinite; }

.goof { position: absolute; inset: 0; z-index: 6; background: #111; color: #fff; overflow: hidden; }
.goof-scene { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .25s; }
.goof-scene.on { opacity: 1; visibility: visible; }
.goof-cap {
  position: absolute; z-index: 3; left: 14px; right: 14px; bottom: 16px; text-align: center;
  background: rgba(0, 0, 0, .72); color: #fff; border-radius: 14px; padding: 10px 12px; font-weight: 600; font-size: 14px;
  animation: dlgIn .3s ease-out;
}

/* Flappy Camel */
.gm { background: linear-gradient(#7FD3F7, #CDEFFC 70%); color: #0B2A1E; direction: ltr; }
.gm-title { position: absolute; top: 56px; left: 0; right: 0; text-align: center; font: 800 22px var(--f-mono); letter-spacing: .08em; color: #fff; text-shadow: 3px 3px 0 #0B2A1E; }
.gm-score { position: absolute; top: 92px; left: 0; right: 0; text-align: center; font: 600 14px var(--f-mono); }
.gm-score b { font-size: 20px; font-variant-numeric: tabular-nums; }
.gm-sky { position: absolute; inset: 0; }
.gm-sun { position: absolute; top: 130px; right: 26px; font-size: 40px; animation: float 3s ease-in-out infinite; }
.gm-camel { position: absolute; left: 60px; top: 46%; font-size: 52px; line-height: 1; transform: scaleX(-1); animation: flap .5s ease-in-out infinite alternate; }
@keyframes flap { from { translate: 0 -40px; rotate: -12deg; } to { translate: 0 50px; rotate: 14deg; } }
.gm-ob { position: absolute; bottom: 70px; left: 100%; font-size: 54px; line-height: 1; animation: scroll 1.8s linear infinite; }
.gm-ob.o2 { animation-delay: .6s; font-size: 64px; }
.gm-ob.o3 { animation-delay: 1.2s; }
@keyframes scroll { to { transform: translateX(calc(-1 * (100cqw + 140px))); } }
.goof { container-type: inline-size; }
.gm-sand { position: absolute; left: 0; right: 0; bottom: 0; height: 74px; background: repeating-linear-gradient(90deg, #E9C27A 0 18px, #DDB063 18px 36px); animation: sand .4s linear infinite; }
@keyframes sand { to { background-position: -36px 0; } }

/* doomscrolling */
.feed { background: #0E0E0E; }
.feed-track { position: absolute; left: 14px; right: 14px; top: 0; display: grid; gap: 10px; padding-top: 50px; animation: doom 2.2s cubic-bezier(.5, 0, .3, 1) forwards; }
@keyframes doom { from { transform: translateY(0); } to { transform: translateY(-60%); } }
.post { display: flex; gap: 10px; align-items: flex-start; background: #1C1C1C; border-radius: 16px; padding: 12px; text-align: start; }
.post .pa { width: 40px; height: 40px; border-radius: 50%; background: #2A2A2A; display: grid; place-items: center; font-size: 22px; flex: none; }
.post b { font-size: 13px; color: #9FE9C4; }
.post p { margin: 2px 0 0; font-size: 13.5px; line-height: 1.4; }
.post::after { content: ""; }
.post div { min-width: 0; }
.post div::after { content: ""; display: block; height: 110px; margin-top: 8px; border-radius: 10px; background: linear-gradient(135deg, #2D5B47, #6B4F1D); }

/* selfie with the card */
.selfie { background: radial-gradient(circle at 50% 40%, #3A3A3A, #111); display: grid; place-items: center; }
.selfie-frame { position: relative; width: 78%; aspect-ratio: 3 / 4; max-width: 100%; border: 3px solid #fff; border-radius: 22px; display: grid; place-items: center; }
.sf-me { font-size: 96px; line-height: 1; }
.sf-card { position: absolute; right: 12%; top: 18%; width: 74px; height: 46px; border-radius: 8px; background: linear-gradient(135deg, #F6C35A, #C97A17); rotate: 14deg; box-shadow: 0 8px 16px rgba(0, 0, 0, .4); }
.sf-hearts { position: absolute; bottom: 14%; font-size: 22px; letter-spacing: 6px; animation: float 1s ease-in-out infinite; }
.selfie-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.selfie.on .selfie-flash { animation: flash 2.2s .9s steps(1, end); }
@keyframes flash { 0% { opacity: 1; } 8% { opacity: .0; } 100% { opacity: 0; } }
