:root {
  --ink: #111827;
  --muted: #53606f;
  --line: #d9e1e8;
  --surface: #ffffff;
  --wash: #f3f7f8;
  --teal: #006b68;
  --teal-dark: #004f4c;
  --gold: #c99422;
  --charcoal: #1f2933;
  --shadow: 0 18px 45px rgba(21, 37, 48, 0.12);
  --container: min(1180px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Inter", "Segoe UI", Arial, Helvetica, sans-serif;
  background: var(--surface);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.utility-bar,
.main-nav,
.section-shell,
.split-band,
.insight-band,
.site-footer {
  width: var(--container);
  margin: 0 auto;
}

.utility-bar {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  padding: 9px 0 7px;
  color: var(--muted);
  font-size: 13px;
}

.main-nav {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 198px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background: var(--teal);
  border-radius: 8px;
  font-weight: 800;
  font-size: 22px;
  box-shadow: inset 0 -7px 0 rgba(0, 0, 0, 0.14);
}

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

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.nav-links,
.nav-actions,
.hero-actions,
.quick-actions,
.site-footer nav {
  display: flex;
  align-items: center;
}

.nav-links {
  justify-content: center;
  gap: 18px;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
}

.nav-actions {
  justify-content: flex-end;
  gap: 8px;
}

.ghost-btn,
.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  font-weight: 700;
}

.ghost-btn {
  color: var(--teal-dark);
  border: 1px solid transparent;
}

.ghost-btn:hover,
.nav-links a:hover,
.utility-bar a:hover,
.site-footer a:hover,
.nav-links a.active,
.nav-actions a.active {
  color: var(--teal);
}

.primary-btn {
  color: #fff;
  background: var(--teal);
  border: 1px solid var(--teal);
}

.primary-btn:hover {
  background: var(--teal-dark);
}

.secondary-btn {
  color: var(--teal-dark);
  background: #fff;
  border: 1px solid var(--teal);
}

.text-btn {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-top: 8px;
  padding: 0;
  border: 0;
  color: var(--teal);
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.large {
  min-height: 50px;
  padding: 0 22px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 650px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--charcoal);
}

.page-hero {
  display: grid;
  align-items: center;
  min-height: 360px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(31, 41, 51, 0.98), rgba(31, 41, 51, 0.82)),
    url("assets/banking-hero.png") center right / cover;
}

.page-hero.personal-hero {
  background:
    linear-gradient(90deg, rgba(31, 41, 51, 0.98), rgba(31, 41, 51, 0.8)),
    url("assets/hero-personal.png") center right / cover;
}

.page-hero.business-hero {
  background:
    linear-gradient(90deg, rgba(31, 41, 51, 0.98), rgba(31, 41, 51, 0.8)),
    url("assets/hero-business.png") center right / cover;
}

.page-hero.ways-hero {
  background:
    linear-gradient(90deg, rgba(31, 41, 51, 0.98), rgba(31, 41, 51, 0.8)),
    url("assets/hero-ways.png") center right / cover;
}

.page-hero.support-hero {
  background:
    linear-gradient(90deg, rgba(31, 41, 51, 0.98), rgba(31, 41, 51, 0.8)),
    url("assets/hero-support.png") center right / cover;
}

.page-hero.login-hero {
  background:
    linear-gradient(90deg, rgba(31, 41, 51, 0.98), rgba(31, 41, 51, 0.8)),
    url("assets/hero-login.png") center right / cover;
}

.page-hero > div {
  width: var(--container);
  margin: 0 auto;
  padding: 66px 0 76px;
}

.page-hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: 56px;
  line-height: 1;
  letter-spacing: 0;
}

.page-hero p:not(.eyebrow) {
  max-width: 640px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 19px;
}

.compact-page {
  min-height: 320px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(14, 31, 40, 0.9) 0%, rgba(14, 31, 40, 0.68) 43%, rgba(14, 31, 40, 0.12) 78%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.04));
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: var(--container);
  margin: 0 auto;
  color: #fff;
  padding: 92px 0 128px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  font-size: 13px;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: 74px;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero p:not(.eyebrow) {
  max-width: 580px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
}

