/* Revolut Business demo — closer Dec 2025 visual match */
:root {
  --bg: #010d19;
  --bg-deep: #000810;
  --glow-blue: #002f5d;
  --input: #1a1c1e;
  --input-2: #26282a;
  --text: #ffffff;
  --muted: #8b959e;
  --muted2: #6a737c;
  --link: #3d8bff;
  --cta: #ffffff;
  --cta-text: #0a0a0a;
  --cta-disabled-bg: #3a3d40;
  --cta-disabled-fg: #1c1e20;
  --warn: #e8a85e;
  --ok: #2ee59d;
  --danger: #ff465c;
  --sidebar: 220px;
  --side-bg: #001b36;
  --side-active: #b8d4ff;
  --card: #152033;
  --line: rgba(255, 255, 255, 0.08);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif;
  --canvas: #f4f3ef;
  --surface: #ffffff;
  --surface-subtle: #f8f8f5;
  --ink: #19211e;
  --ink-muted: #69736e;
  --border-subtle: #e1e5e1;
  --accent-deep: #1f5a4b;
  --review-amber: #a87838;
  --error-red: #9a4544;
  --info-blue: #55718a;
  --radius-control: 8px;
  --radius-panel: 12px;
  --tabular: tabular-nums;
  --content-w: 400px;
  --foot-h: 48px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

a {
  color: var(--link);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

#app {
  min-height: 100vh;
}

.landing-disclosure {
  margin: 0;
  padding: 14px 24px 18px;
  background: #000;
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.status-review {
  color: var(--warn);
  font-weight: 600;
}

.compliance-banner,
.review-widget,
.compliance-checklist,
.ai-prefill,
.partner-note {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  padding: 14px;
  margin-bottom: 14px;
}

.compliance-checklist {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.check-pass {
  color: var(--ok);
  font-weight: 600;
}

.check-flag {
  color: var(--warn);
  font-weight: 600;
}

.ai-label {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 7px;
  background: rgba(61, 139, 255, 0.16);
  color: #8ab8ff;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.ai-prefill {
  display: grid;
  gap: 5px;
}

.review-request {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 650;
}

.review-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.approval-stamp {
  margin-top: 10px;
  color: var(--ok);
  font-size: 12px;
  font-weight: 600;
}

.event-stream {
  display: grid;
  gap: 0;
}

.event-row {
  min-height: 38px;
  display: grid;
  grid-template-columns: 18px 1fr auto;
  align-items: center;
  gap: 8px;
  position: relative;
}

.event-row:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 25px;
  bottom: -13px;
  width: 1px;
  background: rgba(255, 255, 255, 0.14);
}

.event-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid var(--muted2);
  background: var(--bg);
}

.event-row.lit .event-dot {
  border-color: var(--ok);
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(46, 229, 157, 0.1);
}

.event-row.dimmed {
  color: var(--muted2);
}

.approval-preview {
  margin-top: 14px;
  border-left: 2px solid var(--ok);
  padding: 9px 12px;
  background: rgba(46, 229, 157, 0.07);
  color: var(--ok);
  font-weight: 600;
}

.compact-option {
  padding-block: 9px;
}

.option.selected {
  border-color: rgba(61, 139, 255, 0.6);
  background: rgba(61, 139, 255, 0.1);
}

.muted-badge {
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.ai-agent-row {
  background: rgba(255, 255, 255, 0.025);
}

.error-text {
  color: var(--danger);
  font-size: 12px;
}

.pricing-footnote {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}


/* ========== FUNNEL ========== */
.funnel {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  background:
    radial-gradient(ellipse 55% 70% at 0% 35%, rgba(0, 70, 140, 0.55), transparent 60%),
    radial-gradient(ellipse 40% 50% at 0% 10%, rgba(0, 47, 93, 0.45), transparent 55%),
    var(--bg);
}

.funnel-main {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 72px 24px 200px;
}

.funnel-inner {
  width: min(var(--content-w), 100%);
  animation: rise 0.28s ease;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.back {
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 20px -6px;
  font-size: 20px;
  line-height: 1;
}
.back:hover {
  background: rgba(255, 255, 255, 0.06);
}

.h1 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.035em;
  margin: 0 0 10px;
  line-height: 1.15;
}

.sub {
  color: var(--muted);
  margin: 0 0 28px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.45;
}

/* Floating-label field (Revolut style) */
.f-field {
  background: var(--input);
  border-radius: 16px;
  padding: 12px 16px 14px;
  margin-bottom: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: left;
  width: 100%;
  display: block;
  color: inherit;
}
.f-field:focus-within,
.f-field:focus {
  border-color: rgba(61, 139, 255, 0.45);
  outline: none;
}
.f-field .flabel {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}
.f-field .fvalue {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 500;
  min-height: 24px;
}
.f-field input {
  width: 100%;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 16px;
  font-weight: 500;
  padding: 0;
  color: var(--text);
  caret-color: var(--text);
  pointer-events: auto;
}
.f-field input::placeholder {
  color: var(--muted2);
  font-weight: 400;
}
.f-field .chev {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
}
.flag {
  width: 24px;
  height: 18px;
  border-radius: 3px;
  background: #ed2939;
  color: #fff;
  display: inline-grid;
  place-items: center;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .04em;
  overflow: hidden;
  vertical-align: middle;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.22);
}
.flag-large {
  width: 96px;
  height: 72px;
  border-radius: 12px;
  font-size: 24px;
  margin: 0 auto;
}
.icon-circle {
  color: #7aa7ff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
}
.file-mark {
  color: #6f91c9;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .06em;
}

.plain-input {
  width: 100%;
  background: var(--input);
  border: 0;
  border-radius: 16px;
  padding: 18px 16px;
  outline: none;
  font-size: 16px;
}
.plain-input:focus {
  box-shadow: 0 0 0 1px rgba(61, 139, 255, 0.45);
}
.plain-input::placeholder {
  color: var(--muted2);
}

/* legacy aliases used by later flow screens */
.input {
  width: 100%;
  background: var(--input);
  border: 0;
  border-radius: 16px;
  padding: 18px 16px;
  outline: none;
  font-size: 16px;
}
.input:focus {
  box-shadow: 0 0 0 1px rgba(61, 139, 255, 0.45);
}
.field {
  margin-bottom: 12px;
}
.field label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}
.select-like {
  width: 100%;
  background: var(--input);
  border: 0;
  border-radius: 16px;
  padding: 16px;
  text-align: left;
}
.oauth {
  display: grid;
  gap: 10px;
}
.row-2 {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
}
.card-visual {
  height: 200px;
  border-radius: 20px;
  background: linear-gradient(145deg, #2a3142, #12151d);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.row-phone {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 10px;
}
.row-phone .f-field {
  margin: 0;
}

.hint {
  font-size: 12px;
  color: var(--muted2);
  margin-top: 8px;
}
.f-field + .hint {
  margin-top: -4px;
  margin-bottom: 16px;
}
.legal {
  font-size: 12px;
  color: var(--muted2);
  text-align: center;
  margin: 0 0 14px;
  line-height: 1.5;
}

.funnel-actions {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 28px;
  width: min(var(--content-w), calc(100% - 48px));
  z-index: 15;
}

.btn {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 15px 22px;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.12s, opacity 0.12s, background 0.12s, box-shadow 0.12s;
}
.btn:active {
  transform: scale(0.985);
}
.btn:disabled {
  cursor: not-allowed;
}

.btn-primary {
  width: 100%;
  background: var(--cta);
  color: var(--cta-text);
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.22);
}
.btn-primary:not(:disabled):hover {
  background: #f2f2f2;
}
.btn-primary:disabled {
  background: var(--cta-disabled-bg);
  color: #9a9a9a;
  box-shadow: none;
  opacity: 1;
}

