@import url("responsive.css");

/* ============================================================
   NSE MF — Investor Onboarding
   Design language: a working ledger, not a marketing page.
   Paper-white ground, ink-navy structure, a single warm signal
   color (amber) reserved for active/primary state. Line-art SVG
   icons stay unfilled strokes throughout — outlines, not glyphs.
   Type: DM Sans for interface text, DM Mono for anything that is
   data — codes, amounts, API routes, status payloads.
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Palette */
  --ink-900: #14171f;
  --ink-800: #1d212c;
  --ink-700: #2b3040;
  --ink-600: #444b5e;
  --ink-500: #6b7186;
  --ink-400: #9298a8;
  --ink-300: #c2c6d0;
  --ink-200: #dfe2e9;
  --ink-100: #eef0f4;

  --paper-0: #fbfaf6;
  --paper-1: #f4f2ec;
  --paper-2: #ebe8df;

  --amber-600: #b5701f;
  --amber-500: #d4881f;
  --amber-100: #f7e6c4;
  --amber-050: #fbf1de;

  --green-600: #2f7a4f;
  --green-100: #e1f0e6;
  --red-600: #b8402f;
  --red-100: #f7e3df;
  --navy: #3d49d8;
  --navy2: #0917af;
  --navy3: #181f75;
  --accent: #00c59c;
  --accent2: #009d7c;
  --cream: #f6fbff;
  --white: #ffffff;
  --gray: #5b6785;
  --light: #f9f9f9;
  --black: #111111;
  --green: #22c55e;
  --red: #f87171;
  --shadow: 0 4px 24px rgba(51, 202, 229, .10);
  --shadow-lg: 0 16px 56px rgba(51, 202, 229, .16);
  --line: var(--ink-200);
  --line-soft: #e7e4db;

  --font-ui: 'Google Sans', sans-serif;
  --font-mono: 'Google Sans', sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --shadow-card: 0 1px 2px rgba(20, 23, 31, 0.04), 0 8px 24px -12px rgba(20, 23, 31, 0.10);
  --shadow-modal: 0 24px 64px -16px rgba(20, 23, 31, 0.35);

  /* Marketing-nav tokens (navbar, logo, mobile menu) */


  color-scheme: light;
}

html {
  scroll-behavior: smooth;
}

section {
  scroll-margin-top: 100px;
}

body {
  font-family: var(--font-ui);
  background: var(--white);
  color: var(--black);
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 3px;
}

/* ─── NAVBAR ─── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(51, 202, 229, .07);
  padding: 0;
  box-shadow: 0 4px 20px rgba(16, 24, 40, .07);
  transition: all .4s ease;
}

nav.scrolled {
  box-shadow: 0 6px 28px rgba(16, 24, 40, .12);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-img {
  width: 200px;
  height: auto;
}

.logo-text {
  font-size: 21px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -.5px;
  line-height: 1;
}

.logo-text em {
  color: var(--accent);
  font-style: normal;
}

.logo-sub {
  font-size: 10px;
  color: var(--gray);
  font-weight: 500;
  letter-spacing: .5px;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  color: var(--black);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .3px;
  transition: color .3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width .3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  background: var(--navy) !important;
  color: #fff !important;
  padding: 9px 20px !important;
  border-radius: 6px;
  font-weight: 600 !important;
  transition: background .3s !important;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: var(--accent) !important;
  color: #fff !important;
}

/* Mobile menu */
.hamburger {
  display: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  cursor: pointer;
  width: 32px;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all .3s;
}

.hamburger span:nth-child(2) {
  width: 70%;
}

.hamburger.active span {
  width: 100%;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: flex;
  position: fixed;
  inset: var(--nav-height) 0 0;
  background: #fff;
  z-index: 999;
  padding: 32px 24px;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .1);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}

.mobile-menu.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-menu a {
  color: var(--navy);
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
  padding: 14px 16px;
  border-radius: 10px;
  transition: background .2s;
}

.mobile-menu a:hover {
  background: var(--light);
}

.mobile-menu .mob-cta {
  background: var(--navy);
  color: #fff !important;
  text-align: center;
  border-radius: 10px;
  margin-top: 8px;
}