.hero-actions {
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.quick-actions {
  position: relative;
  z-index: 2;
  width: var(--container);
  margin: -54px auto 0;
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.quick-actions a {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 104px;
  padding: 22px 20px;
  font-weight: 800;
  border-right: 1px solid var(--line);
}

.quick-actions a:last-child {
  border-right: 0;
}

.quick-actions a:hover {
  background: var(--wash);
}

.action-icon,
.product-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  color: var(--teal-dark);
  background: #e4f2f1;
  border-radius: 8px;
  font-weight: 900;
}

.section-shell {
  padding: 84px 0 68px;
}

.compact-section {
  padding-top: 26px;
}

.anchor-offset {
  position: relative;
  top: -96px;
  display: block;
  height: 0;
  visibility: hidden;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.section-heading > div {
  max-width: 760px;
}

.section-heading h2,
.split-band h2,
.insight-band h2 {
  margin: 0;
  color: var(--charcoal);
  font-size: 46px;
  line-height: 1.05;
  letter-spacing: 0;
}

.compact {
  display: block;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.product-card h3,
.service-row h3 {
  margin: 18px 0 8px;
  font-size: 21px;
}

.product-card p,
.split-band p,
.insight-band p,
.service-row p,
.site-footer p {
  color: var(--muted);
}

.product-card a {
  display: inline-flex;
  margin-top: auto;
  padding-top: 18px;
  color: var(--teal-dark);
  font-weight: 800;
}

.split-band {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
  padding: 64px;
  margin-top: 16px;
  margin-bottom: 72px;
  color: #fff;
  background: var(--charcoal);
  border-radius: 8px;
}

.split-band h2,
.split-band p {
  color: #fff;
}

.split-band p {
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 26px;
}

.feature-list {
  display: grid;
  gap: 12px;
}

.feature-list a {
  display: grid;
  gap: 4px;
  min-height: 74px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
}

.feature-list span {
  color: rgba(255, 255, 255, 0.7);
}

.feature-list.light a {
  background: #fff;
  border-color: var(--line);
}

.feature-list.light span {
  color: var(--muted);
}

.service-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.service-row > div {
  min-height: 200px;
  padding: 28px;
  background: #fff;
}

.insight-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: 42px;
  align-items: center;
  padding: 72px 0 84px;
}

.search-panel {
  padding: 28px;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.search-panel label {
  display: block;
  margin-bottom: 12px;
  font-weight: 800;
}

.search-panel div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.search-panel input,
.search-panel button {
  min-height: 48px;
  border-radius: 8px;
  font: inherit;
}

.search-panel input {
  width: 100%;
  border: 1px solid var(--line);
  padding: 0 14px;
}

.search-panel button {
  color: #fff;
  background: var(--teal);
  border: 1px solid var(--teal);
  padding: 0 18px;
  font-weight: 800;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(300px, auto);
  align-items: start;
  column-gap: 32px;
  row-gap: 18px;
  padding: 34px 0 44px;
  border-top: 1px solid var(--line);
}

.footer-brand {
  display: grid;
  gap: 6px;
  max-width: 620px;
}

.site-footer nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
  text-align: right;
  padding-top: 2px;
}

.site-footer p {
  margin: 0;
}

.site-footer address {
  margin: 4px 0 0;
  color: var(--muted);
  font-style: normal;
  line-height: 1.55;
}

.footer-copy {
  grid-column: 1 / -1;
  margin-top: 2px;
  color: var(--muted);
  font-size: 14px;
}

.form-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 24px;
  width: min(960px, calc(100% - 40px));
  margin: 0 auto;
  padding: 78px 0 96px;
}

.auth-panel,
.auth-help {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.auth-panel {
  display: grid;
  gap: 12px;
}

.auth-panel h2,
.auth-help h2 {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: 0;
}

.auth-panel label {
  font-weight: 800;
}

.auth-panel input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.auth-panel select,
.auth-panel textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  resize: vertical;
}

.auth-panel input[type="file"] {
  padding: 12px;
  background: var(--wash);
}

.auth-panel small {
  color: var(--muted);
  font-size: 13px;
}

.register-shell {
  width: min(860px, calc(100% - 40px));
  margin: 0 auto;
  padding: 78px 0 96px;
}

.register-panel {
  gap: 16px;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

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

.field-row > div {
  display: grid;
  gap: 12px;
}

.form-divider {
  margin-top: 12px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.form-divider h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: 0;
}

.check-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  color: var(--muted);
  font-weight: 600;
}

.check-row input {
  width: 18px;
  height: 18px;
  min-height: 0;
  margin-top: 3px;
}

.notice {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--wash);
  color: var(--charcoal);
  margin-bottom: 18px;
}

