:root {
  --bg: #f7f9f4;
  --paper: #ffffff;
  --paper-soft: #fbf7eb;
  --ink: #17201b;
  --muted: #68746e;
  --line: #dde5dc;
  --green: #176c54;
  --green-soft: #e6f4ed;
  --gold: #d59a16;
  --gold-soft: #fff3c8;
  --blue: #1e6f96;
  --red: #ba3d35;
  --orange: #b86417;
  --shadow: 0 18px 46px rgba(35, 51, 42, 0.08);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(213, 154, 22, 0.16), transparent 28rem),
    radial-gradient(circle at bottom right, rgba(23, 108, 84, 0.12), transparent 34rem),
    var(--bg);
  font-family: "Aptos", "Avenir Next", "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.shell-nav {
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  width: 244px;
  padding: 22px 16px;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px);
  z-index: 20;
}

.mobile-nav-toggle {
  display: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  padding: 10px;
  border-radius: 16px;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  letter-spacing: 0.12em;
}

.brand small,
.muted,
.hero-copy,
.panel p,
td small {
  color: var(--muted);
}

nav {
  display: grid;
  align-content: start;
  gap: 8px;
  overflow: auto;
}

.nav-section {
  display: grid;
  gap: 4px;
  padding-bottom: 2px;
}

.nav-section-toggle {
  display: flex;
  width: 100%;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  border: 0;
  border-radius: 12px;
  color: var(--gold);
  background: transparent;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.nav-section-toggle:hover {
  background: rgba(213, 154, 22, 0.1);
}

.nav-section-toggle::after {
  content: "⌄";
  color: var(--muted);
  font-size: 13px;
  line-height: 1;
  transition: transform 0.18s ease;
}

.nav-section-toggle small {
  margin-left: auto;
  margin-right: 8px;
  color: #a37516;
  font-size: 10px;
  letter-spacing: 0;
}

.nav-section.is-collapsed .nav-section-toggle::after {
  transform: rotate(-90deg);
}

.nav-section-items {
  display: grid;
  gap: 3px;
}

.nav-section.is-collapsed .nav-section-items {
  display: none;
}

nav a,
.nav-foot a {
  padding: 9px 11px;
  border-radius: 12px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 750;
}

nav a:hover,
nav a.active,
.nav-foot a:hover {
  color: var(--green);
  background: var(--green-soft);
}

.nav-foot {
  display: grid;
  gap: 9px;
  margin-top: auto;
  padding-top: 14px;
}

.preview-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  border: 1px solid rgba(213, 154, 22, 0.42);
  border-radius: 999px;
  color: #805300;
  background: var(--gold-soft);
  font-size: 12px;
  font-weight: 800;
}

.app-shell {
  margin-left: 244px;
  padding: 24px;
}

.topbar,
.panel-head,
.top-actions,
.list-toolbar,
.merchant-header,
.merchant-actions,
.balance-row,
.flow-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.topbar {
  margin-bottom: 20px;
}

.top-actions {
  align-items: flex-end;
  flex-direction: column;
}

.language-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
}

.language-switch button {
  min-height: 30px;
  padding: 0 11px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.language-switch button.active {
  color: white;
  background: var(--green);
}

#session-user,
.eyebrow {
  color: var(--green);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 6px;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.04em;
}

h2 {
  margin-bottom: 0;
  font-size: 18px;
}

.hero-copy,
.panel p {
  margin-bottom: 0;
  line-height: 1.5;
}

button,
input,
select,
textarea {
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: var(--paper);
  font: inherit;
}

button {
  min-height: 38px;
  padding: 0 14px;
  color: white;
  background: var(--green);
  cursor: pointer;
  font-weight: 850;
}

button.ghost,
button:disabled {
  color: var(--muted);
  background: #f4f7f1;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

input,
select,
textarea {
  width: 100%;
  padding: 10px 12px;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.page-frame {
  display: grid;
  min-width: 0;
  gap: 16px;
}

.page-frame > *,
.tab-body > *,
.review-workbench > * {
  min-width: 0;
  max-width: 100%;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.35fr repeat(2, minmax(170px, 0.5fr));
  gap: 14px;
}

.dashboard-grid.compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.risk-top-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.institution-plaque {
  position: relative;
  display: grid;
  min-height: 310px;
  place-items: center;
  overflow: hidden;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid rgba(213, 154, 22, 0.32);
  border-radius: 32px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.97) 0%, rgba(244, 249, 242, 0.95) 54%, rgba(255, 246, 220, 0.9) 100%),
    radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.92), transparent 22rem);
  box-shadow:
    0 28px 80px rgba(21, 51, 38, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -1px 0 rgba(213, 154, 22, 0.16);
  text-align: center;
}

.institution-plaque::before,
.institution-plaque::after {
  position: absolute;
  inset: 22px;
  content: "";
  border: 1px solid rgba(23, 108, 84, 0.12);
  border-radius: 24px;
  pointer-events: none;
}

.institution-plaque::after {
  inset: 34px;
  border-color: rgba(213, 154, 22, 0.22);
}

.plaque-shine {
  position: absolute;
  inset: -42% auto auto -12%;
  width: 60%;
  height: 180%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.68), transparent);
  opacity: 0.55;
  transform: rotate(22deg);
}

