:root {
  color-scheme: light;
  --green: #0b4f46;
  --green-dark: #073c36;
  --green-deep: #06352f;
  --green-soft: #e8f0e9;
  --cream: #f7f6f0;
  --cream-dark: #eeece3;
  --white: #fff;
  --ink: #1b302c;
  --muted: #72827b;
  --line: #e5e9e2;
  --gold: #c9ad73;
  --gold-soft: #f8f1df;
  --amber: #aa7d34;
  --red: #a63737;
  --shadow: 0 22px 55px rgba(12, 49, 42, .07);
  --radius: 18px;
  font-family: 'Avenir Next', Avenir, 'Segoe UI', Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

*, *::before, *::after { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); }
[hidden] { display: none !important; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
button:focus-visible, input:focus-visible, label:focus-within:has(input[type='file']):focus-visible { outline: 3px solid #d1aa57; outline-offset: 3px; }
input:focus-visible { outline-offset: 1px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { letter-spacing: -.045em; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 19px; height: 19px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.coin-mark { display: inline-block; flex: none; width: 18px; height: 18px; border-radius: 50%; background: #f1c75d url('assets/gribon-coin.png') center / 132% 132% no-repeat; vertical-align: -3px; }
.stat-value .coin-mark { width: .68em; height: .68em; margin-right: .14em; vertical-align: -.06em; }
.heading-total .coin-mark { width: 19px; height: 19px; margin-right: 5px; vertical-align: -2px; }
.conversion-card__balance .coin-mark { width: 22px; height: 22px; margin-right: 6px; vertical-align: -3px; }
.amount-field .coin-unit { display: inline-flex; align-items: center; gap: 5px; }
.coin-unit .coin-mark { width: 16px; height: 16px; }
.coin-inline { display: inline-flex; align-items: center; gap: 4px; }
.coin-inline .coin-mark { width: 15px; height: 15px; }
.coin-inline > span:last-child { color: inherit; }
.order-row .order-row__coins strong { display: inline-flex; align-items: center; justify-content: flex-end; gap: 4px; color: var(--green); }
.order-row__coins .coin-mark { width: 15px; height: 15px; }
.eyebrow, .card-overline { display: inline-block; color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: .16em; line-height: 1.4; }
.card-overline { color: #779088; font-size: 10px; }
.eyebrow--light { color: #dcc996; }

.brand-lockup, .sidebar__brand { display: inline-flex; align-items: center; gap: 14px; white-space: nowrap; }
.brand-lockup img, .sidebar__brand img { display: block; width: 126px; max-height: 52px; object-fit: contain; object-position: left center; }
.brand-lockup > span, .sidebar__brand > span { padding-left: 14px; border-left: 1px solid #cedbd0; font-size: 9px; font-weight: 800; letter-spacing: .19em; color: var(--green); }
.brand-lockup--light img { filter: brightness(0) invert(1); }
.brand-lockup--light > span { color: #e9e7d8; border-color: rgba(255,255,255,.32); }

.button { appearance: none; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; border: 1px solid transparent; border-radius: 10px; padding: 12px 20px; font-weight: 750; font-size: 13px; letter-spacing: .005em; text-decoration: none; transition: background .18s, transform .18s, box-shadow .18s, border-color .18s; white-space: nowrap; }
.button:hover:not(:disabled) { transform: translateY(-2px); }
.button .icon { width: 17px; height: 17px; }
.button--primary { background: var(--green); color: white; box-shadow: 0 9px 18px rgba(11,79,70,.13); }
.button--primary:hover:not(:disabled) { background: var(--green-dark); box-shadow: 0 14px 25px rgba(11,79,70,.2); }
.button--primary:disabled { background: #a9b8ae; color: #eef2ec; box-shadow: none; }
.button--secondary { border-color: var(--line); background: white; color: var(--ink); }
.button--secondary:hover { background: var(--cream); border-color: #c9d3c9; }
.button--cream { color: var(--green-dark); background: #f6f0df; }
.button--cream:hover { background: white; }
.button--wide { width: 100%; justify-content: space-between; padding-left: 22px; padding-right: 19px; }
.field-label { display: block; margin-bottom: 10px; font-size: 12px; font-weight: 800; color: #354b44; }
.field-help { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.form-error { margin: 11px 0 0; border-radius: 8px; padding: 10px 12px; background: #fff0ed; color: var(--red); font-size: 12px; font-weight: 650; line-height: 1.5; }
.phone-field { display: flex; align-items: center; min-height: 52px; overflow: hidden; border: 1px solid #d8e0d9; border-radius: 10px; background: white; transition: border-color .16s, box-shadow .16s; }
.phone-field:focus-within, .amount-field:focus-within { border-color: var(--green); box-shadow: 0 0 0 4px rgba(11,79,70,.08); }
.phone-field__prefix { flex: none; padding: 0 15px; border-right: 1px solid var(--line); color: var(--green); font-size: 13px; font-weight: 800; }
.phone-field input { width: 100%; min-width: 0; height: 50px; border: 0; outline: 0; padding: 0 16px; background: transparent; color: var(--ink); font-size: 14px; }
input::placeholder { color: #9ca9a0; }

/* Opening and login */
.opening-layout { min-height: 100dvh; display: grid; place-items: center; padding: 24px; background: #f9faf7; }
.opening-card { display: grid; width: min(420px, 100%); justify-items: center; gap: 15px; padding: 18px; text-align: center; }
.opening-mark { position: relative; display: grid; place-items: center; width: 170px; height: 170px; }
.opening-mark img { position: relative; z-index: 1; display: block; width: 132px; height: auto; object-fit: contain; }
.opening-ring { position: absolute; inset: 7px; border: 3px solid rgba(19, 106, 87, .16); border-top-color: #c7482e; border-right-color: #176b58; border-radius: 50%; animation: opening-turn 900ms linear infinite; }
@keyframes opening-turn { to { transform: rotate(360deg); } }
.opening-card h1 { margin: 0; color: #102f2a; font-size: 1.16rem; font-weight: 700; line-height: 1.25; letter-spacing: normal; }
.opening-detail, .opening-error { margin: -11px 0 0; color: #65736f; font-size: .78rem; line-height: 1.45; }
.opening-error { margin-top: 0; }
.opening-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 9px; }
.opening-actions .button, .opening-actions .text-action { min-height: 42px; border-radius: 6px; padding: 9px 15px; font-size: .8rem; font-weight: 800; }
.opening-actions .button { background: #176b58; box-shadow: none; }
.opening-actions .text-action { color: #176b58; }
.opening-layout.is-error .opening-ring { animation: none; border-color: #c7482e; }
.opening-layout.is-error .opening-detail { display: none; }
@media (max-width: 420px) { .opening-layout { padding: 16px; } .opening-mark { width: 148px; height: 148px; } .opening-mark img { width: 114px; } }
.auth-layout { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(450px, .92fr); min-height: 100svh; }
.auth-story { position: relative; isolation: isolate; min-height: 650px; overflow: hidden; background: radial-gradient(circle at 80% 15%, #14695b 0, transparent 35%), linear-gradient(145deg, #0c5348 0%, #073e37 65%, #052e2b 100%); color: #fff; }
.auth-story::after { content: ''; position: absolute; inset: auto -10% -36% 26%; height: 70%; border-radius: 50%; background: radial-gradient(circle, rgba(193,166,100,.11), transparent 69%); pointer-events: none; }
.auth-story__inner { position: relative; z-index: 2; min-height: 100%; display: flex; flex-direction: column; align-items: flex-start; padding: clamp(36px, 5.5vw, 84px) clamp(36px, 6vw, 96px) 36px; }
.story-copy { margin-top: auto; max-width: 680px; }
.story-copy h1 { margin: 19px 0 18px; color: #f7f7ec; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(46px, 5.5vw, 78px); font-weight: 500; line-height: 1.05; letter-spacing: -.065em; }
.story-copy p { max-width: 485px; margin-bottom: 0; color: #d2e3d8; font-size: clamp(14px, 1.2vw, 17px); line-height: 1.7; }
.story-preview { width: min(355px, 82%); margin: 45px 0 45px 15%; padding: 19px 22px 20px; border: 1px solid rgba(255,255,255,.32); border-radius: 16px; background: rgba(247,248,232,.12); box-shadow: 0 20px 55px rgba(0,25,19,.18); backdrop-filter: blur(8px); transform: rotate(-3deg); }
.story-preview__top, .story-preview__bottom { display: flex; align-items: center; gap: 8px; color: #e3eee2; font-size: 10px; font-weight: 800; letter-spacing: .13em; }
.mini-orb { width: 18px; height: 18px; border: 1px solid rgba(255,255,255,.65); border-radius: 6px; background: #b6a66e; }
.story-preview__menu { margin-left: auto; font-size: 15px; line-height: 1; letter-spacing: .1em; }
.story-preview__metric { margin: 18px 0 23px; color: #fff; font-size: 38px; font-weight: 750; letter-spacing: -.06em; }
.story-preview__metric small { display: block; margin-top: 1px; color: #d4e3d5; font-size: 11px; font-weight: 600; letter-spacing: 0; }
.story-preview__bottom { display: grid; grid-template-columns: 1fr auto; gap: 11px; font-size: 8px; letter-spacing: .03em; }
.story-preview__bottom .icon { width: 11px; height: 11px; vertical-align: middle; }
.preview-progress { height: 5px; border-radius: 10px; background: rgba(255,255,255,.19); }
.preview-progress i { display: block; width: 74%; height: 100%; border-radius: inherit; background: #dbc688; }
.story-foot { margin-top: auto; color: rgba(234,241,228,.5); font-size: 9px; font-weight: 800; letter-spacing: .2em; }
.story-foot span { margin: 0 8px; color: #bdac76; }
.story-ring { position: absolute; z-index: 0; width: 550px; height: 550px; border: 1px solid rgba(244,240,221,.1); border-radius: 50%; pointer-events: none; }
.story-ring--one { top: -270px; right: -250px; }
.story-ring--two { top: -175px; right: -335px; width: 720px; height: 720px; }
.auth-panel { display: flex; flex-direction: column; justify-content: space-between; padding: clamp(34px, 4.6vw, 72px) clamp(32px, 6vw, 96px) 30px; background: #fdfdf9; }
.auth-panel__top { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.auth-panel__edition { color: #8ba095; font-size: 10px; font-weight: 800; letter-spacing: .18em; }
.secure-pill { display: inline-flex; align-items: center; gap: 7px; border: 1px solid #d6e7dc; border-radius: 99px; padding: 7px 10px; color: var(--green); background: #edf5ed; font-size: 11px; font-weight: 750; white-space: nowrap; }
.secure-pill .icon { width: 14px; height: 14px; }
.auth-form-wrap { width: min(100%, 450px); margin: 65px auto; }
.auth-kicker { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; color: var(--green); font-size: 10px; font-weight: 800; letter-spacing: .17em; }
.auth-kicker > span:first-child { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid #d7e3d7; border-radius: 50%; letter-spacing: 0; }
.auth-kicker__line { width: 28px; height: 1px; background: #cadbd0; }
.auth-form-wrap h1, .auth-form-wrap h2 { margin-bottom: 14px; color: #17362f; font-size: clamp(36px, 3.6vw, 53px); line-height: 1.11; font-weight: 750; }
.auth-form-wrap h1 { margin-bottom: 14px; color: #17362f; font-size: clamp(36px, 3.6vw, 53px); line-height: 1.11; font-weight: 750; }
.auth-subtitle { margin-bottom: 36px; color: #708179; font-size: 14px; line-height: 1.65; }
#login-form .button { margin-top: 28px; }
.auth-panel__footer { margin: 0; color: #93a198; font-size: 11px; text-align: center; line-height: 1.5; }

/* Verification and waiting state */
.verification-layout, .pending-layout { min-height: 100svh; background: radial-gradient(circle at 10% 2%, #edf4e9, transparent 30%), var(--cream); }
.simple-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 86px; border-bottom: 1px solid #e7e9df; padding: 17px clamp(24px, 5vw, 74px); background: rgba(255,255,255,.74); }
.simple-header .brand-lockup img { width: 112px; }
.text-action { appearance: none; border: 0; padding: 9px 2px; background: transparent; color: var(--green); font-size: 12px; font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }
.text-action:hover { color: var(--green-deep); }
.verification-content { width: min(1100px, calc(100% - 48px)); display: grid; grid-template-columns: minmax(0, .84fr) minmax(390px, 1fr); gap: clamp(35px, 6vw, 100px); align-items: center; margin: 0 auto; padding: clamp(50px, 7vw, 95px) 0; }
.verification-intro h1 { max-width: 490px; margin: 16px 0 18px; color: #173d35; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(42px, 4vw, 65px); font-weight: 500; line-height: 1.1; }
.verification-intro > p { max-width: 440px; color: #718178; font-size: 15px; line-height: 1.75; }
.step-track { display: flex; align-items: flex-start; gap: 0; margin-top: 55px; color: #a2aea5; font-size: 11px; font-weight: 800; }
.step-track > span:not(.step-track__line) { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.step-track b { font-weight: 700; }
.step-track__done, .step-track__active { color: var(--green); }
.step-track__line { flex: 1; min-width: 12px; height: 1px; margin: 8px 8px 0; background: #cbd7c9; }
.verification-card, .pending-card { border: 1px solid #e3e9df; border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.verification-card { padding: clamp(24px, 3vw, 38px); }
.verification-card__head { display: flex; justify-content: space-between; align-items: start; gap: 20px; margin-bottom: 27px; }
.verification-card__head h2 { margin: 5px 0 0; font-size: 24px; }
.step-badge { border-radius: 99px; padding: 8px 10px; background: #ecf4ea; color: var(--green); font-size: 9px; font-weight: 800; letter-spacing: .09em; white-space: nowrap; }
.document-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.document-option { position: relative; display: flex; align-items: center; gap: 10px; min-height: 82px; border: 1px solid #e2e8df; border-radius: 11px; padding: 12px; background: #fcfdfb; cursor: pointer; transition: border-color .18s, background .18s, box-shadow .18s; }
.document-option:hover { border-color: #a9c1ac; }
.document-option:has(input:checked) { border-color: var(--green); background: #eff6f0; box-shadow: 0 0 0 2px rgba(11,79,70,.07); }
.document-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.document-option:has(input:focus-visible) { outline: 3px solid #d1aa57; outline-offset: 3px; }
.document-option__mark { display: grid; flex: none; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: #e9eee7; color: var(--green); font-family: Georgia, serif; font-size: 19px; font-weight: 700; }
.document-option strong, .document-option small { display: block; }
.document-option strong { font-size: 12px; }
.document-option small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.document-option__check { width: 14px; height: 14px; margin-left: auto; opacity: 0; color: var(--green); }
.document-option:has(input:checked) .document-option__check { opacity: 1; }
.upload-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.upload-box { position: relative; display: flex; min-height: 147px; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border: 1px dashed #aec7b5; border-radius: 11px; padding: 17px 9px; background: #f9fbf8; text-align: center; cursor: pointer; transition: background .18s, border-color .18s; }
.upload-box input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-box:hover { border-color: var(--green); background: #f0f6ef; }
.upload-box.has-file { border-style: solid; border-color: #6ba582; background: #eff7ef; }
.upload-box:has(input:focus-visible) { outline: 3px solid #d1aa57; outline-offset: 3px; }
.upload-box__icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: #e6efe7; color: var(--green); }
.upload-box__icon .icon { width: 17px; height: 17px; }
.upload-box strong { color: var(--green-dark); font-size: 12px; }
.upload-box small { color: var(--muted); font-size: 10px; line-height: 1.35; overflow-wrap: anywhere; }
.privacy-note { display: flex; gap: 9px; margin: 20px 0; border-radius: 9px; padding: 11px 12px; background: #f3f5ef; color: #698076; font-size: 11px; line-height: 1.45; }
.privacy-note .icon { width: 16px; height: 16px; color: var(--green); }
.pending-layout { display: grid; place-items: center; padding: 36px 20px; }
.pending-card { width: min(100%, 520px); padding: clamp(28px, 5vw, 45px); text-align: center; }
.pending-emblem { display: grid; place-items: center; width: 66px; height: 66px; margin: 0 auto 22px; border-radius: 20px; background: var(--green-soft); color: var(--green); }
.pending-emblem .icon { width: 29px; height: 29px; }
.pending-card h1 { margin: 10px 0 12px; font-family: Georgia, serif; color: var(--green-dark); font-size: clamp(32px, 4vw, 43px); font-weight: 500; }
.pending-card > p { color: var(--muted); font-size: 13px; line-height: 1.7; }
.pending-steps { margin: 28px 0 30px; border: 1px solid var(--line); border-radius: 11px; padding: 8px 18px; text-align: left; }
.pending-steps > div { display: flex; align-items: center; gap: 13px; padding: 11px 0; }
.pending-steps > div + div { border-top: 1px solid var(--line); }
.pending-steps strong, .pending-steps small { display: block; }
.pending-steps strong { font-size: 12px; }
.pending-steps small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.step-circle { display: grid; flex: none; place-items: center; width: 27px; height: 27px; border: 1px solid #d8dfd7; border-radius: 50%; color: #9bad9e; font-size: 11px; font-weight: 800; }
.step-circle--done { border-color: var(--green); background: var(--green); color: white; }
.step-circle--current { border-color: #dbc995; background: #f6eed8; color: var(--amber); }
.step-circle .icon { width: 14px; height: 14px; }
.pending-card > .text-action { margin-top: 14px; }

/* Dashboard shell */
.portal-shell { display: grid; grid-template-columns: 254px minmax(0, 1fr); min-height: 100svh; }
.sidebar { position: sticky; top: 0; display: flex; flex-direction: column; height: calc(100svh - 34px); min-height: 610px; border-right: 1px solid #dfe7dd; padding: 27px 15px 19px; background: #fdfef9; }
.sidebar__brand { padding: 3px 15px 29px; }
.sidebar__brand img { width: 110px; }
.sidebar__brand span { padding-left: 10px; font-size: 8px; }
.sidebar__profile { display: flex; align-items: center; gap: 10px; margin-bottom: 32px; border: 1px solid #e6ebe2; border-radius: 12px; padding: 10px; background: #f7f9f4; }
.avatar, .topbar__avatar { display: grid; flex: none; place-items: center; width: 35px; height: 35px; border-radius: 10px; background: #dbeadf; color: var(--green); font-size: 11px; font-weight: 850; }
.sidebar__profile strong, .sidebar__profile small { display: block; }
.sidebar__profile strong { font-size: 11px; white-space: nowrap; }
.sidebar__profile small { margin-top: 3px; color: #94a49a; font-size: 9px; white-space: nowrap; }
.profile-status { margin-left: auto; color: #4d9e6d; font-size: 10px; }
.nav-label { margin: 0 14px 12px; color: #9aa9a0; font-size: 9px; font-weight: 850; letter-spacing: .17em; }
.nav-label--account { margin-top: 26px; }
.side-nav { display: flex; flex-direction: column; gap: 3px; }
.nav-item { appearance: none; width: 100%; display: flex; align-items: center; gap: 12px; min-height: 43px; border: 0; border-radius: 9px; padding: 10px 12px; background: transparent; color: #6f8278; font-size: 12px; font-weight: 650; text-align: left; transition: background .16s, color .16s; }
.nav-item:hover { background: #f1f6ef; color: var(--green); }
.nav-item.is-active { background: var(--green); color: white; box-shadow: 0 7px 15px rgba(11,79,70,.12); }
.nav-item .icon { width: 17px; height: 17px; stroke-width: 1.8; }
.nav-count { display: grid; place-items: center; min-width: 20px; height: 19px; margin-left: auto; border-radius: 6px; background: #e9eee5; color: var(--green); font-size: 10px; font-weight: 850; }
.nav-item.is-active .nav-count { background: rgba(255,255,255,.22); color: white; }
.sidebar__bottom { margin-top: auto; }
.sidebar-support { position: relative; overflow: hidden; margin: 0 2px 15px; border-radius: 11px; padding: 17px; background: #ecf1e6; }
.sidebar-support::after { content: ''; position: absolute; width: 100px; height: 100px; right: -35px; bottom: -50px; border: 1px solid #d5ddc9; border-radius: 50%; }
.sidebar-support__spark { display: block; color: var(--gold); font-size: 21px; line-height: 1; }
.sidebar-support strong { display: block; margin-top: 13px; font-size: 11px; }
.sidebar-support p { max-width: 160px; margin: 4px 0 0; color: #78907e; font-size: 10px; line-height: 1.5; }
.signout-button { appearance: none; width: 100%; display: flex; align-items: center; gap: 11px; border: 0; border-radius: 9px; padding: 12px 14px; background: transparent; color: #74877d; font-size: 12px; font-weight: 650; text-align: left; }
.signout-button:hover { background: #f3f5ef; color: var(--green); }
.signout-button .icon { width: 17px; height: 17px; }
.portal-main { min-width: 0; }
.topbar { position: relative; z-index: 4; height: 74px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e6eae2; padding: 0 clamp(24px, 3.6vw, 55px); background: #fdfefb; }
.topbar__crumb { display: flex; align-items: center; gap: 14px; color: #93a59a; font-size: 10px; font-weight: 850; letter-spacing: .14em; }
.topbar__crumb strong { color: var(--ink); font-size: 12px; letter-spacing: 0; }
.topbar__slash { color: #cbd4cb; font-size: 16px; font-weight: 400; }
.topbar__right { display: flex; align-items: center; gap: 19px; }
.topbar__date { color: #7b8a81; font-size: 11px; font-weight: 650; }
.topbar__avatar { width: 34px; height: 34px; }
.topbar__menu { display: none !important; }
.portal-content { width: min(1310px, 100%); margin: 0 auto; padding: 30px clamp(24px, 3.6vw, 55px) 70px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-bottom: 29px; }
.hello-row { flex-direction: row; align-items: center; gap: 12px; }
.page-heading.hello-row h1 { margin: 0; }
.verify-account-cta { appearance: none; display: inline-flex; flex: none; align-items: center; justify-content: center; gap: 7px; min-height: 44px; margin-left: auto; border: 1px solid #dcb96b; border-radius: 12px; padding: 9px 14px; background: #fff4d7; color: #72510c; box-shadow: 0 4px 12px rgba(135, 91, 16, .12); font-size: 12px; font-weight: 800; line-height: 1; white-space: nowrap; transition: background .18s, box-shadow .18s, transform .18s; }
.verify-account-cta:hover { background: #ffeab6; box-shadow: 0 7px 17px rgba(135, 91, 16, .18); transform: translateY(-1px); }
.verify-account-cta .icon { width: 15px; height: 15px; }
.page-heading h1 { margin: 8px 0 7px; color: #183c35; font-size: clamp(30px, 3vw, 43px); line-height: 1.14; font-weight: 760; }
.page-heading p { margin: 0; color: #7c8b80; font-size: 13px; line-height: 1.5; }
.heading-wave { display: inline-block; margin-left: 4px; color: var(--gold); font-size: .7em; vertical-align: middle; }
.stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; margin-bottom: 22px; }
.stat-card { min-height: 203px; display: flex; flex-direction: column; border: 1px solid #e2e9df; border-radius: var(--radius); padding: 23px 25px 18px; background: white; box-shadow: 0 8px 25px rgba(20,45,31,.025); }
.stat-card--available { border-color: transparent; background: linear-gradient(125deg, #0b5348 0%, #0a443d 100%); color: #fff; }
.stat-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; color: #70847a; font-size: 12px; font-weight: 750; }
.stat-card--available .stat-card__top { color: #d7e9dc; }
.stat-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #e7f1e9; color: var(--green); }
.stat-card--available .stat-icon { background: rgba(255,255,255,.14); color: #fff; }
.stat-icon--amber { background: #fbf2de; color: var(--amber); }
.stat-icon .icon { width: 18px; height: 18px; }
.stat-value { display: block; margin: 3px 0 1px; color: #183a33; font-size: clamp(31px, 3.3vw, 45px); line-height: 1.1; letter-spacing: -.06em; }
.stat-value small { color: #8b9a91; font-size: 14px; font-weight: 700; letter-spacing: 0; }
.stat-card--available .stat-value, .stat-card--available .stat-value small { color: white; }
.stat-card > p { margin: 0 0 17px; color: #99a69e; font-size: 11px; }
.stat-card--available > p { color: #bed8c9; }
.stat-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; border-top: 1px solid #eef1eb; padding-top: 14px; }
.stat-card--available .stat-card__footer { border-color: rgba(255,255,255,.18); }
.status-chip { display: inline-flex; align-items: center; gap: 7px; border-radius: 99px; padding: 6px 9px; background: #eef3ec; color: #607a68; font-size: 10px; font-weight: 750; white-space: nowrap; }
.status-chip--light { background: rgba(255,255,255,.12); color: #e4f1e7; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #4faf71; }
.status-dot--amber { background: #c79544; }
.card-link, .subtle-link { appearance: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; border: 0; padding: 6px 0; background: transparent; color: var(--green); font-size: 14px; font-weight: 850; line-height: 1.2; text-align: left; }
.card-link:hover, .subtle-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.card-link .icon, .subtle-link .icon { width: 17px; height: 17px; }
.stat-card--available .card-link { color: #f3efd9; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.36fr) minmax(285px, .8fr); gap: 18px; margin-bottom: 22px; }
.surface-card { min-width: 0; border: 1px solid #e4e9e1; border-radius: var(--radius); padding: 23px 25px; background: white; box-shadow: 0 8px 25px rgba(20,45,31,.025); }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.section-head h2 { margin: 5px 0 0; color: #213d34; font-size: 19px; letter-spacing: -.035em; }
.next-step-card { position: relative; isolation: isolate; min-height: 273px; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; border-radius: var(--radius); padding: 27px; background: #e9eee2; }
.next-step-card__sun { color: #b7a36f; font-size: 30px; line-height: 1; }
.next-step-card .card-overline { margin-top: 17px; color: #779279; }
.next-step-card h2 { max-width: 255px; margin: 7px 0 9px; color: #224a3f; font-family: Georgia, serif; font-size: 23px; line-height: 1.2; font-weight: 500; }
.next-step-card p { max-width: 270px; margin-bottom: 18px; color: #698275; font-size: 11px; line-height: 1.6; }
.next-step-card .button { min-height: 38px; margin-top: auto; padding: 9px 12px; font-size: 11px; }
.next-step-card__pattern { position: absolute; z-index: -1; width: 190px; height: 190px; right: -72px; top: -36px; border: 1px solid rgba(36,89,66,.12); border-radius: 50%; box-shadow: 0 0 0 30px rgba(255,255,255,.08), 0 0 0 60px rgba(255,255,255,.055); }
.recent-orders { margin-top: 0; }
.customer-list, .orders-list { display: flex; flex-direction: column; }
.customer-list > :not(:last-child), .orders-list > :not(:last-child) { border-bottom: 1px solid #edf0e9; }
.customer-row, .customer-item, .order-row, .order-item { display: flex; align-items: center; gap: 13px; min-height: 72px; padding: 12px 0; }
.customer-avatar, .customer-initial, .order-icon { display: grid; flex: none; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #eaf2e9; color: var(--green); font-size: 11px; font-weight: 850; }
.customer-row__details, .customer-item__details, .order-row__details, .order-item__details { min-width: 0; flex: 1; }
.customer-row__detail, .order-row__detail { min-width: 0; flex: 1; }
.customer-row strong, .customer-item strong, .order-row strong, .order-item strong { display: block; overflow: hidden; color: #2c433b; font-size: 16px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.customer-row small, .customer-item small, .order-row small, .order-item small { display: block; overflow: hidden; margin-top: 5px; color: #697e71; font-size: 13px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.customer-row__status, .customer-status { margin-left: auto; color: #6e9b74; font-size: 12px; font-weight: 800; white-space: nowrap; }
.row-status { margin-left: auto; border-radius: 99px; padding: 5px 8px; background: #edf5eb; color: #4a8960; font-size: 12px; font-weight: 750; white-space: nowrap; }
.row-status--preview { background: #f9f1de; color: #a0773a; }
.customer-avatar--sage { background: #e4efe7; color: #47795e; }
.customer-avatar--peach { background: #f8ebe0; color: #aa7959; }
.customer-avatar--lavender { background: #eeeaf4; color: #7b6c9b; }
.customer-avatar--blue { background: #e6eff6; color: #4e7a99; }
.order-icon { background: #f4f0e4; color: #b58d49; }
.order-row__coins, .order-coins { margin-left: auto; color: var(--green); font-size: 16px; font-weight: 850; white-space: nowrap; }
.order-row__coins small, .order-coins small { color: #697e71; font-size: 12px; font-weight: 650; }
.list-card { padding-bottom: 10px; }
.customer-list--full > *, .orders-list--full > * { min-height: 72px; }
.heading-count { display: inline-grid; place-items: center; min-width: 24px; height: 24px; border-radius: 7px; background: #edf3ed; color: var(--green); font-size: 11px; vertical-align: middle; }
.page-insight { display: flex; align-items: center; gap: 14px; margin-bottom: 23px; border: 1px solid #dde8d9; border-radius: 12px; padding: 17px 19px; background: #eef5ec; }
.page-insight__icon { display: grid; flex: none; place-items: center; width: 37px; height: 37px; border-radius: 10px; background: #dcebdc; color: var(--green); }
.page-insight__icon--amber { background: #f6ead0; color: var(--amber); }
.page-insight__icon .icon { width: 17px; height: 17px; }
.page-insight strong { display: block; margin-bottom: 3px; color: #305045; font-size: 12px; }
.page-insight p { margin: 0; color: #718879; font-size: 11px; line-height: 1.5; }
.heading-total { display: flex; flex-direction: column; align-items: flex-end; border-left: 1px solid #dfe7dd; padding-left: 23px; white-space: nowrap; }
.heading-total small { color: #9aaa9c; font-size: 9px; font-weight: 800; letter-spacing: .15em; }
.heading-total strong { margin-top: 4px; color: var(--green); font-size: 27px; letter-spacing: -.05em; }
.heading-total strong span { font-size: 12px; letter-spacing: 0; }

/* Conversion and verification pages */
.convert-grid { display: flex; flex-direction: column; gap: 13px; width: min(100%, 680px); align-items: stretch; }
.conversion-card { overflow: hidden; border: 1px solid #e3e9df; border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
.conversion-card__balance { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 24px; background: linear-gradient(120deg, #0b5046, #0a4039); color: white; }
.conversion-card__balance > span { color: #c7e0cf; font-size: 10px; font-weight: 800; letter-spacing: .15em; }
.conversion-card__balance strong { font-size: 29px; letter-spacing: -.06em; white-space: nowrap; }
.conversion-card__balance small { color: #d1e3d7; font-size: 13px; font-weight: 600; letter-spacing: 0; }
.conversion-card form { padding: 20px 24px 23px; }
.amount-field { display: flex; align-items: center; min-height: 54px; border: 1px solid #d8e0d9; border-radius: 10px; transition: border-color .16s, box-shadow .16s; }
.amount-field input { width: 100%; min-width: 0; height: 52px; border: 0; outline: 0; padding: 0 17px; background: transparent; color: var(--ink); font-size: 16px; font-weight: 750; }
.amount-field > span { padding-right: 17px; color: #a1afa2; font-size: 11px; font-weight: 800; }
.amount-shortcuts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.amount-shortcuts button { border: 1px solid #e0e8df; border-radius: 7px; padding: 8px 10px; background: #f8faf6; color: var(--green); font-size: 10px; font-weight: 800; }
.amount-shortcuts button:hover { border-color: var(--green); background: #eaf2e9; }
.conversion-preview { margin: 15px 0; border: 1px solid #e5ebe2; border-radius: 11px; padding: 3px 15px; background: #f9fbf7; }
.conversion-preview > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 37px; font-size: 11px; }
.conversion-preview > div + div { border-top: 1px solid #e8eee6; }
.conversion-preview span { color: #819187; }
.conversion-preview strong { color: #284a3d; font-size: 12px; white-space: nowrap; }
.conversion-preview__payout { min-height: 47px !important; }
.conversion-preview__payout strong { color: var(--green); font-size: 20px; letter-spacing: -.04em; }
.conversion-aside { position: relative; overflow: hidden; order: -1; border: 1px solid #dfe8dc; border-radius: var(--radius); padding: 17px 21px 18px; background: #edf3e9; }
.conversion-aside::after { display: none; }
.conversion-aside__icon { display: none; }
.conversion-aside__icon .icon { width: 19px; height: 19px; }
.conversion-aside h2 { margin: 0 0 11px; color: #254b3e; font-size: 16px; font-weight: 800; line-height: 1.2; }
.conversion-aside > p { display: none; }
.tier-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 0; }
.tier-list > div { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 0; min-height: 59px; border: 1px solid #d8e5d8; border-radius: 10px; padding: 7px 5px; background: linear-gradient(180deg, #fff, #f8fbf7); text-align: center; box-shadow: 0 2px 6px rgba(16, 67, 45, .035); }
.tier-list > div.is-current { border-color: #d6ab4e; background: #fff5d9; box-shadow: 0 0 0 2px rgba(214,171,78,.15); }
.tier-list span { color: #5c7062; font-size: 10px; font-weight: 650; line-height: 1.2; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tier-list strong { color: var(--green); font-size: 16px; font-weight: 850; line-height: 1; white-space: nowrap; }
.tier-list > div.is-current strong { color: #8b650f; }
.verification-status { display: flex; align-items: flex-start; gap: 20px; padding: 29px; }
.verification-status__icon { display: grid; flex: none; place-items: center; width: 50px; height: 50px; border-radius: 13px; background: #f8efd9; color: #a27c37; }
.verification-status h2 { margin: 13px 0 7px; color: var(--green-dark); font-size: 21px; }
.verification-status p { max-width: 620px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.verification-status .button { margin-top: 19px; }
.verification-reminder { display: flex; align-items: center; gap: 15px; margin: -3px 0 22px; border: 1px solid #e4e3cb; border-radius: 13px; padding: 17px 19px; background: #fbf8e9; }
.verification-reminder__icon { display: grid; flex: none; place-items: center; width: 39px; height: 39px; border-radius: 10px; background: #f4eccc; color: #8f773d; }
.verification-reminder__icon .icon { width: 18px; height: 18px; }
.verification-reminder > div { min-width: 0; flex: 1; }
.verification-reminder strong { display: block; color: #4e533a; font-size: 12px; }
.verification-reminder p { margin: 3px 0 0; color: #85836b; font-size: 11px; line-height: 1.4; }
.verification-reminder .button { min-height: 38px; padding: 8px 12px; font-size: 11px; }
.verification-note { display: flex; align-items: flex-start; gap: 10px; margin-top: 19px; border: 1px solid #e5e7d7; border-radius: 10px; padding: 16px; background: #fbfaed; color: #7a8067; }
.verification-note .icon { width: 16px; height: 16px; color: var(--green); }
.verification-note p { margin: 0; font-size: 11px; line-height: 1.6; }

/* Customer dialog and feedback */
.modal-backdrop { position: fixed; z-index: 30; inset: 0; display: grid; place-items: center; overflow-y: auto; padding: 20px; background: rgba(4,34,29,.66); backdrop-filter: blur(5px); }
.modal-card { position: relative; width: min(100%, 475px); border-radius: 19px; padding: clamp(25px, 4vw, 36px); background: white; box-shadow: 0 27px 80px rgba(0,24,20,.25); }
.icon-button { appearance: none; display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 9px; background: transparent; color: #647970; }
.icon-button:hover { background: #ebf0e9; color: var(--green); }
.modal-close { position: absolute; right: 18px; top: 18px; }
.modal-icon { display: grid; place-items: center; width: 47px; height: 47px; margin-bottom: 18px; border-radius: 12px; background: #e8f1e8; color: var(--green); }
.modal-card h2 { margin: 7px 0 7px; color: #183b33; font-size: 30px; }
.modal-card > p { max-width: 350px; margin-bottom: 24px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 25px; }
.modal-footnote { margin: 22px 0 0 !important; border-top: 1px solid var(--line); padding-top: 14px; font-size: 10px !important; }
.toast { position: fixed; z-index: 40; right: 25px; bottom: 25px; max-width: min(390px, calc(100vw - 40px)); border: 1px solid #cae3d1; border-radius: 10px; padding: 14px 18px; background: #f2faf2; color: var(--green-dark); box-shadow: 0 14px 38px rgba(4,37,28,.14); font-size: 12px; font-weight: 700; line-height: 1.5; }

/* App navigation is shown on phones; desktop keeps the sidebar. */
.mobile-bottom-nav { display: none; }
.quick-add { min-width: 0; margin-bottom: 22px; }
.quick-add h2 { margin: 5px 0 6px; color: var(--green-dark); font-size: 19px; }
.quick-add p { margin: 0 0 16px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.quick-add form { display: block; }
.quick-add__row { display: flex; align-items: stretch; gap: 10px; }
.quick-add__row .phone-field { flex: 1; }
.quick-add__row .button { min-width: 94px; }
.quick-add .phone-field { min-width: 0; }
.quick-add .button { flex: none; }
#view-overview > .surface-card + .surface-card { margin-top: 22px; }
.mobile-signout { display: none; }

@media (max-width: 1180px) {
  .auth-layout { grid-template-columns: minmax(0, 1fr) minmax(420px, 1fr); }
  .auth-story__inner { padding-left: 48px; padding-right: 48px; }
  .auth-panel { padding-left: 48px; padding-right: 48px; }
  .portal-shell { grid-template-columns: 225px minmax(0,1fr); }
  .sidebar__brand img { width: 91px; }
  .sidebar__brand span { font-size: 7px; }
  .dashboard-grid { grid-template-columns: minmax(0,1.15fr) minmax(240px,.85fr); }
}

@media (max-width: 900px) {
  .auth-layout { grid-template-columns: 1fr; }
  .auth-story { min-height: 330px; }
  .auth-story__inner { min-height: 330px; padding: 29px 35px; }
  .story-copy { margin-top: auto; }
  .story-copy h1 { margin: 12px 0; font-size: clamp(36px, 6vw, 55px); }
  .story-copy p { max-width: 560px; font-size: 13px; }
  .story-preview, .story-foot { display: none; }
  .auth-panel { min-height: 600px; padding: 29px 35px 30px; }
  .auth-form-wrap { margin: 45px auto; }
  .verification-content { grid-template-columns: 1fr; gap: 30px; width: min(600px, calc(100% - 40px)); padding: 45px 0; }
  .verification-intro h1 { font-size: 47px; }
  .step-track { margin-top: 25px; }
  .portal-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 22; top: 0; bottom: 0; left: 0; width: 275px; height: 100svh; min-height: 0; transform: translateX(-105%); box-shadow: 15px 0 35px rgba(0,29,20,.08); transition: transform .22s ease; }
  .sidebar.is-open, .sidebar.open { transform: translateX(0); }
  .sidebar-scrim { position: fixed; z-index: 21; inset: 0; background: rgba(0,28,23,.42); }
  .topbar__menu { display: grid !important; margin-left: -7px; margin-right: 5px; }
  .topbar { justify-content: flex-start; }
  .topbar__right { margin-left: auto; }
  .dashboard-grid { grid-template-columns: minmax(0,1fr) minmax(240px,.75fr); }
}

@media (max-width: 650px) {
  :root { --radius: 16px; }
  html, body { width: 100%; max-width: 100%; overflow-x: hidden; }
  body { background: #f4f6f2; }
  .button { min-height: 48px; border-radius: 12px; padding: 10px 15px; font-size: 13px; }
  .button:hover:not(:disabled) { transform: none; }
  .field-label { margin-bottom: 7px; }
  .phone-field { min-height: 52px; border-radius: 12px; }
  .phone-field input { height: 52px; font-size: 16px; }
  .form-error { font-size: 12px; }

  /* A short brand header and a login sheet fit naturally on a phone. */
  .auth-layout { display: flex; flex-direction: column; min-height: 100svh; background: #fff; }
  .auth-story { flex: none; height: 215px; min-height: 0; }
  .auth-story__inner { height: 100%; min-height: 0; padding: max(25px, env(safe-area-inset-top)) 22px 36px; }
  .brand-lockup img { width: 106px; }
  .brand-lockup > span { padding-left: 10px; font-size: 8px; }
  .story-copy { margin-top: auto; }
  .story-copy .eyebrow, .story-copy p, .story-preview, .story-foot { display: none; }
  .story-copy h1 { max-width: 330px; margin: 0; font-family: inherit; font-size: 28px; font-weight: 700; line-height: 1.15; letter-spacing: -.045em; }
  .story-copy h1 br { display: none; }
  .auth-panel { position: relative; flex: 1; min-height: 0; margin-top: -22px; border-radius: 24px 24px 0 0; padding: 27px 22px max(24px, env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -12px 30px rgba(0, 30, 22, .08); }
  .auth-panel__top, .auth-kicker { display: none; }
  .auth-form-wrap { width: 100%; margin: 22px auto 28px; }
  .auth-form-wrap h1, .auth-form-wrap h2 { margin-bottom: 8px; font-size: 29px; line-height: 1.18; }
  .auth-form-wrap h2 br { display: none; }
  .auth-subtitle { margin-bottom: 26px; font-size: 13px; line-height: 1.45; }
  #login-form .button { margin-top: 23px; }
  .auth-panel__footer { margin-top: auto; font-size: 11px; }

  .simple-header { min-height: 62px; padding: 10px 18px; }
  .simple-header .brand-lockup img { width: 92px; }
  .simple-header .brand-lockup span { font-size: 7px; }
  .verification-content { display: block; width: min(100%, 480px); padding: 25px 16px 45px; }
  .verification-intro { margin-bottom: 19px; }
  .verification-intro h1 { margin: 8px 0 8px; font-family: inherit; font-size: 29px; font-weight: 750; }
  .verification-intro > p { margin-bottom: 0; font-size: 12px; line-height: 1.55; }
  .step-track { display: none; }
  .verification-card { padding: 18px; border-radius: 17px; }
  .verification-card__head { align-items: center; margin-bottom: 16px; }
  .verification-card__head h2 { font-size: 18px; }
  .step-badge { display: none; }
  .document-options, .upload-grid { gap: 9px; }
  .document-option { min-height: 68px; padding: 10px; }
  .document-option__mark { display: none; }
  .document-option strong { font-size: 12px; }
  .document-option small { font-size: 9px; }
  .document-option__check { display: block; }
  .upload-box { min-height: 122px; padding: 10px 6px; }
  .privacy-note { margin: 14px 0; }
  .pending-layout { padding: 18px; }
  .pending-card { padding: 25px 20px; }
  .pending-card h1 { font-family: inherit; font-size: 28px; font-weight: 750; }

  /* Dashboard uses a fixed five-action bar and compact content cards. */
  .portal-shell { display: block; min-height: 100svh; }
  .sidebar, .sidebar-scrim { display: none !important; }
  .topbar.mobile-topbar { position: sticky; top: 0; z-index: 15; height: 62px; display: flex; justify-content: space-between; padding: 0 16px; border-bottom-color: #e5ebe4; background: rgba(255,255,255,.96); box-shadow: 0 2px 12px rgba(0,35,24,.035); backdrop-filter: blur(12px); }
  .topbar__menu { display: none !important; }
  .topbar__crumb { gap: 8px; letter-spacing: 0; }
  .topbar__crumb > span:first-child, .topbar__slash, .topbar__date { display: none; }
  .topbar__crumb strong { color: var(--green-dark); font-size: 15px; font-weight: 800; }
  .topbar__avatar { width: 34px; height: 34px; border-radius: 50%; }
  .mobile-bottom-nav { position: fixed; z-index: 18; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: center; min-height: calc(77px + env(safe-area-inset-bottom)); border-top: 1px solid #dce7df; padding: 7px 4px max(8px, env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); box-shadow: 0 -8px 30px rgba(3,40,31,.07); backdrop-filter: blur(12px); }
  .mobile-nav-item { appearance: none; min-width: 0; min-height: 60px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border: 0; border-radius: 12px; padding: 5px 1px; background: transparent; color: #65776d; font-size: clamp(10.5px, 3.05vw, 12px); font-weight: 850; line-height: 1.05; letter-spacing: -.035em; white-space: nowrap; }
  .mobile-nav-item span { display: block; max-width: 100%; overflow: hidden; text-overflow: clip; }
  .mobile-nav-item .icon { width: 24px; height: 24px; stroke-width: 2.2; }
  .mobile-nav-item.is-active, .mobile-nav-item[aria-current='page'] { color: var(--green); background: #eff5ef; }
  .mobile-nav-item.is-active .icon, .mobile-nav-item[aria-current='page'] .icon { stroke-width: 2.6; }
  .portal-content { width: 100%; padding: 19px 16px calc(106px + env(safe-area-inset-bottom)); }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 8px; margin-bottom: 17px; }
  .page-heading .eyebrow { display: none; }
  .page-heading h1 { margin: 0 0 4px; font-size: 27px; line-height: 1.2; }
  .page-heading p { font-size: 12px; line-height: 1.45; }
  .page-heading > .button { display: none; }
  .compact-intro { margin-bottom: 16px; }
  .compact-intro h1 { font-size: 26px; }
  .page-heading.hello-row { flex-direction: row; align-items: center; gap: 8px; margin-bottom: 15px; }
  .hello-row h1 { min-width: 0; margin: 0; font-size: clamp(23px, 6.5vw, 26px); white-space: nowrap; }
  .page-heading.hello-row > .verify-account-cta { display: inline-flex; min-height: 44px; border-radius: 11px; padding: 8px 11px; font-size: 11px; }
  .heading-wave { display: none; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin-bottom: 14px; }
  .stat-card { min-height: 156px; padding: 15px 14px 12px; border-radius: 16px; }
  .stat-card__top { align-items: center; font-size: 13px; line-height: 1.25; }
  .stat-icon { width: 28px; height: 28px; border-radius: 8px; }
  .stat-icon .icon { width: 15px; height: 15px; }
  .stat-value { margin: 17px 0 7px; font-size: clamp(27px, 7.7vw, 32px); line-height: 1; }
  .stat-value .coin-mark { width: 20px; height: 20px; }
  .stat-value small { display: block; margin-top: 3px; font-size: 10px; }
  .stat-card > p, .stat-card .status-chip { display: none; }
  .stat-card__footer { justify-content: flex-start; padding-top: 5px; border: 0; }
  .card-link { min-height: 44px; max-width: 100%; gap: 4px; padding: 4px 0; font-size: 14px; font-weight: 850; line-height: 1.1; }
  .card-link .icon { width: 16px; height: 16px; }
  .dashboard-grid, .convert-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-bottom: 14px; }
  .surface-card { padding: 17px; }
  .next-step-card { display: none; }
  .section-head { align-items: center; margin-bottom: 10px; }
  .section-head .card-overline { display: none; }
  .section-head h2 { margin: 0; font-size: 18px; }
  .subtle-link { min-height: 44px; font-size: 13px; }
  .recent-orders { margin-top: 0; }
  .customer-row { gap: 12px; min-height: 82px; padding: 13px 0; }
  .order-row { display: grid; grid-template-columns: 40px minmax(0,1fr); align-items: center; column-gap: 12px; row-gap: 5px; min-height: 94px; padding: 14px 0; }
  .order-row .customer-avatar { grid-column: 1; grid-row: 1 / span 2; }
  .order-row__detail { grid-column: 2; }
  .order-row__coins { grid-column: 2; margin: 0; font-size: 16px; }
  .order-row .order-row__coins strong { justify-content: flex-start; font-size: 16px; }
  .customer-avatar, .order-icon { width: 40px; height: 40px; border-radius: 11px; font-size: 12px; }
  .customer-row strong, .order-row strong { font-size: 16px; }
  .customer-row small, .order-row small { margin-top: 4px; font-size: 13px; }
  .order-row__detail small { overflow: visible; white-space: normal; }
  .orders-list--full .order-row { min-height: 100px; }
  .row-status { font-size: 11px; }
  .quick-add { margin-bottom: 14px; padding: 16px; }
  .quick-add h2 { margin: 0 0 5px; font-size: 19px; }
  .quick-add p { margin-bottom: 13px; font-size: 11px; }
  .quick-add form { display: block; }
  .quick-add__row { display: flex; gap: 8px; }
  .quick-add__row .phone-field { flex: 1; min-width: 0; }
  .quick-add__row .button { width: auto; min-width: 70px; margin: 0; padding: 10px 11px; }
  .quick-add__row .button .icon { width: 16px; height: 16px; }
  .quick-add .field-label { font-size: 13px; }
  #view-overview > .surface-card + .surface-card { margin-top: 14px; }
  .heading-total { align-items: flex-start; border-left: 0; padding-left: 0; }
  .heading-total small { font-size: 11px; }
  .heading-total strong { font-size: 23px; }
  .page-insight { display: none; }
  .list-card { padding-bottom: 8px; }

  #view-convert .page-heading { margin-bottom: 10px; }
  #view-convert .page-heading h1 { font-size: 24px; }
  .convert-grid { display: flex; flex-direction: column; gap: 9px; margin-bottom: 0; }
  .conversion-card__balance { gap: 8px; padding: 11px 15px; }
  .conversion-card__balance > span { font-size: 9px; letter-spacing: .1em; }
  .conversion-card__balance strong { font-size: 23px; }
  .conversion-card__balance small { font-size: 10px; }
  .conversion-card form { padding: 13px 15px 15px; }
  .conversion-card .field-label { margin-bottom: 6px; font-size: 13px; }
  .amount-field { min-height: 44px; }
  .amount-field input { height: 44px; font-size: 16px; }
  .amount-field > span { padding-right: 12px; font-size: 9px; }
  .amount-shortcuts { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 5px; margin-top: 8px; }
  .amount-shortcuts button { min-height: 40px; padding: 6px 2px; font-size: 10px; }
  .conversion-preview { margin: 9px 0 11px; padding: 2px 12px; }
  .conversion-preview > div { min-height: 31px; font-size: 12px; }
  .conversion-preview strong { font-size: 13px; }
  .conversion-preview__payout { min-height: 43px !important; }
  .conversion-preview__payout strong { font-size: 20px; }
  .conversion-card .button--wide { min-height: 46px; }
  .conversion-aside { min-height: 0; padding: 11px 12px 12px; }
  .conversion-aside__icon, .conversion-aside > p { display: none; }
  .conversion-aside h2 { margin: 0 0 8px; font-family: inherit; font-size: 15px; font-weight: 800; }
  .tier-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 0; }
  .tier-list > div { min-height: 46px; gap: 2px; border-radius: 9px; padding: 4px 5px; }
  .tier-list span { font-size: 11px; }
  .tier-list strong { font-size: 15px; }
  .verification-status { gap: 12px; padding: 18px; }
  .verification-status__icon { width: 38px; height: 38px; }
  .verification-status h2 { font-size: 18px; }
  .mobile-signout { display: flex; margin-top: 18px; min-height: 48px; border: 1px solid #e2e8e1; border-radius: 13px; background: #fff; }
  .verification-reminder { gap: 9px; flex-wrap: wrap; margin-bottom: 14px; padding: 12px; }
  .verification-reminder__icon, .verification-reminder p { display: none; }
  .verification-reminder strong { font-size: 11px; }
  .verification-reminder .button { min-height: 36px; padding: 7px 11px; font-size: 11px; }
  .modal-backdrop { display: flex; align-items: flex-end; padding: 0; }
  .modal-card { width: 100%; max-height: 90svh; overflow-y: auto; border-radius: 22px 22px 0 0; padding: 27px 20px max(20px,env(safe-area-inset-bottom)); }
  .modal-actions { flex-direction: column-reverse; }
  .modal-actions .button { width: 100%; }
  .toast { right: 16px; bottom: calc(80px + env(safe-area-inset-bottom)); left: 16px; max-width: none; }
}

@media (max-width: 390px) {
  .auth-story { height: 200px; }
  .auth-panel { padding-right: 19px; padding-left: 19px; }
  .portal-content { padding-right: 13px; padding-left: 13px; }
  .stat-card { min-height: 158px; padding-right: 11px; padding-left: 11px; }
  .stat-value { font-size: 27px; }
  .stat-icon { width: 25px; height: 25px; }
  .document-options, .upload-grid { gap: 8px; }
  .verification-card { padding: 16px; }
  .upload-box small { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .opening-ring { animation: none; border-color: rgba(19, 106, 87, .28); border-top-color: #176b58; }
}

/* Data states keep the existing compact layout. */
.sidebar__brand { gap: 8px; padding-left: 10px; padding-right: 10px; }
.sidebar__brand img { width: 90px; }
.sidebar__brand > span { font-size: 7px; letter-spacing: .13em; }
.sidebar__profile > span:last-child { min-width: 0; }
.sidebar__profile strong, .sidebar__profile small { overflow: hidden; text-overflow: ellipsis; }
.hello-row h1 { overflow: hidden; text-overflow: ellipsis; }
.verify-account-cta { flex-shrink: 0; }
.verify-account-cta.is-verified { background: #e4f3e8; border-color: #bad8c4; color: #17553c; box-shadow: none; }
.verify-account-cta.is-reviewing { background: #fff3d9; border-color: #e9d29b; color: #795a20; box-shadow: none; }
.list-feedback { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 0; color: #53685f; }
.list-feedback p { margin: 0; font-size: 14px; line-height: 1.5; }
.list-feedback .text-action { flex-shrink: 0; min-height: 44px; font-size: 14px; }
.tier-list > .list-feedback { grid-column: 1 / -1; border: 0; background: transparent; }
.inline-feedback { margin: -2px 0 14px; border: 1px solid #ead7b3; border-radius: 12px; padding: 0 14px; background: #fff8e9; }
.status-label { display: inline-flex; width: fit-content; max-width: 100%; align-items: center; border-radius: 6px; padding: 3px 7px; font-size: 12px; font-weight: 750; line-height: 1.3; }
.status-label--green { color: #215f40; background: #e8f3ea; }
.status-label--amber { color: #755411; background: #fff1cf; }
.status-label--neutral { color: #52645c; background: #eef1ec; }
.customer-row__detail { min-width: 0; }
.customer-row__detail > strong { overflow-wrap: anywhere; }
.customer-row__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 6px; }
.customer-relink { min-height: 32px; border: 1px solid #bbd8c5; border-radius: 7px; padding: 4px 9px; background: #f4faf4; color: #195a3d; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.customer-relink:hover, .customer-relink:focus-visible { border-color: #487a58; background: #e8f3ea; }
.customer-avatar .icon { width: 19px; height: 19px; }
.order-row__detail { min-width: 0; }
.order-row__detail > strong, .order-address { overflow-wrap: anywhere; }
.order-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 9px; margin-top: 6px; color: #586e62; font-size: 12px; line-height: 1.35; }
.order-meta .status-label { font-size: 11px; }
.calculating-label { color: #6e7567; font-size: 14px; font-weight: 700; }
.load-more { display: block; min-height: 44px; margin: 6px auto; font-size: 14px; }
.field-note { margin: 14px 0; color: #5a6d63; font-size: 13px; line-height: 1.5; }
.upload-box:has(input:disabled) { opacity: .6; cursor: not-allowed; }
.account-details { margin-bottom: 14px; }
.account-details > div { display: flex; justify-content: space-between; align-items: start; gap: 20px; padding: 11px 0; font-size: 15px; }
.account-details > div + div { border-top: 1px solid var(--line); }
.account-details > div > span { color: #5c7065; flex-shrink: 0; }
.account-details strong { text-align: right; min-width: 0; overflow-wrap: anywhere; }
.verification-status > div:last-child { min-width: 0; }
.verification-status p { overflow-wrap: anywhere; }
.verification-status .text-action { min-height: 44px; font-size: 14px; }
.cash-feedback { margin: 0 15px 15px; border-radius: 10px; background: #edf4ed; padding: 12px; color: #284c3c; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.cash-history { margin-top: 16px; }
.cash-history summary { cursor: pointer; color: var(--green-dark); font-size: 16px; font-weight: 750; }
.request-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.request-row:last-child { border-bottom: 0; }
.request-row > div { min-width: 0; }
.request-row strong { font-size: 16px; }
.request-row small { display: block; margin-top: 5px; color: #5c7065; overflow-wrap: anywhere; font-size: 12px; }
.request-row > .status-label { flex-shrink: 0; }
@media (max-width: 650px) {
  .order-row { row-gap: 7px; }
  .order-meta { font-size: 12px; }
  .account-details { padding: 8px 16px; }
  .list-feedback { padding: 12px 0; }
  .verification-status p { font-size: 14px; line-height: 1.5; }
  .hello-row h1 { flex: 1; }
  .conversion-card form > .form-error { margin-bottom: 10px; }
  .cash-history { padding: 15px; }
}
