/* PointMaxxer design system. Dark-first with a light theme; system fonts only (no network, works offline). */
:root {
  --bg: #080B16; --bg-glow-1: rgba(124, 92, 255, .30); --bg-glow-2: rgba(53, 242, 160, .16);
  --surface: #121829; --surface-2: #1A2238; --surface-3: #232D49;
  --line: rgba(255, 255, 255, .08); --line-strong: rgba(255, 255, 255, .14);
  --text: #F3F6FD; --muted: #95A1BC; --faint: #66728E;
  --accent: #35F2A0; --accent-ink: #04150D; --violet: #8467FF; --amber: #FFB84D; --red: #FF5F7E; --blue: #58A6FF;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35); --nav-bg: rgba(18, 24, 41, .78);
  --r-lg: 22px; --r-md: 16px; --r-sm: 12px;
  --font: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #DDE3F1; --bg-glow-1: rgba(124, 92, 255, .18); --bg-glow-2: rgba(15, 191, 122, .12);
    --surface: #FFFFFF; --surface-2: #EDF0F8; --surface-3: #D3DAEC;
    --line: rgba(14, 20, 36, .08); --line-strong: rgba(14, 20, 36, .16);
    --text: #0D1325; --muted: #566280; --faint: #8893AD;
    --accent: #0DBE79; --accent-ink: #FFFFFF; --violet: #6B4DF5; --amber: #E58A00; --red: #E5365A; --blue: #2B7BEA;
    --shadow: 0 8px 24px rgba(30, 40, 90, .10); --nav-bg: rgba(255, 255, 255, .82);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #DDE3F1; --bg-glow-1: rgba(124, 92, 255, .18); --bg-glow-2: rgba(15, 191, 122, .12);
    --surface: #FFFFFF; --surface-2: #EDF0F8; --surface-3: #D3DAEC;
    --line: rgba(14, 20, 36, .08); --line-strong: rgba(14, 20, 36, .16);
    --text: #0D1325; --muted: #566280; --faint: #8893AD;
    --accent: #0DBE79; --accent-ink: #FFFFFF; --violet: #6B4DF5; --amber: #E58A00; --red: #E5365A; --blue: #2B7BEA;
    --shadow: 0 8px 24px rgba(30, 40, 90, .10); --nav-bg: rgba(255, 255, 255, .82);
    color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  margin: 0; color: var(--text); font: calc(15px * var(--ts, 1))/1.45 var(--font); background: var(--bg);
  background-image: radial-gradient(700px 420px at 8% -8%, var(--bg-glow-1), transparent 60%), radial-gradient(620px 380px at 100% 0%, var(--bg-glow-2), transparent 62%);
  background-attachment: fixed; -webkit-font-smoothing: antialiased;
}
body.popup { width: 400px; height: 600px; overflow: hidden; }
.app { display: flex; flex-direction: column; height: 100dvh; max-width: 560px; margin: 0 auto; position: relative; }
body.popup .app { height: 600px; }

