/* Oxygen Recharge: the phone app for individual SIM owners.
   Same brand as the portal (Inter, black and white, one red accent), built for a thumb:
   one column, big targets, the data balance as the one loud element. */
@font-face { font-family: "Inter"; src: url("fonts/Inter-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-Medium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-SemiBold.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("fonts/InterDisplay-Bold.woff") format("woff"); font-weight: 700; font-display: swap; }

:root {
  --bg: #ffffff; --ink: #000; --ink-2: #3d3d3d; --muted: #6e6e6e; --line: #e6e6e6; --soft: #f4f4f4;
  --red: #d71920; --red-ink: #b3121a; --red-wash: #fce8e9;
  --good: #12a150; --warn: #f2a91c; --serious: #e5734a; --bad: #b3121a;
  --r: 14px; --tab-h: 64px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Inter Display", "Inter", system-ui, sans-serif;
  font-family: var(--font); color: var(--ink); background: var(--bg);
  -webkit-text-size-adjust: 100%; font-feature-settings: "cv11", "ss01", "tnum";
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { min-height: 100dvh; background: var(--bg); line-height: 1.45; font-size: 16px; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

.shell { --pad: 20px; min-height: 100dvh; display: flex; flex-direction: column; background: var(--bg); }

/* top bar */
.top { background: #000; color: #fff; padding: calc(env(safe-area-inset-top) + 14px) var(--pad) 14px; display: flex; align-items: center; gap: 12px; }
.top img { width: 26px; height: 26px; }
.top .t { font-weight: 600; font-size: 17px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top a.back { text-decoration: none; font-size: 15px; color: #fff; opacity: .85; }

main { flex: 1; padding: 20px var(--pad) calc(var(--tab-h) + env(safe-area-inset-bottom) + 24px); }
main.bare { padding-bottom: 32px; }
h1 { font-family: var(--display); font-size: 28px; line-height: 1.1; margin: 4px 0 6px; letter-spacing: -.01em; }
h2 { font-size: 15px; font-weight: 600; margin: 28px 0 10px; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }

/* the SIM balance: the loud element */
.balance { background: #000; color: #fff; margin: -20px calc(-1 * var(--pad)) 0; padding: 22px var(--pad) 24px; }
.balance .who { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; opacity: .8; }
.balance .num { font-family: var(--display); font-weight: 700; font-size: 64px; line-height: 1; letter-spacing: -.03em; margin: 18px 0 4px; }
.balance .num small { font-family: var(--font); font-size: 20px; font-weight: 500; letter-spacing: 0; margin-left: 6px; opacity: .8; }
.balance .of { font-size: 14px; opacity: .75; }
.bar { height: 6px; border-radius: 3px; background: rgba(255,255,255,.18); margin: 16px 0 10px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--good); border-radius: 3px; }
.bar.low i { background: var(--warn); } .bar.empty i, .bar.expired i { background: var(--red); }
.balance .note { font-size: 14px; }
.balance .note b { font-weight: 600; }

/* list of SIMs on home */
.sims { list-style: none; margin: 0; padding: 0; }
.sims li + li { margin-top: 12px; }
.simrow { display: block; text-decoration: none; border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.simrow:active { background: var(--soft); }
.simrow .row1 { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.simrow .name { font-weight: 600; }
.simrow .left { font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: -.02em; white-space: nowrap; }
.simrow .left small { font-family: var(--font); font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.simrow .mini { height: 4px; border-radius: 2px; background: var(--soft); margin: 10px 0 8px; overflow: hidden; }
.simrow .mini i { display: block; height: 100%; background: var(--good); }
.simrow.low .mini i { background: var(--warn); } .simrow.empty .mini i, .simrow.expired .mini i { background: var(--red); }
.simrow .row2 { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--muted); gap: 8px; }
.tag { display: inline-block; font-size: 12.5px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--soft); color: var(--ink-2); }
.tag.bad { background: var(--red-wash); color: var(--red-ink); }
.tag.warn { background: #fdf1d8; color: #7a5300; }
.tag.good { background: #e3f5ea; color: #0a6a34; }

/* bundle picker */
.plans { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.plans li + li { border-top: 1px solid var(--line); }
.plans label { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: center; padding: 16px; cursor: pointer; }
.plans input { width: 20px; height: 20px; accent-color: var(--red); margin: 0; }
.plans .pn { font-weight: 600; }
.plans .pd { font-size: 13.5px; color: var(--muted); }
.plans .pp { font-weight: 600; white-space: nowrap; }
.plans li:has(input:checked) { background: var(--red-wash); }

/* forms and buttons */
form.stack { display: grid; gap: 16px; }
label.f { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
label.f span.hint { font-weight: 400; color: var(--muted); font-size: 13px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[inputmode] {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid #cfcfcf; border-radius: 10px; background: #fff; font-size: 16px; }
input:focus { border-color: #000; outline: none; box-shadow: 0 0 0 3px rgba(0,0,0,.08); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--red); }
.btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; padding: 0 20px; border-radius: 12px;
  border: 1px solid #000; background: #fff; color: #000; font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; }
.btn.primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn.primary:active { background: var(--red-ink); }
.btn.dark { background: #000; color: #fff; }
.btn + .btn { margin-top: 10px; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--ink-2); text-decoration: underline; cursor: pointer; font-size: 14px; }
.sticky { position: sticky; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 12px); margin-top: 20px; }
.center { text-align: center; }

.flash { border-radius: 10px; padding: 12px 14px; margin: 0 0 16px; font-size: 14.5px; }
.flash.error { background: var(--red-wash); color: var(--red-ink); }
.flash.ok { background: #e3f5ea; color: #0a6a34; }
.flash.info { background: var(--soft); }

/* order / payment */
.paybox { border: 1px solid var(--line); border-radius: var(--r); padding: 20px; text-align: center; }
.paybox .amount { font-family: var(--display); font-weight: 700; font-size: 40px; letter-spacing: -.02em; }
.paybox .ref { font-family: ui-monospace, Menlo, monospace; font-size: 22px; font-weight: 600; letter-spacing: .06em;
  background: var(--soft); border-radius: 8px; padding: 8px 12px; display: inline-block; margin: 6px 0 2px; }
.paybox .qr { width: 220px; height: 220px; margin: 16px auto 6px; }
.paybox .qr svg { width: 100%; height: 100%; }
dl.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 14px 0 0; text-align: left; font-size: 14.5px; }
dl.kv dt { color: var(--muted); } dl.kv dd { margin: 0; font-weight: 500; word-break: break-word; }
.steps { list-style: none; padding: 0; margin: 18px 0 0; }
.steps li { display: grid; grid-template-columns: 14px 1fr; gap: 12px; padding-bottom: 14px; position: relative; font-size: 14.5px; }
.steps li::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid #cfcfcf; margin-top: 4px; }
.steps li.done::before { background: var(--good); border-color: var(--good); }
.steps li.now::before { border-color: var(--red); background: var(--red); }
.steps li.bad::before { border-color: var(--red); }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 6px; top: 20px; bottom: 2px; width: 2px; background: var(--line); }
.status-big { font-family: var(--display); font-size: 26px; font-weight: 700; margin: 8px 0 4px; }

.list { list-style: none; padding: 0; margin: 0; }
.list li { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.list a { text-decoration: none; display: contents; }

/* bottom tabs */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom); }
.tabs nav { max-width: 480px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); height: var(--tab-h); }
.tabs a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none;
  font-size: 12px; font-weight: 500; color: var(--muted); }
.tabs a svg { width: 24px; height: 24px; }
.tabs a.on { color: #000; }
.tabs a.on svg { color: var(--red); }

/* sign-in pages */
.hero { background: #000; color: #fff; margin: -20px calc(-1 * var(--pad)) 24px; padding: 40px var(--pad) 32px; }
.hero img { width: 44px; height: 44px; margin-bottom: 22px; }
.hero h1 { font-size: 34px; margin: 0 0 8px; }
.hero p { opacity: .75; margin: 0; }
.install { border: 1px dashed #cfcfcf; border-radius: var(--r); padding: 14px 16px; font-size: 14px; margin-top: 24px; }

@media (prefers-reduced-motion: no-preference) {
  .bar i, .mini i { transition: width .6s ease-out; }
}
.flash + .balance, .flash + .hero { margin-top: 0; border-radius: var(--r); }

/* ===== v2 (Nov 2026): Oxygen artwork, demo, invites, notifications ===== */
.top { position: relative; overflow: hidden; isolation: isolate; }
.top::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("app/map.jpg") center / cover no-repeat; opacity: .9; }
.top::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0,0,0,.92), rgba(0,0,0,.35)); }
.top .brandimg { width: auto; height: 22px; }
.top .icon { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; color: #fff; text-decoration: none; position: relative; border-radius: 20px; }
.top .icon svg { width: 22px; height: 22px; }
.top .icon .dot { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* a black banner across the top of a page, with the globe (or the SIM ring) on the right */
.banner { position: relative; overflow: hidden; isolation: isolate; background: #000; color: #fff; margin: -20px calc(-1 * var(--pad)) 0; padding: 22px var(--pad) 24px; }
.banner::before { content: ""; position: absolute; z-index: -2; right: -150px; bottom: -24px; width: 600px; height: 141px; background: url("app/globe.jpg") center / cover no-repeat; }
.banner.ring::before { right: -170px; top: 40px; bottom: auto; width: 440px; height: 264px; background-image: url("app/ring.jpg"); opacity: .55; }
.banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0,0,0,.9) 0%, rgba(0,0,0,.55) 55%, rgba(0,0,0,.15) 100%); }
.banner h1 { color: #fff; margin: 0 0 4px; font-size: 28px; }
.banner p { margin: 0; color: #d0d0d0; }
.balance.banner { padding-top: 18px; }

/* opening screen */
.welcome { min-height: 100dvh; background: #000306; color: #fff; position: relative; overflow: hidden; max-width: 480px; margin: 0 auto; }
.welcome .art { position: absolute; left: 50%; top: 290px; transform: translateX(-50%); width: 500px; height: auto; }
.welcome .fade { position: absolute; left: 0; right: 0; top: 590px; height: 260px; background: linear-gradient(180deg, rgba(0,3,6,0) 0%, rgba(0,3,6,.78) 45%, #000306 78%); }
.welcome .head { position: relative; padding: calc(env(safe-area-inset-top) + 34px) 28px 0; }
.welcome .logos { display: flex; align-items: center; gap: 14px; }
.welcome .logos .ox { width: 104px; height: auto; }
.welcome .logos .sep { width: 1px; height: 30px; background: #5a6472; }
.welcome .logos .io { width: 112px; height: auto; }
.welcome .eyebrow { margin-top: 44px; font-size: 12px; letter-spacing: .32em; color: #e3e7ec; }
.welcome h1 { color: #fff; font-size: 38px; line-height: 1.08; font-weight: 800; letter-spacing: -.03em; margin: 10px 0 0; }
.welcome h1 span { color: #e3121b; }
.welcome .sub { margin: 12px 0 0; font-size: 15px; color: #c7cdd6; max-width: 280px; }
.welcome .foot { position: absolute; left: 28px; right: 28px; bottom: calc(env(safe-area-inset-bottom) + 28px); display: grid; gap: 12px; }
.welcome .btn.ghost { background: rgba(0,3,6,.6); border-color: #5a6472; color: #fff; }
.poweredby { display: flex; justify-content: center; align-items: center; gap: 8px; font-size: 12.5px; color: #6e6e6e; margin-top: 18px; }
.poweredby img { height: 17px; width: auto; }
.welcome .poweredby { color: #a3abb7; margin-top: 8px; }
@media (max-height: 760px) { .welcome .art { top: 260px; width: 430px; } }

/* My SIMs */
.pills { display: flex; gap: 8px; overflow-x: auto; margin: 16px calc(-1 * var(--pad)) 4px; padding: 0 var(--pad) 4px; }
.pills a { flex-shrink: 0; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 99px; border: 1px solid #cfcfcf; font-size: 14px; font-weight: 600; text-decoration: none; color: #000; }
.pills a b { font-size: 12.5px; color: var(--muted); }
.pills a.on { background: #000; border-color: #000; color: #fff; }
.pills a.on b { color: #bdbdbd; }
.simrow { display: flex; gap: 14px; align-items: center; }
.simrow .tile { width: 52px; height: 52px; flex-shrink: 0; border-radius: 12px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; text-align: center; font-size: 8.5px; font-weight: 800; letter-spacing: .04em; color: var(--ink-2); padding: 4px; }
.simrow .body { flex: 1; min-width: 0; }
.simrow .prod { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.simrow .row1 .name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.simrow .left { font-size: 18px; }
.st-ok { color: #0a6a34; } .st-low { color: #7a5300; } .st-empty, .st-expired, .st-suspended { color: var(--red-ink); } .st-none { color: var(--ink-2); }
.addbtn { margin-top: 18px; }

/* SIM page */
.balance .head { display: flex; align-items: center; gap: 10px; }
.balance .head .t { flex: 1; min-width: 0; }
.balance .head .t b { display: block; font-size: 17px; }
.balance .head .t span { font-size: 13px; color: #bdbdbd; }
.balance .maker { min-width: 64px; height: 40px; padding: 0 8px; border-radius: 10px; background: #fff; color: #000; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800; letter-spacing: .06em; }
.balance .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; }
.btn.topup { margin-top: 18px; gap: 10px; }
.btn.topup svg { width: 20px; height: 20px; }
.kvbox { border: 1px solid var(--line); border-radius: var(--r); margin-top: 16px; }
.kvbox div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 14px; font-size: 14px; }
.kvbox div + div { border-top: 1px solid var(--line); }
.kvbox div span:first-child { color: var(--muted); }
.kvbox div span:last-child { font-weight: 500; text-align: right; word-break: break-word; }

/* top-up steps */
.stepbar { display: flex; align-items: center; gap: 8px; margin: -20px calc(-1 * var(--pad)) 0; padding: 14px var(--pad); border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.stepbar i { width: 22px; height: 22px; border-radius: 11px; border: 1px solid #cfcfcf; color: var(--muted); display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 12px; flex-shrink: 0; }
.stepbar .on i { background: #000; border-color: #000; color: #fff; }
.stepbar .done i { background: var(--good); border-color: var(--good); color: #fff; }
.stepbar span { display: flex; align-items: center; gap: 6px; }
.stepbar span:not(.on):not(.done) { color: var(--muted); }
.stepbar hr { flex: 1; border: 0; border-top: 1px solid #cfcfcf; margin: 0; }
.simhead { display: flex; gap: 12px; align-items: center; margin-top: 18px; }
.simhead .tile { width: 52px; height: 52px; border-radius: 12px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 8.5px; font-weight: 800; color: var(--ink-2); flex-shrink: 0; text-align: center; padding: 4px; }
.choice { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.choice label { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid #cfcfcf; border-radius: 14px; cursor: pointer; }
.choice label:has(input:checked) { border: 2px solid #000; padding: 15px; }
.choice input { width: 22px; height: 22px; accent-color: var(--red); margin: 0; flex-shrink: 0; }
.choice .n { font-weight: 600; font-size: 16px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.choice .d { display: block; font-size: 13.5px; color: var(--muted); margin-top: 3px; }
.choice .p { margin-left: auto; text-align: right; font-weight: 700; font-size: 17px; white-space: nowrap; }
.choice .p s { display: block; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.tag.special { background: var(--red); color: #fff; }
.paybar { position: sticky; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); margin: 20px calc(-1 * var(--pad)) -24px; padding: 14px var(--pad) 18px; }
main.bare .paybar { bottom: 0; }
.paybar .sum { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; font-size: 15px; color: var(--ink-2); }
.paybar .sum b { font-size: 26px; color: #000; letter-spacing: -.02em; }
.ordersum { border-radius: var(--r); background: var(--soft); padding: 14px 16px; margin-top: 18px; }
.ordersum .r1 { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.ordersum .r2 { display: flex; justify-content: space-between; align-items: baseline; margin-top: 8px; font-weight: 600; }
.ordersum .r2 b { font-size: 20px; }
.methods { display: grid; gap: 10px; }
.methods a { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid #cfcfcf; border-radius: 14px; text-decoration: none; color: #000; }
.methods a .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--soft); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.methods a .ic svg { width: 22px; height: 22px; }
.methods a b { display: block; font-size: 16px; }
.methods a span span { display: block; font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.secure { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-2); margin-top: 16px; }
.waitbar { display: flex; gap: 10px; align-items: center; margin: -20px calc(-1 * var(--pad)) 16px; padding: 12px var(--pad); background: #fdf1d8; color: #5c3f00; font-weight: 600; font-size: 14px; }
.waitbar i { width: 10px; height: 10px; border-radius: 5px; background: var(--warn); }
.refbox { display: flex; justify-content: space-between; align-items: center; border: 2px solid #000; border-radius: 14px; padding: 10px 12px 10px 16px; margin-top: 16px; text-align: left; }
.refbox b { display: block; font-size: 22px; letter-spacing: .04em; }
.refbox small { color: var(--muted); font-weight: 600; font-size: 12.5px; }
.refbox button { height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid #cfcfcf; background: #fff; font-weight: 600; cursor: pointer; }
.done-hero .tick { width: 56px; height: 56px; border-radius: 28px; background: var(--good); display: flex; align-items: center; justify-content: center; }
.done-hero .big { display: flex; align-items: baseline; gap: 8px; margin-top: 18px; }
.done-hero .big b { font-size: 52px; line-height: 1; letter-spacing: -.04em; }

/* lists: account rows, messages */
.rows { border: 1px solid var(--line); border-radius: var(--r); }
.rows > * { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px; text-decoration: none; color: #000; font-weight: 500; }
.rows > * + * { border-top: 1px solid var(--line); }
.rows .v { color: var(--muted); font-weight: 400; font-size: 14px; text-align: right; }
.count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--red); color: #fff; font-size: 12.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.sect { margin: 22px 0 8px; font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.offer { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin-top: 4px; }
.offer .art { position: relative; height: 112px; background: #000306 url("app/ring.jpg") right -60px top -40px / 300px 180px no-repeat; }
.offer .art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,3,6,.95), rgba(0,3,6,.4) 70%, rgba(0,3,6,0)); }
.offer .art div { position: absolute; left: 16px; top: 14px; color: #fff; z-index: 1; }
.offer .art em { font-style: normal; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; padding: 3px 8px; border-radius: 99px; background: var(--red); }
.offer .art b { display: block; font-size: 30px; font-weight: 800; margin-top: 8px; }
.offer .art b s { font-size: 15px; font-weight: 500; color: #bdbdbd; }
.offer .txt { padding: 14px 16px 16px; }
.msg { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: #000; }
.msg .ic { width: 36px; height: 36px; flex-shrink: 0; border-radius: 18px; display: flex; align-items: center; justify-content: center; font-weight: 800; background: var(--soft); }
.msg .ic.alert { background: #fdf1d8; color: #7a5300; } .msg .ic.offer { background: var(--red-wash); color: var(--red-ink); }
.msg .b { flex: 1; min-width: 0; }
.msg .b .t { display: flex; justify-content: space-between; gap: 8px; font-weight: 600; font-size: 15px; }
.msg .b .t small { font-weight: 400; color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.msg .b p { margin: 2px 0 0; font-size: 13.5px; color: var(--ink-2); }
.msg.unread .b .t { color: #000; } .msg.unread .ic { box-shadow: 0 0 0 2px var(--red); }
.toggle { display: flex; gap: 14px; align-items: flex-start; border: 1px solid #cfcfcf; border-radius: 14px; padding: 15px 17px; cursor: pointer; }
.toggle:has(input:checked) { border: 2px solid #000; padding: 14px 16px; }
.toggle b { display: block; font-size: 15.5px; }
.toggle small { display: block; font-size: 13.5px; color: var(--ink-2); margin-top: 3px; line-height: 1.4; }
.toggle input { appearance: none; -webkit-appearance: none; width: 46px; height: 28px; border-radius: 14px; background: #cfcfcf; position: relative; flex-shrink: 0; margin: 2px 0 0 auto; cursor: pointer; transition: background .15s; }
.toggle input::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 11px; background: #fff; transition: left .15s; }
.toggle input:checked { background: #000; } .toggle input:checked::after { left: 21px; }
.bell { width: 56px; height: 56px; border-radius: 16px; background: #fff; color: #000; display: flex; align-items: center; justify-content: center; }
.bell svg { width: 28px; height: 28px; }

/* invite + forms */
.formsect { margin: 24px 0 4px; font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.formnote { font-size: 13px; color: var(--muted); margin: -4px 0 6px; }
select { width: 100%; min-height: 50px; padding: 0 12px; border: 1px solid #cfcfcf; border-radius: 10px; background: #fff; font-size: 16px; }
textarea { width: 100%; padding: 12px 14px; border: 1px solid #cfcfcf; border-radius: 10px; font: inherit; font-size: 16px; }
.codebox { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.codebox input { height: 58px; text-align: center; font-size: 24px; font-weight: 700; padding: 0; min-width: 0; border: 2px solid #cfcfcf; }
.codebox input:focus { border-color: #000; }
.gotit { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: #0a6a34; }
.gotit i { width: 22px; height: 22px; border-radius: 11px; background: var(--good); color: #fff; display: flex; align-items: center; justify-content: center; font-style: normal; }
.demo-ribbon { background: #fdf1d8; color: #5c3f00; font-size: 12.5px; font-weight: 600; text-align: center; padding: 4px 8px; }
.tabs nav.n4 { grid-template-columns: repeat(4, 1fr); }

/* ---- any screen: phones, foldables (open), tablets, desktops ---------------------------------------------------
   Phones keep the one-column layout. From 600px wide (a fold opened, a tablet) the app uses the whole screen:
   black bars run edge to edge, the content sits in a centred column (--maxw: 680px for forms and one SIM,
   1120px for lists), and the lists of SIMs, purchases and messages flow into columns. --pad is the side space,
   so the black banners still reach the screen edges. */
body { --maxw: 680px; }
body.pg-shop-home { --maxw: 1120px; }
body.pg-shop-orders, body.pg-notify-messages { --maxw: 820px; }
.sims { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 12px; }
.sims li + li { margin-top: 0; }
.sims li.muted { grid-column: 1 / -1; }
@media (min-width: 600px) {
  .shell { --pad: max(32px, calc((100vw - var(--maxw)) / 2)); }
  main { padding-top: 24px; }
  .banner, .balance { padding-top: 28px; padding-bottom: 30px; }
  .banner h1 { font-size: 32px; }
  .banner::before { width: 760px; height: 178px; right: -120px; }
  .banner.ring::before { width: 560px; height: 336px; right: -120px; }
  .tabs nav { max-width: 680px; }
  .addbtn { max-width: 420px; margin-left: auto; margin-right: auto; }
  .paybar { margin-left: 0; margin-right: 0; border-radius: var(--r) var(--r) 0 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
  /* opening screen: the artwork grows with the screen, the words and buttons stay in a centred column */
  .welcome { max-width: none; }
  .welcome .head { max-width: 560px; margin: 0 auto; }
  .welcome .art { width: min(640px, 92vw); top: 240px; }
  .welcome .fade { top: calc(240px + min(640px, 92vw) * .62); height: 300px; }
  .welcome .foot { left: 50%; right: auto; width: min(480px, calc(100% - 56px)); transform: translateX(-50%); }
}
/* wide and short (a tablet or fold on its side, a laptop): artwork to the right of the words */
@media (min-width: 900px) and (min-aspect-ratio: 5/4) {
  .welcome .head { max-width: none; margin: 0; padding-left: max(48px, 8vw); padding-right: 52vw; }
  .welcome .art { left: auto; right: 3vw; transform: none; top: 50%; translate: 0 -50%; width: min(52vw, 860px); }
  .welcome .fade { display: none; }
  .welcome .foot { left: max(48px, 8vw); transform: none; width: min(420px, 38vw); }
  .welcome .sub { max-width: 360px; }
}
@media (min-width: 1200px) { .tabs nav { max-width: 760px; } }
/* features switched off per person (Recharge app -> App users) take their tab away */
.tabs nav[data-n="3"] { grid-template-columns: repeat(3, 1fr); }
.tabs nav[data-n="2"] { grid-template-columns: repeat(2, 1fr); }
