/* TrustPay. Tokens and components taken from the base design (contexto/disenos/html/Trust Pay.html). */
:root {
  --ink: #0C1626;
  --ink-2: #354049;
  --text: #4A5763;
  --muted: #6B7883;
  --soft: #8A97A3;
  --faint: #A6B0B8;
  --line: #E6EAE9;
  --line-2: #EDF0EF;
  --bg: #EEF1F0;
  --card: #fff;
  --hover: #F6F8F7;
  --brand: #0E7A6B;
  --brand-dark: #0B6153;
  --brand-tint: #E4F1EE;
  --green: #12B76A;
  --green-dark: #0B7A4B;
  --green-tint: #DBF5E6;
  --gold: #E0A83E;
  --gold-text: #916209;
  --gold-tint: #FBEFD3;
  --orange: #E8A13C;
  --orange-text: #B4740E;
  --orange-tint: #FEF3E2;
  --blue: #3E7BFA;
  --blue-text: #2C5CC5;
  --blue-tint: #E7F0FF;
  --indigo: #5568E8;
  --indigo-text: #4356C7;
  --indigo-tint: #EEF0FF;
  --red: #E85D4E;
  --red-text: #C23A2C;
  --red-tint: #FCE7E4;
  --grey-tint: #EEF1F4;
  --grey-text: #5A6572;
  --bar: #0C1626;
  --bar-2: #111E2E;
  --bar-line: #22303F;
  --radius: 16px;
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font-family: var(--font-body); font-size: 14px; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -.02em; margin: 0; }
h1 { font-size: 26px; font-weight: 700; }
h2 { font-size: 16px; font-weight: 700; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: ui-monospace, Menlo, monospace; font-size: 12px; color: var(--soft); }
[hidden] { display: none !important; }