/* ---------- header ---------- */
header { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px 8px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: calc(19px * var(--ts, 1)); letter-spacing: -.02em; }
.logo { width: 30px; height: 30px; display: grid; place-items: center; filter: drop-shadow(0 6px 14px rgba(132, 103, 255, .45)); }
.wordmark { display: flex; flex-direction: column; line-height: 1; }
.wordmark b { font-weight: 900; font-size: calc(19px * var(--ts, 1)); letter-spacing: -.03em; }
.wordmark b i { font-style: normal; background: linear-gradient(90deg, var(--accent), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wordmark small { font-size: calc(10.5px * var(--ts, 1)); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
#status:empty { display: none; }
#status { margin: 0 18px 4px; padding: 8px 12px; border-radius: var(--r-sm); background: color-mix(in srgb, var(--amber) 14%, transparent); color: var(--amber); font-size: calc(13px * var(--ts, 1)); }

/* ---------- main + floating tab bar ---------- */
main { flex: 1; overflow-y: auto; padding: 8px 16px 118px; scroll-behavior: smooth; }
main > * { animation: rise .38s cubic-bezier(.2, .8, .2, 1) both; }
main > *:nth-child(2) { animation-delay: .04s; } main > *:nth-child(3) { animation-delay: .08s; } main > *:nth-child(4) { animation-delay: .12s; }
main > *:nth-child(n+5) { animation-delay: .16s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
nav.tabbar {
  position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; gap: 2px; padding: 6px; border-radius: 26px;
  background: var(--nav-bg); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid var(--line-strong); box-shadow: var(--shadow);
}
nav.tabbar button {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 0 7px; border: 0; background: none; color: var(--muted);
  font: 600 10.5px/1 var(--font); letter-spacing: .01em; border-radius: 20px; cursor: pointer; position: relative; transition: color .2s, background .2s, transform .15s;
}
nav.tabbar button:active { transform: scale(.94); }
nav.tabbar button.on { color: var(--text); background: var(--surface-3); }
nav.tabbar button.on .i { color: var(--accent); }
nav.tabbar .dot { position: absolute; top: 6px; right: calc(50% - 20px); width: 8px; height: 8px; border-radius: 50%; background: var(--red); border: 2px solid var(--surface); }

/* ---------- primitives ---------- */
h3 { margin: 22px 4px 10px; font-size: calc(13px * var(--ts, 1)); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px; margin: 10px 0; box-shadow: var(--shadow); }
.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.muted { color: var(--muted); font-size: calc(13px * var(--ts, 1)); } .small { font-size: calc(12px * var(--ts, 1)); } .faint { color: var(--faint); }
.pct { font-weight: 800; letter-spacing: -.03em; color: var(--accent); }
.warn { color: var(--amber); font-weight: 600; } .good { color: var(--accent); }
a { color: var(--blue); }
input, select, textarea {
  font: inherit; color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; outline: none; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
input::placeholder { color: var(--faint); }
input[type=number] { -moz-appearance: textfield; } input[type=number]::-webkit-outer-spin-button, input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; }
textarea { width: 100%; font-size: calc(12px * var(--ts, 1)); font-family: ui-monospace, monospace; resize: vertical; }
.btn { font: 700 14px var(--font); color: var(--text); background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: 999px; padding: 9px 16px; cursor: pointer; transition: transform .12s, background .15s, opacity .15s; }
.btn:hover { background: var(--surface-3); } .btn:active { transform: scale(.96); } .btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { color: var(--accent-ink); background: var(--accent); border-color: transparent; box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.sm { padding: 6px 12px; font-size: calc(13px * var(--ts, 1)); }
.link { background: none; border: 0; color: var(--muted); font: 600 13px var(--font); cursor: pointer; padding: 6px 4px; } .link:hover { color: var(--text); }
.flag { display: inline-block; margin: 4px 4px 0 0; padding: 3px 10px; border-radius: 10px; font-size: calc(11.5px * var(--ts, 1)); font-weight: 600; color: var(--amber); background: color-mix(in srgb, var(--amber) 15%, transparent); }
.flag.good { color: var(--accent); background: color-mix(in srgb, var(--accent) 15%, transparent); }
.flag.red { color: var(--red); background: color-mix(in srgb, var(--red) 15%, transparent); }
details > summary { cursor: pointer; list-style: none; padding: 4px 0; color: var(--muted); font-size: calc(13px * var(--ts, 1)); font-weight: 600; } details > summary::-webkit-details-marker { display: none; }
details > summary::before { content: "›"; display: inline-block; margin-right: 6px; transition: transform .2s; } details[open] > summary::before { transform: rotate(90deg); }
.banner { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); margin-bottom: 10px; }
.pick { margin-right: 10px; white-space: nowrap; }
input[type=checkbox] { accent-color: var(--accent); width: 16px; height: 16px; vertical-align: -3px; padding: 0; }
.bar { height: 8px; background: var(--surface-3); border-radius: 99px; overflow: hidden; margin: 8px 0 2px; }
.bar > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--violet)); transition: width .5s cubic-bezier(.2, .8, .2, 1); }

/* ---------- search + category scroller ---------- */
.field { position: relative; margin: 4px 0 10px; }
.field .i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--faint); }
.field input { width: 100%; padding: 15px 16px 15px 46px; border-radius: 18px; font-size: calc(16px * var(--ts, 1)); background: var(--surface); box-shadow: var(--shadow); }
#sug { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; } #sug:empty { display: none; }
.cats { display: flex; gap: 8px; overflow-x: auto; padding: 4px 16px 8px; margin: 0 -16px; scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding: 0 16px; }
.cats::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: 600 13.5px var(--font); cursor: pointer; scroll-snap-align: start; transition: transform .12s, background .15s, border-color .15s; }
.chip:active { transform: scale(.95); }
.chip.on { color: var(--accent-ink); background: var(--accent); border-color: transparent; box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 32%, transparent); }
.opts { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 6px 2px 12px; flex-wrap: wrap; }
.switch { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; color: var(--muted); font-size: calc(13px * var(--ts, 1)); }
.switch input { appearance: none; -webkit-appearance: none; width: 38px; height: 22px; padding: 0; border-radius: 99px; background: var(--surface-3); border: 0; position: relative; transition: background .2s; cursor: pointer; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s cubic-bezier(.2, .8, .2, 1); box-shadow: 0 1px 4px rgba(0, 0, 0, .3); }
.switch input:checked { background: var(--accent); } .switch input:checked::after { transform: translateX(16px); }
.seg { display: flex; padding: 4px; margin: 2px 0 6px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); animation: rise .3s cubic-bezier(.2, .8, .2, 1) both; }
.seg button { flex: 1; border: 0; border-radius: 12px; padding: 10px 8px; background: none; color: var(--muted); font: 700 13.5px var(--font); cursor: pointer; transition: background .2s, color .2s, transform .12s; }
.seg button:active { transform: scale(.97); } .seg button.on { color: var(--accent-ink); background: var(--accent); box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 30%, transparent); }
.seg-note { margin: 0 4px 6px; }
.opts { justify-content: flex-start; }
.amount { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: calc(13px * var(--ts, 1)); } .amount input { width: 92px; padding: 8px 10px; }
.avatar { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; font-weight: 800; font-size: calc(14px * var(--ts, 1)); color: #fff; background: hsl(var(--h) 60% 45%); flex: none; }

/* ---------- card faces ---------- */
.face { --c1: #7C5CFF; --c2: #31208A; --ink: #fff; --glass: rgba(255, 255, 255, .18); --glass-strong: rgba(0, 0, 0, .28); position: relative; overflow: hidden; color: var(--ink); background: linear-gradient(135deg, var(--c1), var(--c2)); }
.face::before { content: ""; position: absolute; inset: 0; background: radial-gradient(160px 120px at 88% -10%, rgba(255, 255, 255, .34), transparent 70%), radial-gradient(180px 140px at -10% 120%, rgba(0, 0, 0, .35), transparent 70%); pointer-events: none; }
.face::after { content: ""; position: absolute; right: -30px; bottom: -50px; width: 170px; height: 170px; border-radius: 50%; border: 22px solid rgba(255, 255, 255, .07); pointer-events: none; }
.face > * { position: relative; z-index: 1; }
.hero { border-radius: 26px; padding: 18px 18px 16px; margin: 6px 0 12px; box-shadow: 0 18px 40px color-mix(in srgb, var(--c2) 55%, transparent); }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: calc(11px * var(--ts, 1)); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 5px 10px; border-radius: 99px; background: var(--glass); backdrop-filter: blur(6px); }
.hero .eyebrow .i { stroke-width: 2.4; }
.hero .top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.hero .name { font-size: calc(21px * var(--ts, 1)); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin-top: 14px; max-width: 70%; }
.hero .big { font-size: calc(56px * var(--ts, 1)); font-weight: 900; letter-spacing: -.05em; line-height: 1; text-align: right; font-variant-numeric: tabular-nums; text-shadow: 0 4px 20px color-mix(in srgb, var(--c2) 40%, transparent); }
.hero .big small { display: block; font-size: calc(12px * var(--ts, 1)); font-weight: 700; letter-spacing: .02em; opacity: .85; margin-top: 4px; text-shadow: none; }
.hero .sub { margin-top: 6px; font-size: calc(14px * var(--ts, 1)); opacity: .92; }
.hero .flag { background: var(--glass); color: var(--ink); }
.hero .offer { margin-top: 10px; padding: 8px 12px; border-radius: 12px; background: var(--glass-strong); font-size: calc(13px * var(--ts, 1)); }
.rank { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin: 8px 0; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.rank .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: calc(12px * var(--ts, 1)); font-weight: 800; color: var(--muted); background: var(--surface-2); flex: none; }
.rank .mini { width: 34px; height: 24px; border-radius: 6px; flex: none; background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.rank .mid { flex: 1; min-width: 0; } .rank .t { font-weight: 700; line-height: 1.2; } .rank .s { color: var(--muted); font-size: calc(12.5px * var(--ts, 1)); margin-top: 2px; }
.rank .v { font-weight: 800; font-size: calc(18px * var(--ts, 1)); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.rank .rbar { height: 4px; border-radius: 99px; background: var(--surface-3); margin-top: 8px; overflow: hidden; } .rank .rbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--c1), var(--c2)); border-radius: 99px; }
.tip { display: flex; align-items: center; gap: 10px; padding: 11px 14px; margin: 10px 0; border-radius: var(--r-md); background: color-mix(in srgb, var(--violet) 16%, var(--surface)); border: 1px solid color-mix(in srgb, var(--violet) 40%, transparent); font-size: calc(13.5px * var(--ts, 1)); }
.empty { text-align: center; padding: 34px 18px; color: var(--muted); } .empty .big-emoji { font-size: calc(44px * var(--ts, 1)); margin-bottom: 8px; } .empty b { color: var(--text); }