/* Nav responsiveness: below this width, swap the inline link list for the hamburger + slide-down menu */
@media (max-width: 900px) {
  .nav-inner {
    padding: 0 20px;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .logo-img {
    width: 150px;
  }
}

@media (max-width: 480px) {
  .nav-inner {
    padding: 0 16px;
  }

  .logo-img {
    width: 130px;
  }

  .mobile-menu {
    padding: 24px 16px;
  }

  .mobile-menu a {
    font-size: 16px;
    padding: 12px 14px;
  }
}

body::before {
  /* Faint ledger-rule texture on the page background — quiet, not decorative-loud */
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(to bottom,
      transparent 0,
      transparent 31px,
      rgba(20, 23, 31, 0.018) 32px);
  z-index: 0;
}

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

a {
  color: var(--amber-600);
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  width: 100%;
  height: 100%;
}

svg text {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  stroke: none;
  fill: currentColor;
}

/* ============================================================
   TOPBAR
   ============================================================ */

/* Mandate panel styling to match the registration card */
.mandate-panel {
  border: 2px solid var(--navy);
  border-radius: 6px;
  overflow: hidden;
  background: var(--white);
  margin-bottom: 1rem;
}
.mandate-panel-header {
  background: var(--navy);
  color: #fff;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mandate-panel-title { font-weight: 700; }
.mandate-panel-body { padding: 16px; }
.mandate-panel .form-grid .field { min-width: 180px; }
.mandate-panel-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  padding: 12px 16px;
  border-top: 1px solid var(--line-soft);
  background: var(--paper-0);
}
.mandate-panel-actions .btn { min-width: 96px; }

.topbar {
  position: relative;
  z-index: 2;
  background: var(--ink-900);
  color: var(--paper-0);
  border-bottom: 1px solid var(--ink-700);
}

.topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid var(--ink-600);
  border-radius: var(--radius-sm);
  background: var(--ink-800);
}

.brand-n {
  color: var(--amber-500);
}

.brand-se {
  color: var(--ink-300);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-title {
  font-weight: 600;
  font-size: 15px;
  color: var(--paper-0);
}

.brand-sub {
  font-size: 12px;
  color: var(--ink-400);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.env-pill,
.server-status,
.backend-route-status {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--ink-700);
  background: var(--ink-800);
  color: var(--ink-300);
  white-space: nowrap;
}

.env-dot,
.status-dot,
.route-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-500);
  flex-shrink: 0;
}

.env-dot {
  background: var(--amber-500);
}

.status-dot.ok,
.route-dot.ok {
  background: var(--green-600);
}

.status-dot.err {
  background: var(--red-600);
}

.route-dot.warn {
  background: var(--amber-500);
}

/* ============================================================
   STEPPER
   ============================================================ */

.stepper-bar {
  position: relative;
  z-index: 1;
  margin-top: 120px;
  background: var(--paper-0);
  border-bottom: 1px solid var(--line);
  display: none;
  /* toggled to block via JS */
}

.stepper-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  opacity: 0.55;
  transition: opacity 0.2s ease;
}

.step-item.active,
.step-item.done {
  opacity: 1;
}

.step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--ink-300);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-600);
  flex-shrink: 0;
  position: relative;
}

.step-item.active .step-num {
  border-color: var(--amber-500);
  color: var(--amber-600);
  background: var(--amber-050);
}

.step-item.done .step-num {
  border-color: var(--green-600);
  background: var(--green-600);
}

.step-item.done .step-num::before {
  content: '✓';
  color: #fff;
  font-size: 12px;
}

.step-info {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.step-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-800);
}

.step-desc {
  font-size: 11px;
  color: var(--ink-500);
}

.step-connector {
  flex: 1 1 32px;
  min-width: 16px;
  max-width: 56px;
  height: 1.5px;
  background: var(--ink-200);
  margin: 0 12px;
}

.step-connector.done {
  background: var(--green-600);
}

/* ============================================================
   MAIN LAYOUT
   ============================================================ */

.main-content {
  position: relative;
  z-index: 1;
  display: grid;
  max-width: 100%;
  margin: 110px 0 0 0;
  padding: 30px 100px;
}

.module-toolbar {
  display: none;
  align-items: center;
  justify-content: right;
  gap: 12px;
  margin-bottom: 12px;
  position: static;
  left: 0;
  right: 0;
  top: var(--nav-height);
  /* sit below navbar */
  z-index: 1100;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.9));
  backdrop-filter: blur(6px);
  padding: 10px 44px;
}

.module-toolbar .module-toolbar-title {
  font-weight: 600;
  font-size: 16px;
}

