/* Capital Express ISO Portal — styled after the CE broker email ("Stip light. On time. Every day.") */
:root {
  color-scheme: dark;
  --bg: #0a0f1c; --card: #0f1729; --card-2: #131e35; --ink: #ffffff; --text: #c5d0de; --muted: #8a97ab;
  --line: #1f2a44; --line-2: #2c3b5c; --soft: #0b2a3d;
  --teal: #01ccd2; --blue: #378dbd; --sky: #5cc8e8; --green: #3fd08a; --green-bg: #11291f;
  --brand: var(--sky); --brand-2: var(--teal); --brand-ink: #04111c; --focus: var(--teal);
  --ok: #3fd08a; --warn: #f2b84b; --bad: #ff6b6b;
  --s-received: #8a97ab; --s-review: #f2b84b; --s-approved: #5cc8e8; --s-contracts: #a78bfa;
  --s-signed: #01ccd2; --s-funded: #3fd08a; --s-declined: #ff6b6b; --s-closed: #5f6c82;
  --radius: 16px; --radius-sm: 10px; --shadow: none;
  --sora: Sora, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --inter: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 var(--inter); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--sky); text-decoration: none; font-weight: 600; } a:hover { color: var(--teal); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
main.wrap { padding-bottom: 56px; }
.muted { color: var(--muted); } .small { font-size: 13px; } .err { color: var(--bad); }
.spacer { flex: 1; }
.row-gap { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row-gap.end { justify-content: flex-end; }
h1, h2, h3 { font-family: var(--sora); color: var(--ink); }

/* header */
header.top { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.bar { display: flex; align-items: center; gap: 14px; padding-top: 14px; padding-bottom: 8px; }
.brand img { height: 34px; width: auto; display: block; }
.brand-tag { font-family: var(--sora); font-weight: 600; font-size: 17px; color: var(--ink); border-left: 1px solid var(--line-2); padding-left: 14px; }
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tab { padding: 10px 12px; color: var(--muted); text-decoration: none; font-weight: 600; border-bottom: 2px solid transparent; white-space: nowrap; }
.tab:hover { color: var(--ink); }
.tab[aria-current=page] { color: var(--ink); border-bottom-color: var(--teal); }

/* buttons & inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line-2); background: var(--card); padding: 8px 16px; border-radius: 999px; cursor: pointer; text-decoration: none; color: #e8eef6; font-weight: 600; font-size: 14px; }
.btn:hover { border-color: var(--sky); color: var(--ink); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.primary { background: linear-gradient(120deg, var(--blue) 0%, var(--teal) 100%); color: var(--brand-ink); border-color: transparent; font-weight: 700; }
.btn.primary:hover { filter: brightness(1.08); color: var(--brand-ink); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.block { width: 100%; padding: 13px; font-size: 15px; }
input[type=search], input[type=email], input:not([type]), select, textarea {
  padding: 10px 13px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--card-2); color: var(--ink); width: 100%; }
input::placeholder, textarea::placeholder { color: var(--muted); }
select option { background: var(--card); }
textarea { resize: vertical; }
.lbl { display: block; font-size: 13px; font-weight: 600; color: #d5dee9; margin-bottom: 6px; }
.req { color: var(--teal); }
.field { display: block; margin-bottom: 14px; }
.field-err { color: var(--bad); font-size: 13px; min-height: 0; margin-top: 4px; }
.field-err:empty { display: none; }

/* layout bits */
.pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 26px 0 16px; flex-wrap: wrap; }
h1 { font-size: 28px; line-height: 1.15; margin: 0 0 4px; font-weight: 800; letter-spacing: -.6px; }
h2 { font-size: 17px; margin: 0 0 12px; font-weight: 600; letter-spacing: -.2px; }
h2.section { margin: 28px 0 12px; }
.sub { margin: 0; color: var(--muted); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.pad { padding: 22px 24px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 14px; }
.cards > * { min-width: 0; }
.stat { padding: 18px 18px 16px; overflow-wrap: anywhere; border-radius: 14px; }
.stat .k { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.stat .v { font-family: var(--sora); font-size: 26px; line-height: 32px; font-weight: 800; letter-spacing: -.6px; color: var(--ink); margin-top: 6px; font-variant-numeric: tabular-nums; }
.stat .n { font-size: 13px; color: var(--muted); margin-top: 4px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.grid2 .field { margin-bottom: 0; }
.stack { display: grid; gap: 14px; align-content: start; }
.profile { margin-bottom: 14px; }
section.card + section.card, .profile + section.card { margin-top: 14px; }
.banner { padding: 11px 16px; border-radius: 12px; margin: 14px 0; background: color-mix(in srgb, var(--warn) 12%, var(--card)); border: 1px solid color-mix(in srgb, var(--warn) 40%, var(--line)); font-size: 14px; color: #e8eef6; }
.banner.err { background: color-mix(in srgb, var(--bad) 12%, var(--card)); border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 11px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--line-2); color: #d5dee9; white-space: nowrap; }
.empty { padding: 40px; text-align: center; color: var(--muted); }

/* pipeline */
.pipeline { display: flex; height: 8px; border-radius: 999px; overflow: hidden; background: var(--card-2); margin-bottom: 12px; gap: 2px; }
.pipeline span { display: block; height: 100%; }
.legend { display: flex; gap: 6px 16px; flex-wrap: wrap; font-size: 13px; color: var(--text); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }

/* toolbar & chips */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 18px 0 10px; }
.toolbar input[type=search] { flex: 1 1 260px; width: auto; }
.toolbar select { width: auto; }
.toolbar.admin { padding: 12px 14px; background: var(--card); border: 1px solid var(--line-2); border-radius: 14px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.chip { border: 1px solid var(--line-2); background: var(--card-2); color: #d5dee9; padding: 6px 13px; border-radius: 999px; cursor: pointer; font-size: 13px; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.chip .count { color: var(--muted); font-variant-numeric: tabular-nums; font-weight: 500; }
.chip[aria-pressed=true] { background: var(--green-bg); color: var(--green); border-color: color-mix(in srgb, var(--green) 40%, var(--line-2)); }
.chip[aria-pressed=true] .count { color: inherit; opacity: .75; }

/* tables */
.tablewrap { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
.tablewrap.flat { border: 0; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
.flat table { min-width: 520px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; background: var(--card); }
th .sort { all: unset; cursor: pointer; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.merchant { white-space: normal; min-width: 200px; font-weight: 600; color: var(--ink); }
td.owed { color: var(--warn); font-weight: 600; } td.neg { color: var(--bad); }
tbody tr { cursor: pointer; } tbody tr.static { cursor: default; }
tbody tr:not(.static):hover { background: var(--card-2); }
tbody tr:last-child td { border-bottom: 0; }
.pill { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--bg); white-space: nowrap; }
.s-received { background: var(--s-received); } .s-review { background: var(--s-review); } .s-approved { background: var(--s-approved); }
.s-contracts { background: var(--s-contracts); } .s-signed { background: var(--s-signed); } .s-funded { background: var(--s-funded); }
.s-declined { background: var(--s-declined); } .s-closed { background: var(--s-closed); }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; color: var(--muted); font-size: 13px; gap: 10px; flex-wrap: wrap; }

/* drawer */
.drawer-bg { position: fixed; inset: 0; background: rgba(4,8,16,.6); z-index: 10; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(470px, 100%); background: var(--card); border-left: 1px solid var(--line); z-index: 11; padding: 22px 24px; overflow-y: auto; }
.drawer h2 { margin: 16px 0 6px; font-size: 22px; font-weight: 800; letter-spacing: -.5px; }
.drawer dl, dl.kv { display: grid; grid-template-columns: 150px 1fr; gap: 10px 12px; margin: 18px 0; }
dl.kv { margin: 0; }
dt { color: var(--muted); font-size: 13px; } dd { margin: 0; color: var(--ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.note { background: color-mix(in srgb, var(--bad) 10%, var(--card)); border: 1px solid color-mix(in srgb, var(--bad) 35%, var(--line)); padding: 12px 14px; border-radius: 12px; white-space: pre-wrap; color: #e8eef6; }
.steps { display: flex; gap: 4px; margin: 18px 0 4px; padding: 0; list-style: none; }
.steps li { flex: 1; height: 6px; border-radius: 999px; background: var(--card-2); }
.steps li.on { background: linear-gradient(120deg, var(--blue), var(--teal)); }
.steps-l { display: flex; justify-content: space-between; }

/* submit */
.zones { display: grid; gap: 12px; margin: 18px 0 8px; }
.zone { border: 1.5px dashed var(--line-2); border-radius: 14px; padding: 14px 16px; background: var(--card-2); transition: border-color .15s, background .15s; }
.zone.has { border-style: solid; border-color: var(--line-2); }
.zone.over { border-color: var(--teal); background: color-mix(in srgb, var(--teal) 10%, var(--card-2)); }
.zone-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.zone-title { font-weight: 600; color: var(--ink); }
.zone .drop { margin-top: 6px; }
.files { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.files li { display: flex; gap: 10px; align-items: center; padding: 7px 12px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.files.plain li { background: transparent; border: 0; padding: 2px 0; }
.fname { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.x { border: 0; background: transparent; font-size: 18px; line-height: 1; cursor: pointer; color: var(--muted); padding: 2px 6px; border-radius: 6px; }
.x:hover { color: var(--bad); }
.meter-row { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.meter { flex: 1; height: 6px; background: var(--card-2); border-radius: 999px; overflow: hidden; }
.meter span { display: block; height: 100%; background: linear-gradient(120deg, var(--blue), var(--teal)); }
.meter span.over { background: var(--bad); }
.progress { height: 6px; background: var(--card-2); border-radius: 999px; overflow: hidden; margin: 10px 0; }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(120deg, var(--blue), var(--teal)); transition: width .2s; }
.done { text-align: center; max-width: 620px; margin: 40px auto; }
.done .check { width: 56px; height: 56px; border-radius: 50%; background: var(--green-bg); color: var(--green); border: 1px solid color-mix(in srgb, var(--green) 40%, transparent); display: grid; place-items: center; font-size: 26px; margin: 0 auto 14px; }
.done .files { text-align: left; max-width: 420px; margin: 12px auto 20px; }
.done .row-gap { justify-content: center; }

/* login: see bottom */

@media (max-width: 640px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat { padding: 14px; } .stat .v { font-size: 22px; line-height: 28px; } .stat .k { font-size: 11px; letter-spacing: .06em; }
  .hide-sm { display: none; } .brand-tag { display: none; }
  .tabs { gap: 0; } .tab { padding: 10px 8px; font-size: 13.5px; }
  .drawer dl, dl.kv { grid-template-columns: 120px 1fr; }
  .pagehead { margin-top: 18px; }
  h1 { font-size: 24px; }
}

/* package drop + pre-flight */
.zone.big { text-align: center; padding: 30px 20px 26px; border-width: 2px; background: linear-gradient(180deg, color-mix(in srgb, var(--teal) 6%, var(--card-2)), var(--card-2)); }
.zone.big .row-gap { justify-content: center; margin-top: 16px; }
.zone.big .muted { max-width: 560px; margin: 6px auto 0; }
.zone .mark, .done .mark { height: 64px; width: auto; display: block; margin: 0 auto 12px; filter: drop-shadow(0 10px 24px rgba(1,204,210,.25)); }
.done .mark { height: 72px; }
.zone-title.big { font-family: var(--sora); font-size: 22px; font-weight: 700; letter-spacing: -.4px; }
.pkg-list { margin-top: 16px; }
.pkg-head { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-bottom: 10px; }
.pkg-head h2 { margin: 0; }
.tag.go { background: var(--green-bg); color: var(--green); border-color: color-mix(in srgb, var(--green) 40%, var(--line-2)); }
.checks { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.checks li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card-2); font-size: 13px; color: #d5dee9; }
.checks .ck { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: var(--bg); background: var(--muted); }
.checks li.ok .ck { background: var(--green); } .checks li.warn .ck { background: var(--warn); } .checks li.bad .ck { background: var(--bad); }
.files.pkg li { padding: 10px 12px; gap: 12px; }
.files.pkg li.pending { opacity: .6; }
.pf-main { flex: 1; min-width: 0; }
.pf-main .fname { color: var(--ink); font-weight: 600; }
select.kind { width: auto; padding: 6px 30px 6px 10px; font-size: 13px; border-radius: 999px; }
input.auto, textarea.auto { border-color: color-mix(in srgb, var(--teal) 55%, var(--line-2)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 12%, transparent); }
@media (max-width: 640px) { .files.pkg li { flex-wrap: wrap; } .pf-main { flex-basis: 100%; } }

/* less is more */
.details { margin-top: 18px; }
.done .check { display: none; }
.pagehead { margin: 24px 0 14px; }
.btn.ghost { color: var(--muted); font-size: 18px; padding: 4px 10px; }
.btn.ghost:hover { color: var(--ink); }

/* smooth */
main > * { animation: rise .28s ease-out both; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.btn, .chip, .tag, .pill, input, select, textarea, .zone, tbody tr, .card { transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease, transform .15s ease; }
.btn.primary:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(1,204,210,.22); }
.btn.primary:active { transform: translateY(0); box-shadow: none; }
input:focus, select:focus, textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 14%, transparent); outline: none; }
.drawer { animation: slide .22s cubic-bezier(.2,.8,.2,1) both; } .drawer-bg { animation: fade .2s ease both; }
@keyframes slide { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.files.pkg li { animation: rise .2s ease-out both; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* mobile: cut down */
@media (max-width: 640px) {
  html, body { font-size: 14px; }
  .bar { padding-top: 10px; padding-bottom: 4px; gap: 10px; }
  .brand img { height: 26px; }
  .tab { padding: 8px 6px; font-size: 13px; letter-spacing: 0; }
  .btn { padding: 7px 13px; font-size: 13px; }
  .banner { padding: 8px 12px; font-size: 12px; margin: 10px 0; }
  .pagehead { margin: 14px 0 10px; } h1 { font-size: 21px; } .sub { font-size: 12px; }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 10px; }
  .stat { padding: 10px 10px 9px; border-radius: 10px; }
  .stat .k { font-size: 9.5px; letter-spacing: .05em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .stat .v { font-size: 17px; line-height: 22px; margin-top: 3px; letter-spacing: -.3px; white-space: nowrap; }
  .stat .n { font-size: 11px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .toolbar { margin: 10px 0 8px; gap: 6px; flex-wrap: nowrap; }
  .toolbar input[type=search] { flex: 1 1 0; min-width: 0; } .toolbar select { flex: 0 0 auto; max-width: 46%; }
  input[type=search], input[type=email], input:not([type]), select, textarea { padding: 9px 11px; }
  /* tables become lists */
  .tablewrap { overflow: visible; border: 0; background: transparent; }
  table, tbody { display: block; min-width: 0 !important; }
  thead { display: none; }
  tbody tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; padding: 11px 12px; margin-bottom: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
  tbody tr:not(.static):hover { background: var(--card); }
  td { display: block; padding: 0; border: 0; white-space: normal; }
  td.merchant { grid-column: 1; grid-row: 1; min-width: 0; font-size: 14px; }
  td.merchant .small { font-size: 11px; }
  td:has(.pill) { grid-column: 2; grid-row: 1; justify-self: end; }
  td.when { grid-column: 1; grid-row: 2; font-size: 12px; }
  td.num { grid-column: 2; grid-row: auto; justify-self: end; font-size: 12.5px; color: var(--ink); line-height: 1.3; }
  td.num[data-label]::before { content: attr(data-label) " "; color: var(--muted); font-size: 11px; }
  td.num.none { display: none; }
  .hide-sm { display: none !important; }
  .pill { font-size: 11px; padding: 2px 9px; }
  .pager { font-size: 12px; margin-top: 6px; }
  /* launch */
  .zone.big { padding: 20px 14px 18px; }
  .zone .mark { height: 46px; margin-bottom: 8px; }
  .zone-title.big { font-size: 18px; }
  .checks li { font-size: 12px; padding: 5px 10px 5px 6px; }
  .files.pkg li { display: grid; grid-template-columns: 1fr auto; gap: 6px 8px; padding: 9px 10px; }
  .pf-main { grid-column: 1 / -1; }
  select.kind { grid-column: 1; justify-self: start; }
  .files.pkg .x { grid-column: 2; grid-row: 2; }
  .grid2 { gap: 10px; }
  .pad { padding: 14px; }
  /* drawer */
  .drawer { width: 100%; padding: 16px; } .drawer h2 { font-size: 19px; }
  .drawer dl, dl.kv { gap: 6px 10px; font-size: 13px; }
}

/* ---------- login ---------- */
.ic { display: inline-grid; place-items: center; width: 18px; height: 18px; flex: 0 0 auto; }
.ic svg { width: 100%; height: 100%; }
.ic.tiny { width: 14px; height: 14px; } .ic.big { width: 28px; height: 28px; }
.login-wrap { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 28px 16px;
  background: radial-gradient(900px 500px at 85% 10%, rgba(1,204,210,.10), transparent 60%), radial-gradient(800px 600px at 5% 100%, rgba(55,141,189,.12), transparent 60%), var(--bg); }
.login-card { width: min(1040px, 100%); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  background: var(--card); box-shadow: 0 30px 80px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.02) inset; animation: rise .4s ease-out both; }
.login-panel { padding: 56px 52px; display: flex; flex-direction: column; justify-content: center; min-height: 560px; }
.login-logo-sm img { height: 30px; width: auto; display: block; margin-bottom: 34px; }
.login-panel h1 { font-size: 32px; margin: 0 0 8px; }
.login-panel .sub { margin: 0 0 28px; font-size: 15px; line-height: 1.55; max-width: 380px; }
.login-form .lbl { margin-bottom: 8px; }
.input-ic { position: relative; margin-bottom: 14px; }
.input-ic .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-ic input { padding: 14px 14px 14px 44px; font-size: 15px; border-radius: 14px; }
.btn-ic { width: 16px; height: 16px; transition: transform .15s ease; }
.btn.primary:hover .btn-ic { transform: translateX(3px); }
.login-form .btn.block { padding: 14px; font-size: 15px; }
.login-err { color: var(--bad); font-size: 13px; margin: 10px 0 0; min-height: 1em; }
.login-err:empty { display: none; }
.login-fine { display: flex; align-items: center; gap: 8px; margin: 26px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; }
.sent-badge { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 22px; color: var(--teal);
  background: color-mix(in srgb, var(--teal) 12%, var(--card-2)); border: 1px solid color-mix(in srgb, var(--teal) 35%, var(--line)); }
.ghost-link { align-self: flex-start; margin-top: 8px; padding-left: 0; border: 0; background: none; color: var(--sky); }
.ghost-link:hover { color: var(--teal); border: 0; }

.login-hero { position: relative; overflow: hidden; padding: 52px 48px 36px; display: flex; flex-direction: column; justify-content: center;
  background: linear-gradient(160deg, #0c1a33 0%, #0a1426 55%, #071020 100%); border-left: 1px solid var(--line); isolation: isolate; }
.login-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .35;
  background-image: linear-gradient(rgba(92,200,232,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(92,200,232,.08) 1px, transparent 1px);
  background-size: 34px 34px; mask-image: radial-gradient(500px 380px at 50% 30%, #000 30%, transparent 75%); }
.hero-glow { position: absolute; z-index: -1; width: 420px; height: 420px; left: 50%; top: 6%; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(1,204,210,.28), rgba(55,141,189,.12) 45%, transparent 70%); filter: blur(10px); animation: pulse 6s ease-in-out infinite; }
.hero-mark { width: 230px; max-width: 70%; height: auto; display: block; margin: 0 auto 30px; filter: drop-shadow(0 24px 40px rgba(0,0,0,.55)) drop-shadow(0 0 30px rgba(1,204,210,.25));
  animation: float 6s ease-in-out infinite; }
.hero-kicker { font-size: 11.5px; letter-spacing: .18em; font-weight: 700; color: var(--teal); margin-bottom: 10px; }
.hero-title { font-family: var(--sora); font-size: 30px; line-height: 1.15; font-weight: 800; letter-spacing: -.6px; margin: 0 0 26px; color: var(--ink); }
.grad { background: linear-gradient(100deg, var(--sky), var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.trust { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.trust li { display: flex; gap: 14px; align-items: flex-start; }
.trust .tp { width: 36px; height: 36px; padding: 8px; border-radius: 11px; color: var(--teal); background: rgba(1,204,210,.08); border: 1px solid rgba(1,204,210,.22); box-sizing: border-box; }
.trust strong { display: block; color: var(--ink); font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.trust span { display: block; color: var(--muted); font-size: 13px; line-height: 1.5; }
.hero-foot { margin-top: 34px; font-size: 11.5px; color: #5f6c82; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes pulse { 0%, 100% { opacity: .85; transform: translateX(-50%) scale(1); } 50% { opacity: 1; transform: translateX(-50%) scale(1.06); } }

@media (max-width: 860px) {
  .login-wrap { place-items: start center; padding: 0; }
  .login-card { grid-template-columns: 1fr; border-radius: 0; border: 0; box-shadow: none; min-height: 100dvh; }
  .login-hero { order: -1; border-left: 0; border-bottom: 1px solid var(--line); padding: 30px 22px 24px; text-align: center; }
  .hero-mark { width: 150px; margin-bottom: 16px; }
  .hero-glow { width: 280px; height: 280px; top: -10%; }
  .hero-title { font-size: 23px; margin-bottom: 0; }
  .trust, .hero-foot { display: none; }
  .login-panel { padding: 28px 22px 36px; min-height: 0; justify-content: flex-start; }
  .login-logo-sm { display: none; }
  .login-panel h1 { font-size: 26px; }
  .login-panel .sub { margin-bottom: 22px; }
}

/* ---------- investor portal ---------- */
.bar.solo { padding-bottom: 14px; }
.hero-bl { padding: 26px 28px 22px; margin-bottom: 12px; background: radial-gradient(640px 240px at 100% 0%, rgba(1,204,210,.11), transparent 70%), var(--card); }
.hero-bl .k { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.hero-bl .v { font-family: var(--sora); font-size: 50px; line-height: 1.08; font-weight: 800; letter-spacing: -1.6px; color: var(--ink); margin: 8px 0 6px; font-variant-numeric: tabular-nums; }
.hero-bl .n { color: var(--muted); font-size: 14px; }
.bl-bar { display: flex; gap: 2px; height: 10px; border-radius: 999px; overflow: hidden; background: var(--card-2); margin: 20px 0 10px; }
.bl-bar span { display: block; height: 100%; min-width: 3px; }
.bl-bar .c, .bl-legend i.c { background: var(--teal); }
.bl-bar .p, .bl-legend i.p { background: var(--blue); }
.bl-bar .d, .bl-legend i.d { background: var(--warn); }
.bl-bar .w, .bl-legend i.w { background: repeating-linear-gradient(45deg, #34456a 0 4px, #1f2a44 4px 8px); }
.bl-legend { display: flex; gap: 6px 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.bl-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.mini { display: block; width: 120px; height: 3px; background: var(--line-2); border-radius: 999px; overflow: hidden; margin-top: 7px; }
.mini span { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--teal)); }
.fine { margin: 14px 2px 0; }
table.inv { min-width: 640px; }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) {
  .bar.solo { padding-bottom: 10px; }
  .hero-bl { padding: 16px 16px 14px; border-radius: 12px; margin-bottom: 8px; }
  .hero-bl .k { font-size: 10.5px; }
  .hero-bl .v { font-size: 34px; letter-spacing: -1px; margin: 4px 0 4px; }
  .hero-bl .n { font-size: 12px; }
  .bl-bar { height: 7px; margin: 12px 0 8px; }
  .bl-legend { font-size: 11px; gap: 4px 12px; }
  .cards:has(> .stat:nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mini { width: 90px; margin-top: 5px; }
  .fine { font-size: 11px; }
}