/* ---------- wallet ---------- */
.tile { border-radius: 22px; padding: 14px 16px; margin: 12px 0; box-shadow: 0 14px 32px color-mix(in srgb, var(--c2) 45%, transparent); }
.tile .row { align-items: flex-start; flex-wrap: nowrap; }
.tile .iss { font-size: calc(11px * var(--ts, 1)); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.tile .nm { font-size: calc(18px * var(--ts, 1)); font-weight: 800; letter-spacing: -.02em; margin-top: 2px; line-height: 1.15; }
.tile .fee { font-size: calc(12px * var(--ts, 1)); font-weight: 700; padding: 4px 10px; border-radius: 99px; background: var(--glass); white-space: nowrap; }
.tile .perks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tile .perk { font-size: calc(12px * var(--ts, 1)); font-weight: 700; padding: 4px 10px; border-radius: 99px; background: var(--glass-strong); }
.tile details { margin-top: 10px; } .tile details > summary { color: var(--ink); opacity: .85; }
.tile .more { margin-top: 8px; padding: 12px; border-radius: 14px; background: var(--glass-strong); color: var(--ink); }
.tile .more .muted, .tile .more label { color: var(--ink); opacity: .9; } .tile .more input, .tile .more select { background: var(--glass); border-color: var(--glass-strong); color: var(--ink); }
.tile .link { color: var(--ink); opacity: .85; }
.result { display: flex; align-items: center; gap: 12px; padding: 11px 14px; margin: 8px 0; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.result .mini { width: 34px; height: 24px; border-radius: 6px; flex: none; background: linear-gradient(135deg, var(--c1), var(--c2)); }
.result .mid { flex: 1; min-width: 0; font-weight: 600; line-height: 1.25; }
.round { width: 34px; height: 34px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); cursor: pointer; flex: none; transition: transform .12s; } .round:active { transform: scale(.9); }
.spend-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; } .spend-grid label { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: calc(13px * var(--ts, 1)); color: var(--muted); } .spend-grid input { width: 74px; padding: 7px 9px; }