.module-toolbar .module-back {
  position: absolute;
  left: 44px;
}

.module-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: var(--paper-0);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-700);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.module-back:hover {
  border-color: var(--ink-400);
  color: var(--ink-900);
}

.module-toolbar-title {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-500);
}

/* ============================================================
   KYC HUB
   ============================================================ */

/* ── KYC HUB HEADING ── */
.kyc-hub-header {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f0f4ff 0%, #eef2ff 55%, #f5f8ff 100%);
  border: 1px solid rgba(99, 102, 241, .12);
  border-radius: 20px;
  padding: 56px 52px 52px;
  margin-bottom: 100px;
  display: flex;
  align-items: center;
}

.kyc-hub-header-inner {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.kyc-banner
{
  width: 50%;
  display: block;
}

.kyc-hub-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99, 102, 241, .1);
  border: 1px solid rgba(99, 102, 241, .3);
  color: #4f46e5;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.kyc-hub-badge-dot {
  width: 7px;
  height: 7px;
  background: #6366f1;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, .28);
  animation: kycPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes kycPulse {

  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, .28);
  }

  50% {
    box-shadow: 0 0 0 7px rgba(99, 102, 241, .08);
  }
}

.kyc-hub-title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  color: #1e1b4b;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.kyc-hub-title em {
  font-style: normal;
  background: linear-gradient(90deg, #6366f1, #00c59c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.kyc-hub-sub {
  font-size: 15.5px;
  color: #5b6785;
  line-height: 1.75;
  margin-bottom: 28px;
  max-width: 560px;
}

.kyc-hub-trust {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.kyc-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #4b5563;
  font-size: 12.5px;
  font-weight: 500;
}

.kyc-trust-item svg {
  color: #6366f1;
  flex-shrink: 0;
}

.kyc-trust-div {
  width: 1px;
  height: 16px;
  background: rgba(99, 102, 241, .2);
}


.kyc-hub-orb {
  position: absolute;
  right: -80px;
  top: -80px;
  width: 380px;
  height: 380px;

  background: radial-gradient(circle, rgba(99, 102, 241, .12) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

@media (max-width: 768px) {
  .kyc-hub-header {
    padding: 36px 24px 32px;
    border-radius: 14px;
  }

  .kyc-hub-title {
    font-size: 30px;
  }

  .kyc-trust-div {
    display: none;
  }

  .kyc-hub-trust {
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .kyc-hub-header {
    padding: 28px 18px 26px;
  }

  .kyc-hub-sub {
    font-size: 14px;
  }
}

.kyc-hub {
  padding: 8px 0 0;
}

.kyc-action-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.bg1 {
  background: #01a79d;
}

.bg2 {
  background: #7130a8;
}

.bg3 {
  background: #f7941d;
}

.bg4 {
  background: #075cef;
}

.bg5 {
  background: #6ec334;
}

.bg6 {
  background: #d4316b;
}

.bg7 {
  background: #00cbff;
}

.bg8 {
  background: #d5c901;
}




.kyc-action-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 17px;
  padding: 40px 20px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  font-size: 17px;
  font-weight: 600;
  color: var(--navy3);
  background: #fafafa;
  box-shadow: 0 6px 30px rgba(0, 0, 0, .1);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.kyc-action-card:hover {
  transform: translateY(-2px);
  border-color: var(--amber-500);
  box-shadow: 0 6px 50px rgba(0, 0, 0, .12);
}

.kyc-action-icon {
  width: 44px;
  height: 44px;
  color: rgba(255, 255, 255, 0.95);
}

.kyc-action-icon.accent {
  color: rgba(255, 255, 255, 0.95);
}

/* ============================================================
   FORM SECTIONS
   ============================================================ */

.form-section {
  display: none;
}

.form-section.active {
  display: block;
  animation: section-in 0.2s ease;

}

@keyframes section-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 18px;
}

.section-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  border-radius: var(--radius-sm);
  background: var(--ink-900);
  color: var(--paper-0);
}

.section-header h2 {
  margin: 0 0 4px;
  font-size: 19px;
  font-weight: 600;
  color: var(--ink-900);
}

.section-api {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-500);
  letter-spacing: 0.01em;
}

.section-api code {
  background: var(--paper-2);
  padding: 1px 5px;
  border-radius: 4px;
  color: var(--ink-700);
}

