/* Tapo — shared look for every page (tokens first, then parts). */
:root {
  --bg: #F7F7F5;
  --surface: #FFFFFF;
  --ink: #0B1F17;
  --ink-2: #374151;
  --muted: #6B7280;
  --faint: #9CA3AF;
  --line: #E2E2DE;
  --brand: #9FE870;
  --brand-press: #8ED65F;
  --danger: #C0352B;
  --danger-bg: #FDF1F0;
  --radius: 12px;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.page {
  min-height: 100vh;
  min-height: 100dvh;
  max-width: 420px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding: calc(28px + env(safe-area-inset-top)) 24px calc(32px + env(safe-area-inset-bottom));
}

.brand { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; background: var(--brand);
  display: grid; place-items: center;
}
.brand-name { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }
.brand-name span { font-weight: 500; color: var(--muted); }

main {
  flex: 1;
  display: flex; flex-direction: column; justify-content: center;
  gap: 28px; padding: 40px 0 24px;
}
.head { display: flex; flex-direction: column; gap: 6px; }
h1 { margin: 0; font-size: 28px; font-weight: 800; line-height: 1.2; letter-spacing: -0.015em; }
.sub { margin: 0; font-size: 15px; color: var(--muted); }

form { display: flex; flex-direction: column; gap: 28px; }
.fields { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
label { font-size: 13px; font-weight: 600; color: var(--ink-2); }

.control {
  height: 50px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--surface); display: flex; align-items: center; overflow: hidden;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.control:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(11,31,23,.08); }
.control.invalid { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(192,53,43,.1); }
.prefix {
  position: relative; height: 100%; display: flex; align-items: center; flex: none;
  border-right: 1px solid var(--line);
}
.prefix select {
  appearance: none; -webkit-appearance: none; height: 100%; border: 0; outline: 0; background: transparent;
  padding: 0 26px 0 12px; font: inherit; font-size: 15px; color: var(--ink-2); cursor: pointer;
  font-variant-numeric: tabular-nums;
}
.prefix::after {
  content: ""; position: absolute; right: 11px; top: 50%; width: 6px; height: 6px; margin-top: -5px;
  border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted); transform: rotate(45deg);
  pointer-events: none;
}
.control input {
  flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent;
  padding: 0 14px; font: inherit; font-size: 16px; color: var(--ink);
}
.control input::placeholder { color: var(--faint); }
#phone { font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.reveal {
  height: 100%; padding: 0 14px; border: 0; background: transparent; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 600; color: var(--muted);
}
.reveal:hover { color: var(--ink); }
.reveal:focus-visible { outline-offset: -4px; border-radius: 10px; }

.error { font-size: 12.5px; color: var(--danger); min-height: 0; }
.error:empty { display: none; }

.banner {
  font-size: 13.5px; line-height: 1.4; color: var(--danger); background: var(--danger-bg);
  border-radius: 10px; padding: 10px 12px; margin-top: -12px;
}
.banner[hidden] { display: none; }

.btn {
  height: 54px; border-radius: 14px; border: 0; width: 100%;
  background: var(--brand); color: var(--ink);
  font: inherit; font-size: 16px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: background-color .15s ease, transform .1s ease;
}
.btn:hover { background: var(--brand-press); text-decoration: none; }
.btn:active { transform: scale(.985); }
.btn[disabled] { cursor: progress; opacity: .85; }
.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(11,31,23,.25); border-top-color: var(--ink);
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }



footer { text-align: center; font-size: 14px; color: var(--muted); }
footer a { font-weight: 700; }

.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom));
  transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
  background: var(--ink); color: #fff; font-size: 14px; font-weight: 500;
  padding: 12px 16px; border-radius: 12px; max-width: calc(100vw - 32px);
  transition: opacity .2s ease, transform .2s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }



/* Sign-up */
.steps { display: flex; align-items: center; gap: 12px; }
.steps-bar { flex: 1; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.steps-bar i { display: block; height: 100%; width: 50%; background: var(--ink); border-radius: 4px; transition: width .3s ease; }
.steps-label { font-size: 12px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }

.back {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px;
  border: 0; background: none; padding: 6px 0; margin: -6px 0; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 600; color: var(--ink);
}

.rules { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.rules li { font-size: 12.5px; color: var(--faint); display: flex; align-items: center; gap: 5px; transition: color .15s ease; }
.rules li::before {
  content: ""; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid currentColor; flex: none;
  transition: background-color .15s ease, border-color .15s ease;
}
.rules li.ok { color: var(--ink); }
.rules li.ok::before {
  border-color: var(--brand); background: var(--brand)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%230B1F17' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 10px no-repeat;
}

.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); font-weight: 400; cursor: pointer; }
.check input {
  appearance: none; -webkit-appearance: none; flex: none; margin: 1px 0 0;
  width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid #CFCFCA; background: var(--surface);
  cursor: pointer; transition: background-color .15s ease, border-color .15s ease;
}
.check input:checked {
  border-color: var(--ink); background: var(--ink)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 14px no-repeat;
}
.check input[aria-invalid="true"] { border-color: var(--danger); }
.check a { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

.otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.otp input {
  width: 100%; min-width: 0; height: 56px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--surface); text-align: center; font: inherit; font-size: 22px; font-weight: 700; color: var(--ink);
  outline: 0; font-variant-numeric: tabular-nums; caret-color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.otp input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(11,31,23,.08); }