.notice p {
  margin: 0;
}

.notice p + p {
  margin-top: 6px;
}

.notice.success {
  border-color: rgba(0, 107, 104, 0.35);
  background: #e4f2f1;
  color: var(--teal-dark);
}

.notice.error {
  border-color: rgba(153, 27, 27, 0.28);
  background: #fff1f1;
  color: #7f1d1d;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: 24px;
  align-items: start;
}

.contact-options {
  display: grid;
  gap: 16px;
}

.dashboard-shell {
  width: var(--container);
  margin: 0 auto;
  padding: 56px 0 88px;
}

.luxury-dashboard {
  position: relative;
  padding-inline: clamp(0px, 1vw, 10px);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  align-items: stretch;
  margin-bottom: 28px;
}

.metric-card,
.dashboard-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(21, 37, 48, 0.06);
}

.metric-card {
  display: grid;
  align-content: start;
  min-height: 150px;
  padding: 24px;
}

.metric-card span {
  display: block;
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
}

.metric-card strong {
  display: block;
  margin-top: 10px;
  color: var(--charcoal);
  font-size: 32px;
  line-height: 1;
}

.metric-card p {
  margin: 12px 0 0;
  color: var(--muted);
}

.luxury-dashboard .metric-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #13201f 0%, #23413e 55%, #151a21 100%);
  border-color: rgba(201, 148, 34, 0.26);
  box-shadow: 0 18px 46px rgba(16, 24, 32, 0.18);
}

.luxury-dashboard .metric-card::after {
  content: "";
  position: absolute;
  inset: auto -24px -56px auto;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(246, 211, 139, 0.28);
  border-radius: 50%;
}

.luxury-dashboard .metric-card span,
.luxury-dashboard .metric-card p {
  color: rgba(255, 255, 255, 0.68);
}

.luxury-dashboard .metric-card strong {
  color: #fff;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
  gap: 24px;
  align-items: stretch;
}

.account-panel {
  margin-bottom: 24px;
}

.dashboard-panel {
  position: relative;
  display: grid;
  align-content: start;
  overflow: hidden;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 249, 0.98)),
    #fff;
  border-color: rgba(20, 83, 82, 0.12);
  box-shadow: 0 20px 48px rgba(20, 32, 42, 0.08);
}

.dashboard-panel > :last-child {
  margin-bottom: 0;
}

.dashboard-panel h2 {
  margin: 0 0 18px;
  font-size: 28px;
  line-height: 1.1;
}

.luxury-panel {
  color: #fff;
  background:
    linear-gradient(145deg, rgba(19, 32, 31, 0.98), rgba(27, 35, 45, 0.98)),
    #13201f;
  border-color: rgba(201, 148, 34, 0.26);
  box-shadow: 0 22px 52px rgba(15, 23, 31, 0.2);
}

.account-panel.dashboard-panel,
.dashboard-panel.account-panel {
  border-top: 3px solid rgba(201, 148, 34, 0.42);
}

.luxury-panel h2 {
  color: #fff;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.panel-heading .eyebrow {
  margin-bottom: 6px;
}

.panel-heading h2 {
  margin-bottom: 0;
}

.dashboard-chart {
  display: block;
  width: 100%;
  min-height: 220px;
}

.forex-panel {
  display: grid;
  align-content: start;
  gap: 16px;
}

.forex-grid {
  display: grid;
  grid-template-columns: minmax(70px, auto) minmax(0, 1fr);
  gap: 10px 12px;
  align-items: center;
}

.forex-grid label {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 800;
}

.forex-grid input,
.forex-grid select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  font: inherit;
}

.forex-grid option {
  color: var(--ink);
}

.forex-result {
  display: block;
  padding-top: 4px;
  color: #f6d38b;
  font-size: 34px;
  line-height: 1;
}

.beneficiary-tabs {
  display: grid;
  gap: 16px;
}

.beneficiary-type-select {
  display: grid;
  gap: 8px;
  max-width: 360px;
}

.beneficiary-type-select label {
  font-weight: 900;
}

.beneficiary-type-select select {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid rgba(15, 118, 110, 0.24);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
}

.tab-panels {
  display: grid;
}

.tab-panel {
  display: none;
  max-width: 860px;
}

.tab-panel.is-active {
  display: block;
}