.btn-dark {
  width: 100%;
  background: var(--input);
  color: #fff;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 18px;
  margin-top: 10px;
}
.btn-dark:hover {
  background: var(--input-2);
}

.btn-link {
  background: transparent;
  color: var(--link);
  width: 100%;
  padding: 12px;
  margin-top: 4px;
  font-weight: 500;
}
.btn-ghost {
  background: var(--input);
  color: #fff;
  width: 100%;
  margin-top: 10px;
}
.btn-sm {
  width: auto;
  padding: 8px 14px;
  font-size: 13px;
}

.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted2);
  margin: 18px 0 8px;
  font-size: 13px;
}
.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.lang-switch {
  text-align: center;
  font-size: 12px;
  color: var(--muted2);
  margin-top: 8px;
}
/* The switch was an `href="#"` anchor — a link that goes nowhere, which reads as dead
   to anyone who checks the status bar. A button does the same job and looks the same. */
.lang-switch .lang-switch-btn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--link);
  cursor: pointer;
}
.lang-switch .lang-switch-btn:hover {
  text-decoration: underline;
}

.funnel-foot {
  display: none !important;
}
.brand-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #fff;
}

/* PIN */
.pin {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 8px 0 18px;
}
.pin input {
  width: 48px;
  height: 58px;
  text-align: center;
  font-size: 22px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  border: 0;
  border-radius: 14px;
  outline: none;
}
.pin input:focus {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 1px rgba(61, 139, 255, 0.5);
}
.pin .sep {
  color: rgba(255, 255, 255, 0.55);
  font-size: 18px;
}