.subsection-title {
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent2);
  margin: 26px 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.api-tag-small {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0.01em;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--amber-050);
  color: var(--amber-600);
  border: 1px solid var(--amber-100);
}

.divider {
  height: 1px;
  background: var(--line);
  margin: 26px 0;
}

.section-module {
  /* Plain grouping wrapper toggled via [hidden] in setSectionZeroMode() */

}

.cond {
  color: var(--ink-400);
  font-weight: 400;
  font-size: 11.5px;
  font-style: italic;
}

/* ============================================================
   CHECKLIST (post-payment actions)
   ============================================================ */

.checklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper-0);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.check-item:hover {
  border-color: var(--ink-400);
}

.check-item input[type="checkbox"] {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  accent-color: var(--amber-600);
  flex-shrink: 0;
  cursor: pointer;
}

.check-item:has(input:checked) {
  border-color: var(--amber-500);
  background: var(--amber-050);
}

.check-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.check-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-900);
}

.check-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-500);
}

/* ============================================================
   FORM GRID / FIELDS
   ============================================================ */

.date-input-shell {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.date-input-shell .date-input-field {
  padding-right: 44px;
}

.date-input-shell .date-input-trigger {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 6px;
  background: rgba(0, 197, 156, 0.12);
  color: var(--navy3);
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.date-input-shell .date-input-trigger:hover {
  background: rgba(0, 197, 156, 0.2);
  transform: translateY(-50%) scale(1.03);
}

.date-input-shell .date-input-native {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
}

.date-picker-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 1100;
  display: none;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 18px 48px rgba(20, 23, 31, 0.16);
}

.date-picker-popover.is-open {
  display: block;
}

.date-picker-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 10px;
}

.date-picker-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.date-picker-select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-0);
  color: var(--ink-900);
  font-size: 13px;
}

.date-picker-select:focus {
  border-color: var(--accent2);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 197, 156, 0.16);
}

.form-grid {
  display: grid;
  gap: 25px 18px;
}

.form-grid.col-1 {
  grid-template-columns: 1fr;
}

.form-grid.col-2 {
  grid-template-columns: repeat(2, 1fr);
  margin: 20px 0;
}

.form-grid.col-3 {
  grid-template-columns: repeat(3, 1fr);
  margin: 20px 0;
}

.form-grid.col-4 {
  grid-template-columns: repeat(4, 1fr);
  margin: 20px 0;
}

.form-grid.col-5 {
  grid-template-columns: repeat(5, 1fr);
  margin: 20px 0;
}

.col-span-2 {
  grid-column: span 2;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-700);
}

.req {
  color: var(--red-600);
  font-weight: 600;
}

.opt {
  color: var(--ink-400);
  font-weight: 400;
  font-size: 11.5px;
}

.field input[type="text"],
.field input[type="number"],
.field input[type="email"],
.field input[type="date"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  height: 44px;
  border: 1px solid rgba(233, 233, 233, 1);
  border-radius: 8px;
  background: #f7f8ff;
  font-size: 14px;
  color: var(--black);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.06s ease;
  box-shadow: inset 0 1px 0 rgba(16, 24, 40, 0.02);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(0, 157, 124, 0.9);
  box-shadow: 0 6px 20px rgba(0, 157, 124, 0.06), 0 0 0 4px rgba(0, 197, 156, 0.06);
  transform: translateY(-1px);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #9aa3b2;
}

.field input[readonly],
.field input:disabled,
.field select:disabled {
  background: var(--paper-1);
  color: var(--ink-500);
  cursor: not-allowed;
}

/* Tighter fields inside a table cell (TIN Details rows) */
.tin-table td .field,
.tin-table th {
  margin: 0;
}

.tin-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 4px;
}

.tin-table th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-600);
  padding: 0 10px 8px;
}

.tin-table td {
  padding: 6px 10px 6px 0;
  vertical-align: top;
}

.tin-table td.tin-sr {
  width: 44px;
  padding-top: 22px;
  text-align: center;
  font-family: var(--font-mono);
  color: var(--ink-500);
  font-size: 13px;
}

.tin-table input,
.tin-table select {
  margin: 0;
}

@media (max-width: 1180px) {

  .form-grid.col-4,
  .form-grid.col-5 {
    grid-template-columns: repeat(2, 1fr);
    
  }
 
}