.fine-print {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}

.fine-print.dark {
  color: var(--muted);
}

.detail-list {
  display: grid;
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.detail-list div {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 18px;
  padding: 15px 16px;
  background: #fff;
}

.detail-list dt {
  color: var(--muted);
  font-weight: 800;
}

.detail-list dd {
  margin: 0;
}

.profile-picture-panel {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--wash);
}

.profile-picture-frame {
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  aspect-ratio: 1;
  flex: 0 0 112px;
  overflow: hidden;
  border: 2px solid rgba(20, 83, 82, 0.18);
  border-radius: 50%;
  background: #fff;
  color: var(--teal-dark);
  font-size: 34px;
  font-weight: 900;
}

.profile-picture-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-profile-picture {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  aspect-ratio: 1;
  flex: 0 0 88px;
  margin-bottom: 20px;
  overflow: hidden;
  border: 3px solid rgba(246, 211, 139, 0.72);
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(246, 211, 139, 0.08)),
    rgba(255, 255, 255, 0.14);
  box-shadow:
    0 16px 34px rgba(4, 18, 16, 0.26),
    inset 0 0 0 4px rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}

.hero-profile-picture img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.profile-picture-form {
  grid-template-columns: minmax(180px, 1fr) auto;
  align-items: end;
}

.profile-picture-form label {
  grid-column: 1 / -1;
}

.password-change-form {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--wash);
}

.profile-update-form {
  gap: 16px;
}

.profile-update-form textarea,
.compact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  resize: vertical;
}

.profile-update-form input[readonly] {
  color: var(--muted);
  background: #eef4f3;
}

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

.admin-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  min-width: 820px;
  background: #fff;
}

.admin-table th,
.admin-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.admin-table th {
  color: rgba(255, 255, 255, 0.78);
  background: #13201f;
  font-size: 13px;
  text-transform: uppercase;
  white-space: nowrap;
}

.admin-table tbody tr {
  transition: background 160ms ease;
}

.admin-table tbody tr:hover {
  background: rgba(228, 242, 241, 0.36);
}

.payment-record-table {
  min-width: 1120px;
}

.payment-record-table th:nth-child(1),
.payment-record-table td:nth-child(1) {
  width: 130px;
}

.payment-record-table th:nth-child(5),
.payment-record-table td:nth-child(5),
.payment-record-table th:nth-child(6),
.payment-record-table td:nth-child(6) {
  width: 130px;
}

.payment-record-table th:nth-child(7),
.payment-record-table td:nth-child(7) {
  width: 150px;
}

.client-record-table {
  min-width: 1240px;
}

.client-record-table th:nth-child(1),
.client-record-table td:nth-child(1) {
  width: 270px;
}

.client-record-table th:nth-child(2),
.client-record-table td:nth-child(2) {
  width: 180px;
}

.client-record-table th:nth-child(8),
.client-record-table td:nth-child(8) {
  width: 150px;
}

.client-record-table .admin-client-cell {
  grid-template-columns: 64px 1fr;
}

.client-record-table .admin-client-avatar {
  width: 64px;
  height: 64px;
  flex-basis: 64px;
  border: 2px solid rgba(15, 118, 110, 0.16);
  box-shadow: 0 10px 22px rgba(20, 32, 42, 0.1);
}

.admin-client-cell {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  align-items: center;
  min-width: 230px;
}

.admin-client-avatar {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  aspect-ratio: 1;
  flex: 0 0 54px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--wash);
  color: var(--teal-dark);
  font-weight: 900;
}

.admin-client-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.client-record-dialog {
  width: min(920px, calc(100vw - 32px));
  max-height: min(780px, calc(100vh - 32px));
  padding: 0;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(11, 34, 31, 0.32);
}

.client-record-dialog::backdrop {
  background: rgba(7, 23, 21, 0.62);
}

.dialog-shell {
  padding: 24px;
  overflow: auto;
}

.dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.dialog-heading .admin-client-cell {
  grid-template-columns: 84px minmax(0, 1fr);
  min-width: 0;
}

.dialog-heading .admin-client-avatar {
  width: 84px;
  height: 84px;
  flex-basis: 84px;
  border: 3px solid rgba(246, 211, 139, 0.72);
  box-shadow:
    0 16px 34px rgba(20, 32, 42, 0.16),
    inset 0 0 0 4px rgba(255, 255, 255, 0.18);
  font-size: 28px;
}