/* Option lists */
.option-list {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  overflow: hidden;
}
.option {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 16px 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #fff;
}
.option:last-child {
  border-bottom: 0;
}
.option:hover {
  background: rgba(255, 255, 255, 0.05);
}
.option .meta {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}
.option .chev::after {
  content: "›";
  color: var(--muted);
  font-size: 22px;
}
.option .icon-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.option .radio {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
  display: grid;
  place-items: center;
}
.option .radio.on {
  border-color: #fff;
}
.option .radio.on::after {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
}
.option.addr-pick-opt {
  justify-content: flex-start;
}
.option.addr-pick-opt.is-selected {
  background: rgba(255, 255, 255, 0.04);
}
.option .grow {
  flex: 1;
  min-width: 0;
}
.addr-edit .f-field input {
  color: var(--text);
  pointer-events: auto;
  caret-color: var(--text);
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  margin: 14px 0;
}
.check input {
  margin-top: 3px;
}

/* ========== APP SHELL ========== */
.shell {
  display: grid;
  grid-template-columns: var(--sidebar) 1fr;
  min-height: 100vh;
  background: var(--bg);
}
.sidebar {
  background: linear-gradient(180deg, #002347 0%, #00152a 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.side-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px 20px;
  font-weight: 700;
  font-size: 15px;
}
.side-item {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  font-size: 14px;
  font-weight: 500;
}
.side-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.side-item.active {
  background: var(--side-active);
  color: #0a1628;
  font-weight: 600;
}
.side-ico {
  width: 18px;
  opacity: 0.9;
}

.main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background:
    radial-gradient(ellipse 50% 40% at 0% 0%, rgba(0, 60, 120, 0.35), transparent 55%),
    var(--bg);
}
.topbar {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 24px;
}
.topbar .page-title {
  font-size: 22px;
  font-weight: 700;
  margin-right: auto;
}
.pill {
  background: rgba(255, 255, 255, 0.08);
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #1c2a3d;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
}
.content {
  padding: 8px 28px 48px;
  animation: rise 0.25s ease;
}