@media (max-width: 720px) {

  .tin-table,
  .tin-table thead,
  .tin-table tbody,
  .tin-table tr,
  .tin-table td {
    display: block;
    width: 100%;
  }

  .tin-table thead {
    display: none;
  }

  .tin-table tr {
    border-bottom: 1px dashed var(--line);
    padding-bottom: 10px;
    margin-bottom: 10px;
  }

  .tin-table td.tin-sr {
    text-align: left;
    padding-top: 0;
    font-weight: 600;
  }
}

.field-hint {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-400);
}

/* ============================================================
   TOGGLE BUTTONS
   ============================================================ */

.toggle-group {
  display: flex;
  border: 1px solid var(--ink-300);
  border-radius: var(--radius-sm);
  overflow: hidden;
  width: fit-content;
}

.toggle-btn {
  padding: 9px 16px;
  border: none;
  background: var(--paper-0);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-600);
  cursor: pointer;
  border-right: 1px solid var(--ink-300);
  transition: background 0.15s ease, color 0.15s ease;
}

.toggle-btn:last-child {
  border-right: none;
}

.toggle-btn:hover {
  background: var(--paper-1);
}

.toggle-btn.active {
  background: var(--navy);
  color: var(--paper-0);
}

/* Tabs (investment type, payment method, UCC search/register) */
.inv-type-tabs,
.pay-method-tabs,
.ucc-action-tabs {
  display: flex;
  margin-top: 40px;
  gap: 15px;
  flex-wrap: wrap;
}

.inv-tab,
.pay-tab,
.tab-btn {
  padding: 9px 16px;
  border: 1px solid var(--navy);
  border-radius: 6px;
  background: var(--paper-0);
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
}

.inv-tab:hover,
.pay-tab:hover,
.tab-btn:hover {
  border-color: var(--navy);
}

.inv-tab.active,
.pay-tab.active,
.tab-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.pay-icon {
  width: 16px;
  height: 16px;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: #3d49d8;
  color: #fff;
  border-color: #3d49d8;
}

.btn-primary:hover:not(:disabled) {
  background: #2f36b0;
}

.btn-secondary {
  background: var(--navy);
  color: #fff;
}

.btn-secondary:hover:not(:disabled) {
  background: var(--navy2);
}

.btn-ghost {
  background: transparent;
  border-color: var(--ink-300);
  color: var(--ink-700);
}

.btn-ghost:hover:not(:disabled) {
  border-color: var(--ink-500);
  background: var(--paper-1);
}

.btn-arrow {
  font-size: 14px;
}

.btn-spinner {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
}

.btn.loading .btn-spinner {
  display: inline-block;
  animation: spin 0.7s linear infinite;
}

.btn.loading span {
  opacity: 0.7;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.action-left,
.action-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.step-count {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-400);
}

/* ============================================================
   BANNERS
   ============================================================ */

.info-banner,
.warn-banner {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  line-height: 1.5;
  margin: 0 0 18px;
  border: 1px solid;
}

.info-banner {
  background: var(--paper-2);
  border-color: var(--line-soft);
  color: var(--ink-700);
}

.warn-banner {
  background: var(--amber-050);
  border-color: var(--amber-100);
  color: var(--amber-600);
}

.info-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  font-size: 12.5px;
  color: var(--ink-700);
}

/* ============================================================
   KYC RESULT BOX
   ============================================================ */

.kyc-result-box {
  display: none;
  margin: 18px 0;
  padding: 0;
  /* inner card handles padding */
  border-radius: 12px;
  background: transparent;
}

#kyc-result-inner,
.kyc-result-inner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.ucc-display-content {
  display: flex;
  flex-direction: column;
}

.kyc-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}

.kyc-badge.ok {
  background: var(--green-100);
  color: var(--green-600);
}

.kyc-badge.fail {
  background: var(--red-100);
  color: var(--red-600);
}

.kyc-result-content {
  flex: 1;
}

/* Rich card appearance for KYC result */
.kyc-card {
  display: flex;
  gap: 18px;
  padding: 50px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(246, 251, 255, 0.98));
  border: 1px solid rgba(20, 23, 31, 0.06);
  box-shadow: 0 8px 30px rgba(16, 24, 40, 0.06);
  align-items: flex-start;
}

.kyc-card-left {
  width: 84px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.kyc-avatar {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  color: #fff;
}

.kyc-card-body {
  flex: 1;
}

.kyc-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

.kyc-actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
}

.kyc-field-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 18px;
  margin-top: 10px;
}

