/* AfriBit POS — merchant point of sale.
   Light surface, deep green for actions, orange reserved for Bitcoin values. */

:root {
  --bg: #ffffff;
  --surface: #f2f3f5;
  --surface-press: #e6e8ec;
  --ink: #10151c;
  --ink-2: #5b6470;
  --ink-3: #8a929c;
  --line: #e6e8ec;

  --green: #0e7a3c;
  --green-press: #0a5c2d;
  --green-tint: #e7f5ec;
  --orange: #f5a524;
  --orange-tint: #fdf1dd;
  --red: #dc2626;
  --red-tint: #fdecec;

  --night: #0d1520;
  --night-surface: #18212e;
  --night-line: #26303e;

  --r-card: 20px;
  --r-btn: 16px;
  --r-tile: 18px;
  --shadow: 0 1px 2px rgba(16, 21, 28, 0.04), 0 8px 24px rgba(16, 21, 28, 0.06);
}

*,
*::before,
*::after { box-sizing: border-box; }

/* inline display styles on sections must never beat [hidden] */
[hidden] { display: none !important; }

.pos-app {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}

/* Keep this at element specificity (0,0,1) so a class like .pos-btn-primary
   can still set its own colour -- .pos-app a would outrank it. */
a { color: inherit; }
.pos-app a { text-decoration: none; }

.pos-skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--green); color: #fff; padding: 10px 16px; border-radius: 0 0 12px 0;
}
.pos-skip:focus { left: 0; }

/* ---------- shell ---------- */

.pos-shell {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  position: relative;
}

.pos-main {
  flex: 1 1 auto;
  padding: 16px 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pos-main.has-nav { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }

/* ---------- top bars ---------- */

.pos-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 6px;
}

.pos-brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.pos-brand-mark { width: 42px; height: 42px; object-fit: contain; flex: none; }
.pos-brand-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pos-wordmark { font-size: 23px; font-weight: 800; letter-spacing: -0.4px; line-height: 1; }
.pos-wordmark b { color: var(--orange); font-weight: 800; }
.pos-partner {
  display: flex; align-items: center; gap: 4px;
  font-size: 10.5px; font-weight: 600; color: var(--ink-3); line-height: 1;
}
.pos-partner img { height: 11px; width: auto; opacity: 0.85; }

.pos-iconbtn {
  width: 42px; height: 42px; flex: none;
  border-radius: 50%;
  background: var(--surface);
  border: none;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
  position: relative;
  cursor: pointer;
}
.pos-iconbtn svg { width: 20px; height: 20px; }
.pos-iconbtn .dot {
  position: absolute; top: 9px; right: 10px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red); border: 2px solid var(--surface);
}

.pos-appbar {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  padding: 18px 18px 4px;
}
.pos-appbar h1 { font-size: 18px; font-weight: 700; text-align: center; margin: 0; letter-spacing: -0.2px; }
.pos-back {
  width: 40px; height: 40px; margin-left: -8px;
  display: flex; align-items: center; justify-content: center; color: var(--ink);
}
.pos-back svg { width: 22px; height: 22px; }

/* ---------- POS home ---------- */
/* Matches docs/POS/New Home POS.png: plain brand bar, a stepped-top photo hero
   (see #pos-home-hero-clip in pos_home.html), then the action stack. */

.pos-home-topbar {
  padding: calc(10px + env(safe-area-inset-top)) 17px 0 20px;
}
.pos-home-brand { gap: 8px; }
.pos-home-brand .pos-brand-mark { width: 40px; height: 41px; }
.pos-home-brand .pos-brand-text { gap: 3px; }
.pos-home-brand .pos-wordmark { font-size: 19.5px; letter-spacing: -0.6px; color: var(--ink); }
.pos-home-brand .pos-partner { gap: 5px; font-size: 9.2px; font-weight: 600; letter-spacing: -0.1px; color: #7a8290; }
.pos-home-brand .pos-partner img { height: 10px; opacity: 1; }
.pos-home-bell {
  width: 34px;
  height: 34px;
  margin-top: -2px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(16, 21, 28, 0.08), 0 0 0 1px rgba(16, 21, 28, 0.03);
}
.pos-home-bell svg { width: 17px; height: 17px; }
.pos-home-bell .dot {
  top: 3px; right: 3px;
  width: 8px; height: 8px;
  background: #ef1f2b;
  border: 1.5px solid #fff;
}

.pos-home-main {
  padding: 8px 14px 0;
  gap: 11px;
}
.pos-home-main.has-nav { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
.pos-home-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.pos-home-alert { position: relative; z-index: 2; }

.pos-home-hero {
  position: relative;
  container-type: inline-size;
  margin: 0 -4px -3px;
  aspect-ratio: 896 / 592;
  overflow: hidden;
  background: #3b2a17;
  border-radius: 16px;
  -webkit-clip-path: url(#pos-home-hero-clip);
  clip-path: url(#pos-home-hero-clip);
}
.pos-home-hero picture,
.pos-home-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.pos-home-hero img { object-fit: cover; object-position: 50% 40%; }
.pos-home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(20, 12, 4, 0.62) 0%, rgba(20, 12, 4, 0.42) 34%, rgba(20, 12, 4, 0.08) 58%, rgba(20, 12, 4, 0) 70%),
    linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.22) 100%);
}
.pos-home-hero-copy {
  position: absolute;
  z-index: 2;
  left: 4.5%;
  top: 25.5%;
  right: 38%;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}