.dialog-heading h2 {
  margin: 2px 0 8px;
}

.dialog-close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--teal-dark);
  background: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

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

.client-record-grid section,
.dialog-lists section {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf8ef;
}

.client-record-grid h3,
.dialog-lists h3 {
  margin: 0 0 10px;
  color: var(--teal-dark);
}

.client-record-grid p,
.dialog-lists p {
  margin: 6px 0;
}

.dialog-lists {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.dialog-lists span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  color: var(--teal-dark);
  background: #e4f2f1;
  font-weight: 800;
  font-size: 13px;
}

.compact-form {
  display: grid;
  gap: 12px;
  align-items: start;
}

.admin-fund-form {
  grid-template-columns: minmax(260px, 1.35fr) minmax(150px, 0.55fr) minmax(210px, 1fr) minmax(120px, auto);
  align-items: end;
}

.compact-form label {
  font-weight: 800;
}

.compact-form input,
.compact-form select,
.compact-form textarea,
.table-form input,
.table-form select,
.otp-form input {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.table-form {
  display: grid;
  grid-template-columns: minmax(110px, 0.7fr) minmax(150px, 1fr) minmax(150px, 1fr) minmax(130px, 0.9fr) minmax(130px, 0.9fr) minmax(120px, 0.8fr) minmax(130px, 0.9fr) minmax(120px, 0.8fr) minmax(140px, 1fr) minmax(110px, 0.7fr) auto;
  gap: 10px;
  align-items: end;
}

.local-table-form {
  grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr) minmax(135px, 0.85fr) minmax(130px, 0.8fr) minmax(135px, 0.85fr) minmax(120px, 0.75fr) auto;
}

.international-table-form {
  grid-template-columns: minmax(150px, 1fr) minmax(160px, 1fr) minmax(140px, 0.9fr) minmax(140px, 0.9fr) minmax(120px, 0.8fr) minmax(140px, 0.9fr) minmax(120px, 0.8fr) minmax(130px, 0.9fr) minmax(120px, 0.8fr) auto;
}

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

.beneficiary-owner {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 10px;
  color: var(--muted);
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
}

.otp-form {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(120px, auto);
  gap: 8px;
  align-items: end;
}

.admin-action-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(88px, max-content));
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.admin-action-form:last-child {
  margin-bottom: 0;
}

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

.kyc-table {
  min-width: 1040px;
}

.kyc-review-form {
  display: grid;
  gap: 10px;
  min-width: 260px;
}

.kyc-review-form textarea {
  width: 100%;
  min-height: 72px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  resize: vertical;
}

.danger-btn {
  color: #7f1d1d;
  border-color: rgba(153, 27, 27, 0.35);
  background: #fff7f7;
}

.danger-btn:hover {
  background: #fee2e2;
}

.auth-panel button {
  margin-top: 8px;
}

.auth-panel a,
.auth-help a {
  color: var(--teal-dark);
  font-weight: 800;
}

.auth-help {
  background: var(--wash);
}