.otp.invalid input { border-color: var(--danger); }
.otp.shake { animation: shake .35s ease; }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }

.resend { font-size: 13.5px; color: var(--muted); }
.resend button { border: 0; background: none; padding: 0; font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; }
.resend button[disabled] { color: var(--faint); cursor: default; font-weight: 600; }


.done { align-items: center; text-align: center; }
.done-mark {
  width: 72px; height: 72px; border-radius: 50%; background: var(--brand);
  display: grid; place-items: center; animation: pop .35s cubic-bezier(.2, .9, .3, 1.3);
}
@keyframes pop { from { transform: scale(.6); opacity: 0; } }

[data-step][hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .otp.shake, .done-mark { animation: none; }
  .spinner { animation-duration: 1.5s; }
}

/* Home */
.topbar { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--ink); color: #fff; font: inherit; font-size: 14px; font-weight: 700;
}
.menu-wrap { position: relative; }
.menu {
  position: absolute; right: 0; top: 46px; z-index: 5; min-width: 220px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 12px 32px rgba(11,31,23,.12); padding: 6px; transform-origin: top right;
  animation: menu-in .14s ease-out;
}
@keyframes menu-in { from { opacity: 0; transform: scale(.96); } }
.menu[hidden] { display: none; }
.menu-who { padding: 10px 12px 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.menu-who b { display: block; font-size: 14px; }
.menu-who span { font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.menu button {
  display: block; width: 100%; text-align: left; border: 0; background: none; border-radius: 10px;
  padding: 10px 12px; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer;
}
.menu button:hover { background: var(--bg); }

.home { flex: 1; display: flex; flex-direction: column; justify-content: flex-start; gap: 24px; padding: 28px 0 8px; }
.hello { font-size: 15px; color: var(--muted); margin: 0; }

.balance { background: var(--ink); color: #fff; border-radius: 20px; padding: 22px 20px 20px; display: flex; flex-direction: column; gap: 18px; }
.balance-label { font-size: 13px; color: rgba(255,255,255,.7); display: flex; align-items: center; gap: 8px; }
.balance-label .cur { background: var(--brand); color: var(--ink); border-radius: 6px; padding: 2px 6px; font-size: 11px; font-weight: 700; }
.balance-amount { font-size: 38px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.balance-amount small { font-size: 22px; font-weight: 700; opacity: .8; }


.section { display: flex; flex-direction: column; gap: 10px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; }
.section h2 { margin: 0; font-size: 16px; font-weight: 700; }

.cardbox {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px;
  display: flex; align-items: center; gap: 14px;
}
.cardbox .mini {
  width: 52px; height: 34px; border-radius: 7px; flex: none; position: relative;
  background: linear-gradient(135deg, #9FE870, #6CC24A);
}
.cardbox .mini::after { content: ""; position: absolute; left: 7px; top: 9px; width: 10px; height: 8px; border-radius: 2px; background: rgba(11,31,23,.35); }
.cardbox .txt { flex: 1; min-width: 0; }
.cardbox .txt b { display: block; font-size: 14px; }
.cardbox .txt span { font-size: 13px; color: var(--muted); }
.pill-btn {
  border: 0; border-radius: 999px; padding: 9px 14px; background: var(--brand); color: var(--ink);
  font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; flex: none;
}
.pill-btn[disabled] { opacity: .7; cursor: progress; }
.tag { font-size: 12px; font-weight: 600; border-radius: 999px; padding: 5px 10px; background: #FFF4D6; color: #7A5B00; flex: none; }

.activity { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.tx { display: flex; align-items: center; gap: 12px; padding: 13px 16px; }
.tx + .tx { border-top: 1px solid var(--line); }
.tx-ico { width: 38px; height: 38px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; flex: none; font-size: 15px; }
.tx-main { flex: 1; min-width: 0; }
.tx-main b { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx-main span { font-size: 12.5px; color: var(--muted); }
.tx-amt { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tx-amt.in { color: #2F7D1E; }
.tx-amt.muted { color: var(--faint); text-decoration: line-through; }
.empty { padding: 28px 20px; text-align: center; color: var(--muted); font-size: 14px; }
.empty b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }

.skeleton { background: linear-gradient(90deg, var(--line) 25%, #ECECE8 50%, var(--line) 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 8px; color: transparent !important; }
.balance .skeleton { background: linear-gradient(90deg, rgba(255,255,255,.08) 25%, rgba(255,255,255,.16) 50%, rgba(255,255,255,.08) 75%); background-size: 200% 100%; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } .menu { animation: none; } }

/* Money screens: send, cash out, add / receive */
.flow { justify-content: flex-start !important; padding-top: 28px !important; }
.amount-control { height: 64px; }
.amount-control .prefix { font-size: 22px; font-weight: 700; color: var(--ink); padding: 0 6px 0 16px; border-right: 0; }
.amount-control input { font-size: 28px; font-weight: 800; padding-left: 0; font-variant-numeric: tabular-nums; }
.hint { font-size: 13px; color: var(--muted); }
.hint b { color: var(--ink); font-variant-numeric: tabular-nums; }

.who { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.who-ico { width: 38px; height: 38px; border-radius: 50%; background: var(--brand); display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; }
.who b { display: block; font-size: 15px; }
.who span { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.who .change { margin-left: auto; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 700; color: var(--ink); cursor: pointer; padding: 6px; }

.review { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.review div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 16px; font-size: 14px; }
.review div + div { border-top: 1px solid var(--line); }
.review dt { color: var(--muted); }
.review dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.review .total dd { font-size: 17px; font-weight: 800; }

.row2 { display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px; }

.copy-line { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 6px 0 14px; min-height: 50px; }
.copy-line span { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; padding: 10px 0; }
.copy-line button { border: 0; background: var(--bg); border-radius: 9px; padding: 8px 12px; font: inherit; font-size: 13px; font-weight: 700; color: var(--ink); cursor: pointer; flex: none; }
.qr { align-self: center; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 16px; line-height: 0; }
.qr svg, .qr img { width: 200px; height: 200px; }
.bank { display: flex; flex-direction: column; gap: 8px; }

.sheet-back { position: fixed; inset: 0; background: rgba(11,31,23,.4); display: flex; align-items: flex-end; justify-content: center; z-index: 20; animation: fade .15s ease-out; }
.sheet-back[hidden] { display: none; }
.sheet { width: 100%; max-width: 420px; background: var(--bg); border-radius: 20px 20px 0 0; padding: 22px 24px calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 16px; animation: up .22s cubic-bezier(.2,.8,.2,1); }
.sheet h2 { margin: 0; font-size: 20px; font-weight: 800; }
.sheet p { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.45; }
.sheet .btn-text { border: 0; background: none; font: inherit; font-size: 15px; font-weight: 600; color: var(--ink); cursor: pointer; padding: 8px; }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(40px); opacity: .6; } }
@media (prefers-reduced-motion: reduce) { .sheet-back, .sheet { animation: none; } }

/* Wallet buttons on the balance card */
.actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 4px; }
.action {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px 4px 8px;
  border-radius: 12px; font-size: 12.5px; font-weight: 600; color: #fff; text-decoration: none; text-align: center;
}
.action:hover { background: rgba(255,255,255,.06); text-decoration: none; }
.action i { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.12); display: grid; place-items: center; }
.action:first-child i { background: var(--brand); }

/* Issued card — dark card body, gold chip, network mark from the card number */
.plastic {
  position: relative; overflow: hidden; border-radius: 18px; padding: 20px 22px; color: #fff; aspect-ratio: 1.586;
  display: flex; flex-direction: column; justify-content: space-between;
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(159,232,112,.35) 0%, rgba(159,232,112,0) 55%),
    radial-gradient(70% 90% at 0% 100%, rgba(255,255,255,.08) 0%, rgba(255,255,255,0) 60%),
    linear-gradient(135deg, #1A2A6C 0%, #0F1B45 55%, #0A1230 100%);
  box-shadow: 0 18px 40px rgba(15,27,69,.35), inset 0 1px 0 rgba(255,255,255,.12);
}
.plastic::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgba(255,255,255,.035) 0 2px, transparent 2px 9px); pointer-events: none; }
.plastic > * { position: relative; z-index: 1; }
.plastic-top { display: flex; justify-content: space-between; align-items: baseline; }
.plastic-top b { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.plastic-top span { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; opacity: .75; }
.plastic-mid { display: flex; align-items: center; gap: 12px; }
.plastic-mid .nfc { opacity: .8; transform: rotate(0deg); }
.plastic-num { font-size: clamp(17px, 5.4vw, 22px); font-weight: 600; letter-spacing: .1em; font-variant-numeric: tabular-nums; text-shadow: 0 1px 1px rgba(0,0,0,.3); white-space: nowrap; }
.plastic-bottom { display: flex; gap: 16px; align-items: flex-end; }
.plastic-bottom div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.plastic-bottom div:first-child { flex: 1; }
.plastic-bottom small { font-size: 9.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; opacity: .65; }
.plastic-bottom span { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: .04em; }
.network { flex: none !important; align-self: flex-end; }
.network.visa { font-family: 'Arial Black', 'Helvetica Neue', Arial, sans-serif; font-style: italic; font-weight: 900; font-size: 26px; letter-spacing: -0.02em; line-height: 1; color: #fff; }
.network.mastercard { flex-direction: row !important; gap: 0 !important; }
.network.mastercard i { width: 30px; height: 30px; border-radius: 50%; display: block; background: #EB001B; }
.network.mastercard i + i { background: #F79E1B; margin-left: -12px; mix-blend-mode: screen; opacity: .95; }
.plastic-actions { display: flex; gap: 8px; }

/* Balance card: account number + copy */
.acct-copy { display: flex; align-items: center; gap: 10px; font-size: 14px; color: rgba(255,255,255,.75); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.acct-copy button {
  display: inline-flex; align-items: center; gap: 5px; border: 0; background: none;
  color: var(--brand); padding: 4px 2px; font: inherit; font-size: 13px; font-weight: 600; letter-spacing: 0; cursor: pointer;
}
.acct-copy button:hover { color: #C8F5A6; }

/* The three money buttons: dark panel, outlined circles, white line icons */
.quick {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 20px 8px 18px; border-radius: 24px;
  background: linear-gradient(135deg, #2A2C2F 0%, #161718 55%, #0F1011 100%);
  border: 1px solid rgba(255,255,255,.14); box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 10px 24px rgba(0,0,0,.18);
}
.quick a {
  display: flex; flex-direction: column; align-items: center; gap: 10px; color: #fff; text-decoration: none;
  font-size: 13px; font-weight: 500; text-align: center; white-space: nowrap; border-radius: 16px; padding: 4px 0;
}
.quick a:hover { text-decoration: none; }
.quick i {
  width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid rgba(255,255,255,.32); background: rgba(255,255,255,.04); transition: background-color .15s ease, transform .1s ease;
}
.quick a:hover i { background: rgba(255,255,255,.1); }
.quick a:active i { transform: scale(.95); }
@media (max-width: 360px) { .quick a { font-size: 11.5px; } .quick i { width: 54px; height: 54px; } }

.plastic[hidden], .plastic-actions[hidden], .cardbox[hidden] { display: none; }

/* Dashboard */
.admin { max-width: 1100px; margin: 0 auto; padding: calc(20px + env(safe-area-inset-top)) 24px 48px; display: flex; flex-direction: column; gap: 20px; }
.admin-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.admin-top .brand { margin-top: 0; }
.admin-top .badge { font-size: 12px; font-weight: 700; background: var(--ink); color: #fff; border-radius: 999px; padding: 4px 10px; margin-left: 4px; }
.tabs { display: flex; gap: 6px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.tabs button {
  border: 0; background: none; padding: 10px 12px; font: inherit; font-size: 14px; font-weight: 600; color: var(--muted);
  cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: flex; gap: 6px; align-items: center;
}
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.tabs .count { background: #FFE9B8; color: #7A5B00; border-radius: 999px; font-size: 11px; padding: 1px 7px; }
.tabs .count:empty { display: none; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.stat span { font-size: 13px; color: var(--muted); }
.stat b { font-size: 26px; font-weight: 800; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.stat button { align-self: flex-start; border: 0; background: none; padding: 0; font: inherit; font-size: 13px; font-weight: 700; color: var(--ink); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.toolbar .control { flex: 1; min-width: 220px; height: 44px; }
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.seg button { border: 0; background: none; border-radius: 7px; padding: 7px 12px; font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow-x: auto; }
table.grid { width: 100%; border-collapse: collapse; font-size: 14px; }
.grid th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #FBFBF9; }
.grid td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.grid tr:last-child td { border-bottom: 0; }
.grid tbody tr.click { cursor: pointer; }
.grid tbody tr.click:hover { background: #FBFBF9; }
.grid .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.grid .mono { font-variant-numeric: tabular-nums; white-space: nowrap; }
.grid .muted { color: var(--muted); font-size: 13px; }
.grid .acts { white-space: nowrap; text-align: right; }
.grid .acts button + button { margin-left: 6px; }
.sm { border: 1px solid var(--line); background: var(--surface); border-radius: 9px; padding: 7px 12px; font: inherit; font-size: 13px; font-weight: 700; color: var(--ink); cursor: pointer; }
.sm.go { background: var(--brand); border-color: var(--brand); }
.sm.no { color: var(--danger); }
.st { font-size: 12px; font-weight: 600; border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.st.requested, .st.pending { background: #FFF4D6; color: #7A5B00; }
.st.issued, .st.paid { background: #E6F6DA; color: #2F7D1E; }
.st.failed, .st.cancelled { background: var(--danger-bg); color: var(--danger); }
.empty-row { padding: 28px; text-align: center; color: var(--muted); }
.modal-back { position: fixed; inset: 0; background: rgba(11,31,23,.45); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 30; }
.modal-back[hidden] { display: none; }
.modal { width: 100%; max-width: 480px; max-height: calc(100dvh - 32px); overflow: auto; background: var(--bg); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.modal h2 { margin: 0; font-size: 19px; font-weight: 800; }
.modal .sub { font-size: 14px; }
.modal .row-btns { display: flex; gap: 10px; justify-content: flex-end; }
.modal .row-btns .btn { width: auto; padding: 0 22px; height: 46px; font-size: 15px; }
.modal .row-btns .btn.ghost { background: var(--surface); border: 1px solid var(--line); }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.mini-tx { max-height: 280px; overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.mini-tx div { display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; font-size: 13px; }
.mini-tx div + div { border-top: 1px solid var(--line); }
.mini-tx b { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Screen header: round back button + centred title */
.bar { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; margin-top: 8px; }
.bar h1 { grid-column: 2; margin: 0; text-align: center; font-size: 19px; font-weight: 800; }
.bar-back {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
}
.bar-back:hover { text-decoration: none; background: var(--bg); }
.label-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cur-seg { padding: 2px; border-radius: 9px; }
.cur-seg button { padding: 4px 10px; font-size: 12px; border-radius: 7px; }
.control.readonly { background: #ECECE8; border-color: #ECECE8; }
.control.readonly input { color: var(--ink-2); font-weight: 600; }
.warn { display: flex; flex-direction: column; gap: 6px; }
.warn p { margin: 0; color: var(--danger); font-size: 14px; line-height: 1.45; }

/* Tapo Me */
.qr-box { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.qr { transition: opacity .2s ease; }
.qr.dim { opacity: .25; }
.code-line { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.code-line span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.code-line b { font-size: 30px; font-weight: 800; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.code-line small { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.paid-badge { background: #E6F6DA; color: #2F7D1E; font-weight: 700; border-radius: 999px; padding: 6px 14px; }
.choice { display: flex; flex-direction: column; gap: 8px; }
.opt { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); cursor: pointer; font-weight: 400; }
.opt:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.opt input { accent-color: var(--ink); width: 20px; height: 20px; margin: 1px 0 0; flex: none; }
.opt span { font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.opt b { display: block; font-size: 15px; color: var(--ink); margin-bottom: 2px; }
.or { text-align: center; font-size: 13px; color: var(--muted); }
#amount-form[hidden] { display: none; }

/* Cash In / Out: camera with a sheet for the code */
.scan-body { background: #0B1F17; }
.scan { min-height: 100vh; min-height: 100dvh; max-width: 480px; margin: 0 auto; display: flex; flex-direction: column; }
.bar.dark { padding: calc(8px + env(safe-area-inset-top)) 16px 12px; margin: 0; color: #fff; }
.bar.dark .bar-back { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); color: #fff; }
.viewfinder { position: relative; flex: 1; min-height: 300px; overflow: hidden; background: #000; display: grid; place-items: center; }
.viewfinder video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.frame { position: relative; width: min(64vw, 260px); aspect-ratio: 1; border: 2px solid rgba(255,255,255,.9); border-radius: 18px; box-shadow: 0 0 0 9999px rgba(0,0,0,.35); }
.cam-msg { position: absolute; bottom: 44px; left: 16px; right: 16px; text-align: center; color: #fff; font-size: 14px; margin: 0; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.cam-btn { position: absolute; bottom: 84px; left: 50%; transform: translateX(-50%); }
.cam-btn[hidden] { display: none; }
.scan-sheet { background: var(--bg); border-radius: 22px 22px 0 0; margin-top: -22px; position: relative; padding: 10px 20px calc(22px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 10px; text-align: center; }
.grip { width: 40px; height: 4px; border-radius: 4px; background: var(--line); margin: 0 auto 4px; }
.or-title { margin: 0; font-weight: 800; font-size: 15px; }
.scan-sub { margin: 0 0 4px; font-size: 14px; color: var(--muted); }
.bank-link { display: inline-flex; align-items: center; justify-content: center; gap: 4px; font-size: 14px; font-weight: 700; margin-top: 6px; }

/* Wallet: AUD / USD switch on the balance card */
.balance-label .cur-seg { margin-left: auto; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.18); }
.balance-label .cur-seg button { color: rgba(255,255,255,.75); }
.balance-label .cur-seg button[aria-pressed="true"] { background: var(--brand); color: var(--ink); }
.tx-main .typed { color: var(--faint); }

/* [hidden] must win over the display rules above (menu items, cards, sheets). */
[hidden] { display: none !important; }

/* Frozen card */
.plastic.frozen { filter: grayscale(.85) brightness(.9); }
.plastic.frozen::before {
  content: "Frozen"; position: absolute; z-index: 2; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: rgba(255,255,255,.92); color: #0F1B45; font-weight: 800; font-size: 15px; letter-spacing: .04em;
  padding: 8px 16px; border-radius: 999px; box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.pill-btn.freeze { display: inline-flex; align-items: center; gap: 6px; background: #E8F0FF; color: #1A2A6C; }
.pill-btn.freeze[aria-pressed="true"] { background: #1A2A6C; color: #fff; }
.plastic-actions { flex-wrap: wrap; }

/* Announcement strip */
.promo {
  display: flex; flex-direction: column; gap: 10px; padding: 12px 12px 12px 10px; border-radius: 14px;
  background: linear-gradient(90deg, #E9F9DD, #F4FBEF); border: 1px solid #D5F0C2; font-size: 14px; color: var(--ink);
}
.promo-ico { width: 28px; height: 28px; border-radius: 50%; background: var(--brand); display: grid; place-items: center; flex: none; }
.promo b { font-weight: 800; }
.promo a { margin-left: auto; font-weight: 700; font-size: 13px; white-space: nowrap; }

/* Two cards */
.cards { display: flex; flex-direction: column; gap: 14px; }
.card-slot { display: flex; flex-direction: column; gap: 10px; }
.mini.physical { background: linear-gradient(135deg, #2B2D31, #0E0F11); }
.mini.physical::after { background: #DCC27A; }
.pill-btn.ghost { background: var(--surface); border: 1px solid var(--line); }
.select-control select { flex: 1; height: 100%; border: 0; background: transparent; padding: 0 12px; font: inherit; font-size: 16px; color: var(--ink); outline: 0; }

/* Card face: expiry/CVV on one row, then the holder's full name with the network beside it */
.plastic-meta { display: flex; gap: 22px; }
.plastic-meta div { display: flex; flex-direction: column; gap: 3px; }
.plastic-meta small, .plastic-bottom small { font-size: 9.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; opacity: .65; }
.plastic-meta span { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.plastic-bottom { display: flex; gap: 12px; align-items: flex-end; justify-content: space-between; }
.plastic-bottom .holder { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.plastic-bottom .holder span {
  font-size: clamp(12px, 3.6vw, 15px); font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.2; overflow-wrap: anywhere;
}
.plastic.physical {
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(220,194,122,.28) 0%, rgba(220,194,122,0) 55%),
    linear-gradient(135deg, #2B2D31 0%, #16171A 55%, #0B0C0E 100%);
  box-shadow: 0 18px 40px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.1);
}
.plastic { gap: 6px; }

/* Identity photos */
.tips { margin: 0; padding-left: 18px; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.cam { position: relative; border-radius: 18px; overflow: hidden; background: #0B0C0E; aspect-ratio: 3 / 4; max-height: 60vh; width: 100%; }
.cam video, .cam img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cam video.mirror { transform: scaleX(-1); }
.guide { position: absolute; pointer-events: none; box-shadow: 0 0 0 9999px rgba(0,0,0,.45); border: 2px solid rgba(255,255,255,.95); }
.guide.doc { left: 7%; right: 7%; top: 30%; aspect-ratio: 1.586; border-radius: 14px; }
.guide.face { left: 50%; top: 46%; width: 62%; aspect-ratio: .78; transform: translate(-50%, -50%); border-radius: 50%; }
.cam img:not([hidden]) ~ .guide { display: none; }
.cam-note { position: absolute; left: 16px; right: 16px; bottom: 16px; margin: 0; color: #fff; font-size: 14px; text-align: center; background: rgba(0,0,0,.55); padding: 10px 12px; border-radius: 12px; }
.cam-actions { display: flex; gap: 10px; }
.cam-actions .btn { flex: 1; }
.btn.ghost-btn { background: var(--surface); border: 1px solid var(--line); }
.done-mark.wait { background: #FFF4D6; }
.kyc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.kyc-grid figure { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.kyc-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: #000; }
.kyc-grid figcaption { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.btn.no-btn { color: var(--danger); }
.modal { max-width: 640px; }

.btn-text { border: 0; background: none; font: inherit; font-size: 15px; font-weight: 600; color: var(--ink); cursor: pointer; padding: 8px; }

/* Add / Receive choice */
.tiles { display: flex; flex-direction: column; gap: 12px; }
.tile { display: flex; align-items: center; gap: 14px; padding: 18px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; color: var(--ink); }
.tile:hover { text-decoration: none; border-color: #CFCFCA; }
.tile i { width: 52px; height: 52px; border-radius: 16px; background: var(--ink); color: var(--brand); display: grid; place-items: center; flex: none; }
.tile span { flex: 1; font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.tile b { display: block; font-size: 16px; color: var(--ink); margin-bottom: 2px; }
.tile .chev { color: var(--faint); flex: none; }

/* Saved cards */
.label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.link-btn { display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; padding: 2px 0; font: inherit; font-size: 13px; font-weight: 700; color: var(--ink); cursor: pointer; }
.saved { display: flex; flex-direction: column; gap: 8px; }
.saved-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; cursor: pointer; font-weight: 400; }
.saved-card:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.saved-card input { accent-color: var(--ink); width: 18px; height: 18px; margin: 0; flex: none; }
.net-chip { font-size: 11px; font-weight: 800; letter-spacing: .02em; border-radius: 6px; padding: 4px 7px; background: var(--bg); color: var(--ink); flex: none; }
.net-chip.visa { background: #1A2A6C; color: #fff; font-style: italic; }
.net-chip.mastercard { background: #16171A; color: #F79E1B; }
.sc-main { flex: 1; min-width: 0; }
.sc-main b { display: block; font-size: 14.5px; color: var(--ink); }
.sc-main span { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sc-remove { border: 0; background: none; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--muted); cursor: pointer; padding: 4px; }
.sc-remove:hover { color: var(--danger); }
.add-first { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 18px; border: 1.5px dashed #CFCFCA; border-radius: 14px; background: none; font: inherit; font-size: 15px; font-weight: 700; color: var(--ink); cursor: pointer; }
.add-first:hover { border-color: var(--ink); }
.net-badge { font-size: 12px; font-weight: 700; color: var(--muted); padding-right: 14px; white-space: nowrap; }
.net-badge:empty { display: none; }

/* Terms page */
.legal { max-width: 720px; }
.legal article { padding: 8px 0 48px; color: var(--ink-2); font-size: 15px; line-height: 1.65; }
.legal .meta { color: var(--muted); font-size: 13px; }
.legal h2 { font-size: 17px; color: var(--ink); margin: 28px 0 6px; }
.legal p { margin: 0 0 12px; }
.legal ul { margin: 0 0 12px; padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.legal b { color: var(--ink); }
.check a { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* Pages for approved customers stay invisible until the account check passes (App.needApproved removes .gate). */
html.gate body { visibility: hidden; }

/* ── Design pass ── */
body {
  background:
    radial-gradient(1200px 520px at 50% -180px, rgba(159,232,112,.22), rgba(159,232,112,0) 70%),
    var(--bg);
  background-attachment: fixed;
}
.control > .prefix:not(:has(select)) { padding: 0 6px 0 14px; border-right: 0; font-weight: 700; color: var(--ink); }
.amount-control > .prefix { padding: 0 6px 0 16px !important; }
h1 { letter-spacing: -0.02em; }
.btn { box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 6px 16px rgba(108,194,74,.25); }
.btn:active { box-shadow: none; }
.control { transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease; }
.control:hover:not(:focus-within):not(.readonly) { border-color: #D3D3CE; }

/* Balance card: soft light and a faint pattern */
.balance { position: relative; overflow: hidden;
  background: radial-gradient(120% 140% at 100% 0%, rgba(159,232,112,.28) 0%, rgba(159,232,112,0) 50%), linear-gradient(160deg, #10291E 0%, #0B1F17 60%, #081610 100%);
  box-shadow: 0 16px 34px rgba(11,31,23,.22); }
.balance::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 220px; height: 220px; border-radius: 50%;
  border: 28px solid rgba(255,255,255,.04); pointer-events: none; }
.balance > * { position: relative; z-index: 1; }

/* Activity day headings */
.tx-day { padding: 10px 16px 6px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; background: #FBFBF9; border-top: 1px solid var(--line); }
.activity > .tx-day:first-child { border-top: 0; }
.tx-day + .tx { border-top: 0; }

/* Log-in art: two cards, one tilted behind the other */
.hero-art { position: relative; height: 150px; margin: 4px 0 4px; }
.ha-card { position: absolute; width: 210px; aspect-ratio: 1.586; border-radius: 16px; padding: 14px 16px; color: #fff; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 16px 34px rgba(15,27,69,.28); }
.ha-card b { font-size: 17px; font-weight: 800; }
.ha-card span { font-size: 13px; letter-spacing: .12em; font-variant-numeric: tabular-nums; opacity: .9; }
.ha-card em { position: absolute; right: 16px; bottom: 12px; font-family: 'Arial Black', Arial, sans-serif; font-style: italic; font-weight: 900; font-size: 18px; }
.ha-card.front { left: 0; top: 18px; background: radial-gradient(90% 120% at 100% 0%, rgba(159,232,112,.35), rgba(159,232,112,0) 55%), linear-gradient(135deg, #1A2A6C, #0A1230); transform: rotate(-4deg); }
.ha-card.back { left: 110px; top: 0; background: linear-gradient(135deg, #2B2D31, #0B0C0E); transform: rotate(8deg); }
.ha-card em.mc { display: flex; bottom: 12px; }
.ha-card em.mc i { width: 24px; height: 24px; border-radius: 50%; background: #EB001B; display: block; }
.ha-card em.mc i + i { background: #F79E1B; margin-left: -10px; mix-blend-mode: screen; opacity: .95; }
@media (prefers-reduced-motion: no-preference) {
  .hero-art .ha-card { animation: float 6s ease-in-out infinite; }
  .hero-art .ha-card.back { animation-delay: -3s; }
  @keyframes float { 50% { translate: 0 -6px; } }
}

/* Log-in / sign-up on wide screens: brand panel on the left, form on the right */
.auth-side { display: none; }
@media (min-width: 960px) {
  body.auth { display: grid; grid-template-columns: minmax(420px, 1fr) minmax(460px, 560px); min-height: 100vh; }
  body.auth .page { max-width: 460px; width: 100%; }
  body.auth .hero-art:not(.big) { display: none; }
  .auth-side { display: flex; align-items: center; justify-content: center; padding: 48px;
    background: radial-gradient(80% 70% at 80% 10%, rgba(159,232,112,.25), rgba(159,232,112,0) 60%), linear-gradient(160deg, #10291E, #0B1F17 60%, #06120C); color: #fff; }
  .as-inner { max-width: 440px; display: flex; flex-direction: column; gap: 22px; }
  .as-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; }
  .auth-side h2 { margin: 0; font-size: 38px; line-height: 1.15; letter-spacing: -0.02em; }
  .auth-side ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; color: rgba(255,255,255,.8); }
  .auth-side li::before { content: "✓"; color: var(--brand); font-weight: 800; margin-right: 10px; }
  .hero-art.big { height: 200px; margin-top: 16px; }
  .hero-art.big .ha-card { width: 260px; }
  .hero-art.big .ha-card.back { left: 150px; }
}
.forgot-link { font-size: 13px; font-weight: 600; color: var(--ink); }

.cmp-h { margin: 12px 0 8px; font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

/* Fields never push the page wider than the screen (a wide page makes phones zoom everything out). */
.row2 > *, .row3 > *, .field, .control { min-width: 0; }
.control input { min-width: 0; width: 100%; }
#bank-name { color: #2F7D1E; font-weight: 600; }

/* Wallet card face: ~7.5% clear margin on every side (15% of the width in all), and every size follows the card's
   width (cqw), so nothing crowds the edges on any phone. */
.plastic { container-type: inline-size; padding: 7% 7.5%; gap: 0; }
.plastic-top b { font-size: 6.4cqw; }
.plastic-top span { font-size: 2.9cqw; letter-spacing: .14em; }
.plastic-mid { gap: 3cqw; margin-top: 1cqw; }
.plastic-mid .chip { width: 10.5cqw; height: auto; }
.plastic-mid .nfc { width: 5.5cqw; height: auto; }
.plastic-num { font-size: 5.6cqw; letter-spacing: .09em; }
.plastic-meta { gap: 7cqw; }
.plastic-meta small, .plastic-bottom small { font-size: 2.5cqw; }
.plastic-meta span { font-size: 3.7cqw; }
.plastic-bottom { gap: 4cqw; }
.plastic-bottom .holder span { font-size: 3.9cqw; }
.network.visa { font-size: 7.2cqw; }
.network.mastercard i { width: 8cqw; height: 8cqw; }
.network.mastercard i + i { margin-left: -3.2cqw; }
.plastic.frozen::before { font-size: 3.8cqw; }

.promo-row { display: flex; align-items: center; gap: 10px; line-height: 1.4; }
.promo-row + .promo-row { padding-top: 10px; border-top: 1px solid #D5F0C2; font-size: 13px; color: var(--ink-2); }

/* Activity page */
.see-all { font-size: 13.5px; font-weight: 700; }
.range { display: flex; flex-direction: column; gap: 14px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -24px; padding: 0 24px; }
.chips button { flex: none; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.chips button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.control input[type="date"] { font-size: 15px; }
.sum { display: grid; grid-template-columns: 1fr 1fr 0.8fr; gap: 8px; }
.sum div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sum span { font-size: 12px; color: var(--muted); font-weight: 600; }
.sum b { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
#sum-in { color: #2F7D1E; }

/* Log-in cards: text always starts top-left (a general rule was centring it); the front card sits lower so the
   back card's "Tapo" shows above it, in the same place as on the front card. Only the front card shows a number. */
.ha-card { align-items: flex-start; text-align: left; }
.hero-art { height: 178px; }
.ha-card.front { top: 50px; }
.ha-card.back { top: 0; }
@media (min-width: 960px) {
  .hero-art.big { height: 236px; }
  .hero-art.big .ha-card.front { top: 64px; }
}