.panel {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1.45fr 0.85fr;
  gap: 18px;
}
.balance {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 4px 0 16px;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.table th {
  text-align: left;
  color: var(--muted2);
  font-weight: 500;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
}
.table td {
  padding: 12px 8px;
  border-bottom: 1px solid var(--line);
}
.badge {
  display: inline-flex;
  font-size: 12px;
  border-radius: 999px;
  padding: 3px 8px;
}
.badge.warn {
  color: var(--warn);
  background: transparent;
  padding: 0;
  font-weight: 500;
}
.badge.ok {
  color: var(--ok);
  background: rgba(46, 229, 157, 0.12);
}

.widget {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 18px;
  border: 1px solid var(--line);
}
.progress {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: conic-gradient(#66a3ff calc(var(--p) * 1%), #243044 0);
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}
.progress span {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #0b1726;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
}

/* Activate CSS fallback (if not using shot) */
.activate-card {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 8px;
  background: linear-gradient(135deg, #1a2740 0%, #121c2e 55%, #0e1624 100%);
  border-radius: 20px;
  padding: 36px 28px;
  min-height: 420px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.activate-card h1 {
  font-size: 28px;
  letter-spacing: 0.04em;
  margin: 0 0 10px;
}
.activate-orb {
  width: 160px;
  height: 120px;
  margin-top: 36px;
  border-radius: 18px;
  background: linear-gradient(145deg, #d7dde8, #8b95a8 45%, #3a4558);
  box-shadow: 0 28px 50px rgba(0, 0, 0, 0.45);
  transform: perspective(400px) rotateY(-18deg) rotateX(8deg);
  display: grid;
  place-items: center;
  font-size: 56px;
  font-weight: 800;
  color: #111;
}
.task-row .meta {
  color: var(--warn) !important;
}

/* Modal / toast */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: grid;
  place-items: center;
  z-index: 50;
  padding: 20px;
}
.modal {
  width: min(400px, 100%);
  background: #1c222c;
  border-radius: 20px;
  border: 1px solid var(--line);
  padding: 22px;
  animation: rise 0.22s ease;
}
.modal h3 {
  margin: 8px 0;
  font-size: 20px;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 80px;
  transform: translateX(-50%);
  background: #2a3140;
  border: 1px solid var(--line);
  padding: 10px 16px;
  border-radius: 12px;
  z-index: 60;
  font-size: 13px;
}

.search-box {
  background: #151a22;
  border-radius: 14px;
  max-height: 280px;
  overflow: auto;
  margin-top: 8px;
}
.search-box input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 12px 14px;
  outline: none;
}
.search-item {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 12px 14px;
  cursor: pointer;
  color: #fff;
}
.search-item:hover,
.search-item.active {
  background: rgba(61, 139, 255, 0.2);
}

/* Revolut-style select sheet (Legal business type · 图19) */
.rb-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px 40px;
  animation: fade 0.18s ease;
}
.rb-sheet {
  width: min(400px, 100%);
  background: #1c2128;
  border-radius: 28px;
  padding: 22px 18px 18px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  animation: rise 0.22s ease;
}
.rb-sheet-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 14px 4px;
  letter-spacing: -0.02em;
}
.rb-sheet-box {
  background: #161b22;
  border-radius: 16px;
  overflow: hidden;
}
.rb-select-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.rb-select-search input {
  flex: 1;
  border: 0;
  background: transparent;
  outline: none;
  color: #fff;
  font-size: 15px;
  padding: 0;
}
.rb-select-search input::placeholder {
  color: #8e959f;
}
.rb-select-search-ico {
  color: #8e959f;
  font-size: 16px;
  line-height: 1;
}
.rb-select-list {
  max-height: 260px;
  overflow-y: auto;
  padding: 4px 0;
  scrollbar-width: thin;
  scrollbar-color: #3a4250 transparent;
}
.rb-select-item {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  padding: 14px 16px;
  cursor: pointer;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 400;
}
.rb-select-item:hover {
  background: rgba(255, 255, 255, 0.05);
}
.rb-select-item.is-active {
  color: #fff;
  background: rgba(83, 145, 245, 0.14);
}
.rb-select-footer {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  color: #5391f5;
  text-align: center;
  padding: 14px 16px 16px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}
.rb-select-footer:hover {
  text-decoration: underline;
}

/* legacy unused inline panel kept harmless */
.rb-select {
  position: relative;
}
.rb-select-panel {
  display: none;
}

.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.tab {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
}
.tab.active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.invoice-preview {
  background: #fff;
  color: #111;
  border-radius: 12px;
  padding: 20px;
  min-height: 400px;
  font-size: 13px;
}
.fx-box {
  background: var(--input);
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 10px;
}
.fx-amt {
  font-size: 28px;
  font-weight: 650;
  margin-top: 6px;
}
.file-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--input);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 10px;
}
.empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--muted);
}
.muted {
  color: var(--muted);
}
.muted2 {
  color: var(--muted2);
}
.mt-8 {
  margin-top: 8px;
}
.mt-16 {
  margin-top: 16px;
}
.mt-24 {
  margin-top: 24px;
}
.flex {
  display: flex;
  gap: 10px;
  align-items: center;
}
.between {
  justify-content: space-between;
}
.wrap {
  flex-wrap: wrap;
}
.grow {
  flex: 1;
}
.hidden {
  display: none !important;
}