.plaque-logo-wrap {
  position: relative;
  z-index: 1;
  display: grid;
  width: clamp(188px, 23vw, 318px);
  height: clamp(188px, 23vw, 318px);
  place-items: center;
  margin-bottom: 20px;
  border: 1px solid rgba(23, 108, 84, 0.14);
  border-radius: 34px;
  background:
    radial-gradient(circle at 38% 28%, rgba(255, 255, 255, 0.95), transparent 6rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(232, 241, 233, 0.52));
  box-shadow:
    0 24px 60px rgba(23, 108, 84, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.plaque-logo-wrap img {
  width: 84%;
  height: 84%;
  object-fit: contain;
  filter: drop-shadow(0 16px 20px rgba(23, 37, 29, 0.18));
}

.plaque-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
}

.plaque-copy span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.plaque-copy strong {
  color: var(--ink);
  font-size: clamp(25px, 3.2vw, 42px);
  font-weight: 950;
  letter-spacing: -0.035em;
  line-height: 0.95;
}

.plaque-copy p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(13px, 1.5vw, 16px);
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-ledger,
.metric-card,
.risk-card,
.panel,
.list-toolbar,
.merchant-header,
.tabs,
.error-panel,
.skeleton-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.risk-card {
  display: block;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.risk-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 56px rgba(35, 51, 42, 0.12);
}

.risk-card.inbound {
  background: linear-gradient(135deg, #ffffff 0%, #eaf8f1 100%);
}

.risk-card.outbound {
  background: linear-gradient(135deg, #ffffff 0%, #fff1dc 100%);
}

.risk-card.customer-risk {
  background: linear-gradient(135deg, #ffffff 0%, #eef4ff 100%);
}

.risk-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.risk-card-grid div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.68);
}

.risk-card-grid strong {
  color: var(--green);
  font-size: 34px;
  line-height: 1;
}

.risk-card-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.hero-ledger {
  display: flex;
  min-height: 178px;
  align-items: center;
  gap: 18px;
  padding: 20px;
  background: linear-gradient(135deg, #ffffff 0%, #fff7df 100%);
}

.hero-logo-wrap {
  display: grid;
  width: 98px;
  height: 98px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
}

.hero-logo-wrap img {
  width: 78px;
  height: 78px;
  object-fit: contain;
}

.hero-ledger span,
.metric-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.hero-ledger strong {
  display: block;
  margin: 8px 0;
  color: var(--green);
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.06em;
}

.metric-card {
  display: grid;
  min-height: 150px;
  align-content: center;
  gap: 8px;
  padding: 18px;
}

.metric-card strong {
  font-size: 28px;
  letter-spacing: -0.04em;
}

.metric-card small {
  color: var(--muted);
  line-height: 1.35;
}

.mhc-rfq-clean {
  display: grid;
  justify-items: center;
}

.mhc-deal-card {
  position: relative;
  width: min(980px, 100%);
  overflow: hidden;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid rgba(33, 57, 43, 0.1);
  background:
    radial-gradient(circle at 88% 10%, rgba(213, 154, 22, 0.16), transparent 18rem),
    radial-gradient(circle at 8% 90%, rgba(23, 108, 84, 0.1), transparent 16rem),
    linear-gradient(145deg, #fffdf7 0%, #f7f1e5 100%);
  color: var(--ink);
  box-shadow: 0 28px 80px rgba(28, 48, 37, 0.12);
}

.mhc-deal-card::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  pointer-events: none;
}

.mhc-deal-top {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, auto);
  gap: 22px;
  align-items: start;
  margin-bottom: 24px;
}

.mhc-deal-top h2 {
  margin-bottom: 8px;
  color: #18241d;
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.06em;
}

.mhc-balance-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(33, 57, 43, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(14px);
}

.mhc-balance-strip span {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 13px;
  background: #fffaf1;
}

.mhc-balance-strip b {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.mhc-balance-strip strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mhc-rfq-form {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0;
}

.mhc-converter {
  width: min(680px, 100%);
  margin: 0 auto;
  padding: 14px;
  border: 1px solid rgba(33, 57, 43, 0.12);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  box-shadow:
    0 22px 58px rgba(33, 57, 43, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.mhc-convert-row {
  display: grid;
  grid-template-columns: minmax(220px, 0.82fr) minmax(220px, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 108px;
  padding: 18px;
  border: 1px solid rgba(33, 57, 43, 0.08);
  background: #fff;
}

.mhc-convert-row:first-child {
  border-radius: 20px 20px 9px 9px;
}

.mhc-convert-row:nth-of-type(2) {
  border-radius: 9px 9px 20px 20px;
}

.mhc-convert-label {
  display: block;
  margin-bottom: 12px;
  color: rgba(33, 57, 43, 0.48);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.mhc-currency-pill {
  display: grid;
  grid-template-columns: 50px minmax(92px, auto);
  grid-template-areas:
    "mark select"
    "mark name";
  align-items: center;
  column-gap: 12px;
}

.mhc-currency-mark {
  grid-area: mark;
  display: inline-flex;
  width: 50px;
  height: 50px;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, #23352b, #176c54);
  font-weight: 950;
  letter-spacing: -0.04em;
  box-shadow: inset 0 -8px 16px rgba(0, 0, 0, 0.12);
}

.mhc-currency-mark.aud {
  background: linear-gradient(135deg, #18241d, #6d4a20);
}

.mhc-currency-mark.usdt {
  background: linear-gradient(135deg, #176c54, #0d4f3d);
}

.mhc-currency-mark.usdc {
  background: linear-gradient(135deg, #1e6f96, #164c69);
}

.mhc-currency-pill select {
  grid-area: select;
  width: min-content;
  min-width: 104px;
  min-height: 34px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #17241d;
  font: inherit;
  font-size: 27px;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.mhc-currency-pill small {
  grid-area: name;
  color: var(--muted);
  font-weight: 850;
}

.mhc-amount-input,
.mhc-converted-preview {
  width: 100%;
  min-height: 68px;
  padding: 0 18px;
  border: 1px solid rgba(33, 57, 43, 0.08);
  border-radius: 15px;
  background: #f7faf6;
  color: #17241d;
  text-align: right;
  font: inherit;
  font-size: clamp(32px, 4.6vw, 50px);
  font-weight: 950;
  letter-spacing: -0.065em;
}

.mhc-converted-preview {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  color: rgba(23, 36, 29, 0.62);
}

.mhc-swap-button {
  place-self: center;
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  margin: -8px 0;
  border: 5px solid #fff;
  border-radius: 999px;
  background: linear-gradient(135deg, #176c54, #d59a16);
  color: #fff;
  box-shadow: 0 16px 34px rgba(23, 108, 84, 0.26);
  z-index: 2;
}

.mhc-swap-button svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.1;
}

.mhc-rate-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 2px;
  padding: 11px 13px;
  border: 1px solid rgba(213, 154, 22, 0.2);
  border-radius: 14px;
  color: #27362e;
  background: #fff8e8;
  font-weight: 900;
}

.mhc-primary-action {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-radius: 16px;
  font-size: 16px;
}

.mhc-primary-action small {
  min-width: 42px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #12392c;
  background: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  font-weight: 950;
}

.mhc-converter-note {
  margin: 12px 4px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.content-grid {
  display: grid;
  gap: 14px;
}

.content-grid.two {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}

.content-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.panel {
  padding: 18px;
}

.panel-head {
  margin-bottom: 16px;
}

.flow-strip {
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-bottom: 14px;
  padding: 12px;
  border-radius: 16px;
  background: #f4f8f2;
}

.flow-strip span {
  padding: 7px 10px;
  border-radius: 999px;
  background: white;
  color: var(--green);
  font-size: 12px;
  font-weight: 850;
}

.flow-strip b {
  color: var(--gold);
}

.merchant-balance-list,
.mini-list {
  display: grid;
  gap: 9px;
}

.balance-row,
.mini-list a,
.mini-list div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffdfa;
  text-decoration: none;
}

.mini-list a {
  color: inherit;
}

.balance-row strong,
.balance-row small,
.mini-list strong,
.mini-list small,
td small {
  display: block;
}

.list-toolbar {
  flex-wrap: wrap;
  justify-content: flex-start;
  padding: 14px;
}

.list-toolbar label {
  flex: 1 1 210px;
  min-width: min(210px, 100%);
  max-width: 320px;
}

.list-toolbar button {
  align-self: end;
}

.embedded-table-toolbar {
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: #fbfdf9;
  box-shadow: none;
}

.secondary-action {
  color: var(--green);
  background: var(--green-soft);
}

.table-result-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  background: #fbfdf9;
  font-size: 12px;
  font-weight: 850;
}

.table-pager {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.table-pager button {
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
}

.list-panel {
  padding: 0;
  overflow: hidden;
}

.list-panel-merchants {
  overflow: visible;
}

.table-wrap {
  overflow: auto;
}

.table-wrap-merchants {
  min-height: 210px;
  overflow: visible;
}

.table-wrap-c2c-payout-requests th:last-child,
.table-wrap-c2c-payout-requests td:last-child {
  position: sticky;
  right: 0;
  z-index: 2;
  min-width: 150px;
  background: #fff;
  box-shadow: -10px 0 18px -18px rgba(16, 65, 48, 0.58);
}

.table-wrap-c2c-payout-requests th:last-child {
  z-index: 3;
  background: #f7faf5;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

th {
  color: var(--muted);
  background: #f7faf5;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

td a {
  color: var(--green);
  font-weight: 850;
  text-decoration: none;
}

.table-link {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.file-preview-button {
  border: 0;
  box-shadow: none;
  cursor: pointer;
  font: inherit;
}

.row-actions,
.module-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.cell-stack {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.cell-stack.strong a,
.cell-stack strong {
  color: var(--ink);
  font-weight: 900;
}

.cell-stack span,
.cell-stack small {
  color: var(--muted);
  line-height: 1.35;
}

.reference-code {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(5, 94, 67, 0.1);
  color: var(--deep-green) !important;
  letter-spacing: 0.08em;
}

.action-menu {
  position: relative;
  width: max-content;
  z-index: 2;
}

.action-menu summary {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  color: white;
  background: var(--green);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  list-style: none;
}

.action-menu summary::-webkit-details-marker {
  display: none;
}

.action-menu[open] summary {
  background: #0f503e;
}

.action-menu[open] {
  z-index: 80;
}

.action-menu div {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 30;
  display: grid;
  min-width: 210px;
  gap: 7px;
  margin-top: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  box-shadow: var(--shadow);
}

.merchant-action-primary {
  display: grid;
  place-items: center;
  min-height: 44px;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, #0d5d45, #0f7a5b);
  font-size: 13px;
  font-weight: 950;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(15, 80, 62, 0.18);
}

.action-menu div > button,
.action-menu div > a:not(.merchant-action-primary) {
  width: 100%;
  justify-content: center;
}

.c2c-row-actions {
  display: grid;
  min-width: 150px;
  gap: 7px;
}

.c2c-row-actions > button {
  width: 100%;
  min-height: 34px;
  justify-content: center;
}

.merchant-action-danger {
  border-color: rgba(166, 56, 45, 0.18);
  color: #a43f2d;
  background: rgba(166, 56, 45, 0.08);
}

.merchant-action-warning {
  border-color: rgba(169, 120, 33, 0.22);
  color: #8a5f13;
  background: rgba(223, 194, 112, 0.2);
}

.workflow-action-strip .merchant-action-primary {
  min-width: 150px;
  padding: 0 18px;
}

.row-actions button,
.module-actions button,
.command {
  min-height: 30px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
}

.collection-sandbox-grid {
  align-items: stretch;
}

.hipayx-provider-head,
.hipayx-balance-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.hipayx-provider-head {
  padding: 22px;
  background:
    radial-gradient(circle at 92% 12%, rgba(213, 154, 22, 0.18), transparent 17rem),
    linear-gradient(135deg, #fffef9 0%, #eef7f1 100%);
}

.hipayx-provider-head h2,
.hipayx-balance-head h2 {
  margin-top: 4px;
}

.hipayx-provider-status {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.hipayx-balance-head {
  margin-top: 4px;
  padding: 2px 2px 0;
}

.hipayx-balance-card {
  min-height: 132px;
  background: linear-gradient(145deg, #ffffff 0%, #f4f8f2 100%);
}

.hipayx-balance-card strong {
  color: var(--green);
  font-variant-numeric: tabular-nums;
}

.hipayx-empty-balance {
  grid-column: 1 / -1;
  padding: 20px;
}

.hipayx-operation-grid {
  align-items: start;
}

.hipayx-payout-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  margin-top: 18px;
}

.hipayx-payout-form .span-2 {
  grid-column: 1 / -1;
}

.hipayx-payout-form input,
.hipayx-payout-form select,
.hipayx-payout-form textarea {
  min-height: 44px;
  background: #fffdfa;
}

.hipayx-payout-form textarea {
  min-height: 84px;
}

.hipayx-business-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  padding: 14px;
  border: 1px solid rgba(23, 108, 84, 0.16);
  border-radius: 14px;
  background: #f4f9f5;
}

.hipayx-business-fields[hidden] {
  display: none;
}

.hipayx-form-actions,
.hipayx-confirm-box {
  display: grid;
  gap: 10px;
}

.hipayx-form-actions small,
.hipayx-confirm-box small {
  color: var(--muted);
  line-height: 1.45;
}

.hipayx-preview-panel {
  position: sticky;
  top: 20px;
  min-height: 370px;
}

.hipayx-preview-list {
  margin: 18px 0;
  padding: 16px;
  border-radius: 14px;
  background: #f7faf5;
}

.hipayx-preview-list dd {
  overflow-wrap: anywhere;
}

.hipayx-confirm-box {
  padding: 16px;
  border: 1px solid rgba(213, 154, 22, 0.28);
  border-radius: 14px;
  background: #fff9e8;
}

.collection-sandbox-hero .dashboard-grid.compact {
  margin-bottom: 14px;
}

.simulate-form {
  display: grid;
  gap: 14px;
}

.simulate-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.simulate-form input {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 14px;
  background: #fffdfa;
  color: var(--ink);
  font: inherit;
  font-size: 20px;
  font-weight: 900;
}

.command {
  display: inline-flex;
  align-items: center;
  color: white;
  background: var(--green);
  font-weight: 900;
  text-decoration: none;
}

tr:last-child td {
  border-bottom: 0;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin: 1px 4px 1px 0;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.status-chip.good {
  color: #0d5b45;
  background: #dff4ea;
}

.status-chip.warn {
  color: #8b5600;
  background: #fff0be;
}

.status-chip.hot {
  color: #9a4c00;
  background: #ffe1c4;
}

.status-chip.bad {
  color: #9a211b;
  background: #ffe0de;
}

.status-chip.neutral {
  color: #56615c;
  background: #edf1ed;
}

.country-risk-chip {
  border: 1px solid rgba(17, 41, 30, 0.08);
  box-shadow: inset 0 -1px 0 rgba(17, 41, 30, 0.08);
}

.country-risk-chip.good {
  color: #0b5f43;
  background: #d9f7e5;
}

.country-risk-chip.warn {
  color: #835300;
  background: #ffe9a8;
}

.country-risk-chip.hot {
  color: #9b3b00;
  background: #ffd7ae;
}

.country-risk-chip.bad {
  color: #941b1b;
  background: #ffd4d4;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px;
  box-shadow: none;
}

.tabs a {
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 850;
}

.tabs a.active {
  color: white;
  background: var(--green);
}

.tab-body {
  display: grid;
  gap: 14px;
}

.merchant-header h2 {
  margin-bottom: 4px;
}

.merchant-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.risk-editor {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}

.score-ring {
  display: grid;
  min-height: 150px;
  place-items: center;
  border: 12px solid var(--gold-soft);
  border-radius: 999px;
  background: white;
}

.score-ring strong {
  color: var(--green);
  font-size: 46px;
  line-height: 1;
}

.risk-item-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.risk-item {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffdfa;
}

.review-workbench {
  display: grid;
  gap: 14px;
}

.ca-va-workbench > .panel[hidden] {
  display: none;
}

.ca-va-method-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}

.ca-va-method {
  min-width: 0;
  padding: 4px 20px 4px 0;
}

.ca-va-method + .ca-va-method {
  padding-right: 0;
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.ca-va-method > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.ca-lifecycle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}

.ca-lifecycle-grid > section {
  min-width: 0;
  padding-right: 20px;
}

.ca-lifecycle-grid > section + section {
  padding-right: 0;
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.panel-head.compact {
  margin-bottom: 10px;
}

.panel-head.compact h3 {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0;
}

.ca-va-warning-list {
  margin: 14px 0 0;
  padding: 12px 14px 12px 32px;
  border: 1px solid rgba(176, 116, 0, 0.28);
  border-radius: 6px;
  color: #72500e;
  background: #fff8e6;
  line-height: 1.5;
}

.ca-va-profile-form,
.ca-va-create-form {
  margin-top: 18px;
}

.ca-va-create-form {
  display: grid;
  gap: 14px;
}

.ca-va-production-ack {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #7a241d;
}

.ca-va-production-ack input {
  width: 18px;
  min-height: 18px;
  margin-top: 1px;
}

.ca-va-payload-preview {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.ca-va-payload-preview summary {
  cursor: pointer;
  color: var(--green);
  font-weight: 850;
}

.ca-va-payload-preview pre {
  max-height: 360px;
  overflow: auto;
  margin: 12px 0 0;
  padding: 14px;
  border-radius: 6px;
  color: #e9f4ec;
  background: #17241d;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.ca-va-create-panel button:disabled,
.ca-va-create-panel input:disabled {
  cursor: not-allowed;
  opacity: 0.56;
}

.operations-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.operations-toolbar > div {
  display: grid;
  gap: 2px;
}

.operations-toolbar > div span,
.queue-open-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.operations-toolbar nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.operations-toolbar a {
  min-height: 34px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--ink);
  background: #f8faf7;
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
}

.registration-state-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.45;
}

.registration-state-banner.warn {
  border-color: rgba(176, 116, 0, 0.3);
  background: #fff8e6;
  color: #72500e;
}

.registration-state-banner.good {
  border-color: rgba(24, 112, 75, 0.24);
  background: #edf8f0;
  color: #16593f;
}

.kyb-summary-grid {
  margin: 0;
}

.company-document-panel .table-wrap {
  max-height: none;
}

.kyc-party-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
}

.kyc-party-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.kyc-party-card h3 {
  margin: 0;
  font-size: 18px;
}

.compact-list {
  grid-template-columns: 130px minmax(0, 1fr);
  padding: 0;
  background: transparent;
}

.party-evidence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.evidence-card {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 102px;
  padding: 12px;
  border: 1px dashed rgba(24, 82, 62, 0.22);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.78);
}

.evidence-card strong {
  color: var(--ink);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.file-action-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.file-action-row > span:first-child {
  max-width: min(280px, 100%);
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.review-form-grid .span-2 {
  grid-column: 1 / -1;
}

.evidence-uploader {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 0.8fr) minmax(260px, 1.2fr) minmax(220px, 0.8fr) auto;
  gap: 12px;
  align-items: end;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(24, 82, 62, 0.16);
  border-radius: 18px;
  background: #f6faf5;
}

.evidence-uploader small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.35;
}

.evidence-uploader textarea {
  min-height: 42px;
}

.evidence-list {
  display: grid;
  gap: 8px;
}

.muted {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.settings-list {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 10px;
  margin: 0;
}

.settings-list dt {
  color: var(--muted);
  font-weight: 850;
}

.settings-list dd {
  margin: 0;
}

.access-list {
  display: grid;
  gap: 18px;
}

.merchant-access-card {
  display: grid;
  gap: 18px;
}

.access-form {
  display: grid;
  gap: 14px;
}

.access-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.access-form input,
.access-form select,
.access-form textarea {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 12px;
  background: #fffdfa;
  color: var(--ink);
  font: inherit;
}

.access-form textarea {
  min-height: 92px;
  padding: 12px;
  resize: vertical;
  line-height: 1.45;
}

.wallet-adjustment-summary {
  margin-bottom: 16px;
}

.wallet-adjustment-form {
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  align-items: end;
}

.wallet-adjustment-form .wallet-adjustment-note {
  grid-column: span 2;
}

.wallet-adjustment-form .module-actions {
  align-self: end;
}

.wallet-adjustment-form .muted {
  grid-column: 1 / -1;
}

.wallet-adjustment-table td:first-child,
.wallet-adjustment-table th:first-child {
  width: 44px;
  text-align: center;
}

.wallet-adjustment-table td strong + small,
.wallet-adjustment-table td a + small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.amount-credit {
  color: var(--green);
}

.amount-debit {
  color: #a43f2d;
}

.review-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(12, 24, 20, 0.46);
  backdrop-filter: blur(10px);
}

body.has-document-preview {
  overflow: hidden;
}

.document-preview-backdrop {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 20, 16, 0.66);
  backdrop-filter: blur(8px);
}

.document-preview-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(1180px, calc(100vw - 48px));
  height: min(900px, calc(100vh - 48px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  background: #f1f4f0;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.32);
}

.document-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.document-preview-header > div:first-child {
  min-width: 0;
}

.document-preview-header h2 {
  max-width: min(720px, 60vw);
  margin: 2px 0 0;
  overflow: hidden;
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.document-preview-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-button {
  display: inline-grid;
  width: 40px;
  height: 40px;
  min-height: 40px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  box-shadow: none;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

.document-preview-stage {
  min-height: 0;
  overflow: auto;
  background: #dfe4df;
}

.document-preview-stage iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.document-preview-stage img {
  display: block;
  max-width: 100%;
  min-height: 100%;
  margin: 0 auto;
  object-fit: contain;
}

.review-modal-card {
  width: min(920px, 100%);
  max-height: min(86vh, 820px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 28px;
  padding: 22px;
  background: rgba(255, 253, 250, 0.96);
  box-shadow: 0 28px 80px rgba(4, 24, 17, 0.26);
}

.review-reason-field {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.review-reason-field textarea {
  min-height: 96px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  background: white;
  color: var(--ink);
  font: inherit;
  resize: vertical;
}

.review-reason-field input {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 12px;
  background: white;
  color: var(--ink);
  font: inherit;
}

.customer-rfi-modal .muted {
  max-width: 680px;
  margin: 6px 0 0;
}

.customer-rejection-modal {
  width: min(560px, 100%);
  border-radius: 8px;
}

.rfi-modal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(160px, 0.6fr);
  gap: 12px;
}

.review-modal-actions {
  justify-content: flex-end;
  margin-top: 14px;
}

.screening-review-list {
  display: grid;
  gap: 10px;
}

.screening-review-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.35fr) minmax(120px, 0.45fr) minmax(150px, 0.55fr) minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 253, 250, 0.8);
}

.screening-review-row label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.screening-review-row select,
.screening-review-row input {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 10px;
  background: white;
  color: var(--ink);
  font: inherit;
}

.screening-review-row button {
  min-height: 38px;
  white-space: nowrap;
}

.screening-review-status {
  display: grid;
  gap: 5px;
  justify-items: start;
}

.screening-review-status small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.capability-grid,
.compact-access-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 10px;
}

.check-row {
  min-height: 44px;
  align-items: center;
  grid-template-columns: auto 1fr;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffdfa;
}

.check-row input {
  min-height: auto;
}

.compact-list {
  padding-top: 4px;
}

.portal-users {
  display: grid;
  gap: 12px;
}

.portal-users h3 {
  margin: 0;
  font-size: 15px;
}

.muted-command {
  color: var(--green);
  background: var(--green-soft);
}

.empty-state,
.error-panel,
.skeleton-panel {
  padding: 28px;
  color: var(--muted);
}

.skeleton-panel {
  display: grid;
  gap: 10px;
}

.skeleton-panel span {
  display: block;
  min-height: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, #eef3ed, #fff, #eef3ed);
}

.login-body {
  display: grid;
  min-height: 100vh;
  place-items: center;
  overflow: auto;
  background:
    radial-gradient(circle at 14% 12%, rgba(217, 167, 40, 0.22), transparent 24rem),
    radial-gradient(circle at 86% 16%, rgba(20, 104, 79, 0.18), transparent 28rem),
    linear-gradient(145deg, #f9fbf5 0%, #eef5ec 50%, #fff7dd 100%);
}

.shape-grade {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(118deg, transparent 0 17%, rgba(255, 255, 255, 0.22) 17.4% 18.2%, transparent 18.7% 100%),
    linear-gradient(64deg, transparent 0 41%, rgba(23, 108, 84, 0.08) 41.2% 51%, transparent 51.4% 100%),
    linear-gradient(143deg, transparent 0 62%, rgba(213, 154, 22, 0.12) 62.2% 70%, transparent 70.5% 100%);
}

.shape-grade span {
  position: absolute;
  display: block;
  opacity: 0.42;
  filter: blur(0.1px);
  clip-path: polygon(50% 0, 100% 28%, 78% 100%, 16% 78%, 0 24%);
  transform: rotate(-10deg) skew(-4deg);
}

.shape-grade span:nth-child(1) {
  left: max(-70px, -4vw);
  top: 7vh;
  width: clamp(220px, 26vw, 410px);
  height: clamp(300px, 38vw, 610px);
  background:
    linear-gradient(137deg, rgba(255, 255, 255, 0.42), rgba(213, 154, 22, 0.2) 44%, rgba(23, 108, 84, 0.1));
}

.shape-grade span:nth-child(2) {
  right: max(-110px, -7vw);
  top: 10vh;
  width: clamp(260px, 31vw, 520px);
  height: clamp(360px, 42vw, 680px);
  clip-path: polygon(28% 0, 100% 10%, 86% 88%, 18% 100%, 0 38%);
  background:
    linear-gradient(128deg, rgba(255, 255, 255, 0.36), rgba(23, 108, 84, 0.18) 48%, rgba(213, 154, 22, 0.1));
  transform: rotate(12deg) skew(5deg);
}

.shape-grade span:nth-child(3) {
  right: 20vw;
  bottom: -25vh;
  width: clamp(300px, 40vw, 660px);
  height: clamp(360px, 48vw, 760px);
  clip-path: polygon(42% 0, 94% 24%, 72% 100%, 8% 82%, 0 28%);
  background:
    linear-gradient(151deg, rgba(255, 255, 255, 0.32), rgba(213, 154, 22, 0.16) 42%, rgba(23, 108, 84, 0.12));
  transform: rotate(-22deg) skew(-8deg);
}

.login-body::before,
.login-body::after {
  position: fixed;
  content: "";
  border-radius: 999px;
  pointer-events: none;
}

.login-body::before {
  inset: auto auto -160px -140px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(28, 108, 82, 0.12);
  background: rgba(255, 255, 255, 0.28);
}

.login-body::after {
  inset: -190px -150px auto auto;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(217, 167, 40, 0.18);
  background: rgba(255, 255, 255, 0.22);
}

.login-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  padding: 22px;
}

.login-panel {
  position: relative;
  z-index: 1;
  overflow: hidden;
  align-self: center;
  padding: clamp(28px, 5vw, 42px);
  border: 1px solid rgba(28, 108, 82, 0.14);
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(246, 251, 244, 0.92)),
    radial-gradient(circle at 92% 14%, rgba(217, 167, 40, 0.12), transparent 13rem);
  box-shadow:
    0 34px 90px rgba(25, 58, 43, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.login-panel::after {
  position: absolute;
  right: -86px;
  bottom: -96px;
  width: 230px;
  height: 230px;
  content: "";
  border-radius: 999px;
  background: rgba(217, 167, 40, 0.12);
  pointer-events: none;
}

.login-brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 26px;
}

.login-logo-cluster {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
}

.login-logo-wrap {
  position: relative;
  z-index: 2;
  display: grid;
  width: 88px;
  height: 88px;
  padding: 6px;
  place-items: center;
  border: 1px solid rgba(28, 108, 82, 0.14);
  border-radius: 24px;
  background:
    radial-gradient(circle at 42% 28%, rgba(255, 255, 255, 0.96), transparent 4rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(226, 239, 228, 0.58));
  box-shadow:
    0 20px 42px rgba(28, 108, 82, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.magic-rings {
  position: absolute;
  right: -19px;
  top: 8px;
  z-index: 1;
  width: 48px;
  height: 48px;
  pointer-events: none;
}

.magic-rings i {
  position: absolute;
  inset: 8px;
  display: block;
  border: 1px solid rgba(23, 108, 84, 0.26);
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(213, 154, 22, 0.16);
  transform-origin: center;
  animation: magic-ring-pulse 4.8s ease-in-out infinite;
}

.magic-rings i:nth-child(2) {
  inset: 2px;
  border-color: rgba(213, 154, 22, 0.28);
  animation-delay: -1.4s;
}

.magic-rings i:nth-child(3) {
  inset: 15px;
  border-color: rgba(23, 108, 84, 0.32);
  animation-delay: -2.6s;
}

.login-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.login-brand strong,
.login-brand > div > span {
  display: block;
}

.login-brand strong {
  color: var(--ink);
  font-size: 30px;
  font-weight: 950;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.login-brand > div > span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-copy {
  position: relative;
  z-index: 1;
  margin-bottom: 22px;
}

.login-kicker {
  margin-bottom: 8px;
  color: var(--green);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.login-copy h1 {
  margin-bottom: 6px;
  font-size: clamp(38px, 7vw, 58px);
  letter-spacing: -0.075em;
  line-height: 0.96;
}

.reactbits-gradient-text {
  display: inline-block;
  width: fit-content;
  color: transparent;
  background:
    linear-gradient(
      to right,
      #12231c,
      #176c54,
      #d59a16,
      #1e6f96,
      #12231c
    );
  background-size: 300% 100%;
  background-repeat: repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 12px 28px rgba(23, 108, 84, 0.08);
  animation: reactbits-gradient-sweep 8s ease-in-out infinite alternate;
}

.login-shiny-line {
  margin-bottom: 10px !important;
  font-size: 12px;
  font-weight: 950 !important;
  letter-spacing: 0.16em;
  line-height: 1.2 !important;
  text-transform: uppercase;
}

.login-copy p:not(.login-kicker) {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 760;
  line-height: 1.55;
}

.shiny-text {
  display: inline-block;
  color: transparent !important;
  background:
    linear-gradient(
      110deg,
      var(--ink) 0%,
      var(--ink) 32%,
      rgba(213, 154, 22, 0.96) 45%,
      #ffffff 50%,
      rgba(23, 108, 84, 0.96) 56%,
      var(--ink) 68%,
      var(--ink) 100%
    );
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shiny-text-sweep 3.8s ease-in-out infinite;
}

.shiny-text.subtle {
  animation-duration: 4.8s;
}

.login-language {
  position: absolute;
  top: 26px;
  right: 26px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(14px);
}

.login-form {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
}

.auth-form[hidden],
.login-form [hidden] {
  display: none !important;
}

.login-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-form input,
.login-form select {
  width: 100%;
  min-height: 48px;
  padding: 0 15px;
  border: 1px solid rgba(28, 108, 82, 0.16);
  border-radius: 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  font: inherit;
  font-size: 15px;
  font-weight: 760;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.login-form input:focus,
.login-form select:focus {
  border-color: rgba(28, 108, 82, 0.42);
  box-shadow:
    0 0 0 4px rgba(28, 108, 82, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.login-form label > small {
  color: rgba(33, 57, 49, 0.65);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.45;
  text-transform: none;
}

.country-combobox {
  position: relative;
}

.country-combobox-results {
  position: absolute;
  z-index: 30;
  top: calc(100% - 22px);
  right: 0;
  left: 0;
  max-height: 290px;
  padding: 7px;
  overflow-y: auto;
  border: 1px solid rgba(28, 108, 82, 0.2);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 20px 48px rgba(16, 53, 41, 0.18);
  backdrop-filter: blur(18px);
}

.country-combobox-option {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 12px;
  border: 0;
  border-radius: 12px;
  color: var(--ink);
  background: transparent;
  text-align: left;
}

.country-combobox-option:hover,
.country-combobox-option.is-active {
  color: #0b513c;
  background: rgba(84, 171, 126, 0.12);
}

.country-combobox-option strong {
  font-size: 13px;
  line-height: 1.25;
}

.country-combobox-option span {
  flex: 0 0 auto;
  color: rgba(33, 57, 49, 0.58);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.05em;
}

.login-form .human-check input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  min-height: 36px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}

.login-form .human-check input[type="range"]::-webkit-slider-runnable-track {
  height: 8px;
  border: 1px solid rgba(17, 94, 64, 0.18);
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(123, 226, 84, 0.92), rgba(28, 126, 86, 0.82)),
    rgba(255, 255, 255, 0.88);
  box-shadow:
    inset 0 1px 2px rgba(10, 41, 30, 0.12),
    0 8px 18px rgba(28, 108, 82, 0.08);
}

.login-form .human-check input[type="range"]::-moz-range-track {
  height: 8px;
  border: 1px solid rgba(17, 94, 64, 0.18);
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(123, 226, 84, 0.92), rgba(28, 126, 86, 0.82)),
    rgba(255, 255, 255, 0.88);
  box-shadow:
    inset 0 1px 2px rgba(10, 41, 30, 0.12),
    0 8px 18px rgba(28, 108, 82, 0.08);
}

.login-form .human-check input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 30px;
  height: 30px;
  margin-top: -12px;
  border: 3px solid rgba(255, 255, 255, 0.96);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #ffffff 0 12%, transparent 13%),
    linear-gradient(145deg, #7de758, #138153);
  box-shadow:
    0 10px 22px rgba(17, 94, 64, 0.24),
    0 0 0 5px rgba(125, 231, 88, 0.14);
}

.login-form .human-check input[type="range"]::-moz-range-thumb {
  width: 30px;
  height: 30px;
  border: 3px solid rgba(255, 255, 255, 0.96);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #ffffff 0 12%, transparent 13%),
    linear-gradient(145deg, #7de758, #138153);
  box-shadow:
    0 10px 22px rgba(17, 94, 64, 0.24),
    0 0 0 5px rgba(125, 231, 88, 0.14);
}

.login-form .human-check.is-complete small::after {
  content: " Verified";
  color: #0f7a51;
  font-weight: 950;
}

.login-form .human-check small {
  color: rgba(10, 41, 30, 0.54);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: none;
}

.login-form .check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(10, 41, 30, 0.72);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.login-form .check-row input {
  width: 18px;
  min-height: 18px;
  height: 18px;
  padding: 0;
  accent-color: #126d49;
}

.login-form .policy-link {
  color: #0f6646;
  font-weight: 950;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.auth-success-card {
  gap: 16px;
  padding: 24px;
  border: 1px solid rgba(28, 108, 82, 0.14);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(244, 250, 236, 0.9)),
    radial-gradient(circle at 100% 0%, rgba(213, 154, 22, 0.16), transparent 42%);
  box-shadow: 0 24px 56px rgba(28, 108, 82, 0.12);
}

.success-orb {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(145deg, #11825a, #76d857);
  box-shadow: 0 18px 36px rgba(28, 108, 82, 0.2);
  font-size: 28px;
  font-weight: 950;
}

.auth-success-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: 28px;
  letter-spacing: -0.04em;
}

.auth-success-card p {
  margin: 0;
  color: rgba(10, 41, 30, 0.68);
  font-size: 14px;
  font-weight: 780;
  line-height: 1.55;
}

.success-details {
  display: grid;
  gap: 10px;
  margin: 0;
}

.success-details div {
  display: grid;
  gap: 4px;
  padding: 13px 14px;
  border: 1px solid rgba(28, 108, 82, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.success-details dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.success-details dd {
  margin: 0;
  color: var(--ink);
  overflow-wrap: anywhere;
  font-size: 14px;
  font-weight: 900;
}

.success-note {
  padding: 13px 14px;
  border-radius: 16px;
  background: rgba(213, 154, 22, 0.11);
}

.success-primary {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #fff;
  background: #127c58;
  box-shadow: 0 18px 38px rgba(28, 108, 82, 0.18);
  font-size: 15px;
  font-weight: 950;
  text-decoration: none;
}

.login-form button {
  width: 100%;
  min-height: 50px;
  margin-top: 4px;
  border-radius: 16px;
  font-size: 15px;
  letter-spacing: 0.02em;
  box-shadow: 0 18px 38px rgba(28, 108, 82, 0.18);
}

.auth-link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: -2px;
  font-size: 13px;
  font-weight: 900;
}

.auth-link-row.single {
  justify-content: center;
}

.auth-link-row a {
  color: #0f6646;
  text-decoration: none;
}

.auth-link-row a:hover {
  text-decoration: underline;
}

.auth-link-row a[hidden] {
  display: none !important;
}

#login-error,
#register-status,
#forgot-status,
#reset-status,
#verify-status {
  min-height: 22px;
  margin: 0;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
}

@keyframes shiny-text-sweep {
  0%, 18% {
    background-position: 140% 0;
  }
  52%, 100% {
    background-position: -40% 0;
  }
}

@keyframes magic-ring-pulse {
  0%, 100% {
    opacity: 0.24;
    transform: scale(0.82) rotate(0deg);
  }
  46% {
    opacity: 0.76;
    transform: scale(1.12) rotate(14deg);
  }
}

@keyframes reactbits-gradient-sweep {
  from {
    background-position: 0% 50%;
  }
  to {
    background-position: 100% 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shiny-text,
  .magic-rings i,
  .reactbits-gradient-text {
    animation: none;
  }

  .shiny-text {
    color: var(--ink) !important;
    background: none;
    -webkit-text-fill-color: currentColor;
  }

  .reactbits-gradient-text {
    color: var(--ink);
    background: none;
    -webkit-text-fill-color: currentColor;
  }
}

@media (max-width: 1180px) {
  .dashboard-grid,
  .dashboard-grid.compact,
  .risk-top-grid,
  .content-grid.three,
  .content-grid.two {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 820px) {
  body {
    padding-top: 54px;
  }

  body.login-body {
    padding-top: 0;
    overflow: auto;
  }

  .login-shell {
    padding: 14px;
  }

  .login-panel {
    padding: 22px;
    border-radius: 26px;
  }

  .login-language {
    position: relative;
    top: auto;
    right: auto;
    margin-bottom: 18px;
  }

  .mobile-nav-toggle {
    position: fixed;
    top: 10px;
    left: 12px;
    z-index: 45;
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    padding: 0 14px;
    border-radius: 999px;
    box-shadow: var(--shadow);
  }

  .shell-nav {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(84vw, 310px);
    padding-top: 58px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
    transform: translateX(-104%);
    transition: transform 0.22s ease;
  }

  body.nav-open .shell-nav {
    transform: translateX(0);
  }

  .app-shell {
    min-width: 0;
    margin-left: 0;
    padding: 14px;
    overflow-x: hidden;
  }

  .topbar > div,
  .page-frame,
  .mhc-rfq-clean,
  .mhc-deal-card,
  .mhc-converter {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  .topbar,
  .page-frame {
    overflow-x: hidden;
  }

  .tabs {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  h1 {
    overflow-wrap: anywhere;
    font-size: clamp(26px, 8vw, 34px);
    line-height: 1.05;
  }

  .institution-plaque {
    min-height: 270px;
    padding: 24px 18px;
    border-radius: 24px;
  }

  .institution-plaque::before {
    inset: 14px;
    border-radius: 18px;
  }

  .institution-plaque::after {
    inset: 24px;
    border-radius: 14px;
  }

  .plaque-logo-wrap {
    width: clamp(164px, 52vw, 220px);
    height: clamp(164px, 52vw, 220px);
    margin-bottom: 14px;
    border-radius: 28px;
  }

  .plaque-copy strong {
    font-size: clamp(22px, 7vw, 32px);
    letter-spacing: -0.025em;
  }

  .plaque-copy p {
    max-width: 260px;
    margin-inline: auto;
    font-size: 11px;
    line-height: 1.45;
  }

  .topbar,
  .merchant-header,
  .top-actions,
  .wallet-adjustment-form,
  .risk-editor,
  .risk-item-grid,
  .review-form-grid,
  .evidence-uploader,
  .ca-va-method-grid,
  .ca-lifecycle-grid,
  .dashboard-grid,
  .dashboard-grid.compact,
  .content-grid.two {
    grid-template-columns: 1fr;
  }

  .ca-va-method,
  .ca-va-method + .ca-va-method,
  .ca-lifecycle-grid > section,
  .ca-lifecycle-grid > section + section {
    padding: 14px 0;
    border-left: 0;
  }

  .ca-va-method + .ca-va-method,
  .ca-lifecycle-grid > section + section {
    border-top: 1px solid var(--line);
  }

  .kyc-party-grid,
  .party-evidence-grid {
    grid-template-columns: 1fr;
  }

  .wallet-adjustment-form .wallet-adjustment-note,
  .wallet-adjustment-form .muted {
    grid-column: 1;
  }

  .review-modal-backdrop {
    align-items: end;
    padding: 12px;
  }

  .document-preview-backdrop {
    padding: 8px;
  }

  .document-preview-shell {
    width: calc(100vw - 16px);
    height: calc(100vh - 16px);
  }

  .document-preview-header {
    align-items: flex-start;
    padding: 12px;
  }

  .document-preview-header h2 {
    max-width: calc(100vw - 170px);
    font-size: 15px;
  }

  .review-modal-card {
    max-height: 90vh;
    border-radius: 22px;
    padding: 16px;
  }

  .rfi-modal-grid {
    grid-template-columns: 1fr;
  }

  .screening-review-row {
    grid-template-columns: 1fr;
  }

  .topbar,
  .merchant-header,
  .top-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-ledger {
    align-items: flex-start;
    flex-direction: column;
  }

  .mhc-deal-card {
    padding: 16px;
    border-radius: 24px;
  }

  .mhc-deal-card::after {
    inset: 10px;
    border-radius: 18px;
  }

  .mhc-deal-top {
    grid-template-columns: 1fr;
  }

  .mhc-balance-strip {
    grid-template-columns: 1fr;
  }

  .mhc-converter {
    padding: 12px;
    border-radius: 22px;
  }

  .mhc-convert-row {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 16px;
    gap: 14px;
  }

  .mhc-currency-pill select {
    font-size: 24px;
  }

  .mhc-amount-input,
  .mhc-converted-preview {
    min-height: 62px;
    font-size: clamp(30px, 11vw, 44px);
  }

  .mhc-swap-button {
    width: 52px;
    height: 52px;
  }

  .mhc-rate-strip {
    display: grid;
  }

  .risk-top-grid,
  .content-grid.three,
  .capability-grid,
  .compact-access-form {
    grid-template-columns: 1fr;
  }

  .table-wrap {
    overflow: auto;
  }

  table {
    min-width: 860px;
  }

  .table-result-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .action-menu,
  .action-menu summary {
    width: 100%;
  }

  .action-menu summary {
    justify-content: center;
  }

  .action-menu div {
    position: static;
    min-width: 0;
    width: 100%;
  }

  .settings-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  body {
    overflow-x: hidden;
  }

  .app-shell {
    width: 100vw;
    max-width: 100vw;
  }

  .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }

  #page-title,
  .hero-copy,
  .mhc-deal-top h2,
  .mhc-deal-top p {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .mhc-deal-card {
    padding: 12px;
  }

  .mhc-converter {
    padding: 10px;
  }

  .mhc-convert-row {
    overflow: hidden;
    padding: 14px;
  }

  .mhc-currency-pill {
    grid-template-columns: 50px minmax(0, 1fr);
  }

  .mhc-currency-pill select {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .mhc-amount-input,
  .mhc-converted-preview {
    min-width: 0;
    max-width: 100%;
    padding: 0 12px;
    font-size: clamp(30px, 10vw, 38px);
  }
}

@media (max-width: 760px) {
  .hipayx-provider-head,
  .hipayx-balance-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .hipayx-provider-status {
    justify-content: flex-start;
  }

  .hipayx-payout-form,
  .hipayx-business-fields {
    grid-template-columns: 1fr;
  }

  .hipayx-payout-form .span-2 {
    grid-column: 1;
  }

  .hipayx-preview-panel {
    position: static;
    min-height: 0;
  }
}

.beneficiary-review-control {
  margin-bottom: 20px;
}

.beneficiary-review-control-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(320px, 1.5fr) auto;
  gap: 14px;
  align-items: end;
  margin: 18px 0 12px;
}

.beneficiary-review-toggle {
  display: flex;
  gap: 12px;
  align-items: center;
}

.beneficiary-review-toggle input {
  width: 42px;
  height: 24px;
  accent-color: var(--accent, #087a5b);
}

.beneficiary-review-toggle span,
.beneficiary-review-control-grid label:not(.beneficiary-review-toggle) {
  display: grid;
  gap: 5px;
}

.beneficiary-review-toggle small {
  color: var(--muted, #66716d);
}

.screening-inline-review {
  display: grid;
  min-width: 270px;
  gap: 8px;
}

.screening-inline-review label {
  display: grid;
  gap: 4px;
}

.screening-inline-review label > span {
  color: var(--muted, #66716d);
  font-size: 12px;
}

@media (max-width: 980px) {
  .beneficiary-review-control-grid {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
}