@media (max-width: 1120px) {
  .main-nav {
    gap: 16px;
  }

  .brand {
    min-width: 178px;
  }

  .nav-links {
    gap: 12px;
    font-size: 14px;
  }

  .nav-actions .ghost-btn {
    display: none;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .utility-bar {
    display: none;
  }

  .main-nav {
    grid-template-columns: auto auto;
    justify-content: space-between;
    width: min(100% - 32px, 1180px);
  }

  .menu-toggle {
    display: block;
  }

  .nav-links,
  .nav-actions {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
  }

  .main-nav.open .nav-links,
  .main-nav.open .nav-actions {
    display: grid;
    justify-content: stretch;
    gap: 8px;
    padding: 0 0 16px;
  }

  .nav-links a,
  .nav-actions a {
    min-height: 44px;
    padding: 10px 0;
  }

  .quick-actions,
  .service-row,
  .split-band,
  .insight-band {
    grid-template-columns: 1fr;
  }

  .quick-actions {
    display: grid;
  }

  .quick-actions a {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .quick-actions a:last-child {
    border-bottom: 0;
  }

  .split-band {
    padding: 38px 28px;
    margin-bottom: 64px;
  }

  .hero h1 {
    font-size: 56px;
  }

  .page-hero h1 {
    font-size: 44px;
  }

  .section-heading h2,
  .split-band h2,
  .insight-band h2 {
    font-size: 38px;
  }

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

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-grid,
  .dashboard-layout {
    grid-template-columns: 1fr;
  }

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

  .local-table-form,
  .international-table-form {
    grid-template-columns: 1fr;
  }

  .table-actions {
    flex-wrap: wrap;
  }

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

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

  .client-record-grid,
  .dialog-lists {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  :root {
    --container: min(100% - 28px, 1180px);
  }

  .main-nav {
    min-height: 64px;
    width: var(--container);
  }

  .brand {
    min-width: 0;
  }

  .hero {
    min-height: 640px;
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(14, 31, 40, 0.92) 0%, rgba(14, 31, 40, 0.72) 58%, rgba(14, 31, 40, 0.22) 100%);
  }

  .hero img {
    object-position: 58% center;
  }

  .hero-content {
    align-self: start;
    padding: 52px 0 92px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .page-hero {
    min-height: 300px;
  }

  .page-hero > div {
    padding: 46px 0 52px;
  }

  .page-hero h1 {
    font-size: 34px;
    line-height: 1.05;
  }

  .section-heading h2,
  .split-band h2,
  .insight-band h2 {
    font-size: 32px;
  }

  .hero p:not(.eyebrow) {
    font-size: 17px;
  }

  .quick-actions {
    margin-top: -28px;
  }

  .quick-actions a {
    min-height: 78px;
    padding: 18px;
  }

  .section-heading,
  .site-footer {
    display: block;
  }

  .site-footer nav {
    justify-content: flex-start;
    margin-top: 18px;
    text-align: left;
  }

  .footer-copy {
    margin-top: 18px;
  }

  .section-shell {
    padding: 58px 0 48px;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .product-card {
    min-height: 0;
    padding: 20px;
  }

  .split-band {
    padding: 30px 20px;
    margin-top: 8px;
    margin-bottom: 50px;
  }

  .insight-band {
    padding: 56px 0 64px;
  }

  .form-shell {
    width: var(--container);
    padding: 56px 0 70px;
  }

  .auth-panel,
  .auth-help,
  .search-panel {
    padding: 22px;
  }

  .register-shell {
    width: var(--container);
    padding: 56px 0 70px;
  }

  .dashboard-shell {
    padding: 36px 0 52px;
  }

  .luxury-dashboard {
    padding-inline: 0;
  }

  .dashboard-grid,
  .dashboard-layout {
    gap: 14px;
  }

  .dashboard-grid {
    margin-bottom: 18px;
  }

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

  .metric-card {
    min-height: 0;
    padding: 20px;
  }

  .metric-card strong {
    font-size: clamp(25px, 8vw, 30px);
    line-height: 1.12;
    overflow-wrap: anywhere;
  }

  .dashboard-panel {
    padding: 18px;
  }

  .dashboard-panel h2 {
    margin-bottom: 14px;
    font-size: 24px;
  }

  .panel-heading {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
  }

  .panel-heading .status-pill {
    justify-self: start;
  }

  .compact-form {
    gap: 10px;
  }

  .compact-form .primary-btn,
  .otp-form .secondary-btn {
    width: 100%;
  }

  .dashboard-panel > .table-wrap {
    width: calc(100% + 36px);
    margin-inline: -18px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .dialog-shell {
    padding: 18px;
  }

  .dialog-heading,
  .client-record-grid,
  .dialog-lists {
    grid-template-columns: 1fr;
  }

  .dialog-heading {
    display: grid;
  }

  .dialog-close {
    justify-self: end;
    order: -1;
  }

  .dialog-heading .admin-client-cell {
    grid-template-columns: 70px minmax(0, 1fr);
  }

  .dialog-heading .admin-client-avatar {
    width: 70px;
    height: 70px;
    flex-basis: 70px;
    font-size: 24px;
  }

  .profile-picture-panel,
  .profile-picture-form {
    grid-template-columns: 1fr;
  }

  .profile-picture-frame {
    width: 96px;
    height: 96px;
  }

  .hero-profile-picture {
    width: 78px;
    height: 78px;
    flex-basis: 78px;
    font-size: 24px;
  }

  .detail-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .field-row > div {
    gap: 8px;
  }

  .three-fields {
    grid-template-columns: 1fr;
  }

  .search-panel div {
    grid-template-columns: 1fr;
  }
}