.demo-jump {
  position: fixed;
  left: 12px;
  bottom: 12px;
  top: auto;
  right: auto;
  z-index: 80;
  background: rgba(10, 16, 28, 0.92);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px;
  width: 200px;
  backdrop-filter: blur(8px);
  max-height: min(50vh, 420px);
  overflow: auto;
  font-size: 12px;
}
.demo-jump summary {
  cursor: pointer;
  color: var(--muted);
  font-weight: 600;
}
.demo-jump button {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: #fff;
  padding: 7px 6px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
}
.demo-jump button:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* Language switcher */
.lang-bar {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 85;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(10, 16, 28, 0.92);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 8px 6px 12px;
  backdrop-filter: blur(8px);
  font-size: 12px;
}
.topbar .lang-bar {
  position: static;
  margin-right: auto;
  margin-left: 12px;
}
.lang-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}
.lang-btn.active {
  background: #fff;
  color: #0a0a0a;
}
.lang-btn:hover:not(.active) {
  color: #fff;
}

@media (max-width: 960px) {
  /* Post-login shell keeps desktop proportions via postlogin.css min-width */
  .shell:not(.force-mobile) {
    grid-template-columns: var(--sidebar) 1fr;
  }
  .grid-2,
  .split,
  .activate-card {
    grid-template-columns: 1fr;
  }
  .hs-get-started {
    left: 6%;
    width: 40%;
    top: 58%;
  }
  .lang-bar {
    left: auto;
    right: 12px;
    top: auto;
    bottom: 56px;
  }
  .topbar .lang-bar {
    position: static;
    bottom: auto;
    right: auto;
  }
  .demo-jump {
    left: 12px;
    right: auto;
    top: auto;
    bottom: 12px;
    max-height: 40vh;
  }
}

/* On phones the open pill (200px wide) sat across the hero's primary button.
   Collapsed, it becomes a 44px touch target in the corner; the label and the
   full menu come back the moment it is opened. */