@media (max-width:880px) {
  .kyc-card {
    flex-direction: column;
  }

  .kyc-field-grid {
    grid-template-columns: 1fr;
  }
  
}

/* Full-page result overlay */
.result-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 20, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1200;
  padding: 28px;
}

.result-panel {
  width: 100%;
  max-width: 1100px;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 30px 80px rgba(20, 23, 31, 0.5);
  display: flex;
  flex-direction: column;
}

.result-hero {
  padding: 28px 32px;
  display: flex;
  align-items: center;
  gap: 18px;
  color: #fff;
}

.result-hero h2 {
  font-size: 20px;
  margin: 0;
}

.result-hero p {
  margin: 0;
  opacity: 0.9;
}

.result-content {
  padding: 22px 28px;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 18px;
}

.result-main {
  min-height: 220px;
  min-width: 0;
}

.result-side {
  background: #fbfbfc;
  padding: 12px;
  border-radius: 8px;
}

.result-actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
}

/* Wider layout used whenever a full multi-row result table is shown */
.result-panel-wide {
  max-width: 1320px;
}

.result-content-wide {
  grid-template-columns: 1fr;
  max-height: 78vh;
  overflow-y: auto;
}

.result-side-details {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
}

.result-side-details summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--ink-700);
  padding: 4px 0;
}

.result-side-details[open] summary {
  margin-bottom: 8px;
}

.result-side-details pre {
  margin: 0;
}

/* theme variants */
.result-theme-kyc .result-hero {
  background: linear-gradient(90deg, #2f7a4f, #1f6a43);
}

.result-theme-mandate .result-hero {
  background: linear-gradient(90deg, #007f7a, #00665e);
}

.result-theme-transaction .result-hero {
  background: linear-gradient(90deg, #243b63, #1b2a44);
}

.result-theme-report .result-hero {
  background: linear-gradient(90deg, #b5701f, #d4881f);
}

@media (max-width:980px) {
  .result-content {
    grid-template-columns: 1fr;
  }

  .result-side {
    order: 2;
  }
 
}

/* ============================================================
   Full-result data table — used whenever an API response
   contains an array of records (reports, mandates, orders …).
   Every row/column returned by NSE is rendered; nothing is
   sliced or truncated. Includes a client-side filter box and
   a CSV export so the full result set is easy to scan or take
   away.
   ============================================================ */
.rt-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.rt-search {
  flex: 1 1 220px;
  min-width: 160px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: 13.5px;
  background: var(--paper-0);
  color: var(--ink-900);
}

.rt-search:focus {
  outline: none;
  border-color: var(--amber-500);
  box-shadow: 0 0 0 3px var(--amber-050);
}

.rt-count {
  font-size: 12.5px;
  font-family: var(--font-mono);
  color: var(--ink-500);
  white-space: nowrap;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12.5px;
}

.rt-scroll {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: auto;
  max-height: 55vh;
  background: #fff;
}

.rt-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 640px;
  font-size: 13px;
}

.rt-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--ink-900);
  color: #fff;
  text-align: left;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.rt-table td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-800);
  font-family: var(--font-mono);
  white-space: nowrap;
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rt-table tbody tr:nth-child(even) {
  background: var(--paper-1);
}

.rt-table tbody tr:hover {
  background: var(--amber-050);
}

.rt-table .rt-idx {
  color: var(--ink-400);
  font-family: var(--font-mono);
  font-size: 12px;
  width: 44px;
  text-align: right;
}

.rt-empty {
  padding: 24px;
  text-align: center;
  color: var(--ink-500);
  font-size: 13.5px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
}

.rt-kv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.rt-kv-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper-0);
}

.rt-kv-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ink-500);
}

.rt-kv-value {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--ink-900);
  font-weight: 600;
  word-break: break-word;
}

@media (max-width: 640px) {

  .rt-table td,
  .rt-table thead th {
    padding: 8px 10px;
  }
  .rt-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .rt-count {
    text-align: right;
  }
}

.kyc-detail-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 20px;
}

.kyc-detail-sub {
  font-size: 12.5px;
  color: var(--ink-600);
}

.kyc-meta {
  margin-top: 10px;
  font-size: 14px;
  color: var(--ink-500);
  line-height: 2.5;
}