/* ---------- App shell ---------- */
.shell { height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
.topbar { height: 58px; flex: 0 0 58px; background: var(--bar); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 20px; color: #fff; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.brand:hover { color: #fff; }
.brand__mark { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, var(--brand), var(--green)); display: flex; align-items: center; justify-content: center; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -.02em; }
.brand__name span { color: var(--green); }
.brand__tag { font-size: 9px; font-weight: 700; letter-spacing: .12em; color: #93A2AD; border: 1px solid #2A3646; border-radius: 5px; padding: 2px 6px; }
.viewtabs { display: flex; align-items: center; gap: 6px; background: var(--bar-2); border: 1px solid var(--bar-line); border-radius: 999px; padding: 4px; }
.viewtabs__label { font-size: 10px; font-weight: 700; letter-spacing: .1em; color: #5D6E7C; padding: 0 6px 0 10px; }
.viewtabs form { margin: 0; }
.viewtabs button { border: 0; padding: 7px 15px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: transparent; color: #93A2AD; }
.viewtabs button.is-active { background: #fff; color: var(--ink); font-weight: 700; }
.topbar__right { display: flex; align-items: center; gap: 12px; }
.bell { position: relative; width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--bar-line); display: flex; align-items: center; justify-content: center; color: #93A2AD; }
.bell:hover { background: #16232F; color: #fff; }
.bell__dot { position: absolute; top: -4px; right: -4px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--red); color: #fff; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 2px solid var(--bar); }
.me { display: flex; align-items: center; gap: 9px; color: #fff; }
.me:hover { color: #fff; }
.me__name { display: block; font-size: 13px; font-weight: 700; line-height: 1.2; }
.me__role { font-size: 11px; color: #7C8B98; }
.avatar { border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 13px; background: var(--indigo); flex: 0 0 auto; }
.avatar--seller { background: var(--brand); }
.avatar--admin { background: #24364A; }

.body { flex: 1; display: flex; min-height: 0; }
.sidebar { width: 250px; flex: 0 0 250px; background: #fff; border-right: 1px solid #E2E7E5; display: flex; flex-direction: column; padding: 18px 14px; overflow-y: auto; }
.sidebar__label { font-size: 10px; font-weight: 700; letter-spacing: .12em; color: var(--faint); padding: 0 10px 9px; }
.nav { display: flex; flex-direction: column; gap: 3px; }
.nav__item { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px; color: var(--grey-text); font-weight: 600; font-size: 13.5px; }
.nav__item svg { color: var(--soft); }
.nav__item:hover { background: var(--hover); color: var(--ink); }
.nav__item.is-active { background: var(--brand-tint); color: var(--brand-dark); }
.nav__item.is-active svg { color: var(--brand); }
.sidebar__spacer { flex: 1; min-height: 20px; }
.orgcard { border: 1px solid var(--line); border-radius: 13px; padding: 12px; display: flex; align-items: center; gap: 10px; color: var(--ink); }
.orgcard:hover { background: var(--hover); color: var(--ink); }
.orgcard__name { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.orgcard__sub { font-size: 11px; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.orgcard form { margin: 0 0 0 auto; }
.main { flex: 1; overflow-y: auto; min-width: 0; display: flex; flex-direction: column; }
.page { flex: 1 0 auto; width: 100%; max-width: 1120px; margin: 0 auto; padding: 26px 34px 70px; animation: up .3s ease; }
.page__head { margin-bottom: 22px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page__sub { font-size: 13.5px; color: var(--muted); margin-top: 3px; }
@keyframes up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 16px; border-radius: 11px; border: 0; background: var(--brand); color: #fff; font-weight: 700; font-size: 13.5px; text-align: center; }
.btn:hover { background: var(--brand-dark); color: #fff; }
.btn--block { width: 100%; }
.btn--release { background: var(--green); } .btn--release:hover { background: #0FA05C; }
.btn--soft { background: var(--brand-tint); color: var(--brand-dark); } .btn--soft:hover { background: #D6EAE5; color: var(--brand-dark); }
.btn--ghost { background: #fff; border: 1px solid var(--line); color: var(--muted); font-weight: 600; } .btn--ghost:hover { background: var(--hover); color: var(--ink); }
.btn--danger { background: #fff; border: 1px solid #F3C7C1; color: var(--red-text); } .btn--danger:hover { background: var(--red-tint); color: var(--red-text); }
.btn--google { background: #fff; color: var(--ink); border: 1px solid var(--line); } .btn--google:hover { background: var(--hover); color: var(--ink); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--brand); font-weight: 600; font-size: 12.5px; }
form.inline { display: inline; margin: 0; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label, .label { font-size: 12px; font-weight: 700; color: var(--ink-2); }
.field .hint { font-size: 11.5px; color: var(--soft); }
.input, .field input[type=text], .field input[type=email], .field input[type=password], .field input[type=tel], .field select, .field textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 14px; color: var(--ink); background: #fff; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(14,122,107,.12); }
.field input[readonly] { background: var(--hover); color: var(--muted); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.errors { background: var(--red-tint); color: var(--red-text); border-radius: 11px; padding: 10px 14px; margin-bottom: 14px; font-size: 13px; }
.errors ul { margin: 4px 0 0; padding-left: 18px; }
.flash { border-radius: 11px; padding: 11px 14px; margin-bottom: 16px; font-size: 13px; font-weight: 600; display: flex; gap: 9px; align-items: center; }
.flash--notice { background: var(--green-tint); color: var(--brand-dark); }
.flash--alert { background: var(--red-tint); color: var(--red-text); }
.divider { display: flex; align-items: center; gap: 10px; color: var(--faint); font-size: 12px; margin: 16px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice label { border: 1.5px solid var(--line); border-radius: 13px; padding: 14px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.choice label:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice strong { font-size: 14px; }
.choice span { font-size: 12px; color: var(--muted); line-height: 1.45; }
.dropzone { border: 1.5px dashed #C9D2CF; border-radius: 13px; padding: 18px; display: flex; flex-direction: column; gap: 8px; background: var(--hover); }
.dropzone input { font-size: 13px; }

/* ---------- Cards & lists ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.card--flush { padding: 6px; }
.card__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 8px; font-weight: 700; font-size: 14px; }
.card__title { font-weight: 700; font-size: 14px; margin-bottom: 14px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack--sm { gap: 10px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 15px; padding: 16px; position: relative; overflow: hidden; }
.kpi::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent, var(--brand)); }
.kpi--gold { --accent: var(--gold); } .kpi--green { --accent: var(--green); } .kpi--blue { --accent: var(--blue); }
.kpi--orange { --accent: var(--orange); } .kpi--teal { --accent: var(--brand); }
.kpi__label { font-size: 11.5px; font-weight: 600; color: var(--soft); margin-bottom: 8px; }
.kpi__value { font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.kpi__sub { font-size: 11px; color: var(--faint); margin-top: 6px; }
.split { display: grid; grid-template-columns: 1.55fr 1fr; gap: 18px; align-items: start; }
.split > * { min-width: 0; }
.split--detail { grid-template-columns: 1fr 320px; }
.dealrow { display: flex; align-items: center; gap: 13px; padding: 11px 12px; border-radius: 12px; color: var(--ink); }
.dealrow:hover { background: var(--hover); color: var(--ink); }
.dealrow__main { flex: 1; min-width: 0; }
.dealrow__title { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dealrow__sub { font-size: 11.5px; color: var(--soft); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dealrow__side { text-align: right; flex: 0 0 auto; }
.confirm-banner { margin-bottom: 16px; }
.confirm-banner form { display: inline; }
.dealrow__dates { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--faint); margin-top: 3px; }
.dealfilters { margin-bottom: 4px; }
.search--wide { max-width: none; }
.dealfilters__more { margin-bottom: 14px; }
.dealfilters__more summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 12.5px; font-weight: 700; color: var(--muted); list-style: none; }
.dealfilters__more summary::-webkit-details-marker { display: none; }
@media (min-width: 761px) { .dealfilters__more summary { display: none; } }
.dealfilters__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 12px; margin-top: 10px; }
.field input[type=date] { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 14px; color: var(--ink); background: #fff; }
@media (max-width: 760px) { .dealfilters__grid { grid-template-columns: 1fr 1fr; } .filters { flex-wrap: nowrap; overflow-x: auto; margin-right: -16px; padding-right: 16px; scrollbar-width: none; } .filters a { white-space: nowrap; } }
.dealrow__amount { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; margin-bottom: 4px; }
.empty { padding: 30px 16px; text-align: center; color: var(--soft); font-size: 13px; }
.empty .btn { margin-top: 12px; }
.tile { border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.tile--importacion { background: var(--blue-tint); color: var(--blue-text); }
.tile--oficios { background: #E4F4EF; color: var(--brand); }
.tile--recurrente { background: #F1EAFB; color: #7A4FB5; }
.tile--freelance { background: #FDEFE6; color: #C2622C; }
.tile--otro { background: var(--grey-tint); color: var(--grey-text); }
.badge { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 3px 9px; font-size: 10.5px; font-weight: 700; background: var(--grey-tint); color: var(--grey-text); --dot: #8A97A3; white-space: nowrap; }
.badge--lg { padding: 6px 13px; font-size: 12px; }
.badge__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--dot); }
.badge--pending_acceptance { background: var(--indigo-tint); color: var(--indigo-text); --dot: var(--indigo); }
.badge--awaiting_funds { background: var(--orange-tint); color: var(--orange-text); --dot: var(--orange); }
.badge--in_custody { background: var(--gold-tint); color: var(--gold-text); --dot: var(--gold); }
.badge--delivered { background: var(--blue-tint); color: var(--blue-text); --dot: var(--blue); }
.badge--released, .badge--withdrawal-paid { background: var(--green-tint); color: var(--green-dark); --dot: var(--green); }
.badge--withdrawal-requested { background: var(--brand-tint); color: var(--brand-dark); --dot: var(--brand); }
.badge--disputed, .badge--withdrawal-rejected, .badge--withdrawal-failed { background: var(--red-tint); color: var(--red-text); --dot: var(--red); }
.promo { background: linear-gradient(158deg, #0E1E2E, #123A34); border-radius: var(--radius); padding: 18px; color: #fff; }
.promo__icon { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; }
.promo h3 { font-size: 16px; margin-top: 12px; }
.promo p { font-size: 12.5px; line-height: 1.55; color: #B7C6C2; margin: 8px 0 0; }
.balance__label { font-size: 12px; font-weight: 600; color: var(--soft); }
.balance__value { font-family: var(--font-display); font-size: 28px; font-weight: 700; margin: 6px 0 14px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.balance--hero { background: linear-gradient(158deg, var(--brand), var(--brand-dark)); color: #fff; border: 0; }
.balance--hero .balance__label { color: #B7DCD4; }
.balance--hero .balance__value { font-size: 32px; }
.balance__sub { font-size: 12px; color: #B7DCD4; margin: -6px 0 12px; }
.balance__sub:last-child { margin: 10px 0 0; }
.provider-note { display: flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 11px; color: var(--faint); }
.provider-note::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

/* ---------- Deal detail ---------- */
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 14px; }
.dealhead { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.dealhead__main { flex: 1; min-width: 0; }
.dealhead__meta { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 2px; }
.chip { border-radius: 6px; padding: 2px 8px; font-size: 10.5px; font-weight: 700; }
.dealhead h1 { font-size: 23px; line-height: 1.15; }
.dealhead__sub { font-size: 13px; color: var(--muted); margin-top: 4px; }
.figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.figures > div + div { border-left: 1px solid var(--line-2); padding-left: 14px; }
.figures__label { font-size: 11.5px; color: var(--soft); font-weight: 600; }
.figures__value { font-family: var(--font-display); font-size: 20px; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; }
.figures__note { font-size: 11px; color: var(--faint); margin-top: 2px; }
.steps { position: relative; padding: 0 4px; }
.steps::before { content: ""; position: absolute; left: 40px; right: 40px; top: 15px; height: 2px; background: var(--line); }
.steps ol { position: relative; display: flex; justify-content: space-between; list-style: none; margin: 0; padding: 0; }
.steps li { display: flex; flex-direction: column; align-items: center; gap: 7px; flex: 1; text-align: center; }
.step__dot { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; border: 2px solid var(--line); background: #F1F3F5; color: #AEB8BF; position: relative; z-index: 1; }
.step__label { font-size: 10.5px; line-height: 1.25; max-width: 90px; color: #AEB8BF; font-weight: 600; }
.step--done .step__dot { background: var(--brand); border-color: var(--brand); color: #fff; }
.step--current .step__dot { background: #fff; border-color: var(--brand); color: var(--brand); }
.step--alert .step__dot { background: var(--red-tint); border-color: #F1C4BE; color: var(--red-text); }
.step--done .step__label, .step--current .step__label, .step--alert .step__label { color: var(--ink-2); font-weight: 700; }
.desc { font-size: 13px; color: var(--text); margin: 0; line-height: 1.6; white-space: pre-line; }
.timeline { display: flex; flex-direction: column; }
.timeline__item { display: flex; gap: 12px; }
.timeline__icon { width: 30px; height: 30px; border-radius: 9px; flex: 0 0 30px; display: flex; align-items: center; justify-content: center; background: var(--grey-tint); color: var(--grey-text); }
.timeline__body { padding-bottom: 16px; }
.timeline__title { font-size: 13px; font-weight: 600; }
.timeline__meta { font-size: 11.5px; color: var(--soft); margin-top: 1px; }
.ev--accepted .timeline__icon { background: var(--indigo-tint); color: var(--indigo-text); }
.ev--funded .timeline__icon { background: var(--gold-tint); color: var(--gold-text); }
.ev--delivered .timeline__icon { background: var(--blue-tint); color: var(--blue-text); }
.ev--released .timeline__icon { background: var(--green-tint); color: var(--green-dark); }
.ev--disputed .timeline__icon, .ev--payout_rejected .timeline__icon { background: var(--red-tint); color: var(--red-text); }
.aside { position: sticky; top: 0; display: flex; flex-direction: column; gap: 14px; }
.actions { display: flex; flex-direction: column; gap: 10px; }
.actions form { margin: 0; }
.actions .btn { width: 100%; }
.hint-box { display: flex; gap: 9px; background: var(--hover); border-radius: 11px; padding: 12px; font-size: 12.5px; color: var(--grey-text); line-height: 1.5; }
.hint-box--ok { background: var(--green-tint); color: var(--brand-dark); font-weight: 600; }
.hint-box--alert { background: var(--red-tint); color: var(--red-text); }
.hint-box svg { flex: 0 0 17px; margin-top: 1px; }
.trust { background: var(--bar); border-radius: var(--radius); padding: 16px; display: flex; gap: 11px; color: #fff; }
.trust strong { font-size: 12.5px; }
.trust p { font-size: 11.5px; color: #93A2AD; margin: 3px 0 0; line-height: 1.5; }
.invite { display: flex; gap: 8px; }
.invite input { flex: 1; min-width: 0; padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px; font: 12px ui-monospace, Menlo, monospace; color: var(--muted); background: var(--hover); }

/* ---------- Modal (dialog) ---------- */
.modal { position: fixed; inset: 0; background: rgba(12,22,38,.45); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 100; animation: fade .2s ease; }
.modal__box { background: #fff; border-radius: 18px; width: 100%; max-width: 440px; box-shadow: 0 24px 60px rgba(0,0,0,.25); animation: pop .2s ease; max-height: calc(100vh - 32px); overflow-y: auto; }
.modal__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 4px; font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.modal__close { color: var(--soft); font-size: 18px; line-height: 1; background: none; border: 0; padding: 0; cursor: pointer; }
.modal__box--wide { max-width: 600px; }
.modal__body { padding: 12px 20px 20px; }
.amountbox { background: var(--hover); border-radius: 12px; padding: 14px; margin-bottom: 14px; }
.amountbox__value { font-family: var(--font-display); font-size: 24px; font-weight: 700; margin-top: 2px; font-variant-numeric: tabular-nums; }
.banks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0 12px; }
.banks button { display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); background: #fff; border-radius: 11px; padding: 11px 12px; font-size: 13px; font-weight: 600; color: var(--ink); text-align: left; }
.banks button:hover { border-color: var(--brand); background: var(--brand-tint); }
.banks button::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); flex: 0 0 8px; }
.summary { border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; margin: 4px 0 14px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.summary div { display: flex; justify-content: space-between; }
.summary span { color: var(--muted); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }

/* ---------- Auth & onboarding ---------- */
.auth { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 16px; background: radial-gradient(1200px 600px at 10% -10%, #DCEBE7, transparent), var(--bg); }
.auth__brand { margin: auto 0 22px; }
.auth__brand .brand { color: var(--ink); }
.auth__card { width: 100%; max-width: 440px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px; box-shadow: 0 10px 40px rgba(12,22,38,.06); }
.auth__card--wide { max-width: 560px; }
.auth__card h1 { font-size: 22px; margin-bottom: 4px; }
.auth__lead { color: var(--muted); font-size: 13.5px; margin: 0 0 20px; line-height: 1.5; }
.auth__foot { margin-top: 16px; font-size: 13px; color: var(--muted); text-align: center; }
.progress { display: flex; gap: 6px; margin-bottom: 18px; }
.progress span { flex: 1; height: 4px; border-radius: 999px; background: var(--line); }
.progress span.is-done { background: var(--brand); }
.progress__label { font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--soft); margin-bottom: 6px; text-transform: uppercase; }
.fieldset-title { font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--soft); text-transform: uppercase; margin: 18px 0 10px; }

/* ---------- Tables ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; font-size: 11px; font-weight: 700; color: var(--soft); text-transform: uppercase; letter-spacing: .06em; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.table td { padding: 11px 12px; border-bottom: 1px solid var(--line-2); }
.table tr:last-child td { border-bottom: 0; }
.table .right { text-align: right; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.filters a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 12px; font-weight: 600; }
.filters a.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.notif { display: flex; gap: 12px; padding: 12px; border-radius: 12px; color: var(--ink); align-items: center; }
.notif:hover { background: var(--hover); color: var(--ink); }
.notif--unread { background: #F3FAF8; }
.notif__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex: 0 0 8px; }
.notif__dot--read { background: transparent; }

/* ---------- Review 02-10: new components ---------- */
.topbar__left { display: flex; align-items: center; gap: 10px; }
.idbadge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; color: #93A2AD; margin-top: 2px; }
.idbadge--verified { color: var(--green); }
.idbadge--verifying, .idbadge--pending { color: var(--gold); }
.idbadge--rejected { color: #FF8A7A; }
.btn--sm { padding: 7px 11px; font-size: 12px; border-radius: 9px; }
.btn.is-disabled, .btn:disabled { opacity: .45; pointer-events: none; }
.btn--danger-solid { background: var(--red-text); } .btn--danger-solid:hover { background: #A52F23; }
.btn--onhero { background: #fff; color: var(--brand-dark); } .btn--onhero:hover { background: #EAF4F1; color: var(--brand-dark); }
.hint--ok { color: var(--green-dark) !important; font-weight: 600; }
.hint--error { color: var(--red-text) !important; font-weight: 600; }
.field input.is-invalid { border-color: var(--red); box-shadow: 0 0 0 3px rgba(232,93,78,.12); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--text); line-height: 1.5; margin-bottom: 16px; }
.check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--brand); flex: 0 0 auto; }
.choice__icon { width: 36px; height: 36px; border-radius: 10px; background: var(--hover); color: var(--brand); display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.choice label:has(input:checked) .choice__icon { background: #fff; }

/* Cédula upload */
.dropzones { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dropzone { position: relative; cursor: pointer; border: 1.5px dashed #C9D2CF; border-radius: 14px; padding: 18px 14px; min-height: 150px; background: var(--hover); display: flex; align-items: center; justify-content: center; text-align: center; transition: border-color .15s, background .15s; overflow: hidden; }
.dropzone:hover, .dropzone.is-over { border-color: var(--brand); background: var(--brand-tint); }
.dropzone.is-filled { border-style: solid; border-color: var(--brand); background: #fff; }
.dropzone__empty { display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; z-index: 1; }
.dropzone__icon { width: 44px; height: 44px; border-radius: 12px; background: #fff; color: var(--brand); display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(12,22,38,.06); }
.dropzone strong { font-size: 13.5px; }
.dropzone__label { font-size: 12px; color: var(--soft); word-break: break-all; }
.dropzone__preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .25; }
.dropzone.is-filled .dropzone__label { color: var(--brand-dark); font-weight: 600; }

/* Invitations */
.invite-banner { width: 100%; max-width: 560px; display: flex; gap: 10px; align-items: flex-start; background: var(--brand-tint); color: var(--brand-dark); border: 1px solid #C6E3DC; border-radius: 14px; padding: 12px 14px; font-size: 13px; line-height: 1.5; margin-bottom: 14px; }
.invite-banner svg { flex: 0 0 auto; margin-top: 2px; }
.invite-hero { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.invite-hero__icon { width: 46px; height: 46px; border-radius: 13px; background: var(--bar); display: flex; align-items: center; justify-content: center; }

/* Status cards */
.statuscard { display: flex; gap: 12px; border-radius: var(--radius); padding: 16px; margin-bottom: 18px; border: 1px solid; }
.stack .statuscard { margin-bottom: 0; }
.statuscard strong { font-size: 14px; }
.statuscard p { margin: 4px 0 0; font-size: 12.5px; line-height: 1.5; }
.statuscard__icon { width: 38px; height: 38px; border-radius: 10px; flex: 0 0 38px; display: flex; align-items: center; justify-content: center; }
.statuscard--wait { background: var(--gold-tint); border-color: #F1DDA9; color: var(--gold-text); }
.statuscard--wait .statuscard__icon { background: #fff; color: var(--gold-text); }
.statuscard--alert { background: var(--red-tint); border-color: #F3C7C1; color: var(--red-text); }
.statuscard--alert .statuscard__icon { background: #fff; color: var(--red-text); }

/* Welcome & video */
.welcome { max-width: 480px; overflow: hidden; }
.welcome__video { background: var(--bar); }
.welcome__hero { height: 110px; background: linear-gradient(158deg, #0E1E2E, #123A34); display: flex; align-items: center; justify-content: center; }
.welcome h2 { font-size: 20px; margin-bottom: 8px; }
.welcome p { font-size: 13.5px; line-height: 1.6; color: var(--text); margin: 0 0 14px; }
.videocard { overflow: hidden; padding: 0; }
.videocard__frame { aspect-ratio: 16 / 9; background: var(--bar); }
.videocard__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.videocard__title { display: flex; align-items: center; gap: 7px; padding: 12px 14px; font-weight: 700; font-size: 13.5px; color: var(--brand-dark); }
.videocard__title .linkbtn { margin-left: auto; }
.videocard--page { border-radius: 14px; margin-bottom: 18px; }
.howto { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 12px; }
.howto li { display: flex; gap: 12px; align-items: flex-start; }
.howto__n { flex: 0 0 28px; height: 28px; border-radius: 9px; background: var(--brand-tint); color: var(--brand-dark); font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.howto b { font-size: 14px; }
.howto p { margin: 2px 0 0; font-size: 13px; color: var(--muted); line-height: 1.5; }

/* Confirm dialog */
.dialog { border: 0; padding: 0; border-radius: 18px; width: min(400px, calc(100vw - 32px)); box-shadow: 0 24px 60px rgba(0,0,0,.25); }
.dialog::backdrop { background: rgba(12,22,38,.45); }
.dialog[open] { animation: pop .18s ease; }
.dialog__box { padding: 22px; text-align: center; }
.dialog__icon { width: 48px; height: 48px; margin: 0 auto 12px; border-radius: 14px; background: var(--brand-tint); display: flex; align-items: center; justify-content: center; }
.dialog h2 { font-size: 18px; }
.dialog p { font-size: 13.5px; line-height: 1.55; color: var(--text); margin: 8px 0 18px; }
.dialog__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Deals */
.split--form { grid-template-columns: 1fr 320px; }
.split--wallet { grid-template-columns: 1fr 1.2fr; }
.fees .card__title, .card__title { display: flex; align-items: center; gap: 7px; }
.dealcode { display: inline-flex; align-items: center; gap: 5px; font-family: ui-monospace, Menlo, monospace; font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 3px 9px; }
.chip--side { background: var(--grey-tint); color: var(--grey-text); }
.dealrow__code { font-family: ui-monospace, Menlo, monospace; }
.figures__label { display: flex; align-items: center; gap: 5px; }
.scrollbox { max-height: 340px; overflow-y: auto; padding-right: 4px; }
.helpcard .btn { font-weight: 700; }
.convo { border-color: #F3C7C1; }
.convo__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.convo__list { max-height: 380px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 12px; background: var(--hover); border-radius: 12px; }
.bubble { max-width: 82%; align-self: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 9px 12px; }
.bubble--mine { align-self: flex-end; background: var(--brand-tint); border-color: #C6E3DC; border-radius: 14px 14px 4px 14px; }
.bubble--trustpay { background: var(--bar); border-color: var(--bar); color: #fff; }
.bubble--trustpay .bubble__meta { color: #93A2AD; }
.bubble__meta { font-size: 11px; color: var(--soft); margin-bottom: 3px; }
.bubble__topic { font-size: 11px; font-weight: 700; color: var(--red-text); margin-bottom: 3px; }
.bubble__body { font-size: 13.5px; line-height: 1.5; white-space: pre-line; }
.convo__form { display: flex; gap: 8px; margin-top: 12px; align-items: flex-end; }
.convo__form textarea { flex: 1; resize: vertical; }
.input { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 14px; color: var(--ink); background: #fff; width: 100%; }
.resolve { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 10px; }
.resolve__buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.topics { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.topic { display: flex; gap: 10px; align-items: center; border: 1.5px solid var(--line); border-radius: 11px; padding: 11px 12px; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.topic:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); }
.topic input { accent-color: var(--brand); }
.summary b { text-align: right; }
.summary div { gap: 12px; align-items: baseline; }

/* Bank accounts & wallet */
.account { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; padding: 4px 0; }
.account + .account { border-top: 1px solid var(--line-2); padding-top: 12px; }
.account__main { flex: 1; min-width: 160px; }
.account__title { font-size: 13.5px; font-weight: 700; }
.account__sub { font-size: 11.5px; color: var(--soft); }
.account__actions { display: flex; gap: 6px; }
.account__actions form { margin: 0; }
.account--inactive { opacity: .6; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.amount-input { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 0 8px 0 12px; background: #fff; }
.amount-input:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(14,122,107,.12); }
.amount-input > span { font-weight: 700; color: var(--soft); }
.field .amount-input input[type=text] { border: 0; box-shadow: none; padding-left: 0; font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; flex: 1; min-width: 0; }
.amount-input .chip { border: 1px solid var(--brand); background: var(--brand-tint); color: var(--brand-dark); padding: 6px 10px; font-size: 12px; cursor: pointer; white-space: nowrap; }
.accounts-pick { display: flex; flex-direction: column; gap: 8px; }
.account--pick { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; cursor: pointer; flex-wrap: nowrap; }
.account--pick + .account--pick { border-top: 1px solid var(--line); padding-top: 10px; }
.account--pick input { accent-color: var(--brand); width: 18px; height: 18px; flex: 0 0 auto; margin: 0; }
.account--pick:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); }
.account--pick .account__main { display: flex; flex-direction: column; min-width: 0; }
.history summary { cursor: pointer; font-weight: 700; font-size: 13.5px; color: var(--muted); }
.moves { display: flex; flex-direction: column; }
.move { display: flex; align-items: center; gap: 12px; padding: 11px 6px; border-bottom: 1px solid var(--line-2); color: var(--ink); }
.move:hover { background: var(--hover); color: var(--ink); }
.move:last-child { border-bottom: 0; }
.move__icon { width: 34px; height: 34px; border-radius: 10px; flex: 0 0 34px; display: flex; align-items: center; justify-content: center; }
.move__icon--in { background: var(--green-tint); color: var(--green-dark); }
.move__icon--out { background: var(--grey-tint); color: var(--grey-text); }
.move__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.move__title { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.move__side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.move__amount { font-weight: 700; font-variant-numeric: tabular-nums; font-size: 14px; }
.move__amount--in { color: var(--green-dark); }
.move__amount--void { color: var(--faint); text-decoration: line-through; }
.move__note { font-size: 11.5px; color: var(--red-text); margin-top: 2px; }
.move--static:hover { background: none; }

/* Lists */
.pagination { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 16px; }
.pagination__info { font-size: 12.5px; color: var(--muted); }
.search { display: flex; gap: 8px; margin-bottom: 12px; max-width: 520px; }
.empty__icon { display: flex; width: 54px; height: 54px; margin: 0 auto 10px; border-radius: 15px; background: var(--hover); color: var(--faint); align-items: center; justify-content: center; }
.badge--completed { background: var(--green-tint); color: var(--green-dark); --dot: var(--green); }
.badge--refunding, .badge--refunded, .badge--cancelled, .badge--expired { background: var(--grey-tint); color: var(--grey-text); }

/* Footer & legal */
.footer { flex: 0 0 auto; width: 100%; max-width: 1120px; margin: 0 auto; padding: 18px 34px 28px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--soft); border-top: 1px solid var(--line); }
.footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
.footer a { color: var(--muted); }
.auth .footer { border-top: 0; padding-top: 20px; margin-top: auto; }
.legal h1 { margin-bottom: 8px; }
.legal h2 { font-size: 15px; margin: 18px 0 6px; }
.legal p { font-size: 13.5px; line-height: 1.65; color: var(--text); margin: 0 0 8px; }
.legal__draft { background: var(--gold-tint); color: var(--gold-text) !important; border-radius: 10px; padding: 10px 12px; font-weight: 600; }

/* Mobile tab bar (hidden on desktop) */
.tabbar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .split, .split--detail, .split--form, .split--wallet { grid-template-columns: 1fr; }
  .aside { position: static; }
}

/* Phones: the main audience (80-90% of users). App-like layout with a bottom tab bar. */
@media (max-width: 760px) {
  body { font-size: 15px; }
  .shell { height: auto; min-height: 100vh; overflow: visible; display: block; }
  .topbar { position: sticky; top: 0; z-index: 40; height: auto; flex-wrap: wrap; padding: 10px 16px 0; padding-top: max(10px, env(safe-area-inset-top)); gap: 10px; }
  .topbar__left { flex: 1; }
  .brand__tag, .viewtabs__label, .me__text { display: none; }
  .topbar__right { gap: 8px; }
  .viewtabs { order: 3; width: calc(100% + 32px); margin: 0 -16px; border-radius: 0; border: 0; border-top: 1px solid var(--bar-line); background: var(--bar-2); padding: 6px 16px; justify-content: stretch; }
  .viewtabs form { flex: 1; }
  .viewtabs button { width: 100%; padding: 8px 6px; font-size: 13px; }
  .body { display: block; }
  .sidebar { display: none; }
  .main { overflow: visible; min-height: calc(100vh - 104px); }
  .page { padding: 18px 16px 24px; }
  .footer { padding: 16px 16px calc(96px + env(safe-area-inset-bottom)); justify-content: center; text-align: center; }
  .auth .footer { padding-bottom: 24px; }
  h1 { font-size: 23px; }
  .page__head { margin-bottom: 16px; }
  .hide-mobile { display: none; }

  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
            background: rgba(255,255,255,.97); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
            padding: 6px 8px calc(8px + env(safe-area-inset-bottom)); }
  .tabbar__item { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; color: var(--soft); font-size: 10.5px; font-weight: 700; }
  .tabbar__item.is-active { color: var(--brand); }
  .tabbar__new { justify-self: center; width: 52px; height: 52px; margin-top: -22px; border-radius: 17px; background: linear-gradient(135deg, var(--brand), var(--green)); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px rgba(14,122,107,.35); }
  .tabbar__new:hover { color: #fff; }

  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
  .kpi { padding: 13px; }
  .kpi__value { font-size: 18px; }
  .card { padding: 16px; border-radius: 14px; }
  .card--flush { padding: 4px; }
  .dealrow { padding: 12px 10px; gap: 11px; }
  .dealrow .tile { width: 38px !important; height: 38px !important; }
  .dealrow__title { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 14px; }
  .dealrow__code { display: none; }

  .dealhead { flex-wrap: wrap; gap: 12px; }
  .dealhead > .tile { display: none; }
  .dealhead__main { flex-basis: 100%; order: 2; }
  .dealhead > .badge { order: 1; }
  .dealhead h1 { font-size: 21px; }
  .figures { grid-template-columns: 1fr; gap: 0; }
  .figures > div { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; }
  .figures > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-2); }
  .figures__value { font-size: 17px; margin: 0; }
  .figures__note { display: none; }
  .steps::before { left: 28px; right: 28px; }
  .step__label { font-size: 10px; }
  .aside { order: -1; }
  .split--detail > .aside { margin-bottom: 0; }
  .actions .btn, .helpcard .btn { padding: 14px; font-size: 15px; }

  .row2, .choice, .banks, .dropzones, .resolve__buttons { grid-template-columns: 1fr; }
  .field input, .field select, .field textarea, .input { font-size: 16px; padding: 12px; } /* 16px avoids iOS zoom */
  .btn { padding: 13px 16px; }

  .modal { align-items: flex-end; padding: 0; }
  .modal__box { max-width: none; border-radius: 20px 20px 0 0; max-height: 92vh; padding-bottom: env(safe-area-inset-bottom); animation: sheet .22s ease; }
  .bubble { max-width: 92%; }
  .convo__form { flex-direction: column; align-items: stretch; }
  .auth { justify-content: flex-start; padding: 24px 16px; }
  .auth__brand { margin-top: 0; }
  .auth__card { padding: 22px 18px; border-radius: 18px; }
  .table th, .table td { padding: 9px 6px; }
  .move__side .badge:not([class*=badge--withdrawal]) { display: none; }
}
@keyframes sheet { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Fixes */
.trust > svg, .hint-box > svg, .flash > svg { flex: 0 0 auto; }
input[type=submit], button { font-family: inherit; }
.me__text { display: flex; flex-direction: column; }

/* Big choice cards with colored icons (2026-10-16: icons bigger, with color, in more places) */
.choice--big label { flex-direction: row; align-items: center; gap: 14px; padding: 16px; }
.choice--big .choice__icon { width: 52px; height: 52px; flex: 0 0 52px; border-radius: 14px; margin: 0; }
.choice--big .choice__text { display: flex; flex-direction: column; gap: 3px; }
.choice--big strong { font-size: 16.5px; }
.choice__icon--buyer { background: var(--blue-tint); color: var(--blue-text); }
.choice__icon--seller { background: #E4F4EF; color: var(--brand); }
.choice__icon--orange { background: var(--orange-tint); color: var(--orange-text); }
.choice__icon--purple { background: #F1EAFB; color: #7A4FB5; }
.choice label:has(input:checked) .choice__icon--buyer, .choice label:has(input:checked) .choice__icon--seller,
.choice label:has(input:checked) .choice__icon--orange, .choice label:has(input:checked) .choice__icon--purple { background: #fff; }
.choice--three { grid-template-columns: repeat(3, 1fr); }
.choice--compact label { padding: 11px 12px; }
.choice--compact strong { font-size: 13.5px; }
.choice--three label { align-items: center; text-align: center; justify-content: center; }
.split-share { margin: 10px 0 0; }
.amount-input--pct { max-width: 140px; }
.summary__total { font-weight: 600; }
.summary__total span { display: inline-flex; align-items: center; gap: 6px; color: var(--text); }
.invitees { display: flex; flex-direction: column; gap: 8px; margin-bottom: 6px; }
.invitees__row { display: flex; gap: 8px; align-items: center; }
.invitees__row input { flex: 1; min-width: 0; }
.field .amount-input input[type=number] { border: 0; outline: 0; padding: 10px 0; font: inherit; font-size: 16px; font-weight: 700; flex: 1; min-width: 0; background: transparent; }
.field input[type=datetime-local], .field input[type=date] { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff; }
/* Deal terms (price, fee, who pays what, deadline) */
.terms { display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.terms__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.terms__row > span { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); }
.terms__row b { font-variant-numeric: tabular-nums; text-align: right; }
.terms__row--note { margin-top: -6px; font-size: 12px; }
.terms__row--strong { font-size: 15px; }
.terms__row--strong > span { color: var(--ink); font-weight: 600; }
.terms__icon { width: 28px; height: 28px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; }
.terms__icon--buyer { background: var(--blue-tint); color: var(--blue-text); }
.terms__icon--seller { background: #E4F4EF; color: var(--brand); }
.countdown { color: var(--ink); }
.countdown.is-soon { color: var(--orange-text); }
.countdown.is-over { color: var(--red-text); }
.share { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.btn--whatsapp { background: #E7F8EE; color: #128C4A; } .btn--whatsapp:hover { background: #D3F2E0; color: #128C4A; }
.viewers { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; font-size: 12.5px; }
.viewers__row { display: flex; justify-content: space-between; gap: 8px; }
.viewers__row span:last-child { color: var(--soft); white-space: nowrap; }
.reference { display: flex; gap: 8px; align-items: center; }
.reference input { flex: 1; min-width: 0; }
.page__actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Landing (visitors not signed in) ---------- */
.lp { background: var(--bg); }
.lp main { display: block; }
.lp-wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 34px; }
.lp-wrap--narrow { max-width: 760px; }
.lp-btn-lg { padding: 14px 22px; font-size: 14.5px; border-radius: 12px; }
.lp-btn-outline { background: transparent; border: 1px solid rgba(255,255,255,.22); color: #fff; }
.lp-btn-outline:hover { background: rgba(255,255,255,.08); color: #fff; }

.lp-hero { background: radial-gradient(900px 520px at 85% 10%, rgba(18,183,106,.16), transparent 60%), linear-gradient(158deg, #0C1626 0%, #0E1E2E 45%, #123A34 100%); color: #fff; overflow: hidden; }
.lp-nav { max-width: 1120px; margin: 0 auto; padding: 18px 34px; padding-top: max(18px, env(safe-area-inset-top)); display: flex; align-items: center; gap: 24px; }
.lp-nav__links { display: flex; gap: 22px; margin-left: 18px; }
.lp-nav__links a { color: #93A2AD; font-size: 13.5px; font-weight: 600; }
.lp-nav__links a:hover { color: #fff; }
.lp-nav__cta { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.lp-nav__login { color: #fff; font-size: 13.5px; font-weight: 700; }
.lp-nav__login:hover { color: var(--green); }

.lp-hero__body { max-width: 1120px; margin: 0 auto; padding: 56px 34px 88px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.lp-eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; color: #9FE3C4; background: rgba(18,183,106,.12); border: 1px solid rgba(18,183,106,.28); border-radius: 999px; padding: 6px 12px; }
.lp-hero h1 { font-size: 50px; line-height: 1.04; letter-spacing: -.035em; margin: 18px 0 18px; }
.lp-hero h1 span { color: var(--green); }
.lp-hero__lead { font-size: 17px; line-height: 1.6; color: #B7C6C2; margin: 0 0 28px; max-width: 520px; }
.lp-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.lp-hero__points { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-direction: column; gap: 9px; font-size: 13.5px; color: #C9D6D2; }
.lp-hero__points li { display: flex; align-items: center; gap: 9px; }
.lp-hero__points svg { color: var(--green); flex: 0 0 auto; }

.lp-demo { position: relative; }
.lp-demo__glow { position: absolute; inset: 12% -6% -10% 8%; background: radial-gradient(closest-side, rgba(14,122,107,.55), transparent); filter: blur(40px); z-index: 0; }
.lp-demo__card { position: relative; z-index: 1; color: var(--ink); padding: 22px; border: 0; border-radius: 20px; box-shadow: 0 30px 80px rgba(0,0,0,.35); transform: rotate(-1.2deg); }
.lp-demo__head { display: flex; align-items: center; gap: 12px; }
.lp-demo__title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lp-demo__title b { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-demo__head .badge { transition: background .3s, color .3s; }
.lp-demo__amount { display: flex; flex-direction: column; gap: 4px; margin: 20px 0 16px; }
.lp-demo__value { font-family: var(--font-display); font-size: 34px; font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.lp-demo__parties { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 22px; }
.lp-demo__parties > div { display: flex; align-items: center; gap: 9px; background: var(--hover); border-radius: 12px; padding: 9px 10px; font-size: 13px; font-weight: 700; min-width: 0; }
.lp-demo__parties > div > span:last-child { display: flex; flex-direction: column; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-demo__parties small { font-size: 10.5px; font-weight: 600; color: var(--soft); }
.lp-demo__steps { margin-bottom: 18px; }
.lp-demo__steps .step__dot, .lp-demo__steps .step__label { transition: background .35s, border-color .35s, color .35s; }
.lp-demo__note { display: flex; gap: 9px; align-items: flex-start; background: var(--gold-tint); color: var(--gold-text); border-radius: 11px; padding: 11px 12px; font-size: 12.5px; font-weight: 600; line-height: 1.45; min-height: 58px; }
.lp-demo__note svg { flex: 0 0 auto; margin-top: 1px; }
.lp-demo__note--done { background: var(--green-tint); color: var(--green-dark); }
.lp-demo__note.is-in span { animation: up .35s ease; }

.lp-section { padding: 88px 0; }
.lp-section--white { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lp-head { max-width: 640px; margin-bottom: 40px; }
.lp-kicker { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }
.lp-head h2, .lp-cta h2 { font-size: 34px; line-height: 1.1; letter-spacing: -.03em; }
.lp-head p { font-size: 16px; line-height: 1.6; color: var(--muted); margin: 12px 0 0; }

.lp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.lp-step { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 20px; }
.lp-step:not(:last-child)::after { content: ""; position: absolute; top: 38px; right: -17px; width: 18px; height: 2px; background: var(--line); }
.lp-step__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.lp-step__n { width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.lp-step__icon { width: 38px; height: 38px; border-radius: 11px; background: var(--brand-tint); color: var(--brand); display: flex; align-items: center; justify-content: center; }
.lp-step h3 { font-size: 17px; }
.lp-step p { font-size: 13.5px; line-height: 1.55; color: var(--muted); margin: 0 0 6px; flex: 1; }
.lp-step .badge { align-self: flex-start; }

.lp-help { margin-top: 18px; display: flex; gap: 14px; align-items: flex-start; background: var(--bar); color: #fff; border-radius: var(--radius); padding: 18px 20px; }
.lp-help__icon { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 11px; background: rgba(232,93,78,.16); color: #FF8A7A; display: flex; align-items: center; justify-content: center; }
.lp-help b { font-size: 14.5px; }
.lp-help p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.55; color: #B7C6C2; }
.lp-section, .lp-hero { overflow-x: clip; }

.lp-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.lp-feature h3 { font-size: 16.5px; margin: 14px 0 6px; }
.lp-feature p { font-size: 13.5px; line-height: 1.6; color: var(--muted); margin: 0; }
.lp-feature__icon { width: 44px; height: 44px; border-radius: 13px; display: flex; align-items: center; justify-content: center; }
.lp-feature__icon--gold { background: var(--gold-tint); color: var(--gold-text); }
.lp-feature__icon--brand { background: var(--brand-tint); color: var(--brand); }
.lp-feature__icon--indigo { background: var(--indigo-tint); color: var(--indigo-text); }
.lp-feature__icon--green { background: var(--green-tint); color: var(--green-dark); }

.lp-roles { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lp-role { padding: 24px; }
.lp-role__head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.lp-role__head h3 { font-size: 19px; }
.lp-role__icon { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; }
.lp-role__icon--buyer { background: var(--indigo); }
.lp-role__icon--seller { background: var(--brand); }
.lp-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.lp-checks li { display: flex; gap: 10px; font-size: 14px; line-height: 1.5; color: var(--text); }
.lp-checks svg { flex: 0 0 auto; margin-top: 2px; color: var(--green); }

.lp-uses { margin-top: 28px; display: grid; grid-template-columns: auto repeat(4, 1fr); gap: 12px; align-items: center; }
.lp-uses__label { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); padding-right: 6px; }
.lp-use { display: flex; align-items: center; gap: 11px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px; min-width: 0; }
.lp-use > span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lp-use b { font-size: 13px; }
.lp-use small { font-size: 12px; color: var(--soft); line-height: 1.35; }

.lp-faq { display: flex; flex-direction: column; gap: 10px; }
.lp-faq__item { border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.lp-faq__item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 17px 18px; font-weight: 700; font-size: 15px; }
.lp-faq__item summary::-webkit-details-marker { display: none; }
.lp-faq__plus { flex: 0 0 28px; height: 28px; border-radius: 9px; background: var(--brand-tint); color: var(--brand); display: flex; align-items: center; justify-content: center; transition: transform .2s; }
.lp-faq__item[open] .lp-faq__plus { transform: rotate(45deg); }
.lp-faq__item[open] summary { padding-bottom: 6px; }
.lp-faq__item p { margin: 0; padding: 0 18px 18px; font-size: 14px; line-height: 1.6; color: var(--muted); }

.lp-cta { padding: 0 0 88px; }
.lp-cta__box { max-width: 1052px; background: linear-gradient(158deg, #0E1E2E, #123A34); border-radius: 24px; padding: 56px 34px; text-align: center; color: #fff; display: flex; flex-direction: column; align-items: center; margin-top: 88px; }
.lp-cta__mark { width: 52px; height: 52px; border-radius: 15px; margin-bottom: 18px; }
.lp-cta p { color: #B7C6C2; font-size: 16px; margin: 12px 0 26px; }
.lp-cta__actions { justify-content: center; }
.lp__foot .footer { border-top: 1px solid var(--line); }

@media (max-width: 1000px) {
  .lp-hero__body { grid-template-columns: minmax(0, 1fr); gap: 44px; padding-bottom: 72px; }
  .lp-demo { max-width: 480px; }
  .lp-steps, .lp-features { grid-template-columns: 1fr 1fr; }
  .lp-step::after { display: none; }
  .lp-uses { grid-template-columns: 1fr 1fr; }
  .lp-uses__label { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .lp-wrap { padding: 0 16px; }
  .lp-nav { padding: 14px 16px; padding-top: max(14px, env(safe-area-inset-top)); }
  .lp-nav__links { display: none; }
  .lp-hero__body { padding: 28px 16px 56px; gap: 36px; }
  .lp-hero h1 { font-size: 36px; }
  .lp-hero__lead { font-size: 15.5px; margin-bottom: 22px; }
  .lp-hero__actions .btn { flex: 1 1 100%; }
  .lp-demo__card { padding: 18px; transform: none; }
  .lp-demo__value { font-size: 28px; }
  .lp-demo__parties { grid-template-columns: 1fr; gap: 8px; }
  .lp-section { padding: 56px 0; }
  .lp-head { margin-bottom: 26px; }
  .lp-head h2, .lp-cta h2 { font-size: 27px; }
  .lp-head p { font-size: 15px; }
  .lp-steps, .lp-features, .lp-roles, .lp-uses { grid-template-columns: minmax(0, 1fr); }
  .lp-features { gap: 24px; }
  .lp-role { padding: 20px; }
  .lp-cta { padding-bottom: 40px; }
  .lp-cta__box { margin-top: 56px; padding: 40px 20px; border-radius: 20px; width: calc(100% - 32px); }
  .lp__foot .footer { padding-bottom: 24px; }
}