@media (max-width: 560px) {
  .demo-jump:not([open]) {
    width: 44px;
    height: 44px;
    padding: 0;
    display: grid;
    place-items: center;
    border-radius: 50%;
    overflow: hidden;
  }
  .demo-jump:not([open]) summary {
    font-size: 0;
    line-height: 1;
    list-style: none;
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
  }
  .demo-jump:not([open]) summary::-webkit-details-marker {
    display: none;
  }
  .demo-jump:not([open]) summary::after {
    content: "▸";
    font-size: 15px;
    color: #fff;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SUPER integration surfaces
   Funnel-side blocks (provider methods, KYC steps, upload, review) live on the
   dark funnel canvas; the signed-in band and account panel live inside the
   console shell, so they use the console's own tokens.
   ═══════════════════════════════════════════════════════════════════════════ */

.method-list {
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}

.method-head {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.method-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.method-row:first-of-type {
  border-top: 0;
}

.sandbox-code {
  color: var(--warn);
  font-variant-numeric: var(--tabular);
}

.warn-text {
  color: var(--warn);
}

.kyc-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}

.kyc-step {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted2);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.kyc-step em {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 11px;
  font-style: normal;
}

.kyc-step.is-active {
  color: var(--text);
}

.kyc-step.is-active em {
  border-color: var(--text);
}

.kyc-step.is-done em {
  border-color: var(--ok);
  color: var(--ok);
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field-grid .f-field {
  margin: 0;
}

.f-field.is-input select {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  padding: 0;
  appearance: none;
}

.f-field.is-input select:focus {
  outline: none;
}

.f-field.is-input select option {
  background: var(--card);
  color: var(--text);
}

.f-field.is-wide {
  grid-column: 1 / -1;
  margin-top: 12px;
}

.upload-drop {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: var(--card);
  cursor: pointer;
}

.upload-drop:hover {
  border-color: var(--link);
}

.upload-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.upload-drop .grow {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.review-table {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.review-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.review-row:first-child {
  border-top: 0;
}

.review-row span {
  color: var(--muted);
}

@media (max-width: 560px) {
  .field-grid {
    grid-template-columns: 1fr;
  }
}

/* — inside the console shell — */

.home-ops .live-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 10px 14px;
  border: 1px solid var(--console-border);
  border-radius: 10px;
  background: var(--console-surface, #fff);
  color: var(--console-ink);
  font-size: 13px;
}

.home-ops .live-band.is-off {
  border-style: dashed;
}

.home-ops .live-band .live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--console-muted);
}

.home-ops .live-band .live-dot.is-live {
  background: #1f9d63;
  box-shadow: 0 0 0 3px rgba(31, 157, 99, 0.16);
}

.home-ops .live-band strong {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-ops .live-band .btn-link {
  margin-left: auto;
}

.home-ops .live-panel {
  margin-bottom: 22px;
  padding: 18px;
  border: 1px solid var(--console-border);
  border-radius: 14px;
  background: var(--console-surface, #fff);
  color: var(--console-ink);
}

.home-ops .live-panel.is-loading {
  opacity: 0.72;
}

.home-ops .live-panel h2 {
  margin: 2px 0 4px;
  font-size: 20px;
}

.home-ops .live-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.home-ops .live-kicker {
  margin: 0;
  color: var(--console-muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-variant-numeric: var(--tabular);
}

.home-ops .live-sub {
  margin: 0;
  color: var(--console-muted);
  font-size: 13px;
  font-variant-numeric: var(--tabular);
}

.home-ops .live-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.home-ops .live-cell {
  padding-top: 12px;
  border-top: 1px solid var(--console-border);
}

.home-ops .live-value {
  display: block;
  margin: 6px 0 2px;
  font-size: 16px;
  font-variant-numeric: var(--tabular);
}

.home-ops .live-note,
.home-ops .live-empty {
  margin: 4px 0 0;
  color: var(--console-muted);
  font-size: 12px;
}

.home-ops .live-table {
  width: 100%;
  margin-top: 8px;
  border-collapse: collapse;
  font-size: 13px;
  font-variant-numeric: var(--tabular);
}

.home-ops .live-table td {
  padding: 4px 0;
  border-top: 1px solid var(--console-border);
}

.home-ops .live-table tr:first-child td {
  border-top: 0;
}

.home-ops .live-table .num {
  text-align: right;
}

@media (max-width: 980px) {
  .home-ops .live-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .home-ops .live-grid {
    grid-template-columns: 1fr;
  }
}

/* — the MCP panel, inside the console shell — */

.home-ops .f-field.is-input {
  padding: 10px 12px;
  border: 1px solid var(--console-border);
  border-radius: 10px;
  background: var(--console-surface, #fff);
}

.home-ops .f-field.is-input .flabel {
  color: var(--console-muted);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--tabular);
}

.home-ops .f-field.is-input input,
.home-ops .f-field.is-input select,
.home-ops .f-field.is-input input::placeholder {
  color: var(--console-ink);
  font-family: inherit;
}

.home-ops .btn-ghost {
  background: transparent;
  border: 1px solid var(--console-border);
  color: var(--console-ink);
}

.home-ops .mcp-tools-table td {
  padding: 8px 6px;
  vertical-align: top;
}

.home-ops .mcp-tools-table code,
.home-ops .live-panel h2 code {
  font-family: var(--tabular);
  font-size: 13px;
}

.home-ops .mcp-output {
  margin: 14px 0 0;
  padding: 12px;
  max-height: 320px;
  overflow: auto;
  border: 1px solid var(--console-border);
  border-radius: 10px;
  background: var(--console-subtle, #f8f8f5);
  color: var(--console-ink);
  font-family: ui-monospace, "JetBrains Mono", monospace;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}