.kyc-action-row {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.kyc-result-link {
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
}

.kyc-result-link:hover {
  text-decoration: underline;
}

/* ============================================================
   UCC DISPLAY BOX
   ============================================================ */

.ucc-display-box,
.ucc-search-result {
  display: none;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
  background: var(--paper-0);
}

.ucc-display-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
}

.ucc-display-row:last-child {
  border-bottom: none;
}

.ucc-display-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ucc-display-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-400);
}

.ucc-display-value {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--black);
}

.ucc-tab-content {
  display: none;
}

.ucc-tab-content.active {
  display: block;
}

.ucc-ref-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ucc-ref-panel {
  border: 1px solid #3f2c83;
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}

.ucc-ref-panel summary {
  list-style: none;
  min-height: 30px;
  padding: 7px 14px;
  background: #3f2c83;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ucc-ref-panel summary::-webkit-details-marker {
  display: none;
}

.panel-caret {
  font-size: 12px;
  line-height: 1;
}

.ucc-ref-body {
  padding: 14px 18px 20px;
}

.field-button-align .btn {
  width: fit-content;
  min-height: 38px;
}

.check-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: end;
  min-height: 44px;
  font-size: 13px;
  color: var(--ink-700);
}

.check-inline input,
.radio-row input,
.ucc-bank-table input[type="radio"] {
  accent-color: #3f2c83;
}

.radio-row {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.radio-row label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--ink-800);
  cursor: pointer;
}

.panel-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.panel-actions.center {
  justify-content: center;
}

.ucc-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: #fff;
}

.ucc-bank-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  font-size: 12.5px;
}

.ucc-bank-table th {
  background: #3f2c83;
  color: #fff;
  padding: 10px 8px;
  text-align: center;
  font-weight: 700;
  border-right: 1px solid rgba(255, 255, 255, 0.35);
}

.ucc-bank-table td {
  padding: 6px 5px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line-soft);
  background: #fff;
  vertical-align: middle;
}

.ucc-bank-table tr:nth-child(even) td {
  background: #f7f7f8;
}

.ucc-bank-table td:last-child,
.ucc-bank-table th:last-child {
  border-right: none;
  text-align: center;
}

.ucc-bank-table input[type="text"],
.ucc-bank-table select {
  width: 100%;
  height: 28px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #f7f8ff;
  font-size: 12px;
}

.ucc-kyc-table {
  min-width: 720px;
}

.ucc-full-details {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}

.ucc-full-details-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-900);
  margin-bottom: 10px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.ucc-full-details-count {
  font-size: 11.5px;
  font-weight: 500;
  font-family: var(--font-mono);
  color: var(--ink-500);
  text-transform: none;
  letter-spacing: 0;
}

/* ============================================================
   NOMINEE
   ============================================================ */

#nominee-fields {
  margin-top: 16px;
}

.nominee-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 14px;
  background: var(--paper-0);
}

.nominee-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--amber-600);
  margin-bottom: 12px;
}

/* ============================================================
   FILE DROP
   ============================================================ */

.file-drop {
  position: relative;
  border: 1.5px dashed var(--ink-300);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
  background: var(--paper-0);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.file-drop:hover {
  border-color: var(--amber-500);
  background: var(--amber-050);
}

.file-drop.has-file {
  border-color: var(--green-600);
  background: var(--green-100);
}

.file-drop input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.file-drop-label {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-600);
}

.file-drop-name {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--green-600);
}

/* ============================================================
   CART FLOW PANEL
   ============================================================ */

.cart-flow-panel {
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper-0);
  padding: 16px 18px;
  box-shadow: var(--shadow-card);
}

.cart-flow-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.cart-flow-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--amber-600);
  font-weight: 600;
}

.cart-flow-summary {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-900);
  margin-top: 2px;
}

.cart-flow-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cart-flow-empty {
  font-size: 12.5px;
  color: var(--ink-500);
  padding: 10px 0;
}

.cart-flow-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--paper-1);
}

.cart-flow-row.is-selected {
  border-color: var(--amber-500);
  background: var(--amber-050);
}

.cart-flow-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-900);
}

.cart-flow-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.cart-flow-pill {
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--ink-600);
}

/* ============================================================
   ORDER SUMMARY
   ============================================================ */

.order-summary-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper-0);
  padding: 24px;
  margin-bottom: 20px;
}

.summary-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-500);
  margin-bottom: 14px;
}

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

.summary-table td {
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13.5px;
}

.summary-table tr:last-child td {
  border-bottom: none;
}

