/* Nunito Sans (SIL Open Font License), self-hosted so visitors' browsers don't contact Google. */
@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/nunito-sans-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/nunito-sans-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --orange: #f07225;
  --orange-2: #e85d1c;
  --orange-soft: #fff1e7;
  --ink: #0f1729;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #f6f7f9;
  --panel: #ffffff;
  --green: #16a34a;
  --red: #dc2626;
  --amber: #b45309;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .06);
  font-family: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--orange-2); }
h1, h2, h3 { color: var(--ink); line-height: 1.2; }
h1 { font-size: 1.75rem; font-weight: 800; margin: 0 0 .25rem; }
h2 { font-size: 1.1rem; font-weight: 800; margin: 0 0 .75rem; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.tiny { font-size: .78rem; }
.hidden { display: none !important; }
.ok { color: var(--green); }
.hot { color: var(--red); }
code { font-size: .78rem; word-break: break-all; }

/* ---------- Buttons & inputs ---------- */
.btn-primary, .btn-ghost, .btn-danger, .google-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 700; border-radius: 10px; padding: .7rem 1.2rem; cursor: pointer;
  text-decoration: none; border: 1px solid transparent; transition: filter .15s, background .15s, box-shadow .15s;
}
.btn-primary { background: linear-gradient(90deg, #f47b2a, var(--orange-2)); color: #fff; box-shadow: 0 6px 16px rgba(240, 114, 37, .28); }
.btn-primary:hover { filter: brightness(1.05); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: #f9fafb; }
.btn-danger { background: var(--red); color: #fff; }
.sm { padding: .4rem .8rem; font-size: .88rem; }
.big { padding: .9rem 2rem; font-size: 1.1rem; }
.link-btn { background: none; border: 0; color: var(--orange-2); font: inherit; font-weight: 600; cursor: pointer; padding: .25rem 0; text-decoration: underline; }
input, select, textarea {
  font: inherit; color: var(--ink); width: 100%; padding: .7rem .85rem; border: 1px solid var(--line);
  border-radius: 10px; background: #fff; transition: border-color .15s, box-shadow .15s;
}
input::placeholder { color: #8a8f98; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(240, 114, 37, .15); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
label { font-weight: 700; color: var(--ink); font-size: .92rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; font-size: .88rem; color: var(--text); }
.check input { width: 1.1rem; height: 1.1rem; margin-top: .2rem; flex: none; accent-color: var(--orange); }
.stack { display: grid; gap: .6rem; }
.stack button { justify-self: start; }
.inline-form { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.inline-form input { width: auto; flex: 1 1 200px; }
.form-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; border-radius: 10px; padding: .6rem .8rem; margin: 0 0 .5rem; font-size: .92rem; }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.3rem; }
.brand img { border-radius: 11px; box-shadow: 0 4px 12px rgba(232, 93, 28, .25); }

/* ---------- Login page (matches design) ---------- */
.login-page { min-height: 100vh; background: radial-gradient(ellipse 60% 55% at 12% 12%, rgba(251, 214, 186, .55), transparent 70%), linear-gradient(135deg, #f7f3f0 0%, #f1f3f7 55%, #f2f4f7 100%); overflow-x: hidden; }
.glow { position: fixed; inset: 0; pointer-events: none; background: radial-gradient(circle at 17% 16%, rgba(255, 196, 150, .35), transparent 18%); }
.login-shell {
  position: relative; max-width: 1560px; margin: 0 auto; min-height: 100vh; padding: 28px clamp(16px, 2.4vw, 40px) 16px;
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(360px, 480px); grid-template-rows: auto 1fr auto; column-gap: 6vw;
}
.login-top { grid-column: 1 / -1; }
.login-top .brand img { width: 62px; height: 62px; border-radius: 14px; }
.login-top .brand span { font-size: 1.45rem; }
.hero { align-self: center; padding-bottom: 6vh; }
.hero h1 { font-size: clamp(2.6rem, 5.3vw, 5.4rem); font-weight: 900; letter-spacing: -.015em; line-height: .98; margin: 0 0 1.4rem; color: var(--ink); }
.hero p { font-size: clamp(1.1rem, 1.6vw, 1.55rem); color: #334155; margin: 0; }
.auth-card {
  align-self: center; background: rgba(255, 255, 255, .92); border-radius: 22px; padding: 26px 26px 24px; margin-bottom: 8vh;
  box-shadow: 0 2px 6px rgba(15, 23, 41, .04), 0 24px 60px rgba(15, 23, 41, .08), 0 30px 60px -30px rgba(240, 114, 37, .25);
}
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: #eef0f3; border-radius: 12px; padding: 4px; margin-bottom: 1.3rem; }
.tabs a { text-align: center; padding: .55rem; border-radius: 9px; text-decoration: none; color: #7b8494; font-weight: 700; }
.tabs a.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.auth-form { display: grid; gap: .45rem; }
.auth-form h2 { text-align: center; font-weight: 600; font-size: 1.3rem; margin: 0 0 .6rem; }
.auth-form label { margin-top: .3rem; }
.auth-form .btn-primary { width: 100%; margin-top: .75rem; padding: .8rem; font-size: 1.02rem; }
.or { display: flex; align-items: center; gap: .8rem; color: #9aa1ad; font-size: .85rem; margin: .7rem 0 .3rem; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.google-btn { width: 84%; justify-self: center; background: #fff; color: #3c4043; border: 1px solid #dadce0; font-weight: 500; font-family: Roboto, Arial, sans-serif; position: relative; }
.google-btn img { position: absolute; left: 14px; }
.google-btn:hover { background: #f8faff; }
.hint, .fineprint { font-size: .8rem; color: var(--muted); margin: .1rem 0 0; }
.fineprint { text-align: center; }
.lang-bar { grid-column: 1; display: flex; flex-wrap: wrap; gap: .4rem 1rem; border-top: 1px solid #dfe2e7; padding-top: 1rem; font-size: .88rem; }
.lang-bar a { color: #4b5563; text-decoration: none; }
.lang-bar a.on { color: var(--orange-2); text-decoration: underline; font-weight: 700; }
/* Below the sign-in screen: how it works + questions */
.home-info { position: relative; max-width: 1100px; margin: 0 auto; padding: 2rem clamp(16px, 2.4vw, 40px) 1rem; }
.home-info h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 900; margin: 2rem 0 1rem; color: var(--ink); }
.home-steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.home-steps li { counter-increment: step; background: rgba(255, 255, 255, .92); border-radius: 18px; padding: 1.2rem 1.3rem; box-shadow: 0 2px 6px rgba(15, 23, 41, .04), 0 12px 30px rgba(15, 23, 41, .06); }
.home-steps li::before { content: counter(step); display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--orange-soft); color: var(--orange-2); font-weight: 900; margin-bottom: .6rem; }
.home-steps h3 { font-size: 1.1rem; margin: 0 0 .35rem; }
.home-steps p { margin: 0; color: #475569; line-height: 1.5; }
.home-faq { display: grid; gap: .6rem; }
.home-faq details { background: rgba(255, 255, 255, .92); border-radius: 14px; padding: .9rem 1.1rem; box-shadow: 0 1px 4px rgba(15, 23, 41, .05); }
.home-faq summary { font-weight: 800; cursor: pointer; }
.home-faq p { margin: .6rem 0 0; color: #475569; line-height: 1.5; }
.home-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin: 2rem 0 1rem; font-weight: 700; }
.home-info .card-notice { font-size: .78rem; color: var(--muted); }
@media (max-width: 720px) { .home-steps { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) {
  .login-shell { grid-template-columns: minmax(0, 1fr); row-gap: 1.5rem; }
  .hero h1 { font-size: clamp(2rem, 10.5vw, 3.4rem); overflow-wrap: anywhere; }
  .hero { padding: 3vh 0 0; }
  .auth-card { margin-bottom: 1rem; }
  .lang-bar { grid-column: 1; }
  .login-top .brand img { width: 48px; height: 48px; }
}

/* ---------- App shell ---------- */
.topbar { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.topbar-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; gap: 1.5rem; padding: .7rem 16px; }
.mainnav { display: flex; gap: .25rem; flex: 1; }
.mainnav a { text-decoration: none; color: #4b5563; font-weight: 700; padding: .45rem .75rem; border-radius: 8px; white-space: nowrap; }
.mainnav a.active, .mainnav a:hover { background: var(--orange-soft); color: var(--orange-2); }
.nav-ic, .nav-short { display: none; }
.container { max-width: 1100px; margin: 0 auto; padding: 1.5rem 16px; }
.app-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; color: var(--muted); font-size: .82rem; border-top: 1px solid var(--line); }
@media (max-width: 720px) {
  /* Phones: the main menu becomes a fixed tab bar at the bottom of the screen (icon + short label, no scrolling). */
  .topbar-inner { gap: .5rem; }
  .logout { margin-left: auto; }
  .mainnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; gap: 0; background: #fff; border-top: 1px solid var(--line);
    box-shadow: 0 -4px 16px rgba(15, 23, 42, .06); padding: .3rem .25rem calc(.3rem + env(safe-area-inset-bottom)); }
  .mainnav a { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .35rem .1rem;
    font-size: .72rem; font-weight: 700; color: #6b7280; border-radius: 10px; }
  .mainnav a.active, .mainnav a:hover { background: none; color: var(--orange-2); }
  .mainnav a.active .nav-ic { background: var(--orange-soft); }
  .nav-ic { display: block; width: 44px; height: 28px; padding: 3px 10px; border-radius: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .nav-full { display: none; }
  .nav-short { display: block; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  body.app { padding-bottom: calc(4.5rem + env(safe-area-inset-bottom)); }
  .brand span { font-size: 1.1rem; }
  .brand img { width: 32px; height: 32px; }
}
.subnav { display: flex; flex-wrap: wrap; column-gap: 1rem; border-bottom: 1px solid var(--line); margin: .5rem 0 1.25rem; }
.subnav a { text-decoration: none; color: var(--muted); font-weight: 700; padding: .5rem 0; border-bottom: 2px solid transparent; }
.subnav a.active { color: var(--ink); border-color: var(--orange); }

.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1.25rem; box-shadow: var(--shadow); }
.panel.narrow { max-width: 560px; margin-left: auto; margin-right: auto; }
.panel.center { text-align: center; }
.panel.danger { border-color: #fecaca; }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .75rem; }
.panel-head h2 { margin: 0; }
.count { display: inline-block; min-width: 1.6rem; text-align: center; font-size: .78rem; background: #f1f5f9; color: var(--muted); border-radius: 99px; padding: .05rem .45rem; margin-left: .3rem; vertical-align: middle; }
.empty { color: var(--muted); margin: 0; }
.empty-state { text-align: center; padding: 2.5rem 1.25rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.two-col .panel { margin-bottom: 0; }
.two-col + .panel { margin-top: 1.25rem; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }
.flash { border-radius: 10px; padding: .75rem 1rem; margin-bottom: 1rem; font-weight: 600; }
.flash-ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.flash-warn { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.flash-err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.notice { background: var(--orange-soft); border: 1px solid #fed7b8; border-radius: 10px; padding: .75rem 1rem; margin-bottom: 1.25rem; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; margin-bottom: .4rem; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1rem; display: flex; flex-direction: column; }
.stat-n { font-size: 1.5rem; font-weight: 900; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat-l { color: var(--muted); font-size: .85rem; }
.stats + .tiny { margin: 0 0 1.25rem; }
.dash-stats { margin-bottom: 1.25rem; }

/* ---------- Perks ---------- */
.perks, .upcoming, .benefit-list, .mini-cards, .card-grid, .outbox { list-style: none; margin: 0; padding: 0; }
.perk { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 0; border-top: 1px solid var(--line); }
.perk:first-child { border-top: 0; padding-top: 0; }
.perk-main { display: flex; gap: .9rem; min-width: 0; }
.perk-value { flex: none; min-width: 4.2rem; height: 2.6rem; padding: 0 .5rem; border-radius: 10px; background: var(--orange-soft); color: var(--orange-2); font-weight: 900; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.perk.urgent .perk-value { background: #fee2e2; color: var(--red); }
.st-used .perk-value, .st-skipped .perk-value { background: #f1f5f9; color: var(--muted); }
.perk-name { font-weight: 800; color: var(--ink); }
.perk-meta { color: var(--muted); font-size: .88rem; }
.perk-details summary { cursor: pointer; color: var(--muted); font-size: .85rem; }
.perk-details p { margin: .3rem 0; }
.perk-actions { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; justify-content: flex-end; flex: none; }
@media (max-width: 720px) {
  .perk { flex-direction: column; }
  .perk-actions { justify-content: flex-start; padding-left: 5.1rem; }
}
.tag { display: inline-block; font-size: .75rem; font-weight: 700; padding: .1rem .5rem; border-radius: 99px; margin-top: .25rem; }
.tag.warn { background: #fef3c7; color: var(--amber); }
.badge { font-size: .8rem; font-weight: 700; padding: .25rem .6rem; border-radius: 99px; background: #f1f5f9; color: var(--muted); }
.b-used { background: #dcfce7; color: #166534; }
.verify.pending { color: var(--amber); }
.verify.ok { color: var(--muted); }
.upcoming li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.upcoming li:first-child { border-top: 0; }

/* ---------- Cards ---------- */
/* Card tiles: original illustrations in each card's colour scheme (no issuer artwork or logos). */
.card-art {
  --card: #334155; --ink: #fff; position: relative; width: 100%; aspect-ratio: 1.586; border-radius: 12px; color: var(--ink); overflow: hidden;
  container-type: inline-size; isolation: isolate;
  background:
    radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--card) 70%, #fff) 0%, transparent 55%),
    linear-gradient(135deg, color-mix(in srgb, var(--card) 88%, #fff) 0%, var(--card) 50%, color-mix(in srgb, var(--card) 72%, #000) 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 8px 20px rgba(15, 23, 42, .18), 0 2px 4px rgba(15, 23, 42, .12);
}
.card-art.light { --ink: #2b2415; }
/* Brushed metal: fine horizontal grain; every card gets a soft sheen. */
.card-art.metal::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: .55;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .07) 0 1px, rgba(0, 0, 0, .05) 1px 2px, transparent 2px 3px);
}
.card-art::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .22) 45%, transparent 60%);
}
.card-art.gloss::after { background: linear-gradient(160deg, rgba(255, 255, 255, .28) 0%, rgba(255, 255, 255, 0) 42%); }
.card-art .issuer { position: absolute; top: 9%; left: 7%; font-weight: 800; font-size: clamp(.6rem, 6.2cqi, .95rem); letter-spacing: .03em; opacity: .95; }
.card-art .chip {
  position: absolute; top: 36%; left: 7%; width: 15%; aspect-ratio: 1.3; border-radius: 16% / 20%;
  background:
    linear-gradient(90deg, transparent 32%, rgba(0, 0, 0, .18) 32% 35%, transparent 35% 65%, rgba(0, 0, 0, .18) 65% 68%, transparent 68%),
    linear-gradient(0deg, transparent 45%, rgba(0, 0, 0, .18) 45% 55%, transparent 55%),
    linear-gradient(135deg, #f6e3a1, #c9a44a 60%, #e8cf82);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .12) inset;
}
/* Decorative contour rings (generic, not an issuer motif). */
.card-art .wave {
  position: absolute; right: -12%; top: -30%; width: 75%; aspect-ratio: 1; border-radius: 50%; opacity: .16;
  background: repeating-radial-gradient(circle, transparent 0 9px, var(--ink) 9px 10px);
  -webkit-mask-image: linear-gradient(200deg, #000 20%, transparent 75%); mask-image: linear-gradient(200deg, #000 20%, transparent 75%);
}
.card-art .foot { position: absolute; left: 7%; right: 7%; bottom: 9%; display: flex; align-items: flex-end; justify-content: space-between; gap: 6%; }
.card-art .mark { min-width: 0; font-weight: 700; font-size: clamp(.55rem, 5.2cqi, .85rem); letter-spacing: .08em; text-transform: uppercase; line-height: 1.15; opacity: .92; }
.card-art .net { flex-shrink: 0; font-weight: 900; font-style: italic; font-size: clamp(.6rem, 6.5cqi, 1rem); letter-spacing: .02em; line-height: 1; opacity: .9; }
.verify-table td { vertical-align: top; }
.verify-table .evidence { font-style: italic; color: #374151; margin-bottom: .25rem; }
.verify-table .check-note { font-weight: 700; color: #92400e; margin-bottom: .25rem; }
.count-pill { font-size: .8rem; font-weight: 800; background: var(--line); border-radius: 999px; padding: .1rem .55rem; vertical-align: middle; }
.request-card .inline-form { display: flex; flex-wrap: wrap; gap: .5rem; }
.request-card .inline-form input { flex: 1 1 200px; width: auto; }
.card-notice { margin: 2rem 0 0; padding-top: .75rem; border-top: 1px solid var(--line); font-size: .75rem; line-height: 1.5; color: var(--muted, #6b7280); }
.card-notice p { margin: 0 0 .5rem; }
.card-notice p:last-child { margin-bottom: 0; }
.card-art.xs { width: 64px; border-radius: 6px; }
.card-art.xs span { display: none; }
.card-art.xs .chip { display: block; }
.card-art.lg { max-width: 300px; }
.filters { display: flex; gap: .5rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.filters input { flex: 1 1 240px; width: auto; }
.filters select { width: auto; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.card-tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; display: flex; flex-direction: column; gap: .75rem; box-shadow: var(--shadow); }
.card-tile.mine { border-color: var(--orange); box-shadow: 0 0 0 2px rgba(240, 114, 37, .15); }
.card-tile form { margin-top: auto; }
.card-name { font-weight: 800; color: var(--ink); text-decoration: none; }
.card-hero { display: grid; grid-template-columns: 300px 1fr; gap: 1.5rem; align-items: center; margin-bottom: 1.5rem; }
@media (max-width: 720px) { .card-hero { grid-template-columns: 1fr; } }
.benefit-list li { display: flex; gap: .9rem; padding: .9rem 0; border-top: 1px solid var(--line); }
.benefit-list li:first-child { border-top: 0; }
.benefit-list p { margin: .25rem 0; }
/* Dashboard "My cards": equal-size rows that read as links (border, hover, "Manage ›"). */
.mini-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .6rem; }
.mini-cards a { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: .75rem; height: 100%; box-sizing: border-box;
  padding: .6rem .75rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-decoration: none; color: var(--ink);
  transition: border-color .15s, background .15s; }
.mini-cards a:hover, .mini-cards a:focus-visible { border-color: var(--orange); background: var(--orange-soft); }
.mc-text { display: grid; gap: .1rem; min-width: 0; }
.mc-name { font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.mc-meta { font-size: .8rem; color: var(--muted); }
.mc-go { font-size: .85rem; font-weight: 800; color: var(--orange-2); white-space: nowrap; }

/* ---------- Onboarding ---------- */
.steps { display: flex; gap: .5rem; list-style: none; padding: 0; margin: 0 0 1.25rem; counter-reset: s; flex-wrap: wrap; }
.steps li { counter-increment: s; color: var(--muted); font-weight: 700; font-size: .88rem; }
.steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: #e5e7eb; margin-right: .35rem; font-size: .78rem; }
.steps li + li::after { content: none; }
.steps li.on { color: var(--ink); }
.steps li.on::before { background: var(--orange); color: #fff; }
.steps li.done::before { content: '✓'; background: var(--green); color: #fff; }
.sms-preview { background: #e9e9eb; border-radius: 18px 18px 18px 4px; padding: .8rem 1rem; margin: 1rem 0 1.25rem; max-width: 380px; font-size: .92rem; }

/* ---------- Tables ---------- */
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.panel { overflow-x: auto; }
.table th, .table td { text-align: left; padding: .55rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--muted); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; }
.table tr.dim td { opacity: .55; }
.audit .diff { max-width: 420px; }

/* ---------- Admin forms ---------- */
.grid-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem 1.2rem; }
.grid-form label:not(.check) { display: grid; gap: .3rem; }
.grid-form .full { grid-column: 1 / -1; }
@media (max-width: 720px) { .grid-form { grid-template-columns: 1fr; } }

/* ---------- Magic link / public pages ---------- */
.magic { max-width: 620px; margin: 0 auto; padding: 1.5rem 16px; }
.magic .brand { margin-bottom: 1.5rem; }
.magic h1 { margin: .25rem 0 .5rem; }
.legal .panel { text-align: left; }
.outbox li { border: 1px solid var(--line); border-radius: 10px; padding: .75rem; margin-bottom: .6rem; }
.outbox li.inbound { background: #f8fafc; }
.outbox pre { white-space: pre-wrap; word-break: break-all; font-family: inherit; margin: .4rem 0 0; }

/* ---------- Pricing & plans ---------- */
.center { text-align: center; }
.nowrap { white-space: nowrap; }
form.inline { display: inline; }
.usage-line { color: var(--muted); font-size: .9rem; margin-bottom: 1rem; }
.notice .btn-primary.sm { margin-left: .4rem; }
.dismissible { position: relative; }
.dismissible > :first-child { padding-right: 2.75rem; }
.dismiss-x { position: absolute; top: .45rem; right: .45rem; width: 2rem; height: 2rem; border: 0; border-radius: 8px; background: none;
  color: #9a5b33; font-size: 1.35rem; line-height: 1; cursor: pointer; }
.dismiss-x:hover, .dismiss-x:focus-visible { background: rgba(232, 93, 28, .12); color: var(--orange-2); }
.interval-toggle { display: flex; width: max-content; margin: 1rem auto 1.5rem; background: #eef0f3; border-radius: 12px; padding: 4px; }
.interval-toggle a { padding: .5rem 1.4rem; border-radius: 9px; text-decoration: none; color: #6b7280; font-weight: 800; }
.interval-toggle a.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.interval-toggle .save { margin-left: .35rem; padding: .1rem .45rem; border-radius: 999px; background: #dcfce7; color: #166534; font-size: .72rem; font-weight: 800; white-space: nowrap; }
.plans { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.plan { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.4rem; display: flex; flex-direction: column; gap: .4rem; box-shadow: var(--shadow); }
.plan h2 { margin: 0; }
.plan.recommended { border: 2px solid var(--orange); }
.plan.current { background: #fffaf6; }
.ribbon { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--orange); color: #fff; font-weight: 800; font-size: .75rem; padding: .2rem .7rem; border-radius: 99px; white-space: nowrap; }
.price { margin: .4rem 0; }
.price .amt { font-size: 2rem; font-weight: 900; color: var(--ink); }
.price .per { color: var(--muted); margin-left: .15rem; }
.tag.promo { background: #dcfce7; color: #166534; }
.cards-limit { margin: .2rem 0; }
.features { list-style: none; padding: 0; margin: .3rem 0 1rem; flex: 1; }
.features li { padding: .2rem 0 .2rem 1.4rem; position: relative; font-size: .92rem; }
.features li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 900; }
.plan form button, .plan .btn-primary, .plan .btn-ghost { width: 100%; }
.plan-now { font-size: 1.1rem; }
.card-tile.paused { border-style: dashed; opacity: .9; }
.tile-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto; }
.tile-actions > * { flex: 1 1 auto; white-space: nowrap; }
.tile-actions > a { text-align: center; }
.card-tile .tile-actions form { margin-top: 0; }
.tile-actions form button { width: 100%; }
.card-section { margin-bottom: 2rem; }
.card-section h2 { display: flex; align-items: center; gap: .5rem; font-size: 1.15rem; margin: 0 0 .9rem; }
.card-section h2 .count { font-size: .8rem; font-weight: 800; background: var(--line); border-radius: 999px; padding: .1rem .55rem; }
.danger-box { border: 1px solid #f3b4a8; background: #fff4f1; border-radius: 10px; padding: .9rem 1.1rem; margin: 1rem 0; }
.danger-box ul { margin: .4rem 0 .6rem 1.1rem; }
.btn-danger { background: #b42318; color: #fff; border: 0; border-radius: 10px; padding: .7rem 1.1rem; font-weight: 800; cursor: pointer; }
.btn-danger:hover { background: #912018; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.cards-swap { display: flex; align-items: center; gap: .8rem; max-width: 460px; }
.cards-swap .card-art { flex: 1; }
.swap-arrow { font-size: 1.5rem; font-weight: 800; color: var(--muted); }
.replace-option { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.replace-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.paused-note { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.mini-cards li.paused { opacity: .55; }
.choose-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.choose-list li { padding: .5rem 0; border-top: 1px solid var(--line); }
.choose-list li:first-child { border-top: 0; }
.choose-list .check { align-items: center; font-size: 1rem; }
.ent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .4rem; margin-bottom: .6rem; }
fieldset { border: 1px solid var(--line); border-radius: 10px; padding: .8rem 1rem; }
legend { font-weight: 800; padding: 0 .3rem; }
.hero .pricing-link { display: inline-block; margin-top: 1rem; font-weight: 700; }

/* Legal links on public pages; pre-launch note on policy pages */
.legal-footer { text-align: center; font-size: .8rem; padding: 1rem 1rem 1.5rem; color: #64748b; line-height: 1.8; }
.legal-footer a { color: inherit; }
.prelaunch { font-size: .8rem; color: #64748b; border-left: 3px solid #cbd5e1; padding: .25rem .75rem; margin: 0 0 1rem; }
.legal h2 { font-size: 1.05rem; margin: 1.5rem 0 .4rem; }
.legal ul { padding-left: 1.25rem; }
.legal li { margin: .2rem 0; }
.placeholder { background: #fef3c7; padding: 0 .25rem; border-radius: 3px; }

/* Admin → Monitoring */
.mon-chart { margin: 1rem 0 0; }
.mon-chart svg { width: 100%; height: auto; display: block; }
.mon-chart svg g:hover path { opacity: .8; }
.mon-axis { font-size: 9px; fill: #6b7280; font-variant-numeric: tabular-nums; }
.mon-attention { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.mon-attention li { display: flex; gap: .75rem; align-items: baseline; padding: .55rem .75rem; border-radius: 10px; border: 1px solid var(--line); }
.lvl-badge { font-weight: 800; white-space: nowrap; font-size: .85rem; }
.lvl-critical { background: #fef2f2; border-color: #fecaca; }
.lvl-critical .lvl-badge { color: #b91c1c; }
.lvl-warning { background: #fffbeb; border-color: #fde68a; }
.lvl-warning .lvl-badge { color: #b45309; }
.lvl-info { background: #f8fafc; }
.lvl-info .lvl-badge { color: #475569; }

/* ---------- Plan change confirmation ---------- */
.plan-compare { display: grid; grid-template-columns: 1fr auto 1fr; gap: .75rem; align-items: stretch; margin: 1rem 0 1.25rem; }
.plan-compare > div:not(.arrow) { display: grid; gap: .15rem; border: 1px solid var(--line); border-radius: 12px; padding: .8rem 1rem; background: #fafafa; }
.plan-compare > .to { border-color: #fed7b8; background: var(--orange-soft); }
.plan-compare strong { font-size: 1.15rem; }
.plan-compare .arrow { align-self: center; font-size: 1.4rem; font-weight: 800; color: var(--muted); }
.confirm-change h2 { font-size: 1.05rem; margin: 1.25rem 0 .4rem; }
.change-list { margin: 0 0 1.25rem; padding-left: 1.2rem; display: grid; gap: .5rem; }
@media (max-width: 520px) { .plan-compare { grid-template-columns: 1fr; } .plan-compare .arrow { justify-self: center; transform: rotate(90deg); } }

/* Public card perk pages (/perks, /perks/:slug) */
.perks-page h1 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 900; line-height: 1.15; margin: .25rem 0 .6rem; color: var(--ink); }
.perks-page .lead { color: #475569; line-height: 1.55; max-width: 60ch; }
.perks-page h3.perk-name { font-size: 1rem; margin: 0; }
.perks-page section > h2 { margin: 1.75rem 0 .8rem; }
.crumbs { font-size: .85rem; color: var(--muted); margin: 1rem 0; }
.crumbs a { color: inherit; }
.perks-cta p { line-height: 1.55; }
.perks-cta .btn-primary { margin-right: 1rem; }
.perk-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.perk-card { display: grid; gap: .4rem; text-decoration: none; color: inherit; }
.perk-card:hover .perk-card-name, .perk-card:focus-visible .perk-card-name { text-decoration: underline; }
.perk-card-name { font-weight: 800; color: var(--ink); }

/* Home hero: brand-orange last word of the headline; trust ticks under the subtitle */
.hero h1 .accent { background: linear-gradient(90deg, #f47b2a, var(--orange-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-trust { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; padding: 0; margin: .8rem 0 0; font-weight: 700; color: var(--ink); font-size: clamp(.95rem, 1.2vw, 1.1rem); }
.hero-trust li::before { content: "✓"; color: var(--orange-2); font-weight: 900; margin-right: .4rem; }
