:root {
  --navy-950: #041426;
  --navy-900: #071b35;
  --navy-800: #0a294b;
  --blue-700: #08659f;
  --blue-600: #087dbb;
  --blue-500: #139bd2;
  --cyan-400: #37c5e8;
  --ink: #10243b;
  --muted: #687b8e;
  --line: #dbe6ef;
  --soft: #f3f7fb;
  --white: #fff;
  --green: #12805c;
  --green-soft: #e9f8f2;
  --amber: #a66408;
  --amber-soft: #fff5df;
  --red: #b82f3a;
  --red-soft: #fff0f1;
  --violet: #6551c9;
  --shadow: 0 20px 55px rgba(8, 40, 70, .11);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.hidden { display: none !important; }
.eyebrow {
  display: inline-block;
  color: var(--blue-500);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .18em;
  text-transform: uppercase;
}

/* Login — exact 60:40 split */
.login-body { overflow: hidden; background: var(--white); }
.login-layout {
  display: grid;
  grid-template-columns: minmax(0, 60%) minmax(380px, 40%);
  min-height: 100vh;
}
.login-brand {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: clamp(32px, 5vh, 62px) clamp(36px, 6vw, 105px) clamp(28px, 4vh, 48px);
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 16% 17%, rgba(38, 143, 204, .34), transparent 31%),
    radial-gradient(circle at 86% 74%, rgba(25, 163, 206, .26), transparent 33%),
    linear-gradient(142deg, #041426 0%, #071c37 48%, #0a416d 100%);
}
.login-brand::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  opacity: .26;
  background-image:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: linear-gradient(120deg, #000, transparent 75%);
}
.login-brand::after {
  position: absolute;
  z-index: -1;
  right: -13vw;
  bottom: -25vh;
  width: 48vw;
  height: 48vw;
  min-width: 620px;
  min-height: 620px;
  content: "";
  border: 1px solid rgba(85, 210, 239, .15);
  border-radius: 50%;
  box-shadow: 0 0 0 75px rgba(68, 194, 229, .035), 0 0 0 150px rgba(68, 194, 229, .025);
}
.brand-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo-shell {
  display: inline-flex;
  width: min(330px, 47%);
  min-width: 230px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 35px rgba(0, 0, 0, .16);
}
.logo-shell img { display: block; width: 100%; height: auto; }
.secure-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  color: #cfe7f4;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}
.pulse { width: 7px; height: 7px; border-radius: 50%; background: #4be0b0; box-shadow: 0 0 0 5px rgba(75,224,176,.12); }
.brand-copy { max-width: 780px; margin: clamp(38px, 6vh, 82px) 0; }
.brand-copy h1 {
  margin: 16px 0 24px;
  font-size: clamp(42px, 5vw, 78px);
  font-weight: 780;
  line-height: 1.02;
  letter-spacing: -.055em;
}
.brand-copy h1 em { color: #a9e9f8; font-style: normal; font-weight: 360; }
.brand-copy > p { max-width: 670px; margin: 0; color: #c5d9e8; font-size: clamp(16px, 1.35vw, 20px); line-height: 1.65; }
.brand-stats { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 720px; margin-top: 44px; border-top: 1px solid rgba(255,255,255,.14); }
.brand-stats div { display: flex; flex-direction: column; padding: 22px 24px 0 0; }
.brand-stats b { color: #fff; font-size: 21px; }
.brand-stats span { margin-top: 5px; color: #a9c3d6; font-size: 12px; line-height: 1.4; }
.trust-row { display: flex; flex-wrap: wrap; gap: 12px 28px; color: #bcd3e2; font-size: 12px; font-weight: 650; }
.login-access {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: clamp(32px, 6vw, 88px);
  background: #fff;
}
.login-access::before { position: absolute; top: 0; left: 0; width: 4px; height: 100%; content: ""; background: linear-gradient(#30bde4, #0b5e98); }
.login-card { width: min(420px, 100%); }
.login-card h2 { margin: 10px 0 9px; color: var(--navy-900); font-size: clamp(34px, 3vw, 45px); letter-spacing: -.04em; }
.login-card > p { margin: 0 0 32px; color: var(--muted); line-height: 1.65; }
.login-card label { margin-bottom: 18px; }
.field { position: relative; display: flex; align-items: center; }
.field > span { position: absolute; left: 15px; z-index: 1; width: 24px; color: #86a0b5; font-size: 12px; font-weight: 800; text-align: center; pointer-events: none; }
.field input { padding-left: 50px; }
.login-note { display: flex; align-items: flex-start; gap: 9px; margin-top: 22px; color: #8a9aac; font-size: 11px; line-height: 1.5; }

/* Shared controls */
label { display: flex; flex-direction: column; gap: 8px; color: #263b50; font-size: 12px; font-weight: 760; }
label > span { color: var(--blue-600); }
label em { color: #8091a2; font-size: 11px; font-style: normal; font-weight: 500; }
label small { color: #8091a2; font-size: 10px; font-weight: 500; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: 0;
  background: #fff;
  color: var(--ink);
  padding: 13px 14px;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
input::placeholder, textarea::placeholder { color: #9aabb9; }
input:focus, select:focus, textarea:focus { border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(20, 154, 209, .11); }
textarea { min-height: 92px; resize: vertical; line-height: 1.5; }
button, .primary, .secondary, .ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  padding: 11px 17px;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
  transition: transform .18s, box-shadow .18s, background .18s;
}
button:hover, .primary:hover, .secondary:hover, .ghost:hover { transform: translateY(-1px); }
.primary { color: #fff; background: linear-gradient(135deg, var(--blue-600), #07538d); box-shadow: 0 10px 22px rgba(8, 112, 168, .18); }
.secondary { color: #fff; background: var(--navy-900); }
.ghost { color: var(--blue-700); border: 1px solid #bcd8e9; background: #f6fbfe; }
.large { min-height: 50px; padding: 14px 20px; }
.login-card .primary { width: 100%; }
.alert { max-width: 1280px; margin: 0 auto 18px; border: 1px solid transparent; border-radius: 12px; padding: 13px 16px; font-size: 13px; font-weight: 650; }
.alert.success { color: #0b6b4a; border-color: #bce7d6; background: var(--green-soft); }
.alert.error { color: #9c2631; border-color: #f0c1c5; background: var(--red-soft); }

/* Portal shell */
.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  min-height: 76px;
  gap: 18px;
  padding: 11px clamp(18px, 4vw, 64px);
  border-bottom: 1px solid rgba(209, 222, 233, .85);
  background: rgba(255,255,255,.94);
  box-shadow: 0 8px 30px rgba(24, 55, 82, .05);
  backdrop-filter: blur(14px);
}
.top-logo { display: inline-flex; width: 205px; min-width: 170px; padding: 5px 8px; border-radius: 6px; background: #fff; }
.top-logo img { display: block; width: 100%; }
.product-name { display: flex; flex-direction: column; padding-left: 18px; border-left: 1px solid var(--line); }
.product-name b { font-size: 14px; }
.product-name span { margin-top: 2px; color: var(--muted); font-size: 10px; }
.user-chip { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.user-chip > span { display: grid; place-items: center; width: 38px; height: 38px; color: #fff; border-radius: 12px; background: linear-gradient(145deg, #0a74ad, #072340); font-weight: 900; }
.user-chip div { display: flex; flex-direction: column; }
.user-chip b { font-size: 12px; }
.user-chip small { color: var(--muted); font-size: 9px; }
.logout { min-height: 36px; color: #53677a; border: 1px solid var(--line); background: #fff; font-size: 11px; }
.workspace { width: min(1380px, calc(100% - 40px)); margin: 0 auto; padding: 34px 0 60px; }
.dashboard-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: 220px;
  overflow: hidden;
  border-radius: 24px;
  padding: clamp(28px, 4vw, 48px);
  color: #fff;
  background: radial-gradient(circle at 85% 10%, rgba(54,196,232,.23), transparent 35%), linear-gradient(125deg, #051629, #0a2e53 62%, #0a6a9d);
  box-shadow: 0 24px 55px rgba(7, 40, 73, .18);
}
.dashboard-hero::after { position: absolute; z-index: -1; right: -110px; bottom: -190px; width: 420px; height: 420px; content: ""; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; box-shadow: 0 0 0 70px rgba(255,255,255,.025), 0 0 0 140px rgba(255,255,255,.02); }
.dashboard-hero h1 { margin: 9px 0; font-size: clamp(30px, 3.6vw, 48px); letter-spacing: -.045em; }
.dashboard-hero p { margin: 0; color: #c7d9e7; font-size: 15px; }
.hero-orbit { display: grid; grid-template-columns: repeat(2, minmax(115px, 1fr)); gap: 10px; min-width: 280px; }
.hero-orbit div { display: flex; flex-direction: column; padding: 17px 18px; border: 1px solid rgba(255,255,255,.12); border-radius: 15px; background: rgba(255,255,255,.07); backdrop-filter: blur(8px); }
.hero-orbit b { font-size: 25px; }
.hero-orbit span { margin-top: 3px; color: #bcd2e2; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 18px 0 26px; }
.metric-grid article { display: flex; align-items: center; gap: 14px; min-height: 88px; padding: 17px 19px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 10px 28px rgba(16, 54, 84, .045); }
.metric-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; font-weight: 900; }
.metric-icon.blue { color: #0874b1; background: #e8f5fb; }
.metric-icon.amber { color: var(--amber); background: var(--amber-soft); }
.metric-icon.violet { color: var(--violet); background: #efedff; }
.metric-icon.green { color: var(--green); background: var(--green-soft); }
.metric-grid article div { display: flex; flex-direction: column; }
.metric-grid small { color: var(--muted); font-size: 10px; }
.metric-grid b { margin-top: 2px; font-size: 24px; }
.tabs { display: flex; align-items: center; gap: 7px; margin: 0 0 16px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: 0 0 auto; min-height: 42px; color: #5f7184; border: 1px solid var(--line); background: #fff; font-size: 11px; }
.tab span { display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: #edf3f8; font-size: 9px; }
.tab.active { color: #fff; border-color: var(--navy-900); background: var(--navy-900); box-shadow: 0 8px 20px rgba(7, 27, 53, .15); }
.tab.active span { color: var(--navy-900); background: #fff; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); background: #fff; box-shadow: var(--shadow); }
.panel-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.panel-title h2 { margin: 7px 0 4px; color: var(--navy-900); font-size: 25px; letter-spacing: -.025em; }
.panel-title p { margin: 0; color: var(--muted); font-size: 12px; }
.step-chip { flex: 0 0 auto; padding: 8px 11px; color: var(--blue-700); border: 1px solid #c8e2ef; border-radius: 999px; background: #f3fbfe; font-size: 10px; font-weight: 800; }
.request-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 22px; }
.wide { grid-column: 1 / -1; }
.section-label { display: flex; align-items: center; gap: 15px; margin: 3px 0 -4px; color: #8797a6; font-size: 9px; font-weight: 850; letter-spacing: .15em; }
.section-label::before, .section-label::after { height: 1px; content: ""; background: var(--line); }
.section-label::before { width: 18px; }
.section-label::after { flex: 1; }
.check { flex-direction: row; align-items: flex-start; gap: 10px; padding: 13px 15px; border: 1px solid #d8e7ef; border-radius: 12px; background: #f8fbfd; line-height: 1.5; }
.check input { width: auto; margin-top: 2px; }
.check span { color: #44596c; }
.form-footer { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-top: 5px; padding-top: 20px; border-top: 1px solid var(--line); }
.form-footer div { display: flex; flex-direction: column; }
.form-footer b { font-size: 12px; }
.form-footer span { margin-top: 3px; color: var(--muted); font-size: 10px; }
.list-title { align-items: center; }
.search { position: relative; width: min(370px, 100%); }
.search > span { position: absolute; z-index: 1; top: 50%; left: 14px; transform: translateY(-50%); color: #7e92a5; font-size: 20px; }
.search input { padding-left: 43px; }
.request-list { display: grid; gap: 15px; }
.request-card { border: 1px solid var(--line); border-radius: 16px; padding: 21px; background: linear-gradient(180deg, #fff, #fbfdff); transition: border-color .18s, box-shadow .18s, transform .18s; }
.request-card:hover { transform: translateY(-1px); border-color: #bed7e6; box-shadow: 0 14px 35px rgba(14, 56, 87, .07); }
.request-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.request-id { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; color: var(--blue-700); font-size: 10px; font-weight: 850; letter-spacing: .06em; }
.request-head h3 { margin: 6px 0 4px; font-size: 19px; }
.request-head p { margin: 0; color: var(--muted); font-size: 11px; }
.urgency { padding: 4px 7px; border-radius: 999px; font-size: 8px; letter-spacing: .04em; }
.urgency.normal { color: #426173; background: #eef4f7; }
.urgency.urgent { color: var(--amber); background: var(--amber-soft); }
.urgency.critical { color: var(--red); background: var(--red-soft); }
.amount { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; color: var(--navy-900); font-size: 23px; font-weight: 850; }
.amount small { margin-top: 2px; color: var(--muted); font-size: 8px; font-weight: 650; text-transform: uppercase; }
.purpose { margin: 15px 0; color: #53677a; font-size: 12px; line-height: 1.6; }
.status-line { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 13px 0; }
.status-line > span { padding: 6px 8px; border-radius: 7px; color: #5a6e80; background: #eff4f7; font-size: 9px; }
.status-line .status { font-weight: 850; }
.status.good { color: var(--green); background: var(--green-soft); }
.status.bad { color: var(--red); background: var(--red-soft); }
.status.warn { color: var(--amber); background: var(--amber-soft); }
.status.pending { color: #53677a; background: #edf3f7; }
.request-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.request-grid div { display: flex; flex-direction: column; min-width: 0; padding: 10px 11px; border: 1px solid #e5edf3; border-radius: 9px; background: #f9fbfd; }
.request-grid span { color: #8191a1; font-size: 8px; text-transform: uppercase; letter-spacing: .06em; }
.request-grid b { margin-top: 4px; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.documents { display: flex; align-items: flex-start; gap: 14px; margin-top: 14px; }
.documents > span { padding-top: 6px; color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.documents div { display: flex; flex-wrap: wrap; gap: 6px; }
.documents a { padding: 5px 8px; color: var(--blue-700); border: 1px solid #cce0eb; border-radius: 7px; background: #f6fbfd; font-size: 9px; font-weight: 700; text-decoration: none; }
.payment-records { display: grid; gap: 6px; margin-top: 14px; padding: 11px; border-radius: 10px; background: #edf8f4; }
.payment-records div { display: flex; justify-content: space-between; gap: 15px; color: #27634f; font-size: 10px; }
.card-actions { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
details { min-width: 190px; flex: 1; border: 1px solid #dce7ee; border-radius: 10px; background: #fff; }
summary { padding: 11px 13px; color: #365066; cursor: pointer; font-size: 10px; font-weight: 800; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { float: right; content: "+"; color: var(--blue-600); font-size: 15px; }
details[open] { flex-basis: 100%; box-shadow: 0 10px 30px rgba(11, 56, 90, .06); }
details[open] summary { border-bottom: 1px solid var(--line); }
details[open] summary::after { content: "−"; }
.action-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 15px; background: #fbfdfe; }
.action-form.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.action-form textarea { min-height: 70px; }
.payment-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 15px 15px 0; background: #fbfdfe; }
.settlement-figures { display: flex; flex-wrap: wrap; gap: 7px; }
.settlement-figures span { padding: 7px 9px; border-radius: 7px; background: #edf4f8; font-size: 9px; font-weight: 750; }
.empty { padding: 54px 20px; color: var(--muted); text-align: center; }
.empty > div { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto 12px; color: var(--green); border-radius: 50%; background: var(--green-soft); font-weight: 900; }
.empty h3 { margin: 0; color: var(--ink); }
.empty p { margin: 6px 0 0; font-size: 11px; }
footer { padding: 22px; color: #7c8d9d; font-size: 9px; text-align: center; }

@media (max-width: 1100px) {
  .login-layout { grid-template-columns: minmax(0, 60%) minmax(380px, 40%); }
  .login-brand { padding-left: 52px; padding-right: 52px; }
  .secure-chip { display: none; }
  .request-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .login-body { overflow: auto; }
  .login-layout { display: block; }
  .login-brand { min-height: 45vh; padding: 28px 26px; }
  .logo-shell { width: 245px; min-width: 0; }
  .brand-copy { margin: 42px 0 20px; }
  .brand-copy h1 { font-size: clamp(37px, 10vw, 52px); }
  .brand-copy > p { font-size: 14px; }
  .brand-stats, .trust-row { display: none; }
  .login-access { min-height: 55vh; padding: 42px 26px; }
  .login-access::before { top: 0; width: 100%; height: 4px; }
  .topbar { min-height: 68px; padding: 10px 14px; }
  .top-logo { width: 170px; min-width: 145px; }
  .product-name, .user-chip div { display: none; }
  .user-chip { margin-left: auto; }
  .workspace { width: min(100% - 24px, 1380px); padding-top: 18px; }
  .dashboard-hero { min-height: auto; padding: 28px 24px; }
  .hero-orbit { display: none; }
  .dashboard-hero h1 { font-size: 31px; }
  .metric-grid { gap: 8px; }
  .metric-grid article { min-height: 72px; padding: 12px; }
  .metric-grid b { font-size: 20px; }
  .panel { padding: 18px 15px; }
  .panel-title { margin-bottom: 20px; }
  .request-form { grid-template-columns: 1fr; }
  .wide { grid-column: auto; }
  .form-footer, .list-title { align-items: stretch; flex-direction: column; }
  .form-footer .primary { width: 100%; }
  .search { width: 100%; }
  .request-head { gap: 10px; }
  .request-head h3 { font-size: 17px; }
  .amount { font-size: 18px; }
  .request-grid { grid-template-columns: 1fr 1fr; }
  .action-form.two-col { grid-template-columns: 1fr; }
  .action-form .wide { grid-column: auto; }
  details { flex-basis: 100%; }
}

@media (max-width: 480px) {
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric-icon { width: 35px; height: 35px; border-radius: 10px; }
  .request-card { padding: 16px 13px; }
  .request-grid { grid-template-columns: 1fr; }
  .payment-records div { flex-direction: column; gap: 3px; }
  .documents { flex-direction: column; gap: 5px; }
  .top-logo { width: 145px; }
  .user-chip > span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

/* Build 1.1 — premium login ribbon and role-specific workspaces */
.brand-copy { margin: clamp(24px, 4vh, 48px) 0 26px; }
.brand-copy h1 { margin-bottom: 18px; }
.brand-stats { margin-top: 28px; }
.relationship-ribbon { position: relative; min-width: 0; margin-top: auto; }
.ribbon-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 11px; }
.ribbon-heading span { color: #9cddf0; font-size: 9px; font-weight: 850; letter-spacing: .17em; }
.ribbon-heading small { color: #91adbf; font-size: 9px; }
.ribbon-viewport {
  position: relative;
  overflow: hidden;
  padding: 3px 0 5px;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.ribbon-track { display: flex; width: max-content; animation: client-ribbon 38s linear infinite; }
.ribbon-group { display: flex; flex: 0 0 auto; gap: 10px; padding-right: 10px; }
.client-logo-tile {
  display: grid;
  place-items: center;
  width: 112px;
  height: 62px;
  padding: 9px 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .16);
}
.client-logo-tile img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.relationship-ribbon:hover .ribbon-track { animation-play-state: paused; }
@keyframes client-ribbon { to { transform: translateX(-50%); } }

.portal-body {
  background:
    radial-gradient(circle at 4% 8%, rgba(19,155,210,.10), transparent 26%),
    radial-gradient(circle at 94% 26%, rgba(101,81,201,.06), transparent 24%),
    #f3f7fb;
}
.portal-body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  opacity: .5;
  background-image: linear-gradient(rgba(9,57,94,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(9,57,94,.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(#000, transparent 70%);
}
.topbar { min-height: 80px; border-bottom-color: rgba(205,220,231,.7); box-shadow: 0 10px 34px rgba(13, 50, 79, .07); }
.workspace-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  color: #426075;
  border: 1px solid #d9e6ee;
  border-radius: 999px;
  background: #f8fbfd;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.workspace-badge i { width: 7px; height: 7px; border-radius: 50%; background: #20b782; box-shadow: 0 0 0 4px rgba(32,183,130,.11); }
.dashboard-hero { min-height: 238px; border: 1px solid rgba(255,255,255,.09); }
.hero-copy { max-width: 760px; }
.hero-copy p { max-width: 690px; line-height: 1.65; }
.hero-action {
  margin-top: 23px;
  min-height: 44px;
  color: #06223d;
  background: linear-gradient(135deg, #c4f1fb, #fff);
  box-shadow: 0 12px 30px rgba(0,0,0,.16);
}
.hero-action span { font-size: 16px; }
.metric-grid article { position: relative; overflow: hidden; }
.metric-grid article::after { position: absolute; right: -22px; bottom: -28px; width: 65px; height: 65px; content: ""; border: 1px solid rgba(10,104,158,.08); border-radius: 50%; }
.activity-bar {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: -9px 0 22px;
  padding: 13px 16px;
  border: 1px solid #d8e7ef;
  border-radius: 14px;
  background: rgba(255,255,255,.84);
  box-shadow: 0 9px 24px rgba(16,54,84,.045);
  backdrop-filter: blur(8px);
}
.activity-icon { display: grid; place-items: center; flex: 0 0 auto; width: 34px; height: 34px; color: #0878b5; border-radius: 10px; background: #e9f6fb; font-weight: 900; }
.activity-bar div { min-width: 0; }
.activity-bar b { font-size: 10px; }
.activity-bar p { margin: 3px 0 0; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.activity-bar time { flex: 0 0 auto; margin-left: auto; color: #8495a4; font-size: 9px; }
.tabs { gap: 9px; }
.tab { position: relative; gap: 8px; min-height: 46px; padding: 11px 16px; border-radius: 12px; }
.tab-icon { display: grid !important; place-items: center; width: 23px; height: 23px; min-width: 23px !important; padding: 0 !important; color: #537086; border-radius: 7px !important; background: #edf4f8 !important; font-size: 11px !important; }
.tab-label { display: inline !important; min-width: 0 !important; height: auto !important; padding: 0 !important; border-radius: 0 !important; background: transparent !important; font-size: inherit !important; }
.tab-count { min-width: 20px !important; }
.tab.active .tab-icon { color: var(--navy-900); background: #fff !important; }
.panel { border-color: #d7e4ec; box-shadow: 0 22px 60px rgba(8,40,70,.09); }
.owner-panel { border-top: 3px solid #149bd1; }
.request-card { border-color: #dbe6ed; box-shadow: 0 7px 22px rgba(16,54,84,.035); }
.payment-guide { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; padding: 15px 15px 0; background: #fbfdfe; }
.payment-guide span { display: flex; align-items: center; gap: 8px; padding: 10px; color: #506779; border: 1px solid #dfeaf0; border-radius: 9px; background: #fff; font-size: 9px; font-weight: 700; }
.payment-guide b { display: grid; place-items: center; flex: 0 0 auto; width: 20px; height: 20px; color: #fff; border-radius: 50%; background: var(--blue-600); font-size: 9px; }
.receipt-instruction { margin: 0; padding: 12px 15px 2px; color: #687c8e; background: #fbfdfe; font-size: 10px; line-height: 1.55; }
.receipt-instruction b { color: #183950; }

@media (max-width: 820px) {
  .login-brand { min-height: 500px; padding: 24px 22px 20px; }
  .brand-top { gap: 12px; }
  .brand-copy { margin: 30px 0 22px; }
  .brand-copy h1 { margin: 12px 0 15px; font-size: clamp(34px, 9.5vw, 47px); }
  .brand-copy > p { font-size: 13px; line-height: 1.55; }
  .relationship-ribbon { margin-top: auto; }
  .ribbon-heading { margin-bottom: 8px; }
  .ribbon-heading small { display: none; }
  .client-logo-tile { width: 92px; height: 54px; padding: 8px 10px; border-radius: 10px; }
  .ribbon-track { animation-duration: 32s; }
  .login-access { min-height: 510px; padding: 42px 24px 50px; }
  .portal-body { padding-bottom: calc(82px + env(safe-area-inset-bottom)); }
  .topbar { min-height: 66px; }
  .workspace-badge { margin-left: auto; }
  .user-chip { margin-left: 0; }
  .dashboard-hero { min-height: 0; padding: 27px 23px 30px; }
  .hero-action { width: 100%; margin-top: 21px; }
  .metric-grid { margin-bottom: 19px; }
  .metric-grid article { min-height: 78px; }
  .activity-bar { margin: -2px 0 17px; }
  .activity-bar p { display: -webkit-box; white-space: normal; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .activity-bar time { display: none; }
  .tabs {
    position: fixed;
    z-index: 60;
    right: 0;
    bottom: 0;
    left: 0;
    justify-content: space-around;
    gap: 3px;
    margin: 0;
    padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
    overflow: visible;
    border-top: 1px solid #d9e5ed;
    background: rgba(255,255,255,.97);
    box-shadow: 0 -12px 35px rgba(9,43,70,.12);
    backdrop-filter: blur(16px);
  }
  .tab { flex: 1 1 0; flex-direction: column; gap: 3px; min-width: 0; min-height: 59px; padding: 6px 3px; border: 0; border-radius: 11px; background: transparent; font-size: 8px; }
  .tab-icon { width: 25px; height: 25px; min-width: 25px !important; }
  .tab-label { display: block !important; width: 100%; overflow: hidden; padding: 0 !important; font-size: 8px !important; text-overflow: ellipsis; white-space: nowrap; }
  .tab-count { position: absolute; top: 3px; left: calc(50% + 9px); min-width: 16px !important; height: 16px !important; padding: 0 4px !important; color: #fff; background: #d24754 !important; font-size: 7px !important; }
  .tab.active { background: linear-gradient(145deg, #071b35, #0a5684); box-shadow: 0 8px 18px rgba(7,39,68,.18); }
  .panel { border-radius: 17px; }
  .panel-title h2 { font-size: 22px; }
  .payment-guide { grid-template-columns: 1fr; }
  .payment-tools > a { flex: 1 1 100%; }
  .receipt-instruction { padding-bottom: 8px; }
}

@media (max-width: 480px) {
  .logo-shell { width: 210px; }
  .top-logo { width: 135px; min-width: 125px; }
  .workspace-badge { display: none; }
  .dashboard-hero h1 { font-size: 29px; }
  .dashboard-hero p { font-size: 13px; line-height: 1.55; }
  .metric-grid article { gap: 10px; padding: 11px; }
  .metric-grid small { font-size: 8px; }
  .metric-grid b { font-size: 19px; }
  .activity-bar { align-items: flex-start; padding: 12px; }
  .panel { padding: 17px 13px; }
  .panel-title { gap: 10px; }
  .step-chip { padding: 6px 8px; font-size: 8px; }
  .request-head { flex-direction: column; }
  .amount { align-items: flex-start; }
  .form-footer { padding-top: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .ribbon-track { animation: none !important; }
}

/* Build 1.2 — premium access, uncropped relationship ribbon and payment modes */
.login-brand {
  padding-top: clamp(34px, 4.6vh, 54px);
  padding-bottom: clamp(24px, 3.5vh, 38px);
}
.login-brand::before {
  opacity: .34;
  background-size: 64px 64px;
}
.brand-copy { margin: clamp(28px, 4.7vh, 56px) 0 20px; }
.brand-copy h1 { max-width: 840px; margin-top: 14px; font-size: clamp(44px, 4.65vw, 72px); }
.brand-copy > p { max-width: 710px; color: #c9deeb; }
.control-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 760px;
  margin-top: 28px;
}
.control-rail > div {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid rgba(169,233,248,.16);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(255,255,255,.085), rgba(255,255,255,.035));
  box-shadow: inset 0 1px rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
}
.control-rail i {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 31px;
  height: 31px;
  color: #bceefa;
  border: 1px solid rgba(169,233,248,.22);
  border-radius: 9px;
  background: rgba(3,20,38,.28);
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
}
.control-rail span { display: flex; min-width: 0; flex-direction: column; }
.control-rail b { color: #fff; font-size: 11px; }
.control-rail small { margin-top: 2px; overflow: hidden; color: #9db9cc; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }

.relationship-ribbon { flex: 0 0 auto; margin-top: clamp(20px, 3vh, 34px); }
.ribbon-heading { margin-bottom: 9px; }
.ribbon-viewport {
  min-height: 82px;
  padding: 7px 72px 8px;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.ribbon-group { gap: 12px; padding-right: 12px; }
.client-logo-tile {
  width: 124px;
  height: 68px;
  padding: 11px 14px;
  border-color: rgba(255,255,255,.38);
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(0,0,0,.2), inset 0 0 0 1px rgba(8,53,83,.035);
}
.client-logo-tile img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center;
}
.trust-row { gap: 12px 24px; margin-top: 9px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.08); }

.login-access {
  isolation: isolate;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 14%, rgba(40,182,224,.08), transparent 29%),
    radial-gradient(circle at 92% 88%, rgba(8,101,159,.06), transparent 31%),
    #fff;
}
.login-access::after {
  position: absolute;
  z-index: -2;
  inset: 0;
  content: "";
  opacity: .45;
  background-image: radial-gradient(rgba(11,92,143,.11) .65px, transparent .65px);
  background-size: 18px 18px;
  mask-image: linear-gradient(140deg, #000, transparent 64%);
}
.access-aura { position: absolute; z-index: -1; border: 1px solid rgba(10,120,183,.1); border-radius: 50%; pointer-events: none; }
.aura-one { top: -170px; right: -170px; width: 420px; height: 420px; box-shadow: 0 0 0 65px rgba(17,145,202,.025); }
.aura-two { bottom: -190px; left: -160px; width: 360px; height: 360px; box-shadow: 0 0 0 55px rgba(17,145,202,.022); }
.login-card {
  position: relative;
  width: min(450px, 100%);
  padding: clamp(28px, 3.4vw, 42px);
  border: 1px solid rgba(209,225,235,.95);
  border-radius: 25px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 34px 85px rgba(7,42,70,.13), 0 3px 12px rgba(7,42,70,.045), inset 0 1px #fff;
  backdrop-filter: blur(16px);
}
.login-card::before {
  position: absolute;
  top: 0;
  right: 30px;
  left: 30px;
  height: 3px;
  content: "";
  border-radius: 0 0 99px 99px;
  background: linear-gradient(90deg, transparent, #21b4dd, #0c6fa9, transparent);
}
.login-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 26px; }
.access-shield { display: grid; place-items: center; width: 42px; height: 42px; color: #fff; border-radius: 13px; background: linear-gradient(145deg, #12a2d3, #075183); box-shadow: 0 10px 24px rgba(8,107,163,.22); }
.access-shield svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.session-chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; color: #526d80; border: 1px solid #dbe8ef; border-radius: 999px; background: #f7fbfd; font-size: 9px; font-weight: 800; letter-spacing: .02em; }
.session-chip i { width: 6px; height: 6px; border-radius: 50%; background: #1ab67e; box-shadow: 0 0 0 4px rgba(26,182,126,.11); }
.login-card h2 { font-size: clamp(37px, 3vw, 47px); }
.login-card > p { margin-bottom: 17px; }
.access-personas { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 27px; }
.access-personas span { padding: 6px 8px; color: #557184; border: 1px solid #e0eaf0; border-radius: 7px; background: #f8fbfd; font-size: 8px; font-weight: 750; }
.login-card .field input { min-height: 50px; border-color: #d5e2ea; background: rgba(255,255,255,.9); }
.login-card .primary { min-height: 52px; border-radius: 12px; background: linear-gradient(112deg, #1196cb, #096ba5 54%, #064b7b); box-shadow: 0 15px 30px rgba(7,102,159,.22); }
.login-note { padding: 12px 13px; border: 1px solid #e4edf2; border-radius: 10px; background: #fafcfd; }
.login-note > span { color: #1284bc; font-weight: 900; }
.access-footer { position: absolute; right: clamp(22px, 4vw, 58px); bottom: 22px; left: clamp(22px, 4vw, 58px); display: flex; justify-content: space-between; gap: 15px; color: #8a9baa; font-size: 8px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }

.payment-method-picker { min-width: 0; margin: 2px 0 0; border: 0; padding: 0; }
.payment-method-picker legend { margin-bottom: 9px; color: #263b50; font-size: 12px; font-weight: 760; }
.payment-method-picker legend span { color: var(--blue-600); }
.method-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.method-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 13px;
  min-height: 88px;
  padding: 15px 16px;
  border: 1px solid #d8e5ed;
  border-radius: 15px;
  background: linear-gradient(145deg, #fff, #f7fafc);
  cursor: pointer;
  transition: border-color .18s, box-shadow .18s, transform .18s, background .18s;
}
.method-card:hover { transform: translateY(-1px); border-color: #b9d8e8; box-shadow: 0 12px 28px rgba(12,62,94,.07); }
.method-card:has(input:checked) { border-color: #1595ca; background: linear-gradient(145deg, #f2fbfe, #e9f6fb); box-shadow: 0 0 0 3px rgba(21,149,202,.09), 0 12px 30px rgba(12,82,122,.08); }
.method-card input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.method-icon { display: grid; place-items: center; width: 42px; height: 42px; color: #0875ad; border-radius: 13px; background: #e5f4fa; font-size: 17px; font-weight: 900; }
.method-card > span:nth-of-type(2) { display: flex; min-width: 0; flex-direction: column; }
.method-card b { color: #17364d; font-size: 12px; }
.method-card small { margin-top: 4px; color: #708595; font-size: 9px; font-weight: 520; line-height: 1.45; }
.method-card > i { display: grid; place-items: center; width: 20px; height: 20px; color: transparent; border: 1px solid #cadbe5; border-radius: 50%; background: #fff; font-size: 10px; font-style: normal; }
.method-card:has(input:checked) > i { color: #fff; border-color: #1185bc; background: #1185bc; }
.payment-method-fields { padding: 18px; border: 1px solid #d7e6ee; border-radius: 16px; background: linear-gradient(145deg, #fbfdfe, #f4f9fc); }
.bank-fields { border-color: #cbddeb; background: linear-gradient(145deg, #fbfdff, #f0f6fb); }
.method-fields-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; padding-bottom: 13px; border-bottom: 1px solid #dce8ef; }
.method-fields-head > div { display: flex; flex-direction: column; }
.method-fields-head b { color: #17364d; font-size: 12px; }
.method-fields-head div > span { margin-top: 3px; color: #748897; font-size: 9px; line-height: 1.45; }
.method-status { flex: 0 0 auto; padding: 6px 8px; color: #0a70a7; border: 1px solid #c6e1ed; border-radius: 999px; background: #edf8fc; font-size: 7px; font-weight: 900; letter-spacing: .09em; }
.method-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }

.bank-transfer-sheet { margin-top: 14px; overflow: hidden; border: 1px solid #d9e5ed; border-radius: 13px; background: #f8fbfd; }
.owner-bank-sheet { border-color: #b9d8e7; box-shadow: 0 10px 28px rgba(12,67,101,.06); }
.bank-sheet-title { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 10px 13px; color: #5b7385; border-bottom: 1px solid #dbe7ee; background: #f0f6f9; font-size: 8px; font-weight: 850; letter-spacing: .08em; }
.bank-sheet-title b { padding: 4px 7px; color: #fff; border-radius: 6px; background: #0b6fa7; font-size: 8px; }
.bank-sheet-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: #e1ebf0; }
.bank-sheet-grid > div { position: relative; display: flex; min-width: 0; flex-direction: column; padding: 12px 13px; background: #fff; }
.bank-sheet-grid small { color: #8294a2; font-size: 7px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.bank-sheet-grid b { margin-top: 5px; overflow: hidden; color: #17364d; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.copy-value { align-self: flex-start; min-height: 0; margin-top: 8px; padding: 4px 7px; color: #0b70a8; border: 1px solid #cce0ea; border-radius: 6px; background: #f4fafc; font-size: 7px; }
.copy-value.copied { color: #0c7956; border-color: #bee3d5; background: #eef9f5; }
.bank-ready-chip { display: inline-flex; align-items: center; min-height: 42px; padding: 10px 13px; color: #0e704f; border: 1px solid #c7e6da; border-radius: 10px; background: #edf9f4; font-size: 9px; font-weight: 850; }

@media (max-width: 1100px) {
  .ribbon-viewport { padding-right: 50px; padding-left: 50px; }
  .client-logo-tile { width: 112px; height: 64px; }
  .control-rail small { display: none; }
  .bank-sheet-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .login-brand { min-height: 540px; padding: 25px 22px 20px; }
  .brand-copy { margin: 30px 0 14px; }
  .brand-copy h1 { font-size: clamp(35px, 9.5vw, 49px); }
  .control-rail { gap: 6px; margin-top: 21px; }
  .control-rail > div { gap: 7px; padding: 9px 8px; }
  .control-rail i { width: 27px; height: 27px; }
  .control-rail b { font-size: 9px; }
  .relationship-ribbon { margin-top: 17px; }
  .ribbon-viewport { min-height: 70px; padding: 5px 38px 7px; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
  .client-logo-tile { width: 104px; height: 58px; padding: 9px 12px; }
  .trust-row { margin-top: 6px; padding-top: 8px; font-size: 9px; }
  .login-access { min-height: 590px; padding: 46px 22px 68px; }
  .login-card { padding: 29px 23px; border-radius: 22px; }
  .access-footer { bottom: 18px; }
  .method-options, .method-field-grid { grid-template-columns: 1fr; }
  .method-card { min-height: 78px; }
  .payment-method-fields { padding: 15px 13px; }
  .bank-sheet-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .brand-top { align-items: flex-start; }
  .brand-copy h1 { letter-spacing: -.045em; }
  .control-rail > div { flex-direction: column; align-items: flex-start; }
  .control-rail i { width: 25px; height: 25px; }
  .ribbon-heading span { font-size: 8px; }
  .trust-row { justify-content: space-between; gap: 7px; }
  .login-card-meta { margin-bottom: 22px; }
  .session-chip { font-size: 7px; }
  .access-personas span { font-size: 7px; }
  .method-fields-head { align-items: flex-start; }
  .bank-sheet-grid { grid-template-columns: 1fr; }
}

/* Build 1.3 — website/customer-portal matched payment login */
body.login-body {
  overflow: hidden;
  background: #fff;
  color: #09172a;
}
.payment-login-page {
  display: grid;
  grid-template-columns: minmax(0, 60%) minmax(440px, 40%);
  min-height: 100svh;
  background: #fff;
}
.payment-login-story {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100svh;
  overflow: hidden;
  padding: 32px clamp(34px, 4.7vw, 72px) 30px;
  color: #fff;
  background:
    radial-gradient(circle at 78% 34%, rgba(38,185,235,.20), transparent 22%),
    radial-gradient(circle at 80% 36%, transparent 0 15%, rgba(245,121,11,.18) 15.2% 16%, transparent 16.2% 23%, rgba(255,255,255,.09) 23.2% 23.8%, transparent 24%),
    linear-gradient(138deg, #031329 0%, #061b3a 55%, #082b55 100%);
}
.payment-login-story::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom right, transparent, #000 30%, transparent);
}
.payment-login-story::after {
  position: absolute;
  right: -18vw;
  bottom: -37vw;
  width: 60vw;
  height: 60vw;
  content: "";
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 50%;
  box-shadow: 0 0 0 65px rgba(255,255,255,.024), 0 0 0 130px rgba(255,255,255,.02);
}
.payment-public-header,
.payment-story-copy,
.payment-client-marquee,
.payment-story-metrics { position: relative; z-index: 1; }
.payment-public-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.payment-brand {
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  line-height: 0;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 13px 34px rgba(0,8,26,.22);
}
.payment-brand img { display: block; width: 178px; height: auto; object-fit: contain; border-radius: 7px; }
.payment-public-header a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  color: rgba(255,255,255,.78);
  border: 1px solid rgba(174,211,237,.28);
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  transition: color .18s, border-color .18s, background .18s;
}
.payment-public-header a:hover { color: #fff; border-color: rgba(38,185,235,.72); background: rgba(38,185,235,.10); }
.payment-story-copy {
  max-width: 700px;
  margin: auto 0;
  padding: clamp(42px, 6vh, 66px) 0 clamp(34px, 4.5vh, 52px);
}
.payment-story-copy .eyebrow { color: #8edcf6; }
.payment-story-copy h1 {
  max-width: 760px;
  margin: 20px 0 23px;
  font-size: clamp(46px, 4.6vw, 72px);
  font-weight: 590;
  line-height: .98;
  letter-spacing: -.065em;
}
.payment-story-copy h1 em { color: #ff9b43; font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 400; }
.payment-story-copy > p { max-width: 620px; margin: 0; color: #b7c6d8; font-size: 15px; line-height: 1.72; }
.payment-trust-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 30px; }
.payment-trust-row span { padding: 8px 11px; color: #d4e1ed; border: 1px solid rgba(174,211,237,.22); border-radius: 999px; background: rgba(255,255,255,.06); font-size: 10px; font-weight: 650; }
.payment-client-marquee { width: min(760px, 100%); margin-bottom: 21px; }
.payment-marquee-label { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; color: #8edcf6; font-size: 8px; font-weight: 800; letter-spacing: .16em; }
.payment-marquee-label i { width: 56px; height: 1px; background: linear-gradient(90deg, #26b9eb, transparent); }
.payment-marquee-window { overflow: hidden; padding-block: 2px; mask-image: linear-gradient(90deg, transparent, #000 5% 95%, transparent); }
.payment-marquee-track { display: flex; width: max-content; will-change: transform; animation: payment-client-flow 38s linear infinite; }
.payment-marquee-window:hover .payment-marquee-track { animation-play-state: paused; }
.payment-marquee-set { display: flex; gap: 9px; padding-right: 9px; }
.payment-client-card {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 106px;
  width: 106px;
  height: 52px;
  overflow: hidden;
  padding: 7px 9px;
  border: 1px solid rgba(174,211,237,.34);
  border-radius: 10px;
  background: linear-gradient(145deg, #fff, #f0f6fb);
  box-shadow: 0 10px 22px rgba(0,8,26,.18);
}
.payment-client-card img { display: block; width: auto; max-width: 100%; height: auto; max-height: 36px; object-fit: contain; filter: saturate(.86) contrast(1.02); }
@keyframes payment-client-flow { to { transform: translateX(-50%); } }
.payment-story-metrics { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 760px; border-top: 1px solid rgba(255,255,255,.15); }
.payment-story-metrics > div { display: grid; gap: 5px; padding: 16px 20px 0 0; }
.payment-story-metrics strong { color: #fff; font-size: 20px; letter-spacing: -.03em; }
.payment-story-metrics span { color: rgba(255,255,255,.58); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.payment-login-panel {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 100svh;
  padding: 40px clamp(28px, 5vw, 84px);
  background:
    radial-gradient(circle at 100% 0, #e8f6fd 0, transparent 26%),
    radial-gradient(circle at 0 100%, #fff3e7 0, transparent 24%),
    #fff;
}
.payment-login-card { width: min(410px, 100%); }
.payment-mobile-brand { display: none; margin-bottom: 58px; }
.payment-login-card h2 { margin: 12px 0 10px; color: #09172a; font-size: 40px; font-weight: 680; letter-spacing: -.045em; }
.payment-login-intro { margin: 0 0 30px; color: #536477; line-height: 1.7; }
.payment-login-card form { display: grid; gap: 18px; }
.payment-login-card label { display: grid; gap: 8px; margin: 0; color: #26384b; font-size: 12px; font-weight: 750; }
.payment-login-card input {
  width: 100%;
  height: 53px;
  padding: 0 16px;
  color: #09172a;
  border: 1px solid #d4e1ec;
  border-radius: 12px;
  outline: 0;
  background: #fbfdff;
  font-size: 15px;
  transition: border .2s, box-shadow .2s, background .2s;
}
.payment-login-card input:focus { border-color: #0872d5; background: #fff; box-shadow: 0 0 0 4px rgba(8,114,213,.10); }
.payment-primary-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 54px;
  min-height: 54px;
  margin-top: 4px;
  padding: 0 19px;
  color: #fff;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(112deg, #0872d5, #055eb1);
  box-shadow: 0 15px 34px rgba(8,114,213,.24);
  font-weight: 780;
}
.payment-primary-action:hover { background: linear-gradient(112deg, #061b3a, #0a315f); }
.payment-primary-action span { font-size: 20px; }
.payment-login-help { display: flex; gap: 12px; margin-top: 32px; padding-top: 21px; border-top: 1px solid #dce6ef; }
.payment-shield-icon { display: grid; place-items: center; flex: 0 0 auto; width: 30px; height: 30px; color: #0872d5; border-radius: 10px; background: #eaf5fd; font-weight: 850; }
.payment-login-help p { display: grid; gap: 5px; margin: 0; color: #68788a; font-size: 11px; line-height: 1.55; }
.payment-login-help strong { color: #09172a; font-size: 12px; }
.payment-support-copy { margin: 22px 0 0; color: #748397; font-size: 11px; text-align: center; }
.payment-login-card .alert { max-width: none; margin: 0 0 20px; }

@media (max-width: 900px) {
  body.login-body { overflow: auto; }
  .payment-login-page { display: block; background: radial-gradient(circle at 100% 0, #e8f6fd 0, transparent 27%), #fff; }
  .payment-login-story { display: none; }
  .payment-login-panel { min-height: 100svh; padding: 34px 24px; }
  .payment-mobile-brand { display: block; }
}

@media (max-width: 390px) {
  .payment-login-panel { padding: 28px 18px; }
  .payment-login-card h2 { font-size: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  .payment-marquee-track { animation: none !important; }
  .payment-marquee-window { overflow-x: auto; mask-image: none; }
  .payment-marquee-clone { display: none; }
}

/* Build 1.4 — fast Owner payment handoff and deferred receipt capture */
.quick-owner-approve { flex: 1 1 260px; margin: 0; }
.quick-owner-approve .primary { min-height: 43px; }
.pay-panel[open],
.receipt-pending-panel[open] { flex: 1 1 100%; border-color: #b8ddeb; box-shadow: 0 14px 34px rgba(5, 74, 119, .08); }
.payment-tools > button,
.payment-tools > a { min-height: 43px; }
.upi-launch:disabled,
.qr-scan-flow:disabled { cursor: progress; opacity: .58; transform: none; box-shadow: none; }
.qr-payment-status {
  flex: 1 1 100%;
  padding: 7px 2px 0;
  color: #567083;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.45;
}
.whatsapp-receipt-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  padding: 10px 14px;
  color: #fff;
  border: 1px solid #108e5a;
  border-radius: 10px;
  background: linear-gradient(135deg, #18a968, #087b4a);
  box-shadow: 0 10px 22px rgba(10, 129, 77, .17);
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
}
.whatsapp-receipt-button:hover { color: #fff; transform: translateY(-1px); }
.receipt-later-control { margin: 2px 0 0; padding: 11px 12px; border: 1px solid #dce9ef; border-radius: 10px; background: #f3f9fc; }
.receipt-later-control span { color: #466276; font-size: 10px; line-height: 1.5; }
.payment-return-sheet {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px 14px;
  width: min(520px, calc(100vw - 32px));
  padding: 19px;
  color: #fff;
  border: 1px solid rgba(126, 207, 238, .28);
  border-radius: 18px;
  background: linear-gradient(145deg, #04172e, #092f55);
  box-shadow: 0 24px 70px rgba(0, 16, 39, .36);
}
.payment-return-sheet[hidden] { display: none; }
.return-sheet-icon { display: grid; place-items: center; width: 38px; height: 38px; color: #fff; border-radius: 12px; background: linear-gradient(135deg, #21b772, #0c8450); font-weight: 900; }
.payment-return-sheet small { color: #83d9f4; font-size: 8px; font-weight: 850; letter-spacing: .14em; }
.payment-return-sheet h3 { margin: 5px 0 4px; color: #fff; font-size: 20px; }
.payment-return-sheet p { margin: 0; color: #bfd0df; font-size: 11px; line-height: 1.55; }
.return-sheet-actions { display: flex; flex-wrap: wrap; grid-column: 1 / -1; gap: 8px; }
.return-sheet-actions > * { flex: 1 1 190px; }
.return-sheet-actions .ghost { color: #d9edf8; border-color: rgba(161, 211, 237, .32); background: rgba(255, 255, 255, .07); }
.return-sheet-close { position: absolute; top: 8px; right: 9px; min-width: 32px; min-height: 32px; padding: 0; color: #b7cada; border: 0; background: transparent; box-shadow: none; font-size: 22px; }

@media (max-width: 640px) {
  .quick-owner-approve { flex-basis: 100%; }
  .payment-tools > button,
  .payment-tools > a,
  .payment-tools > span { flex: 1 1 100%; width: 100%; }
  .payment-return-sheet { right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); width: calc(100vw - 24px); padding: 16px; border-radius: 16px; }
  .return-sheet-actions { display: grid; grid-template-columns: 1fr; }
}

/* Build 1.5 — scanner-native UPI compatibility for personal and merchant QR */
body.modal-open { overflow: hidden; }
.upi-assist-sheet {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: auto;
  background: rgba(1, 18, 38, .78);
  backdrop-filter: blur(12px);
}
.upi-assist-sheet[hidden] { display: none; }
.upi-assist-card {
  position: relative;
  width: min(760px, 100%);
  max-height: calc(100svh - 48px);
  padding: 28px;
  overflow: auto;
  color: #17384f;
  border: 1px solid rgba(143, 201, 228, .58);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0, rgba(71, 189, 231, .15), transparent 30%),
    #fff;
  box-shadow: 0 32px 90px rgba(0, 20, 50, .42);
}
.upi-assist-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 38px;
  min-width: 38px;
  height: 38px;
  padding: 0;
  color: #517084;
  border: 1px solid #d7e6ee;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 18px rgba(7, 43, 69, .08);
  font-size: 24px;
  line-height: 1;
}
.upi-assist-head { padding-right: 46px; }
.upi-assist-head h2 { margin: 7px 0 5px; color: #071f39; font-size: clamp(26px, 4vw, 38px); letter-spacing: -.045em; }
.upi-assist-head p { margin: 0; color: #63798a; font-size: 12px; line-height: 1.55; }
.upi-assist-meta {
  display: grid;
  grid-template-columns: 1.2fr .8fr 1.1fr;
  gap: 10px;
  margin: 20px 0;
}
.upi-assist-meta > div {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid #deebf1;
  border-radius: 13px;
  background: #f7fbfd;
}
.upi-assist-meta small { display: block; margin-bottom: 5px; color: #718898; font-size: 8px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.upi-assist-meta b { display: block; overflow-wrap: anywhere; color: #123c58; font-size: 12px; }
.upi-assist-qr {
  display: grid;
  place-items: center;
  gap: 9px;
  margin: 0 auto 18px;
  padding: 14px;
  width: min(360px, 100%);
  border: 1px solid #d7e8f0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(8, 59, 91, .1);
}
.upi-assist-qr[hidden] { display: none; }
.upi-assist-qr img { display: block; width: 100%; max-height: 330px; object-fit: contain; border-radius: 10px; }
.upi-assist-qr span { color: #6b8191; font-size: 9px; font-weight: 700; text-align: center; }
.upi-assist-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin: 0 0 17px;
  padding: 0;
  list-style: none;
  counter-reset: upistep;
}
.upi-assist-steps[hidden] { display: none; }
.upi-assist-steps li {
  position: relative;
  min-height: 82px;
  padding: 13px 12px 12px 43px;
  border: 1px solid #dbeaf1;
  border-radius: 13px;
  background: linear-gradient(145deg, #f9fcfd, #eef7fb);
  counter-increment: upistep;
}
.upi-assist-steps li::before {
  content: counter(upistep);
  position: absolute;
  top: 13px;
  left: 12px;
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  color: #fff;
  border-radius: 7px;
  background: linear-gradient(135deg, #068ac2, #005a91);
  font-size: 10px;
  font-weight: 900;
}
.upi-assist-steps b { display: block; margin-bottom: 5px; color: #123b56; font-size: 11px; }
.upi-assist-steps span { display: block; color: #6b8191; font-size: 9px; line-height: 1.45; }
.upi-assist-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.upi-assist-actions > * { flex: 1 1 190px; min-height: 44px; }
.upi-assist-actions [hidden] { display: none; }
.gpay-home-button { background: linear-gradient(135deg, #0c7bc1, #035581); }
.upi-assist-status {
  margin: 14px 0 0;
  padding: 11px 13px;
  color: #4f687b;
  border: 1px solid #d9e8ef;
  border-radius: 11px;
  background: #f5fafc;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.55;
}

@media (max-width: 640px) {
  .upi-assist-sheet { place-items: end center; padding: 0; }
  .upi-assist-card { width: 100%; max-height: 94svh; padding: 23px 16px calc(20px + env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0; }
  .upi-assist-meta { grid-template-columns: 1fr 1fr; }
  .upi-assist-meta > div:last-child { grid-column: 1 / -1; }
  .upi-assist-qr { width: min(320px, 100%); }
  .upi-assist-steps { grid-template-columns: 1fr; }
  .upi-assist-steps li { min-height: 0; }
  .upi-assist-actions { display: grid; grid-template-columns: 1fr; }
  .upi-assist-actions > * { width: 100%; min-height: 47px; }
}