.pos-home-hero-copy .kicker {
  margin: 0 0 7px;
  font-size: 10px;
  font-size: 2.75cqw;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.pos-home-hero-copy h1 {
  margin: 0;
  white-space: nowrap;
  font-size: 34px;
  font-size: 9.3cqw;
  line-height: 0.93;
  font-weight: 800;
  letter-spacing: -0.035em;
}
.pos-home-hero-copy h1 span { color: #ffc72c; }
.pos-home-hero-copy .lead {
  margin: 6px 0 0;
  white-space: nowrap;
  font-size: 12.5px;
  font-size: 3.4cqw;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.pos-home-hero-script {
  position: absolute;
  z-index: 2;
  right: 2.6%;
  bottom: 11%;
  margin: 0;
  color: #fff;
  font-family: "Kalam", "Segoe Print", "Bradley Hand", cursive;
  font-size: 13px;
  font-size: 3.5cqw;
  line-height: 1.06;
  font-weight: 700;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
  transform: rotate(-11deg);
  transform-origin: 100% 100%;
}
.pos-home-hero-script::after {
  content: "";
  position: absolute;
  left: 10%;
  right: -2%;
  bottom: -0.32em;
  height: 0.5em;
  border-bottom: 2.5px solid #ffc72c;
  border-radius: 0 0 55% 45% / 0 0 100% 60%;
}

.pos-home-sale,
.pos-home-tile,
.pos-home-promo { -webkit-tap-highlight-color: transparent; }

.pos-home-sale {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 83px;
  padding: 12px 18px 12px 13px;
  overflow: hidden;
  color: #fff;
  border-radius: 16px;
  background: linear-gradient(100deg, #18a24b 0%, #12913f 55%, #0c7f38 100%);
  box-shadow: 0 10px 24px rgba(14, 122, 60, 0.2);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.pos-home-sale::before,
.pos-home-sale::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.pos-home-sale::before {
  width: 250px; height: 250px;
  left: 72%; top: -40px;
  background: rgba(0, 70, 30, 0.12);
}
.pos-home-sale::after {
  width: 250px; height: 250px;
  left: 79%; top: 12px;
  background: rgba(255, 255, 255, 0.05);
}
.pos-home-sale:active { transform: scale(0.985); box-shadow: 0 5px 14px rgba(14, 122, 60, 0.2); }
.pos-home-sale > * { position: relative; z-index: 1; }
.pos-home-sale .plus {
  width: 48px;
  height: 48px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #12913f;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 60, 25, 0.18);
}
.pos-home-sale .plus svg { width: 21px; height: 21px; }
.pos-home-sale .copy { display: flex; flex-direction: column; min-width: 0; }
.pos-home-sale .title {
  font-size: 31px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.045em;
  white-space: nowrap;
}
.pos-home-sale .sub {
  margin-top: 3px;
  font-size: 13.5px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #c8f2c4;
  white-space: nowrap;
}
.pos-home-sale .chev { width: 20px; height: 20px; margin-left: auto; flex: none; color: #fff; }

.pos-home-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.pos-home-tile {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 62px;
  padding: 10px 24px 10px 10px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #eceef1;
  box-shadow: 0 3px 12px rgba(16, 21, 28, 0.045);
  transition: transform 0.12s ease, background 0.12s ease;
}
.pos-home-tile:active { transform: scale(0.98); background: #f6f7f9; }
.pos-home-tile .tile-icon {
  width: 38px;
  height: 38px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  color: #0e7a3c;
  background: #e8f4ec;
}
.pos-home-tile .tile-icon svg { width: 21px; height: 21px; }
.pos-home-tile .tile-icon.btc { color: #f39a1e; background: #fdf0dc; }
.pos-home-tile .tile-icon.btc svg { width: 19px; height: 21px; }
.pos-home-tile .tile-copy { display: flex; flex-direction: column; min-width: 0; }
.pos-home-tile .tile-copy span {
  font-size: 14px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.pos-home-tile .tile-copy small {
  margin-top: 2px;
  font-size: 11.5px;
  line-height: 1.2;
  font-weight: 500;
  color: #858d98;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pos-home-tile .chev {
  position: absolute;
  right: 9px;
  top: 50%;
  width: 15px;
  height: 15px;
  color: var(--ink);
  transform: translateY(-50%);
}

.pos-home-promo {
  position: relative;
  display: flex;
  align-items: stretch;
  min-height: 112px;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid #f5e5c1;
  background: #fff5df;
}
/* faint diagonal ribbons on the right, as in the reference */
.pos-home-promo::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; right: 0;
  width: 40%;
  pointer-events: none;
  background: repeating-linear-gradient(135deg, transparent 0 13px, rgba(251, 222, 162, 0.55) 13px 40px);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
}
.pos-home-promo picture { flex: 0 0 40.5%; position: relative; }
.pos-home-promo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 30% 35%;
}
.pos-home-promo .promo-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  padding: 10px 8px 10px 15px;
}
.pos-home-promo .kicker {
  font-size: 9px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #3d3f44;
}
.pos-home-promo .title {
  margin-top: 5px;
  font-size: 19.5px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #0f1115;
  white-space: nowrap;
}
.pos-home-promo .title b { color: #f29e1b; font-weight: 800; }
.pos-home-promo .sub {
  margin-top: 5px;
  font-size: 11.2px;
  line-height: 1.2;
  font-weight: 500;
  color: #5d6068;
}
.pos-home-promo .go {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 7px;
  padding: 5px 12px 5px 13px;
  border-radius: 999px;
  background: #f9b928;
  color: #111318;
  font-size: 11.5px;
  line-height: 1.3;
  font-weight: 700;
  box-shadow: 0 3px 8px rgba(242, 158, 27, 0.22);
}
.pos-home-promo .go svg { width: 13px; height: 13px; }

.pos-home-empty {
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(16, 21, 28, 0.08);
}

@media (max-width: 374px) {
  .pos-home-topbar { padding-left: 16px; padding-right: 14px; }
  .pos-home-brand .pos-wordmark { font-size: 17.5px; }
  .pos-home-brand .pos-brand-mark { width: 36px; height: 37px; }
  .pos-home-brand .pos-partner { font-size: 8.5px; }
  .pos-home-main { padding-left: 12px; padding-right: 12px; }
  .pos-home-sale { gap: 12px; min-height: 76px; }
  .pos-home-sale .plus { width: 44px; height: 44px; }
  .pos-home-sale .title { font-size: 27px; }
  .pos-home-sale .sub { font-size: 12.5px; }
  .pos-home-grid { gap: 8px; }
  .pos-home-tile { gap: 8px; padding: 9px 20px 9px 8px; }
  .pos-home-tile .chev { right: 6px; }
  .pos-home-tile .tile-icon { width: 34px; height: 34px; }
  .pos-home-tile .tile-copy span { font-size: 13px; }
  .pos-home-tile .tile-copy small { font-size: 10.5px; }
  .pos-home-promo { min-height: 104px; }
  .pos-home-promo .promo-copy { padding-left: 12px; }
  .pos-home-promo .title { font-size: 17px; }
  .pos-home-promo .sub { font-size: 10.5px; }
}

/* short screens: keep the whole home in one glance */
@media (max-height: 640px) {
  .pos-home-main { gap: 9px; }
  .pos-home-hero { aspect-ratio: 896 / 540; }
  .pos-home-sale { min-height: 72px; }
  .pos-home-sale .plus { width: 42px; height: 42px; }
  .pos-home-sale .title { font-size: 27px; }
  .pos-home-tile { min-height: 56px; padding-top: 7px; padding-bottom: 7px; }
  .pos-home-promo { min-height: 100px; }
}

/* ---------- surfaces ---------- */

.pos-card {
  background: var(--surface);
  border-radius: var(--r-card);
  padding: 16px;
}

.pos-shopcard {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface);
  border-radius: var(--r-card);
  padding: 16px 18px;
}
.pos-shopcard .glyph { width: 40px; height: 40px; flex: none; color: var(--ink); }
.pos-shopcard .name { font-size: 17px; font-weight: 700; letter-spacing: -0.2px; }
.pos-shopcard .meta { font-size: 13.5px; color: var(--ink-2); margin-top: 2px; }
.pos-shopcard .chev { margin-left: auto; color: var(--ink-3); }

/* big green call to action */
.pos-cta {
  display: flex; align-items: center; gap: 16px;
  background: var(--green);
  color: #fff;
  border-radius: var(--r-card);
  padding: 20px;
  border: none; width: 100%; text-align: left;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(14, 122, 60, 0.22);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.pos-cta:active { transform: scale(0.985); background: var(--green-press); box-shadow: 0 4px 12px rgba(14, 122, 60, 0.2); }
.pos-cta .plus {
  width: 56px; height: 56px; flex: none; border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  display: flex; align-items: center; justify-content: center;
}
.pos-cta .plus svg { width: 26px; height: 26px; }
.pos-cta > span { display: block; min-width: 0; }
.pos-cta .title { display: block; font-size: 21px; font-weight: 800; letter-spacing: -0.3px; line-height: 1.15; }
.pos-cta .sub { display: block; font-size: 13.5px; font-weight: 500; color: rgba(255, 255, 255, 0.82); margin-top: 3px; }
.pos-cta .chev { margin-left: auto; opacity: 0.9; }

/* quick tiles */
.pos-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pos-tile {
  background: var(--surface);
  border-radius: var(--r-tile);
  padding: 20px 14px 18px;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 10px;
  min-height: 118px; text-align: center;
  transition: transform 0.12s ease, background 0.12s ease;
}
.pos-tile:active { transform: scale(0.98); background: var(--surface-press); }
.pos-tile .label { font-size: 15px; font-weight: 700; letter-spacing: -0.2px; }
.pos-tile .sub { font-size: 11.5px; color: var(--ink-2); margin-top: -6px; }
/* fixed slot so a tile with a sub-label keeps its icon on the same line as one without */
.pos-tile > :first-child { height: 34px; flex: none; display: flex; align-items: center; justify-content: center; }
.pos-tile .glyph { color: var(--ink); }
.pos-tile .glyph svg { width: 26px; height: 26px; }
.pos-btc-badge {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--orange); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; font-weight: 800; line-height: 1;
}

/* promo */
.pos-promo {
  display: flex; align-items: stretch; gap: 0;
  background: linear-gradient(100deg, #f6ead3 0%, #fbf4e8 60%);
  border-radius: var(--r-card);
  overflow: hidden;
  min-height: 104px;
}
.pos-promo img { width: 96px; object-fit: cover; flex: none; }
.pos-promo .body { flex: 1 1 auto; min-width: 0; padding: 14px 14px 14px 16px; display: flex; align-items: center; gap: 10px; }
.pos-promo .body > span:first-child { flex: 1 1 auto; min-width: 0; display: block; }
.pos-promo .title { display: block; font-size: 16px; font-weight: 800; letter-spacing: -0.2px; line-height: 1.2; }
.pos-promo .sub { display: block; font-size: 12px; color: #6d5f47; margin-top: 5px; line-height: 1.35; }
.pos-promo .go {
  width: 36px; height: 36px; flex: none; border-radius: 50%;
  background: var(--green); color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin-left: auto;
}

/* ---------- buttons ---------- */

.pos-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%;
  min-height: 58px;
  border-radius: var(--r-btn);
  border: none;
  font-family: inherit;
  font-size: 17px; font-weight: 700; letter-spacing: -0.2px;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease, opacity 0.12s ease;
}
.pos-btn:active { transform: scale(0.985); }
.pos-btn-primary { background: var(--green); color: #fff; }
.pos-btn-primary:active { background: var(--green-press); }
.pos-btn-primary[disabled] { background: #cfd4da; color: #fff; cursor: not-allowed; transform: none; }
.pos-btn-secondary { background: var(--surface); color: var(--ink); }
.pos-btn-secondary:active { background: var(--surface-press); }
.pos-btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---------- amount + keypad ---------- */

.pos-amount {
  display: flex; align-items: baseline; justify-content: center; gap: 10px;
  padding: 18px 0 6px;
}
.pos-amount .cur { font-size: 27px; font-weight: 800; letter-spacing: -0.3px; }
.pos-amount .val {
  font-size: 72px; font-weight: 800; letter-spacing: -2.5px; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.pos-amount .val.is-empty { color: var(--ink-3); }
.pos-amount.bump .val { animation: posBump 0.16s ease-out; }
@keyframes posBump { 0% { transform: scale(1); } 45% { transform: scale(1.045); } 100% { transform: scale(1); } }

.pos-convert {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  font-size: 14.5px; font-weight: 600; color: var(--ink-2);
}
.pos-convert svg { width: 16px; height: 16px; color: var(--ink-3); }

.pos-keypad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.pos-key {
  height: 66px;
  border-radius: var(--r-tile);
  background: var(--surface);
  border: none;
  font-family: inherit;
  font-size: 27px; font-weight: 700; color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform 0.08s ease, background 0.08s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.pos-key:active { background: var(--surface-press); transform: scale(0.95); }
.pos-key svg { width: 28px; height: 28px; }

.pos-receive {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface);
  border-radius: var(--r-tile);
  padding: 14px 16px;
}
.pos-receive .coin {
  width: 42px; height: 42px; flex: none; border-radius: 50%;
  background: var(--orange); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 23px; font-weight: 800; line-height: 1;
}
.pos-receive .lbl { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.pos-receive .amt { font-size: 21px; font-weight: 800; color: var(--orange); letter-spacing: -0.3px; }
.pos-receive .amt span { color: var(--green); font-size: 15px; font-weight: 700; }
.pos-receive .rate { font-size: 11.5px; color: var(--ink-3); margin-top: 1px; }

/* ---------- fields ---------- */

.pos-label { font-size: 13.5px; font-weight: 700; color: var(--ink-2); margin-bottom: 8px; display: block; }
.pos-field {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface);
  border: 2px solid transparent;
  border-radius: var(--r-tile);
  padding: 15px 16px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.pos-field:focus-within { border-color: var(--green); background: #fff; }
.pos-field input {
  border: none; background: transparent; outline: none;
  font-family: inherit; font-size: 19px; font-weight: 700; color: var(--ink);
  flex: 1 1 auto; min-width: 0; letter-spacing: 0.2px;
}
.pos-field input::placeholder { color: var(--ink-3); font-weight: 600; }
.pos-dial { display: flex; align-items: center; gap: 8px; padding-right: 12px; border-right: 1px solid var(--line); flex: none; }
.pos-dial .flag { width: 24px; height: 16px; border-radius: 3px; overflow: hidden; display: flex; flex-direction: column; }
.pos-dial .flag i { flex: 1; display: block; }
.pos-dial .code { font-size: 16px; font-weight: 700; }

/* "Or choose from recent" -- repeat buyers at a kiosk are the common case */
.pos-recent { background: var(--surface); border-radius: var(--r-tile); overflow: hidden; }
.pos-recent .head {
  display: flex; align-items: center; gap: 12px; width: 100%;
  background: none; border: none; cursor: pointer;
  padding: 14px 16px; font-family: inherit; font-size: 14px; font-weight: 700; color: var(--ink);
  text-align: left;
}
.pos-recent .head .glyph {
  width: 30px; height: 30px; flex: none; border-radius: 50%;
  background: var(--surface-press); color: var(--ink-2);
  display: flex; align-items: center; justify-content: center;
}
.pos-recent .head .glyph svg { width: 16px; height: 16px; }
.pos-recent .head .txt { flex: 1 1 auto; min-width: 0; }
.pos-recent .head .chev { width: 18px; height: 18px; flex: none; color: var(--ink-3); transition: transform 0.18s ease; }
.pos-recent .head.is-open .chev { transform: rotate(90deg); }
.pos-recent .list { border-top: 1px solid var(--line); }
.pos-recent .list button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  background: none; border: none; cursor: pointer; font-family: inherit; text-align: left;
  padding: 12px 16px 12px 58px;
}
.pos-recent .list button + button { border-top: 1px solid var(--line); }
.pos-recent .list button:active { background: var(--surface-press); }
.pos-recent .list .num { font-size: 14px; font-weight: 700; color: var(--ink); }
.pos-recent .list .ago { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--ink-3); white-space: nowrap; }

.pos-hint {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--green-tint);
  border-radius: var(--r-tile);
  padding: 13px 15px;
  font-size: 13px; line-height: 1.45; color: #14532d; font-weight: 500;
}
.pos-hint svg { width: 17px; height: 17px; flex: none; margin-top: 1px; color: var(--green); }

.pos-alert {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--red-tint);
  border-radius: var(--r-tile);
  padding: 13px 15px;
  font-size: 13px; line-height: 1.45; color: #8f1d1d; font-weight: 600;
}
.pos-alert svg { width: 17px; height: 17px; flex: none; margin-top: 1px; color: var(--red); }

/* ---------- lists ---------- */

.pos-section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 6px 2px 2px;
}
.pos-section-head h2 { font-size: 17px; font-weight: 800; margin: 0; letter-spacing: -0.2px; }
.pos-section-head a { font-size: 13.5px; font-weight: 700; color: var(--green); }

.pos-daybar {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 16px 2px 6px;
}
.pos-daybar .day { font-size: 14px; font-weight: 800; letter-spacing: -0.2px; }
.pos-daybar .total { font-size: 13.5px; font-weight: 700; color: var(--ink-2); }

.pos-list { display: flex; flex-direction: column; }
.pos-item { display: flex; align-items: center; gap: 13px; padding: 14px 2px; }
.pos-item + .pos-item { border-top: 1px solid var(--line); }
.pos-item .avatar {
  width: 38px; height: 38px; flex: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 800; color: #fff;
}
.pos-item .avatar.in { background: var(--green); }
.pos-item .avatar.out { background: var(--red); }
.pos-item .avatar.fail { background: var(--red-tint); color: var(--red); }
.pos-item .avatar.pend { background: var(--surface); color: var(--ink-2); }
/* the text column has to be allowed to shrink, or a long "+9,750 sats" wraps */
.pos-item > div:not([class]) { min-width: 0; flex: 1 1 auto; }
.pos-item .who { font-size: 14.5px; font-weight: 700; letter-spacing: -0.1px; }
.pos-item .when {
  font-size: 12.5px; color: var(--ink-3); margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pos-item .amt {
  margin-left: auto; text-align: right; font-size: 14.5px; font-weight: 800;
  flex: none; white-space: nowrap;
}
.pos-item .amt.in { color: var(--green); }
.pos-item .amt.out { color: var(--red); }
.pos-item .amt.muted { color: var(--ink-3); }
.pos-item .amt .k { display: block; font-size: 12px; font-weight: 600; color: var(--ink-3); margin-top: 2px; }

.pos-chips { display: flex; gap: 8px; padding: 2px 0 4px; }
.pos-chip {
  padding: 9px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 700;
  background: var(--surface); color: var(--ink-2);
  border: none; font-family: inherit; cursor: pointer;
}
.pos-chip.is-on { background: var(--green); color: #fff; }

.pos-empty { text-align: center; padding: 34px 18px; color: var(--ink-2); }
.pos-empty .big { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.pos-empty p { font-size: 13.5px; margin: 0; }

/* ---------- wallet ---------- */

.pos-balance {
  background: linear-gradient(135deg, #0f8442 0%, #0b6231 100%);
  border-radius: var(--r-card);
  padding: 20px;
  color: #fff;
  display: flex; align-items: center; gap: 14px;
  box-shadow: 0 10px 26px rgba(14, 122, 60, 0.22);
}
.pos-balance .lbl { font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, 0.85); }
.pos-balance .val { font-size: 34px; font-weight: 800; letter-spacing: -1px; line-height: 1.1; margin-top: 2px; }
.pos-balance .val span { font-size: 17px; font-weight: 700; }
.pos-balance .sub { font-size: 14px; color: rgba(255, 255, 255, 0.85); margin-top: 3px; }
.pos-balance .coin {
  width: 52px; height: 52px; flex: none; border-radius: 50%;
  background: var(--orange); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 27px; font-weight: 800; line-height: 1;
  margin-left: auto;
}

.pos-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.pos-action {
  background: var(--surface); border-radius: var(--r-tile);
  padding: 15px 8px; display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; color: var(--ink);
  border: none; font-family: inherit;
}
.pos-action svg { width: 22px; height: 22px; }
.pos-action[disabled] { opacity: 0.45; }

/* ---------- receipt ---------- */

.pos-summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--surface); border-radius: var(--r-tile); padding: 16px 18px;
}
.pos-summary .k { font-size: 22px; font-weight: 800; letter-spacing: -0.4px; }
.pos-summary .k small { font-size: 15px; font-weight: 800; margin-right: 5px; }
.pos-summary .s { font-size: 22px; font-weight: 800; color: var(--orange); letter-spacing: -0.4px; }
.pos-summary .s span { font-size: 14px; color: var(--green); font-weight: 700; }
.pos-summary .cap { font-size: 12.5px; color: var(--ink-2); margin-top: 3px; font-weight: 500; }
.pos-summary .right { text-align: right; }

.pos-goods {
  display: flex; align-items: center; gap: 12px;
  background: var(--green-tint); border-radius: var(--r-tile); padding: 15px 16px;
}
.pos-goods .txt { font-size: 15px; font-weight: 800; color: #13603a; line-height: 1.3; }
.pos-goods .tick {
  width: 30px; height: 30px; flex: none; margin-left: auto; border-radius: 50%;
  background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center;
}
.pos-goods > svg { width: 26px; height: 26px; color: var(--green); flex: none; }

.pos-receipt { padding: 2px 2px 0; }
.pos-receipt h2 { font-size: 16px; font-weight: 800; margin: 0 0 10px; }
.pos-receipt dl { margin: 0; display: flex; flex-direction: column; gap: 11px; padding-top: 12px; border-top: 1px solid var(--line); }
.pos-receipt .row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.pos-receipt dt { font-size: 13.5px; color: var(--ink-2); }
.pos-receipt dd { margin: 0; font-size: 13.5px; font-weight: 700; text-align: right; }

/* success / failure marks */
.pos-mark { display: flex; justify-content: center; padding: 22px 0 6px; position: relative; }
.pos-mark .disc {
  width: 92px; height: 92px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  animation: posPop 0.42s cubic-bezier(0.22, 1.2, 0.36, 1) both;
}
.pos-mark .disc.ok { background: var(--green); color: #fff; }
.pos-mark .disc.no { background: var(--red); color: #fff; }
.pos-mark .disc svg { width: 46px; height: 46px; }
@keyframes posPop { 0% { transform: scale(0.3); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }

.pos-burst { position: absolute; inset: 0; pointer-events: none; }
.pos-burst i {
  position: absolute; left: 50%; top: 50%;
  width: 4px; height: 15px; border-radius: 3px;
  transform-origin: 50% 62px;
  opacity: 0;
  animation: posRay 0.6s ease-out both;
}
@keyframes posRay {
  0% { opacity: 0; transform: rotate(var(--a)) translateY(14px) scale(0.5); }
  55% { opacity: 1; }
  100% { opacity: 0; transform: rotate(var(--a)) translateY(-6px) scale(1); }
}

.pos-headline { text-align: center; }
.pos-headline h1 { font-size: 27px; font-weight: 800; margin: 6px 0 4px; letter-spacing: -0.6px; }
.pos-headline p { font-size: 14.5px; color: var(--ink-2); margin: 0; }

/* ---------- waiting for payment (docs/POS/Waiting for Payment.png) ---------- */

.pos-wait-bar { display: none; }
.pos-waiting,
.pos-waiting .pos-shell { background: #faf6f2; }
.pos-waiting .pos-charge-appbar { display: none; }
.pos-waiting .pos-wait-bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(6px + env(safe-area-inset-top)) 16px 0 24px;
}
.pos-wait-brand { display: flex; align-items: center; gap: 5px; min-width: 0; }
.pos-wait-brand > img { width: 34px; height: 34px; object-fit: contain; flex: none; }
.pos-wait-brand > span { display: flex; flex-direction: column; gap: 2px; }
.pos-wait-brand .word { font-size: 17px; line-height: 1; font-weight: 800; letter-spacing: -0.5px; color: #121212; }
.pos-wait-brand .word b { font-weight: 500; color: #f08a1c; }
.pos-wait-brand .tag { font-size: 7.8px; line-height: 1; font-weight: 500; color: #7d7a75; white-space: nowrap; }
.pos-wait-cancel {
  display: inline-flex;
  align-items: center;
  height: 29px;
  padding: 0 14px;
  border-radius: 999px;
  background: #f0ebe6;
  color: #45433f;
  font-size: 12px;
  font-weight: 500;
  -webkit-tap-highlight-color: transparent;
}
.pos-wait-cancel:active { background: #e6e0da; }

.pos-waiting .pos-main { padding: 0 16px 24px; gap: 0; }

.pos-wait {
  display: flex;
  flex-direction: column;
  flex: 1;
  color: #121212;
}
.pos-wait-hero {
  position: relative;
  z-index: 0;
  width: min(345px, 88%);
  margin: -4px auto -12px;
  aspect-ratio: 1036 / 836;
}
.pos-wait-hero img {
  display: block;
  width: 100%;
  height: 100%;
  animation: posWaitFloat 3.2s ease-in-out infinite alternate;
}
@keyframes posWaitFloat { from { transform: translateY(2px); } to { transform: translateY(-4px); } }

.pos-wait-head { position: relative; z-index: 1; text-align: center; }
.pos-wait-head h2 {
  margin: 0;
  font-size: 31px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.035em;
}
.pos-wait-head p { margin: 4px 0 0; font-size: 14.5px; line-height: 18.5px; color: #64666a; }

.pos-wait-amounts {
  margin-top: 15px;
  min-height: 89px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
  align-items: center;
  column-gap: 40px;
  padding: 12px 20px 12px 24px;
  border-radius: 16px;
  background: #f3efea;
}
.pos-wait-amounts .side { display: flex; flex-direction: column; min-width: 0; }
.pos-wait-amounts .rule { width: 1px; height: 45px; background: #ddd7d0; }
.pos-wait-amounts .kicker { font-size: 10px; line-height: 1.2; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: #85837e; white-space: nowrap; }
.pos-wait-amounts .kicker { font-size: 9px; }
.pos-wait-amounts .kes,
.pos-wait-amounts .sats { margin-top: 7px; font-size: 22.5px; line-height: 1.05; font-weight: 700; letter-spacing: -0.03em; white-space: nowrap; }
.pos-wait-amounts .kes small { font-size: 16px; font-weight: 800; letter-spacing: -0.01em; }
.pos-wait-amounts .sats { font-size: 16.5px; color: #f28a1e; }
.pos-wait-amounts .sats b { font-size: 23px; font-weight: 700; }
.pos-wait-amounts .cap { margin-top: 5px; font-size: 11px; line-height: 1.2; color: #6a6863; white-space: nowrap; }

.pos-wait-steps { list-style: none; margin: 18px 0 0; padding: 0 0 0 8px; }
.pos-wait-steps li {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  column-gap: 22px;
  align-items: start;
  min-height: 50px;
}
.pos-wait-steps li:nth-child(2) { min-height: 56px; }
.pos-wait-steps li:last-child { min-height: 24px; }
.pos-wait-steps li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 24px;
  bottom: -2px;
  width: 2px;
  background: #e2ddd7;
}
.pos-wait-steps li.done:not(:last-child)::before { background: #f6cba4; }
.pos-wait-steps .dot {
  position: relative;
  width: 24px;
  height: 24px;
  margin-top: -2px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
.pos-wait-steps .dot svg { width: 13px; height: 13px; }
.pos-wait-steps .done .dot { background: #fb8c14; color: #fff; box-shadow: 0 3px 8px rgba(251, 140, 20, 0.25); }
.pos-wait-steps .now .dot { background: #fbf6f1; border: 2px solid #fb8c14; }
.pos-wait-steps .now .dot i { width: 10px; height: 10px; border-radius: 50%; background: #fb8c14; }
.pos-wait-steps .now .dot::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid #fb8c14;
  animation: posWaitPulse 1.6s ease-out infinite;
}
@keyframes posWaitPulse { from { transform: scale(1); opacity: 0.55; } to { transform: scale(1.7); opacity: 0; } }
.pos-wait-steps .idle .dot { background: #ede9e4; border: 1.5px solid #e0dad3; }
.pos-wait-steps .idle .dot i { display: none; }
.pos-wait-steps .txt { display: flex; flex-direction: column; min-width: 0; }
.pos-wait-steps .txt b { font-size: 13px; line-height: 20px; font-weight: 500; letter-spacing: -0.01em; color: #1c1c1c; }
.pos-wait-steps .txt small { margin-top: 1px; font-size: 11px; line-height: 1.2; color: #7c7a76; }
.pos-wait-steps .idle .txt b { color: #a19e99; }

.pos-wait-help {
  margin-top: 26px;
  border-radius: 16px;
  background: #fbead9;
  overflow: hidden;
}
.pos-wait-help-btn {
  width: 100%;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 18px 8px 12px;
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.pos-wait-help-btn:focus-visible { outline: 2px solid #f08a1c; outline-offset: -2px; border-radius: 16px; }
.pos-wait-help-btn .icon {
  width: 37px;
  height: 37px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fde1c1;
  color: #f08a1c;
}
.pos-wait-help-btn .icon svg { width: 20px; height: 20px; }
.pos-wait-help-btn .copy { display: flex; flex-direction: column; min-width: 0; }
.pos-wait-help-btn b { font-size: 13px; line-height: 1.2; font-weight: 700; color: #161616; }
.pos-wait-help-btn small { margin-top: 3px; font-size: 11px; line-height: 1.25; color: #5a5752; }
.pos-wait-help-btn .chev { width: 20px; height: 20px; margin-left: auto; flex: none; color: #f08a1c; transition: transform 0.2s ease; }
.pos-wait-help-btn[aria-expanded="true"] .chev { transform: rotate(90deg); }
.pos-wait-tips {
  margin: 0;
  padding: 2px 18px 14px 61px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 11.5px;
  line-height: 1.35;
  color: #4d4a45;
  animation: posRise 0.25s ease both;
}
.pos-wait-tips a { color: #c86a0c; font-weight: 700; text-decoration: underline; }

@media (max-height: 700px) {
  .pos-wait-hero { width: min(250px, 64%); }
  .pos-wait-head h2 { font-size: 27px; }
  .pos-wait-amounts { margin-top: 12px; min-height: 80px; }
  .pos-wait-steps { margin-top: 14px; }
  .pos-wait-help { margin-top: 16px; }
}
@media (max-width: 374px) {
  .pos-wait-amounts { column-gap: 16px; padding-left: 16px; padding-right: 14px; }
  .pos-wait-amounts .kes, .pos-wait-amounts .sats b { font-size: 22px; }
  .pos-wait-head h2 { font-size: 27px; }
}
@media (prefers-reduced-motion: reduce) {
  .pos-wait-hero img, .pos-wait-steps .now .dot::after { animation: none; }
}

/* ---------- payment success (docs/POS/POS payment Success screen.png) ---------- */

.pos-ok-brand { display: none; }
.pos-success .pos-charge-appbar {
  grid-template-columns: 40px minmax(0, 1fr) auto;
  min-height: 48px;
  padding: calc(4px + env(safe-area-inset-top)) 14px 0 12px;
}
.pos-success .pos-charge-appbar h1 { font-size: 17.5px; font-weight: 700; letter-spacing: -0.3px; white-space: nowrap; }
.pos-success .pos-ok-brand { display: flex; align-items: center; gap: 5px; }
.pos-ok-brand > img { width: 29px; height: 29px; object-fit: contain; }
.pos-ok-brand > span { display: flex; flex-direction: column; gap: 1px; }
.pos-ok-brand .word { font-size: 16px; font-weight: 800; letter-spacing: -0.5px; line-height: 1; color: var(--ink); }
.pos-ok-brand .word b { color: var(--orange); font-weight: 800; }
.pos-ok-brand .partner { display: flex; align-items: center; gap: 2px; font-size: 5.6px; font-weight: 600; color: #6b7280; line-height: 1; white-space: nowrap; }
.pos-ok-brand .partner img { height: 6px; width: auto; }

.pos-success .pos-main { padding: 0 17px; gap: 0; }
.pos-success .pos-shell { overflow-x: hidden; }

.pos-ok {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  color: var(--ink);
}
.pos-ok > * { position: relative; z-index: 1; }
.pos-ok > .pos-ok-wash {
  position: absolute;
  z-index: 0;
  top: 0;
  left: -17px;
  width: calc(100% + 34px);
  height: 250px;
  opacity: 0.55;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
}

.pos-ok-mark {
  height: 97px;
  margin-top: 21px;
  display: flex;
  justify-content: center;
}
.pos-ok-mark .disc {
  width: 97px;
  height: 97px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(145deg, #2fa24f 0%, #1a8e41 55%, #127b37 100%);
  box-shadow: 0 10px 24px rgba(20, 130, 60, 0.18);
  animation: posPop 0.42s cubic-bezier(0.22, 1.2, 0.36, 1) both;
}
.pos-ok-mark .disc svg { width: 46px; height: 46px; }
.pos-ok-mark i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 6px;
  margin: -3px 0 0 -9px;
  border-radius: 3px;
  background: var(--c);
  transform: translate(calc(var(--x) * var(--s, 1)), calc(var(--y) * var(--s, 1))) rotate(var(--r));
  animation: posOkRay 0.5s 0.15s cubic-bezier(0.22, 1.1, 0.36, 1) both;
}
@keyframes posOkRay {
  from { opacity: 0; transform: translate(calc(var(--x) * 0.6), calc(var(--y) * 0.6)) rotate(var(--r)) scale(0.4); }
  to { opacity: 1; transform: translate(calc(var(--x) * var(--s, 1)), calc(var(--y) * var(--s, 1))) rotate(var(--r)); }
}

.pos-ok-head { margin-top: 10px; text-align: center; }
.pos-ok-head h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: #1b2230;
}
.pos-ok-head p { margin: 4px 0 0; font-size: 16px; line-height: 1.3; font-weight: 500; color: #5d6674; }

.pos-ok-amounts {
  margin-top: 12px;
  width: 100%;
  min-height: 81px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 10px 20px;
  border: 0;
  border-radius: 16px;
  background: #f2f3f6;
  box-shadow: 0 6px 18px rgba(16, 21, 28, 0.05);
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s ease, background 0.12s ease;
}
.pos-ok-amounts:active { transform: scale(0.99); background: #eceef2; }
.pos-ok-amounts:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.pos-ok-amounts .side { display: flex; flex-direction: column; min-width: 0; }
.pos-ok-amounts .right { align-items: flex-end; text-align: right; }
.pos-ok-amounts .rule { width: 1px; height: 32px; background: #d9dde3; }
.pos-ok-amounts .kes,
.pos-ok-amounts .sats { font-size: 32px; line-height: 1.05; font-weight: 800; letter-spacing: -0.04em; white-space: nowrap; }
.pos-ok-amounts .kes small { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; }
.pos-ok-amounts .sats { font-size: 22px; color: #11753a; }
.pos-ok-amounts .sats b { font-size: 32px; font-weight: 800; color: #f5a623; }
.pos-ok-amounts .cap { margin-top: 3px; font-size: 14px; line-height: 1.2; font-weight: 500; color: #5d6674; white-space: nowrap; }

.pos-ok-fees {
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f7f8fa;
  border: 1px solid #eceef1;
  animation: posRise 0.25s ease both;
}
.pos-ok-fees h3 { margin: 0 0 8px; font-size: 13px; font-weight: 800; }
.pos-ok-fees dl { margin: 0; display: flex; flex-direction: column; gap: 7px; }
.pos-ok-fees dl > div { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; }
.pos-ok-fees dt { color: #5d6674; }
.pos-ok-fees dd { margin: 0; font-weight: 700; text-align: right; }
.pos-ok-fees dd span { font-weight: 500; opacity: 0.65; }
.pos-ok-fees .total { padding-top: 7px; border-top: 1px solid #e3e6eb; }
.pos-ok-fees .total dt { color: var(--ink); font-weight: 800; }

.pos-ok-goods {
  margin-top: 12px;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 8px 15px 8px 13px;
  border-radius: 16px;
  background: #e2f4e6;
}
.pos-ok-goods .box { width: 33px; height: 33px; flex: none; color: #13843f; }
.pos-ok-goods .txt { font-size: 15.5px; line-height: 1.27; font-weight: 700; letter-spacing: -0.02em; color: #0f6a35; }
.pos-ok-goods .tick {
  width: 34px;
  height: 34px;
  margin-left: auto;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: #13843f;
}
.pos-ok-goods .tick svg { width: 18px; height: 18px; }

.pos-ok-receipt { margin-top: 16px; }
.pos-ok-receipt h3 { margin: 0 0 8px; font-size: 17px; line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; }
.pos-ok-receipt dl { margin: 0; padding-top: 5px; border-top: 1px solid #e3e6eb; }
.pos-ok-receipt dl > div {
  display: grid;
  grid-template-columns: 18px auto minmax(0, 1fr);
  align-items: center;
  column-gap: 19px;
  min-height: 28.5px;
  padding-left: 3px;
}
.pos-ok-receipt svg { width: 19px; height: 19px; color: #3b4352; }
.pos-ok-receipt dt { font-size: 13px; color: #6b7380; }
.pos-ok-receipt dd {
  margin: 0;
  font-size: 13.5px;
  font-weight: 500;
  color: #151a22;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* slide to share */
.pos-slide {
  --slide-x: 0px;
  --slide-p: 0;
  position: relative;
  margin-top: 19px;
  height: 60px;
  border-radius: 30px;
  overflow: hidden;
  background: linear-gradient(90deg, #d3f0d9 0%, #e4f7e7 55%, #d8f2dd 100%);
  box-shadow: 0 0 0 4px rgba(214, 242, 220, 0.55), 0 10px 24px rgba(22, 160, 70, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.pos-slide-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: calc(var(--slide-x) + 60px);
  border-radius: 30px;
  background: linear-gradient(90deg, #1fae52, #25d366);
  opacity: calc(var(--slide-p) * 1.3);
}
.pos-slide-label {
  position: absolute;
  inset: 0 12px 0 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  color: #0f5e32;
  opacity: calc(1 - var(--slide-p) * 1.6);
  pointer-events: none;
}
.pos-slide-label .wa { width: 37px; height: 37px; flex: none; color: #22b14c; }
.pos-slide-label .txt { font-size: 15px; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; }
.pos-slide-knob {
  position: absolute;
  left: 4px;
  top: 4px;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0f6b36;
  background: #fff;
  box-shadow: 0 6px 14px rgba(15, 70, 35, 0.18), 0 0 0 1px rgba(15, 70, 35, 0.04);
  cursor: grab;
  touch-action: none;
  transform: translateX(var(--slide-x));
  transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.15);
  -webkit-tap-highlight-color: transparent;
}
.pos-slide-knob svg { width: 22px; height: 22px; }
.pos-slide-knob:focus-visible { outline: 2px solid #0f6b36; outline-offset: 2px; }
.pos-slide.is-dragging .pos-slide-knob { cursor: grabbing; transition: none; }
.pos-slide.is-dragging .pos-slide-fill { transition: none; }
.pos-slide-fill { transition: width 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.15), opacity 0.2s ease; }
.pos-slide.is-hint .pos-slide-knob { animation: posSlideHint 0.6s ease; }
@keyframes posSlideHint { 0%, 100% { transform: translateX(0); } 35% { transform: translateX(26px); } 65% { transform: translateX(-3px); } }
.pos-slide.is-done .pos-slide-fill { width: 100%; opacity: 1; }
.pos-slide.is-done .pos-slide-label { opacity: 1; color: #fff; inset: 0 60px 0 12px; }
.pos-slide.is-done .pos-slide-label .wa { color: #fff; }
.pos-slide-noscript { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: #25d366; color: #fff; font-weight: 700; }

.pos-ok-pdf,
.pos-ok-new {
  position: relative;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s ease, background 0.12s ease;
}
.pos-ok-pdf:active,
.pos-ok-new:active { transform: scale(0.985); }
.pos-ok-pdf {
  margin-top: 19px;
  gap: 16px;
  background: #eff1f5;
  color: #1b2330;
  font-size: 14.5px;
  font-weight: 500;
}
.pos-ok-pdf svg { width: 24px; height: 24px; }
.pos-ok-new {
  margin-top: 8px;
  margin-bottom: 10px;
  color: #fff;
  background: linear-gradient(180deg, #179343 0%, #0f7d39 100%);
  box-shadow: 0 6px 16px rgba(14, 122, 60, 0.18);
  font-size: 15.5px;
  font-weight: 700;
}
.pos-ok-new svg { position: absolute; right: 22px; width: 21px; height: 21px; }

.pos-ok-foot {
  position: relative;
  margin: auto -17px 0;
  height: 60px;
  flex: none;
}
.pos-ok-foot .waves { position: absolute; left: 0; bottom: 0; width: 100%; height: 58px; }
.pos-ok-foot .script {
  position: absolute;
  right: 42px;
  bottom: 18px;
  font-family: "Kalam", "Segoe Print", "Bradley Hand", cursive;
  font-size: 15.5px;
  line-height: 0.98;
  font-weight: 700;
  color: #161a20;
  transform: rotate(-8deg);
}
.pos-ok-foot .script::after {
  content: "";
  position: absolute;
  left: 34%;
  right: 2%;
  bottom: -5px;
  height: 7px;
  border-bottom: 2.5px solid #f5b82e;
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
}
.pos-ok-foot .tag {
  position: absolute;
  right: 34px;
  bottom: 4px;
  font-size: 7.5px;
  font-weight: 500;
  color: #4b5260;
  white-space: nowrap;
}

/* short phones: keep the whole receipt in one screen */
@media (max-height: 780px) {
  .pos-ok-mark { height: 80px; margin-top: 8px; }
  .pos-ok-mark .disc { width: 80px; height: 80px; }
  .pos-ok-mark .disc svg { width: 38px; height: 38px; }
  .pos-ok-mark i { --s: 0.84; }
  .pos-ok-head { margin-top: 6px; }
  .pos-ok-head h2 { font-size: 25px; }
  .pos-ok-head p { font-size: 14.5px; }
  .pos-ok-amounts { margin-top: 10px; min-height: 70px; }
  .pos-ok-goods { margin-top: 9px; min-height: 56px; }
  .pos-ok-receipt { margin-top: 12px; }
  .pos-ok-receipt h3 { font-size: 15.5px; margin-bottom: 5px; }
  .pos-ok-receipt dl > div { min-height: 25px; }
  .pos-slide { margin-top: 14px; height: 54px; }
  .pos-slide-knob { width: 46px; height: 46px; }
  .pos-slide-fill { width: calc(var(--slide-x) + 54px); }
  .pos-slide-label { left: 54px; }
  .pos-ok-pdf { margin-top: 13px; height: 42px; }
  .pos-ok-new { height: 42px; margin-top: 7px; }
  .pos-ok-foot { height: 58px; }
  .pos-ok-foot .waves { height: 48px; }
}

@media (max-width: 374px) {
  .pos-success .pos-charge-appbar h1 { font-size: 15.5px; }
  .pos-ok-brand .word { font-size: 14px; }
  .pos-ok-amounts { padding: 10px 14px; gap: 10px; }
  .pos-ok-amounts .kes, .pos-ok-amounts .sats b { font-size: 28px; }
  .pos-ok-amounts .cap { font-size: 12.5px; }
  .pos-slide-label .txt { font-size: 14px; }
  .pos-slide-label .wa { width: 26px; height: 26px; }
}

/* ---------- simple forms (setup/profile) ---------- */

.pos-eyebrow { font-size: 12.5px; font-weight: 800; letter-spacing: 0.4px; text-transform: uppercase; color: var(--green); margin: 0; }
.pos-form { display: flex; flex-direction: column; gap: 16px; }
.pos-form .pos-field select {
  border: none; background: transparent; outline: none; appearance: none;
  font-family: inherit; font-size: 16px; font-weight: 700; color: var(--ink);
  flex: 1 1 auto; min-width: 0; width: 100%;
}
.pos-label small { font-weight: 600; color: var(--ink-3); text-transform: none; letter-spacing: 0; }
.pos-check-row {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  background: var(--surface); border-radius: var(--r-tile); padding: 14px 16px;
  font-size: 14px; font-weight: 700; color: var(--ink);
}
.pos-check-row input { width: 19px; height: 19px; accent-color: var(--green); flex: none; }

/* ---------- night screens (processing) ---------- */

.pos-night { background: var(--night); color: #fff; }
.pos-night .pos-shell { background: var(--night); }
.pos-night .pos-appbar h1,
.pos-night .pos-back { color: #fff; }
.pos-night .pos-headline h1 { color: #fff; }
.pos-night .pos-headline p { color: #98a3b3; }
.pos-night .pos-btn-secondary { background: var(--night-surface); color: #d8dee7; border: 1px solid var(--night-line); }

.pos-ringwrap { display: flex; justify-content: center; padding: 26px 0 4px; position: relative; }
.pos-ring { width: 176px; height: 176px; }
.pos-ring circle { fill: none; stroke-linecap: round; }
.pos-ring .track { stroke: #223041; stroke-width: 9; }
.pos-ring .arc {
  stroke: url(#posGold); stroke-width: 9;
  stroke-dasharray: 300 440; transform-origin: 50% 50%;
  animation: posSpin 1.35s linear infinite;
}
@keyframes posSpin { to { transform: rotate(360deg); } }
.pos-ring-core {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 9px; color: #fff;
}
.pos-ring-core svg { width: 40px; height: 40px; }
.pos-ring-dots { display: flex; gap: 6px; }
.pos-ring-dots i { width: 7px; height: 7px; border-radius: 50%; background: #3c4a5c; animation: posDot 1.2s ease-in-out infinite; }
.pos-ring-dots i:nth-child(2) { animation-delay: 0.18s; }
.pos-ring-dots i:nth-child(3) { animation-delay: 0.36s; }
@keyframes posDot { 0%, 100% { background: #3c4a5c; } 40% { background: var(--orange); } }

.pos-split {
  display: flex; align-items: stretch;
  background: var(--night-surface); border: 1px solid var(--night-line);
  border-radius: var(--r-card); overflow: hidden;
}
.pos-split > div { flex: 1 1 0; padding: 16px 18px; }
.pos-split > div + div { border-left: 1px solid var(--night-line); }
.pos-split .k { font-size: 21px; font-weight: 800; color: #fff; letter-spacing: -0.3px; }
.pos-split .k small { font-size: 13px; font-weight: 700; color: #98a3b3; margin-right: 5px; }
.pos-split .s { font-size: 21px; font-weight: 800; color: var(--orange); letter-spacing: -0.3px; }
.pos-split .s span { font-size: 13px; font-weight: 700; }
.pos-split .cap { font-size: 12.5px; color: #8b97a8; margin-top: 4px; }

.pos-steps { display: flex; flex-direction: column; padding: 4px 4px 0; }
.pos-step { display: flex; align-items: flex-start; gap: 13px; position: relative; padding-bottom: 22px; }
.pos-step:last-child { padding-bottom: 0; }
.pos-step::before {
  content: ""; position: absolute; left: 13px; top: 28px; bottom: 2px;
  width: 2px; background: var(--night-line);
}
.pos-step:last-child::before { display: none; }
.pos-step .bullet {
  width: 28px; height: 28px; flex: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; z-index: 1;
  background: var(--night-surface); border: 2px solid var(--night-line);
}
.pos-step .bullet svg { width: 15px; height: 15px; }
.pos-step.done .bullet { background: var(--green); border-color: var(--green); color: #fff; }
.pos-step.now .bullet { border-color: var(--green); background: var(--night); }
.pos-step.now .bullet i { width: 11px; height: 11px; border-radius: 50%; background: var(--orange); animation: posPulse 1.3s ease-in-out infinite; }
@keyframes posPulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(0.72); opacity: 0.65; } }
.pos-step .txt { font-size: 14.5px; font-weight: 600; color: #e6ebf2; line-height: 1.35; padding-top: 4px; }
.pos-step.idle .txt { color: #7a8798; }
.pos-step .time { margin-left: auto; font-size: 12.5px; color: #8b97a8; padding-top: 6px; }

/* ---------- bottom nav ---------- */

.pos-nav {
  position: fixed; left: 50%; right: auto; bottom: 0; z-index: 30;
  width: 100%;
  transform: translateX(-50%);
  display: flex; align-items: stretch; justify-content: space-around;
  max-width: 430px; margin: 0 auto;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding: 8px 4px calc(8px + env(safe-area-inset-bottom));
}
.pos-nav a {
  flex: 1 1 0;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 6px 0 2px;
  font-size: 11px; font-weight: 700; color: var(--ink-3);
}
.pos-nav a svg { width: 23px; height: 23px; }
.pos-nav a.active { color: var(--green); }

/* ---------- motion ---------- */

.pos-rise { animation: posRise 0.42s cubic-bezier(0.22, 0.9, 0.3, 1) both; }
.pos-main > * { animation: posRise 0.4s cubic-bezier(0.22, 0.9, 0.3, 1) both; }
.pos-main > *:nth-child(1) { animation-delay: 0.02s; }
.pos-main > *:nth-child(2) { animation-delay: 0.06s; }
.pos-main > *:nth-child(3) { animation-delay: 0.1s; }
.pos-main > *:nth-child(4) { animation-delay: 0.14s; }
.pos-main > *:nth-child(5) { animation-delay: 0.18s; }
.pos-main > *:nth-child(6) { animation-delay: 0.22s; }
@keyframes posRise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .pos-main > *, .pos-rise, .pos-mark .disc, .pos-burst i { animation: none !important; }
  .pos-ring .arc { animation-duration: 4s; }
}
