/* MaxiMoney Lite. Self-hosted fonts only (CSP: font-src 'self'). */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(/fonts/plus-jakarta-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;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(/fonts/plus-jakarta-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(/fonts/playfair-display-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;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(/fonts/playfair-display-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light;
  --ink: #0a2636;
  --ink-2: #0b1e26;
  --muted: #4a5f6a;
  --subtle: #72787d;
  --chevron: #94a3b8;
  --teal: #006970;
  --teal-2: #00796b;
  --green: #00897b;
  --green-bg: #daf4ed;
  --green-ink: #055745;
  --amber-bg: #fff7e6;
  --amber-ink: #92400e;
  --amber-line: #fde68a;
  --red: #ba1a1a;
  --red-bg: #fdecec;
  --red-line: #f3c1c1;
  --none: #d2e5f1;
  --rule: #e6f0f4;
  --tint: #e6f4f6;
  --tint-2: #f0fafb;
  --grid-bg: #f8fcfe;
  --grid-line: #eef4f7;
  --surface: rgba(255, 255, 255, 0.95);
  --page: #e9eef1;
  --app-bg: linear-gradient(180deg, #fdf9f1 0%, #edf8f8 24%, #d9f2f5 55%, #c7edf2 100%);
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --shadow: 0 6px 24px rgba(10, 54, 74, 0.04);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--page);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--teal); }
a:hover { color: #0a364a; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.icon { width: 1em; height: 1em; flex: none; fill: currentColor; display: inline-block; vertical-align: middle; }

/* App column: full width on phones, a phone-width column on larger screens. */
.app {
  position: relative;
  max-width: 480px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--app-bg);
  display: flex;
  flex-direction: column;
}
@media (min-width: 520px) {
  body { padding: 24px 0; }
  .app { min-height: calc(100dvh - 48px); border-radius: 28px; overflow: hidden; box-shadow: 0 20px 60px rgba(10, 38, 54, 0.12); }
}
.screen { flex: 1; display: flex; flex-direction: column; }
.noscript { padding: 24px; text-align: center; }

/* Type */
.title { font-family: var(--serif); font-weight: 400; font-size: 28px; color: var(--ink); margin: 0; line-height: 1.25; }
.lede { margin: 0; color: var(--muted); font-size: 14px; }
.hint { margin: 0; font-size: 13px; color: var(--muted); }
.eyebrow { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--teal); }

/* Buttons */
.btn {
  width: 100%; height: 56px; border-radius: 999px; border: 0;
  background: var(--ink); color: #fff; font-weight: 600; font-size: 15px;
  box-shadow: 0 8px 20px rgba(10, 38, 54, 0.25);
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.btn .icon { font-size: 18px; }
a.btn { text-decoration: none; }
.offer-text { margin: 0; font-size: 14px; line-height: 1.45; color: var(--muted); }
.kyc-note { margin: 0; display: flex; gap: 6px; align-items: flex-start; font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.kyc-note .icon { flex: none; font-size: 16px; color: var(--teal-2); margin-top: 1px; }
.btn:disabled { opacity: 0.4; cursor: default; }
.btn.busy:disabled { opacity: 1; }
.link {
  border: 0; background: none; padding: 0; color: var(--teal); font-weight: 600;
  text-decoration: underline; font-size: inherit;
}
.link.plain { text-decoration: none; font-size: 13px; align-self: flex-start; }
.link:disabled { color: var(--subtle); cursor: default; text-decoration: none; }
.spinner {
  width: 16px; height: 16px; border-radius: 50%; flex: none;
  border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #fff;
  animation: mm-spin 0.9s linear infinite;
}
@keyframes mm-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.5s; } }

.form-error { margin: 0; min-height: 0; font-size: 13px; color: var(--red); display: flex; gap: 6px; align-items: flex-start; }
.form-error:empty { display: none; }
.form-error .icon { font-size: 16px; margin-top: 1px; }
.notice { margin: 0; font-size: 13px; color: var(--muted); text-align: center; }

/* 01 Splash */
.splash-hero { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 40px 28px; gap: 10px; }
.logo { display: block; border-radius: 24px; }
.logo.lg { width: 72px; height: 72px; box-shadow: 0 8px 24px rgba(10, 54, 74, 0.22); margin-bottom: 14px; }
.logo.sm { width: 32px; height: 32px; border-radius: 12px; }
.brand { font-family: var(--serif); font-weight: 400; font-size: 36px; color: var(--ink); margin: 0; letter-spacing: -0.01em; }
.tagline { margin: 0; color: var(--muted); font-size: 15px; }
.splash-foot { padding: 16px 20px 28px; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.made { font-size: 12px; color: var(--subtle); }

/* Shared layout for the entry screens */
.top { padding: 28px 24px 0; display: flex; flex-direction: column; gap: 20px; flex: 1; }
.top.tight { gap: 18px; }
.top.form { padding-bottom: 8px; }
.title-gap { margin-bottom: 4px; }
.bottom { padding: 12px 16px 0; display: flex; flex-direction: column; gap: 12px; }

/* 02 Mobile */
.numbox {
  background: var(--surface); border-radius: 20px; padding: 18px 20px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 12px;
  font-size: 28px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums;
}
.numbox .cc { color: var(--subtle); font-weight: 500; }
.numbox input {
  flex: 1; min-width: 0; border: 0; padding: 0; background: transparent; outline: none;
  font-size: 28px; font-weight: 600; letter-spacing: 0.04em; color: var(--ink); caret-color: var(--teal);
  font-variant-numeric: tabular-nums;
}
.consent {
  background: var(--surface); border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow);
  display: flex; align-items: flex-start; gap: 12px; font-size: 13px; color: var(--ink); line-height: 1.5; cursor: pointer;
}
.consent a { font-weight: 600; }
.checkbox {
  flex: none; width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--teal);
  display: grid; place-items: center; color: #fff; background: transparent;
}
.checkbox .icon { font-size: 16px; visibility: hidden; }
.consent input:checked + .checkbox { background: var(--teal); }
.consent input:checked + .checkbox .icon { visibility: visible; }
.consent input:focus-visible + .checkbox { outline: 2px solid var(--teal); outline-offset: 2px; }