.summary-table td:first-child {
  color: var(--ink-500);
  width: 40%;
}

.summary-table td:last-child {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--ink-900);
  text-align: right;
}

.badge-green,
.badge-red {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
}

.badge-green {
  background: var(--green-100);
  color: var(--green-600);
}

.badge-red {
  background: var(--red-100);
  color: var(--red-600);
}

/* ============================================================
   CLIENT CHECK MODAL
   ============================================================ */

.client-check-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 23, 31, 0.55);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease;
}

.client-check-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.client-check-modal {
  background: var(--paper-0);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-modal);
  padding: 28px;
  width: 100%;
  max-width: 460px;
}

.client-check-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.client-check-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--amber-600);
  font-weight: 600;
  margin-bottom: 4px;
}

.client-check-head h2 {
  margin: 0 0 4px;
  font-size: 17px;
  color: var(--ink-900);
}

.client-check-head p {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-500);
}

.client-check-close {
  background: none;
  border: none;
  font-size: 16px;
  color: var(--ink-400);
  cursor: pointer;
  padding: 4px;
}

.client-check-close:hover {
  color: var(--ink-800);
}

.client-check-status {
  margin-top: 14px;
  font-size: 12px;
  color: var(--ink-500);
  line-height: 1.5;
}

.client-check-status.err {
  color: var(--red-600);
}

.client-check-status.ok {
  color: var(--green-600);
}

.client-check-actions {
  margin-top: 22px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

body.client-check-open {
  overflow: hidden;
}

/* ============================================================
   API RESPONSE PANEL
   ============================================================ */

.api-response-panel {
  margin-bottom: 20px;
  border: 1px solid var(--ink-700);
  border-radius: var(--radius-md);
  background: var(--ink-900);
  overflow: hidden;
}

.api-response-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--ink-800);
  color: var(--ink-300);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.close-btn {
  background: none;
  border: none;
  color: var(--ink-400);
  cursor: pointer;
  font-size: 14px;
}

.close-btn:hover {
  color: #fff;
}

.api-response-body {
  margin: 0;
  padding: 16px;
  max-height: 320px;
  overflow: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  color: #d8e4d0;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ============================================================
   UTILITY PANELS (cancellation / reports)
   ============================================================ */

.utility-panel {
  display: none;
}

.utility-section {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  padding-bottom: 18px;
}

#utility-section-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  border-radius: var(--radius-sm);
  background: var(--ink-900);
  color: var(--paper-0);
}

/* ============================================================
   TOAST
   ============================================================ */

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border-radius: var(--radius-md);
  background: var(--ink-900);
  color: var(--paper-0);
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-modal);
  transform: translateY(12px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
  max-width: 360px;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.toast.success .toast-icon {
  background: var(--green-600);
  color: #fff;
}

.toast.error .toast-icon {
  background: var(--red-600);
  color: #fff;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 880px) {
  .kyc-action-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-grid.col-2,
  .form-grid.col-3,
  .form-grid.col-4,
  .form-grid.col-5 {
    grid-template-columns: 1fr;
  }

  .col-span-2 {
    grid-column: auto;
  }

  .mandate-panel .form-grid .field {
    min-width: 0;
  }

  .stepper-inner {
    overflow-x: auto;
    justify-content: flex-start;
  }

  .step-info {
    display: none;
  }

  .ucc-display-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .kyc-action-grid {
    grid-template-columns: 1fr;
  }

  .main-content {
    padding: 16px 12px 64px;
  }

  .form-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .action-left,
  .action-right {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
  }

  .action-right .btn,
  .action-left .btn {
    flex: 1 1 auto;
    min-width: 100px;
    justify-content: center;
  }

  .toast {
    left: 12px;
    right: 12px;
    max-width: none;
  }

  .kyc-banner {
    display: none;
  }
}

@media (max-width: 380px) {
  .main-content {
    padding: 12px 8px 48px;
  }

  .step-item {
    padding: 4px 6px;
  }

  .step-num {
    width: 26px;
    height: 26px;
    font-size: 12px;
  }

  .btn {
    padding: 8px 12px;
    font-size: 13px;
  }

  .client-check-modal {
    padding: 14px 10px;
  }

  .mandate-panel-header {
    padding: 10px 12px;
  }

  .mandate-panel-body {
    padding: 12px 8px;
  }
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */

:focus-visible {
  outline: 2px solid var(--amber-500);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}