/* ---------- benefits ---------- */
.ben-hero { display: flex; align-items: center; gap: 18px; border-radius: 26px; padding: 18px; background: linear-gradient(135deg, color-mix(in srgb, var(--violet) 26%, var(--surface)), var(--surface)); border: 1px solid var(--line-strong); box-shadow: var(--shadow); margin: 6px 0 12px; }
.ring-wrap { position: relative; width: 104px; height: 104px; flex: none; }
.ring-wrap .mid { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; font-weight: 900; font-size: calc(24px * min(var(--ts, 1), 1.1)); letter-spacing: -.03em; line-height: 1; }
.ring-wrap .mid > div { display: flex; flex-direction: column; align-items: center; width: 66px; }
.ring-wrap .mid small { display: block; width: 100%; font-size: calc(9px * min(var(--ts, 1), 1.1)); font-weight: 700; letter-spacing: .06em; padding-left: .06em; line-height: 1.2; color: var(--muted); margin-top: 4px; text-transform: uppercase; text-wrap: balance; }
.ring-fg { transition: stroke-dashoffset .8s cubic-bezier(.2, .8, .2, 1); }
.ben-hero .nums .big { font-size: calc(38px * var(--ts, 1)); font-weight: 900; letter-spacing: -.04em; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.ben-hero .nums .lbl { color: var(--muted); font-size: calc(13px * var(--ts, 1)); margin: 3px 0 10px; } .ben-hero .nums .claimed { font-size: calc(14px * var(--ts, 1)); } .ben-hero .nums .claimed b { font-weight: 800; }
.fees { margin: 0 2px 6px; } .fee-row { display: flex; align-items: center; gap: 10px; margin: 8px 0; font-size: calc(13px * var(--ts, 1)); } .fee-row .mini { width: 26px; height: 18px; border-radius: 5px; background: linear-gradient(135deg, var(--c1), var(--c2)); flex: none; }
.fee-row .nm { flex: 0 0 38%; min-width: 0; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .fee-row .bar { flex: 1; margin: 0; } .fee-row .p { width: 42px; text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.credit { display: flex; gap: 12px; padding: 14px; margin: 10px 0; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); transition: opacity .3s, transform .3s; }
.credit .ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: calc(22px * var(--ts, 1)); background: var(--surface-2); flex: none; }
.credit .body { flex: 1; min-width: 0; } .credit .head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.credit .nm { font-weight: 700; line-height: 1.2; } .credit .amt { font-weight: 800; font-size: calc(18px * var(--ts, 1)); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.credit .meta { color: var(--muted); font-size: calc(12.5px * var(--ts, 1)); margin-top: 3px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: calc(11.5px * var(--ts, 1)); font-weight: 700; background: var(--surface-3); color: var(--muted); }
.pill.soon { color: var(--amber); background: color-mix(in srgb, var(--amber) 16%, transparent); } .pill.urgent { color: var(--red); background: color-mix(in srgb, var(--red) 16%, transparent); } .pill.ok { color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.credit .acts { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; } .credit .acts input { width: 72px; padding: 7px 9px; font-size: calc(13px * var(--ts, 1)); }
.credit.done { opacity: .62; } .credit.done .ico { background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--accent); }
.credit.just .ico { animation: pop .55s cubic-bezier(.2, 1.4, .3, 1); } .credit.just { animation: flash .9s ease-out; }
@keyframes pop { 0% { transform: scale(.4); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
@keyframes flash { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); } 100% { box-shadow: 0 0 0 18px transparent; } }
.credit details { margin-top: 6px; }

/* ---------- popup + motion preferences ---------- */
body.popup main { padding-bottom: 104px; }
@media (max-width: 380px) { .hero .big { font-size: calc(46px * var(--ts, 1)); } .ben-hero { gap: 12px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------- issuer marks ---------- */
.ibrand { flex: none; color: var(--ink, #fff); }
.ibrand.mono { display: inline-grid; place-items: center; font-weight: 900; letter-spacing: -.02em; line-height: 1; white-space: nowrap; }
.mini { display: inline-grid; place-items: center; color: var(--ink, #fff); }
.mini .ibrand { opacity: .95; } 
.hero .eyebrow .ibrand { margin-right: 1px; } 
.tile .tmark { width: 40px; height: 40px; border-radius: 13px; flex: none; display: grid; place-items: center; background: var(--glass); margin-right: 12px; color: var(--ink, #fff); }

/* ---------- spend amount ---------- */
.opts { margin-top: 2px; }
.amount { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); color: var(--text); font-size: calc(14px * var(--ts, 1)); font-weight: 600; }
.amount .amt-in { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-weight: 700; }
.amount input { width: 96px; padding: 7px 10px; text-align: right; font-weight: 800; }
.hero .earn { margin-top: 10px; padding: 8px 12px; border-radius: 12px; background: var(--glass-strong); font-size: calc(14px * var(--ts, 1)); }
.hero .earn b { font-size: calc(16px * var(--ts, 1)); font-weight: 900; }
.rank .v { text-align: right; } .rank .v small { display: block; font-size: calc(11px * var(--ts, 1)); font-weight: 700; color: var(--muted); letter-spacing: 0; }
.ibrand.badge { display: inline-grid; place-items: center; background: #fff; border-radius: 22%; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
.ibrand.badge.mono { width: auto; padding: 0 .35em; border-radius: 24%; color: color-mix(in srgb, var(--c1) 40%, var(--c2)); letter-spacing: -.01em; }
.ibrand.badge.wide { border-radius: 18%; padding: 0; }
.ibrand.badge.wide svg { display: block; }
.tile .tmark { width: auto; min-width: 40px; padding: 0 6px; }
.ibrand.pimg img { display: block; border-radius: 16%; object-fit: contain; }

/* ---------- accessibility preferences (Settings) ---------- */
:root[data-bold="1"] body { font-weight: 700; }
:root[data-bold="1"] .muted, :root[data-bold="1"] .small { font-weight: 600; }
:root[data-contrast="1"] { --muted: color-mix(in srgb, var(--text) 84%, var(--bg)); --faint: color-mix(in srgb, var(--text) 70%, var(--bg)); --line: color-mix(in srgb, var(--text) 30%, transparent); --line-strong: color-mix(in srgb, var(--text) 55%, transparent); }
:root[data-motion="reduce"] *, :root[data-motion="reduce"] *::before, :root[data-motion="reduce"] *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }

/* ---------- settings ---------- */
.set-h { margin: 0 0 8px; font-size: calc(13px * var(--ts, 1)); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 800; }
.set .seg { margin: 8px 0 4px; }
.set-block { padding: 8px 0; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); cursor: pointer; }
.set-row > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.set-row select { max-width: 52%; }
.ts-row { display: flex; align-items: center; gap: 12px; margin: 10px 0 6px; }
.ts-row input[type=range] { flex: 1; accent-color: var(--accent); height: 28px; }
.ts-a { font-weight: 800; color: var(--muted); } .ts-a.sm { font-size: 13px; } .ts-a.lg { font-size: 24px; }
.ts-preview { padding: 10px 12px; border-radius: var(--r-sm); background: var(--surface-2); color: var(--text); }
input.switch { appearance: none; -webkit-appearance: none; width: 50px; height: 30px; padding: 0; vertical-align: middle; border-radius: 99px; background: var(--surface-3); border: 1px solid var(--line-strong); position: relative; flex: none; cursor: pointer; transition: background .2s; }
input.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--text); transition: transform .2s; }
input.switch:checked { background: var(--accent); border-color: var(--accent); }
input.switch:checked::after { transform: translateX(20px); background: var(--accent-ink); }
input.switch:focus-visible, .ts-row input:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.btn.danger { color: var(--red); border-color: color-mix(in srgb, var(--red) 50%, transparent); background: transparent; }
.ibrand.fullicon { display: block; border-radius: 22%; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
.tile .tmark:has(.fullicon) { background: none; padding: 0; min-width: 0; margin-right: 12px; }
.tile .tmark .fullicon { width: 40px; height: 40px; }
/* Amex's own square logo fills the slot instead of sitting small on the card-colour swatch */
.rank .mini:has(.fullicon), .result .mini:has(.fullicon), .fee-row .mini:has(.fullicon) { background: none; box-shadow: none; }
.rank .mini .fullicon, .result .mini .fullicon { width: 24px; height: 24px; }
.fee-row .mini .fullicon { width: 18px; height: 18px; }
.hero .eyebrow .fullicon { width: 18px; height: 18px; margin: -2px 0 -2px -4px; }
.hero .caution { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; padding: 8px 12px; border-radius: 12px; background: var(--glass-strong); font-size: calc(12px * var(--ts, 1)); line-height: 1.4; }
.hero .caution .i { flex: none; margin-top: 2px; stroke-width: 2.2; }

/* ---------- add your own card ---------- */
.btn.addown { width: 100%; margin: 12px 0 4px; justify-content: center; }
.cf-l { display: block; margin: 10px 0; color: var(--muted); font-size: calc(13px * var(--ts, 1)); font-weight: 700; }
.cf-l input, .cf-l select { display: block; width: 100%; margin-top: 5px; }
.cf-l .cf-mult { display: flex; margin-top: 5px; } .cf-l .cf-mult input { margin-top: 0; }
.cf-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cf-h { margin: 16px 0 6px; font-weight: 800; font-size: calc(13px * var(--ts, 1)); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.cf-row { display: grid; grid-template-columns: 1fr 92px 36px; gap: 8px; align-items: center; margin: 8px 0; }
.cf-mult { display: inline-flex; align-items: center; gap: 4px; } .cf-mult input { width: 100%; text-align: right; } .cf-mult i { font-style: normal; color: var(--muted); font-weight: 800; }
.cf-err { margin-top: 12px; padding: 10px 12px; border-radius: var(--r-sm); background: color-mix(in srgb, var(--red) 14%, transparent); color: var(--red); font-size: calc(13px * var(--ts, 1)); }
.cf-row { grid-template-columns: minmax(0, 1fr) 84px 34px; }
.cf-row select { min-width: 0; width: 100%; }
.cf-row .cf-mult { min-width: 0; } .cf-row .cf-mult input { min-width: 0; padding-left: 8px; padding-right: 8px; }
.cf .round { width: 34px; height: 34px; }
.cf .round { background: var(--surface-2); color: var(--muted); box-shadow: none; border: 1px solid var(--line); }

/* ---------- sync ---------- */
.sync-code { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 10px 0 8px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--line-strong); }
.sync-code code { font: 800 calc(19px * var(--ts, 1)) ui-monospace, "SF Mono", Consolas, monospace; letter-spacing: .08em; color: var(--accent); user-select: all; word-break: break-all; }
.sync-join { display: flex; gap: 8px; margin-top: 8px; } .sync-join input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .06em; }
.sync-actions { margin-top: 14px; justify-content: flex-start; gap: 10px; flex-wrap: wrap; }
.notice { margin-top: 10px; padding: 9px 12px; border-radius: var(--r-sm); background: color-mix(in srgb, var(--accent) 14%, transparent); font-size: calc(13px * var(--ts, 1)); }

/* ---------- recent places and your offers ---------- */
.recent { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 2px 2px 12px; }
.recent .chip { padding: 6px 12px; }
.offers-list .row { justify-content: space-between; }
.offer-row { display: flex; align-items: center; gap: 12px; width: 100%; margin: 8px 0 0; padding: 10px 12px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); color: var(--text); text-align: left; font: inherit; cursor: pointer; }
.offer-row .mid { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.offer-row .t { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.offer-row .s { color: var(--muted); font-size: calc(12px * var(--ts, 1)); }
.offer-row .when { flex: none; font-size: calc(11px * var(--ts, 1)); font-weight: 700; padding: 4px 9px; border-radius: 99px; background: var(--surface-3); color: var(--muted); }
.offer-row .when.soon { background: color-mix(in srgb, var(--amber) 18%, transparent); color: var(--amber); }

/* compact: the offers list and recent chips must not push the answer below the fold */
.recent { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-bottom: 8px; } .recent::-webkit-scrollbar { display: none; }
.recent .chip { flex: none; }
.offers-list { padding: 12px 14px; margin: 8px 0 10px; }
.offer-row { margin-top: 6px; padding: 7px 10px; gap: 10px; }
.offer-row .avatar { width: 32px; height: 32px; font-size: 14px; flex: none; }
.offer-row .s { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.offers-list > .muted.small { margin-top: 4px !important; }
/* expiry sits beside the merchant name so the second line keeps the full width for the deal and the card */
.offer-row .t { display: flex; align-items: center; gap: 8px; white-space: nowrap; overflow: hidden; }
.offer-row .t .nm { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.offer-row .when { margin-left: 0; padding: 2px 8px; flex: none; }

.link.danger-link { color: var(--red); }