.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding-bottom: 10px; }
.keypad button {
  height: 54px; border: 0; background: transparent; border-radius: 14px;
  font-size: 24px; font-weight: 500; color: var(--ink);
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.keypad button:active { background: rgba(255, 255, 255, 0.7); }
.keypad .blank { visibility: hidden; }

/* 03 OTP */
.sent-to { margin: 0; color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.otp-field { position: relative; }
.otp-boxes { display: flex; gap: 10px; }
.otp-box {
  flex: 1; height: 56px; border-radius: 16px; background: var(--surface);
  border: 2px solid rgba(255, 255, 255, 0.8);
  display: grid; place-items: center; font-size: 24px; font-weight: 600; color: var(--ink);
}
.otp-box.current { border-color: var(--teal); }
.otp-box.bad { border-color: var(--red); }
.otp-field input {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: 0;
  font-size: 16px; caret-color: transparent; cursor: text;
}
.otp-status { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); min-height: 20px; }
.otp-status.bad { color: var(--red); }
.otp-status .icon { font-size: 16px; }

/* 04 Details */
.verified-pill {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px;
  background: var(--green-bg); color: var(--green-ink); font-size: 12px; font-weight: 600;
}
.verified-pill .icon { font-size: 15px; color: var(--green); }
.fields { background: var(--surface); border-radius: 24px; padding: 4px 20px; box-shadow: var(--shadow); }
.field { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.field:last-child { border-bottom-color: transparent; }
.field label { display: block; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--subtle); font-weight: 600; margin-bottom: 2px; }
.field input { border: 0; padding: 0; font-size: 17px; font-weight: 600; color: var(--ink); background: transparent; width: 100%; outline: none; min-height: 26px; }
.field input::placeholder { color: #a3b1b9; font-weight: 500; }
.field input.upper { text-transform: uppercase; }
.field .err { margin: 4px 0 0; font-size: 12px; color: var(--red); }
.field .err:empty { display: none; }
.field select {
  border: 0; padding: 0 28px 0 0; font: inherit; font-size: 17px; font-weight: 600; color: var(--ink); background: transparent;
  width: 100%; outline: none; min-height: 26px; appearance: none; -webkit-appearance: none; cursor: pointer;
}
.field select:has(option[value='']:checked) { color: #a3b1b9; font-weight: 500; }
.select-wrap { position: relative; }
.select-wrap .icon { position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--chevron); pointer-events: none; }
.section-label { margin: 6px 0 -6px 4px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal); font-weight: 700; }
.soft-note { margin: 0; font-size: 12px; color: var(--muted); display: flex; gap: 6px; align-items: flex-start; }
.soft-note .icon { font-size: 15px; color: var(--teal-2); margin-top: 1px; }
.sticky-cta {
  position: sticky; bottom: 0; padding: 16px 20px 24px; display: flex; flex-direction: column; gap: 10px;
  background: linear-gradient(0deg, #c7edf2 60%, transparent);
}

/* Home */
.home-head { height: 56px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; position: relative; }
.home-brand { display: flex; align-items: center; gap: 8px; font-family: var(--serif); font-size: 20px; color: var(--ink); }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; background: var(--tint); color: var(--ink);
  display: grid; place-items: center; font-size: 12px; font-weight: 600; border: 2px solid #fff; padding: 0;
}
.page { padding: 8px 20px 24px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.page.list { gap: 14px; }
.greeting { font-family: var(--serif); font-weight: 400; font-size: 27px; color: var(--ink); margin: 0; line-height: 1.2; }
.as-on { font-size: 12px; color: var(--muted); margin-top: 2px; }
.page-title { font-family: var(--serif); font-weight: 500; font-size: 32px; color: var(--ink); margin: 0; line-height: 1.2; }
.page-sub { font-size: 13px; color: var(--muted); }

.score-card { background: var(--surface); border-radius: 24px; padding: 22px 24px; box-shadow: 0 8px 30px rgba(10, 54, 74, 0.04); display: flex; flex-direction: column; gap: 14px; }
.score-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.score-label { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); font-weight: 700; }
.score-value { font-family: var(--serif); font-weight: 500; font-size: 52px; line-height: 1; color: var(--ink); margin-top: 6px; font-variant-numeric: tabular-nums; }
.band { padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.tone-good { background: var(--green-bg); color: var(--green-ink); }
.tone-fair { background: var(--amber-bg); color: var(--amber-ink); }
.tone-poor { background: var(--red-bg); color: var(--red); }
.tone-none { background: var(--tint); color: var(--muted); }
.scale-bar.muted { opacity: 0.35; }
.score-note { margin: 0; font-size: 13px; color: var(--muted); }

/* 04b Confirm it's you */
.options { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.options legend { padding: 0; margin-bottom: 12px; font-size: 17px; font-weight: 600; color: var(--ink); line-height: 1.4; }
.option {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 18px; cursor: pointer;
  background: var(--surface); border: 1.5px solid transparent; box-shadow: var(--shadow); font-size: 15px; font-weight: 500; color: var(--ink);
}
.option input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.option .dot { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--chevron); }
.option.on { border-color: var(--teal); }
.option.on .dot { border-color: var(--teal); background: var(--teal); box-shadow: inset 0 0 0 3px #fff; }
.option:has(input:focus-visible) { outline: 2px solid var(--teal); outline-offset: 2px; }
.title:focus { outline: none; }
.scale { display: flex; flex-direction: column; gap: 6px; }
.scale-bar { position: relative; height: 8px; border-radius: 999px; background: linear-gradient(90deg, #ba1a1a 0%, #e8a33d 45%, #00897b 100%); }
.scale-marker {
  position: absolute; top: -4px; left: var(--pos, 0%); width: 16px; height: 16px; margin-left: -8px;
  border-radius: 50%; background: #fff; border: 3px solid var(--ink);
}
.scale-ends { display: flex; justify-content: space-between; font-size: 11px; color: var(--subtle); font-variant-numeric: tabular-nums; }
.factors { display: flex; flex-direction: column; border-top: 1px solid var(--rule); margin: 0; padding: 0; list-style: none; }
.factors li { display: flex; align-items: center; gap: 10px; padding: 10px 0 0; font-size: 13px; color: var(--ink); }
.factors .icon { font-size: 18px; color: var(--teal); }

.row-link {
  width: 100%; text-align: left; background: var(--surface); border: 0; border-radius: 20px; padding: 14px 16px;
  display: flex; align-items: center; gap: 12px; box-shadow: 0 6px 24px rgba(10, 54, 74, 0.03);
}
.row-link.alert { background: #fff; border: 1.5px solid var(--red-line); box-shadow: none; }
.row-link .ico { width: 40px; height: 40px; border-radius: 14px; background: var(--tint); color: var(--ink); display: grid; place-items: center; flex: none; }
.row-link.alert .ico { background: var(--red-bg); color: var(--red); }
.row-link .ico .icon { font-size: 20px; }
.row-link .txt { flex: 1; min-width: 0; }
.row-link .t1 { display: block; font-size: 14px; font-weight: 600; color: var(--ink); }
.row-link .t2 { display: block; font-size: 12px; color: var(--muted); }
.row-link > .icon { font-size: 18px; color: var(--chevron); }
.shortcuts { display: flex; flex-direction: column; gap: 10px; }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stat { background: var(--surface); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.stat .v { font-family: var(--serif); font-size: 24px; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat .l { font-size: 11px; color: var(--muted); line-height: 1.3; }

.acct { background: #fff; border-radius: 16px; padding: 18px; box-shadow: 0 6px 22px rgba(8, 40, 56, 0.04); display: flex; flex-direction: column; gap: 14px; }
.acct-head { display: flex; align-items: flex-start; gap: 12px; }
.acct-head .ico { width: 40px; height: 40px; border-radius: 12px; background: var(--tint-2); color: var(--ink); display: grid; place-items: center; flex: none; }
.acct-head .ico .icon { font-size: 20px; }
.acct-head .txt { flex: 1; min-width: 0; }
.lender { margin: 0; font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.25; overflow-wrap: anywhere; }
.acct-type { font-size: 12px; color: var(--muted); }
.pills { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.pill { padding: 2px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.pill.on { background: var(--green-bg); color: var(--green-ink); }
.pill.off { background: #eef2f4; color: var(--muted); }
.pill.settled { background: var(--amber-bg); color: var(--amber-ink); border: 1px solid var(--amber-line); }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; background: var(--grid-bg); border: 1px solid var(--grid-line); border-radius: 12px; padding: 12px 14px; margin: 0; }
.kv dt { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--subtle); font-weight: 600; }
.kv dd { margin: 0; font-size: 14px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.empty { margin: 0; font-size: 14px; color: var(--muted); }

.usage { display: flex; flex-direction: column; gap: 8px; }
.usage-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); }
.used { font-size: 26px; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.usage-label { font-size: 12px; color: var(--muted); }
.meter { height: 6px; border-radius: 999px; background: var(--rule); overflow: hidden; }
.meter span { display: block; height: 100%; border-radius: 999px; background: var(--teal); width: var(--util, 0%); }
.overdue-box { background: var(--red-bg); border: 1px solid var(--red-line); border-radius: 12px; padding: 10px 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.overdue-box .lbl { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--red); font-weight: 600; }
.overdue-box .lbl .icon { font-size: 16px; }
.overdue-box .amt { font-size: 14px; font-weight: 700; color: var(--red); font-variant-numeric: tabular-nums; }
.history { display: flex; flex-direction: column; gap: 8px; }
.history-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.history-head .k { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--subtle); font-weight: 600; }
.history-head .latest { font-size: 12px; font-weight: 600; }
.latest.ontime { color: var(--green-ink); }
.latest.late { color: var(--red); }
.latest.none { color: var(--muted); }
.months { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; margin: 0; padding: 0; list-style: none; }
.months li { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 9px; color: var(--subtle); }
.months .bar { width: 100%; height: 18px; border-radius: 4px; }
.s-ontime { background-color: var(--green); }
.s-late { background-color: var(--red); }
.s-none { background-color: var(--none); }
.legend { display: flex; gap: 14px; font-size: 11px; color: var(--muted); flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }

.tabbar {
  position: sticky; bottom: 0; z-index: 5; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; height: 64px;
  background: rgba(255, 255, 255, 0.88); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 -4px 24px rgba(10, 54, 74, 0.05); padding-bottom: env(safe-area-inset-bottom);
}
.tabbar button {
  border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--subtle); font-weight: 500; -webkit-tap-highlight-color: transparent;
}
.tabbar button[aria-current='page'] { color: var(--ink); font-weight: 700; }
.tabbar .icon { font-size: 22px; }
.tabbar .lbl { font-size: 11px; margin-top: 2px; }

/* Demo account pill (store review) */
.demo-pill {
  align-self: flex-start; padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: var(--amber-bg); color: var(--amber-ink); border: 1px solid var(--amber-line);
}

/* Profile */
.back { width: 40px; height: 40px; margin-left: -8px; border: 0; background: transparent; border-radius: 12px; display: grid; place-items: center; color: var(--ink); }
.back .icon { font-size: 24px; }
.head-spacer { width: 32px; }
.avatar.lg { width: 72px; height: 72px; font-size: 24px; border-width: 3px; box-shadow: var(--shadow); }
.profile-hero { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 8px 0 4px; }
.profile-hero .verified-pill { align-self: center; }
.section-title { margin: 0; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal); font-weight: 700; }
.details-list { margin: 0; display: flex; flex-direction: column; }
.details-list div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.details-list div:last-child { border-bottom: 0; }
.details-list dt { font-size: 13px; color: var(--muted); }
.details-list dd { margin: 0; font-size: 14px; font-weight: 600; color: var(--ink); text-align: right; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.footnote { margin: 0; font-size: 12px; color: var(--muted); }
.menu-card { background: #fff; border-radius: 16px; box-shadow: 0 6px 22px rgba(8, 40, 56, 0.04); padding: 4px 0; display: flex; flex-direction: column; }
.menu-row {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px; border: 0; background: transparent; width: 100%;
  text-align: left; font-size: 15px; font-weight: 600; color: var(--ink); text-decoration: none;
}
.menu-row + .menu-row { border-top: 1px solid var(--rule); }
.menu-row:hover { background: var(--tint-2); color: var(--ink); }
.menu-row span { flex: 1; }
.menu-row .icon { font-size: 22px; color: var(--teal); }
.menu-row .chev { font-size: 18px; color: var(--chevron); }
.menu-row.danger, .menu-row.danger .icon { color: var(--red); }

/* Confirm dialog */
.confirm {
  width: min(400px, calc(100vw - 32px)); border: 0; border-radius: 24px; padding: 24px; color: var(--ink);
  box-shadow: 0 24px 60px rgba(10, 38, 54, 0.25);
}
.confirm::backdrop { background: rgba(10, 38, 54, 0.45); }
.confirm h2 { margin: 0 0 8px; font-family: var(--serif); font-weight: 400; font-size: 24px; }
.confirm p { margin: 0 0 16px; font-size: 14px; color: var(--muted); }
.confirm-actions { display: flex; gap: 10px; }
.btn.ghost { background: var(--tint); color: var(--ink); box-shadow: none; }
.btn.danger { background: var(--red); box-shadow: 0 8px 20px rgba(186, 26, 26, 0.25); }

/* Legal pages */
.legal { max-width: 720px; margin: 0 auto; padding: 32px 20px 48px; background: #fff; min-height: 100vh; }
.legal h1 { font-family: var(--serif); font-weight: 400; color: var(--ink); }
.legal h2 { font-size: 16px; color: var(--ink); margin-top: 28px; }
.legal dl { margin: 0; }
.legal dt { font-weight: 600; margin-top: 12px; color: var(--ink); }
.legal dd { margin: 2px 0 0; }
.legal .draft { background: var(--amber-bg); color: var(--amber-ink); border: 1px solid var(--amber-line); border-radius: 12px; padding: 10px 14px; font-size: 13px; }

/* Profile and Contact (pushed screens, same layout as the mobile app) */
.sub-head { padding: 8px 8px 0; }
.sub-head .back { width: 48px; height: 48px; margin-left: 0; }
.sub-page { padding: 0 20px 32px; display: flex; flex-direction: column; gap: 14px; }
.pf-card { background: #fff; border-radius: 16px; box-shadow: 0 6px 22px rgba(8, 40, 56, 0.04); }
.pf-hero { padding: 24px 18px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.pf-hero .verified-pill { align-self: center; margin-top: -4px; }
.avatar.xl { width: 72px; height: 72px; font-family: var(--serif); font-size: 27px; font-weight: 500; border-width: 3px; }
.pf-name { font-size: 18px; font-weight: 600; color: var(--ink); }
.pf-details { padding: 16px 18px 4px; }
.pf-card-title { margin: 0 0 4px; font-size: 15px; font-weight: 600; color: var(--ink); }
.lv-list { margin: 0; }
.lv-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--rule); }
.lv-row dt, .lv-label { display: block; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--subtle); font-weight: 600; margin-bottom: 2px; }
.lv-row dd { margin: 0; }
.lv-row:not(.lv-link) { flex-direction: column; align-items: flex-start; gap: 0; }
.lv-row dd, .lv-value { display: block; font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.4; }
.lv-link { text-decoration: none; }
.lv-link .lv-value { color: var(--teal); }
.lv-link .icon { font-size: 18px; color: var(--teal); flex: none; }
.lv-text { flex: 1; min-width: 0; }
.pf-note { margin: -4px 4px 0; }
.pf-menu { padding: 0; overflow: hidden; }
.pf-menu-row {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 18px; border: 0; border-top: 1px solid var(--rule);
  background: transparent; text-align: left; font: inherit; color: var(--ink); text-decoration: none; cursor: pointer;
}
.pf-menu-row:first-child { border-top: 0; }
.pf-tile { width: 40px; height: 40px; border-radius: 12px; background: var(--tint-2); display: grid; place-items: center; flex: none; }
.pf-tile .icon { font-size: 20px; }
.pf-menu-label { flex: 1; font-size: 15px; font-weight: 600; }
.pf-menu-row .chev { font-size: 18px; color: var(--chevron); }
.pf-menu-row.danger { color: var(--red); }

/* Credit Score Terms of Use (CRIF long consent) */
.terms .page-title { font-size: 26px; }
.terms-body { padding: 16px 18px; font-size: 13px; line-height: 1.6; color: var(--ink); }
.terms-body p { margin: 0 0 10px; }
.terms-body ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.pf-menu-row.danger .pf-tile { background: var(--red-bg); }
.company-foot { margin: 6px 8px 0; font-size: 11px; line-height: 1.5; color: var(--subtle); text-align: center; }

/* Details form: address card title and date field shown like the app */
.fields-title { margin: 0; padding-top: 16px; font-size: 15px; font-weight: 600; color: var(--ink); }
.date-wrap { position: relative; min-height: 26px; }
.date-wrap input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.date-display { display: block; font-size: 17px; font-weight: 600; color: var(--ink); line-height: 26px; pointer-events: none; }
.date-display.empty { color: #a3b1b9; font-weight: 500; }

.apply-foot { margin: -2px 0 0; font-size: 12px; color: var(--muted); text-align: center; }
