:root {
  --ink: #0d1b23;
  --muted: #4a4a4a;
  --paper: #f9f9f9;
  --panel: #ffffff;
  --wash: #f0f7f4;
  --line: #e0e5e5;
  --teal: #2d8659;
  --teal-dark: #1f6b45;
  --gold: #c9972b;
  --gold-soft: #f6ead1;
  --coral: #c65f47;
  --mint: #ddf4eb;
  --charcoal: #0d2a1c;
  --danger: #b3332f;
  --success: #17815d;
  --shadow: 0 18px 55px rgba(23, 33, 29, 0.11);
  --radius: 8px;
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  letter-spacing: 0;
}

body.is-dashboard {
  background: #f5f6f3;
}

body.dark-mode {
  --ink: #eef7f3;
  --muted: #a9bbb3;
  --paper: #0c1412;
  --panel: #14211d;
  --wash: #1a3129;
  --line: #263d36;
  --teal: #3ba872;
  --teal-dark: #72d49d;
  --gold-soft: #3a3019;
  --mint: #1b382f;
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.32);
  background: var(--paper);
  color: var(--ink);
}

body.dark-mode.is-dashboard {
  background: #0c1412;
}

body.menu-open {
  overflow: hidden;
}

body.dashboard-menu-open {
  overflow: hidden;
}

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

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

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.68;
  transform: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(220, 229, 224, 0.88);
  background: rgba(251, 252, 251, 0.94);
  backdrop-filter: blur(16px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1180px, calc(100% - 36px));
  min-height: 76px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 800;
  color: var(--ink);
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(13, 27, 35, 0.1);
  border-radius: 8px;
  background: #17211d;
  box-shadow: 0 6px 14px rgba(13, 27, 35, 0.12);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-name {
  font-size: 17px;
  line-height: 1.1;
}

.brand-tag {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.nav-link,
.mobile-link {
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #38443f;
  padding: 10px 12px;
  font-weight: 700;
}

.nav-link:hover,
.mobile-link:hover,
.nav-link.active,
.mobile-link.active {
  background: var(--wash);
  color: var(--teal-dark);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
  content: "";
}

.menu-toggle span {
  position: relative;
}

.menu-toggle span::before {
  position: absolute;
  top: -6px;
}

.menu-toggle span::after {
  position: absolute;
  top: 6px;
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--panel);
  padding: 12px 18px 18px;
}

.mobile-menu.open {
  display: grid;
  gap: 8px;
}

.section {
  padding: 86px 0;
}

.section.tight {
  padding: 56px 0;
}

.container {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow::before {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--gold);
  content: "";
}

.hero {
  position: relative;
  min-height: calc(100svh - 118px);
  display: grid;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(23, 33, 29, 0.82) 0%, rgba(23, 33, 29, 0.58) 39%, rgba(23, 33, 29, 0.13) 73%),
    url("assets/averon-hero.png") center / cover no-repeat;
}

.hero::after {
  position: absolute;
  inset: auto 0 0 0;
  height: 38%;
  background: linear-gradient(180deg, rgba(251, 252, 251, 0), var(--paper));
  content: "";
  z-index: -1;
}

.hero-inner {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 64px 0 92px;
}

.hero-content {
  width: min(680px, 100%);
  color: #fff;
}

.hero .eyebrow {
  color: #f3d794;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: 76px;
  line-height: 0.96;
  letter-spacing: 0;
}

.hero p {
  max-width: 660px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
  line-height: 1.7;
}

.hero-actions,
.split-actions,
.form-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero-actions {
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 11px 17px;
  font-weight: 800;
  line-height: 1.1;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

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

.btn-primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 14px 30px rgba(8, 122, 112, 0.22);
}

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

.btn-gold {
  background: var(--gold);
  color: #20170a;
  box-shadow: 0 14px 30px rgba(201, 151, 43, 0.24);
}

.btn-light {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.btn-secondary {
  border-color: var(--line);
  background: var(--panel);
  color: var(--ink);
}

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

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

.btn-small {
  min-height: 34px;
  padding: 8px 11px;
  font-size: 13px;
}

.crypto-submit-btn {
  width: fit-content;
  min-width: 124px;
  min-height: 38px;
  padding: 8px 13px;
  font-size: 13px;
  max-width: 100%;
  justify-self: start;
  box-shadow: 0 10px 24px rgba(8, 122, 112, 0.18);
}

.icon {
  display: inline-grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.image-icon,
.rail-icon-img {
  display: block;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 8px;
  object-fit: cover;
}

.image-icon-small {
  width: 30px;
  height: 30px;
}

.rail-icon-img {
  width: 24px;
  height: 24px;
  padding: 2px;
  background: rgba(255, 255, 255, 0.12);
}

.btn-secondary .icon,
.btn-ghost .icon,
.nav-link .icon {
  background: var(--wash);
  color: var(--teal-dark);
}

.hero-badges {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: min(640px, 100%);
  margin-top: 36px;
}

.glass-stat {
  min-height: 86px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  padding: 16px;
  color: #fff;
  backdrop-filter: blur(16px);
}

.glass-stat strong {
  display: block;
  margin-bottom: 5px;
  font-size: 24px;
  line-height: 1;
}

.glass-stat span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 700;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.7fr);
  gap: 36px;
  align-items: end;
  margin-bottom: 32px;
}

.section-head h2,
.split-copy h2,
.auth-copy h1,
.panel-title h2,
.dash-title h1,
.modal h2 {
  margin: 0;
  color: var(--ink);
  font-size: 48px;
  line-height: 1.04;
  letter-spacing: 0;
}

.section-head p,
.split-copy p,
.page-hero p,
.auth-copy p,
.auth-card p,
.panel-title p,
.dash-title p,
.muted {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

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

.feature-card,
.service-card,
.metric-card,
.dash-panel,
.account-card,
.auth-card,
.notice-card,
.timeline-card,
.table-wrap,
.mini-card,
.support-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 8px 30px rgba(23, 33, 29, 0.05);
}

.feature-card,
.service-card {
  min-height: 210px;
  padding: 24px;
}

.feature-card h3,
.service-card h3,
.mini-card h3,
.support-card h3,
.timeline-card h3,
.account-card h3,
.notice-card h3 {
  margin: 0 0 10px;
  font-size: 19px;
  letter-spacing: 0;
}

.feature-card p,
.service-card p,
.mini-card p,
.support-card p,
.timeline-card p,
.account-card p,
.notice-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.card-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 8px;
  background: var(--mint);
  color: var(--teal-dark);
  font-size: 14px;
  font-weight: 900;
}

.service-logo {
  display: inline-grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  margin-bottom: 8px;
  border-radius: 8px;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.service-logo-small {
  width: 28px;
  height: 28px;
  margin: 0;
  font-size: 8px;
}

.logo-wire {
  background: linear-gradient(135deg, #0a7c72, #c9972b);
}

.logo-bank {
  background: #1f5f8f;
}

.logo-zelle {
  background: #6d1ed4;
  font-size: 9px;
  text-transform: none;
}

.logo-btc {
  background: #f7931a;
}

.logo-eth {
  background: #627eea;
}

.logo-usdt {
  background: #26a17b;
  font-size: 8px;
}

.logo-sol {
  background: linear-gradient(135deg, #181b2a 5%, #14f195 50%, #9945ff 100%);
}

.logo-deduct {
  background: #9f2f22;
  font-size: 16px;
}

.logo-generic {
  background: var(--teal-dark);
}

.service-card:nth-child(2n) .card-icon,
.feature-card:nth-child(2n) .card-icon {
  background: var(--gold-soft);
  color: #6f4b00;
}

.service-card:nth-child(3n) .card-icon,
.feature-card:nth-child(3n) .card-icon {
  background: #f7ddd5;
  color: #8a3523;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 1fr);
  gap: 46px;
  align-items: center;
}

.split.reverse {
  grid-template-columns: minmax(280px, 1fr) minmax(0, 0.85fr);
}

.split-copy {
  display: grid;
  gap: 18px;
}

.image-panel {
  position: relative;
  overflow: hidden;
  min-height: 480px;
  border-radius: 8px;
  background: var(--charcoal);
  box-shadow: var(--shadow);
}

.image-panel img {
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
}

.image-overlay {
  position: absolute;
  right: 20px;
  bottom: 20px;
  display: grid;
  width: min(360px, calc(100% - 40px));
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(23, 33, 29, 0.82);
  padding: 18px;
  color: #fff;
  backdrop-filter: blur(18px);
}

.image-overlay strong {
  font-size: 28px;
}

.image-overlay span {
  color: rgba(255, 255, 255, 0.78);
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 6px 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #33413b;
  font-weight: 700;
}

.check-list li::before {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  background: var(--mint);
  color: var(--teal-dark);
  content: "OK";
  font-size: 9px;
  font-weight: 900;
}

.stats-band {
  background: var(--charcoal);
  color: #fff;
}

.stats-band .section-head h2,
.stats-band .section-head p {
  color: #fff;
}

.stats-band .section-head p {
  color: rgba(255, 255, 255, 0.7);
}

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

.stat-tile {
  min-height: 130px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  padding: 22px;
}

.stat-tile strong {
  display: block;
  color: #fff;
  font-size: 35px;
  line-height: 1;
}

.stat-tile span {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

.cta-band {
  background: var(--wash);
}

.cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: clamp(22px, 5vw, 46px);
  box-shadow: var(--shadow);
}

.cta-box h2 {
  margin: 0 0 10px;
  font-size: 42px;
  line-height: 1.05;
}

.cta-box p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 86px 0 72px;
  background:
    linear-gradient(90deg, rgba(23, 33, 29, 0.86), rgba(23, 33, 29, 0.47)),
    url("assets/averon-hero.png") center / cover no-repeat;
  color: #fff;
}

.page-hero h1,
.page-hero p {
  color: #fff;
}

.page-hero p {
  max-width: 650px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

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

.timeline-card {
  padding: 24px;
}

.timeline-card strong {
  display: block;
  margin-bottom: 12px;
  color: var(--teal-dark);
  font-size: 26px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1fr);
  gap: 22px;
}

.contact-stack {
  display: grid;
  gap: 14px;
}

.contact-stack .notice-card {
  padding: 24px;
}

.auth-shell {
  display: grid;
  min-height: 100svh;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  background: var(--paper);
}

.auth-visual {
  position: relative;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: clamp(28px, 6vw, 78px);
  background:
    linear-gradient(90deg, rgba(23, 33, 29, 0.84), rgba(23, 33, 29, 0.3)),
    url("assets/averon-hero.png") center / cover no-repeat;
  color: #fff;
}

.auth-visual .brand {
  position: absolute;
  top: 30px;
  left: clamp(24px, 5vw, 60px);
  color: #fff;
}

.auth-visual .brand-tag {
  color: rgba(255, 255, 255, 0.68);
}

.auth-copy {
  display: grid;
  max-width: 620px;
  gap: 20px;
}

.auth-copy h1,
.auth-copy p {
  color: #fff;
}

.auth-copy p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.auth-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.auth-points span {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  padding: 12px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 800;
}

.auth-area {
  display: grid;
  align-items: center;
  padding: 34px;
}

.auth-card {
  width: 100%;
  padding: clamp(24px, 5vw, 38px);
}

.auth-card h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1.1;
}

.auth-card > p {
  margin-top: 10px;
}

.auth-form {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}

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

.field {
  display: grid;
  gap: 8px;
}

.field span,
.checkbox-row,
.radio-row {
  color: #34413b;
  font-size: 13px;
  font-weight: 800;
}

.field small,
.auth-switch {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 11px 13px;
  outline: 0;
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(8, 122, 112, 0.11);
}

.checkbox-row,
.radio-row {
  display: flex;
  align-items: center;
  gap: 9px;
}

.checkbox-row input,
.radio-row input {
  width: 17px;
  height: 17px;
  accent-color: var(--teal);
}

.auth-bottom {
  display: grid;
  gap: 12px;
  margin-top: 20px;
  text-align: center;
}

.divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.divider::before,
.divider::after {
  flex: 1;
  height: 1px;
  background: var(--line);
  content: "";
}

.auth-footnote {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.dashboard-shell {
  display: grid;
  min-height: 100svh;
  grid-template-columns: 268px minmax(0, 1fr);
}

.rail {
  position: sticky;
  top: 0;
  height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
  overflow-y: auto;
  background: #10251f;
  color: #fff;
  padding: 20px;
}

.rail-head {
  display: grid;
  gap: 14px;
}

.rail-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-menu-backdrop,
.dash-menu-button,
.rail-close {
  display: none;
}

.dash-menu-button,
.rail-close {
  min-height: 40px;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
}

.dash-menu-button {
  border: 1px solid var(--line);
  background: var(--paper);
  color: #26342f;
  padding: 0 12px;
}

.rail-close {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 0 10px;
}

.menu-lines,
.menu-lines::before,
.menu-lines::after {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.menu-lines {
  position: relative;
}

.menu-lines::before,
.menu-lines::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-lines::before {
  top: -5px;
}

.menu-lines::after {
  top: 5px;
}

.rail .brand {
  color: #fff;
}

.rail .brand-mark {
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

.rail .brand-tag {
  color: rgba(255, 255, 255, 0.62);
}

.rail-nav {
  display: grid;
  align-content: start;
  gap: 6px;
}

.rail-link {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.74);
  padding: 10px 11px;
  font-size: 14px;
  font-weight: 800;
  text-align: left;
}

.rail-link:hover,
.rail-link.active {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.rail-link .icon {
  background: rgba(255, 255, 255, 0.1);
}

.rail-pill,
.dashboard-label,
.rail-card-label {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.rail-pill {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
  padding: 6px 9px;
}

.dashboard-label {
  margin-bottom: 10px;
  background: var(--gold-soft);
  color: #6f4d00;
  padding: 6px 9px;
}

.rail-card-label {
  color: rgba(255, 255, 255, 0.54);
}

.rail-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  padding: 16px;
}

.rail-card strong {
  display: block;
  margin: 6px 0;
}

.rail-card span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  line-height: 1.5;
}

.dash-main {
  min-width: 0;
  padding: 20px;
}

.dash-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px 18px;
  box-shadow: 0 1px 2px rgba(23, 33, 29, 0.04);
}

.dash-title h1 {
  font-size: 28px;
  line-height: 1.12;
}

.dash-title p:last-child {
  max-width: 760px;
  margin-top: 6px;
  color: var(--muted);
}

.dash-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

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

.banking-hero,
.operations-hero {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}

.banking-hero {
  grid-template-columns: minmax(0, 1.55fr) minmax(290px, 0.45fr);
}

.banking-hero-main,
.operations-hero {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(23, 33, 29, 0.04);
}

.banking-hero-main {
  padding: 20px;
}

.hero-account-header,
.receipt-head,
.receipt-brand,
.receipt-actions,
.kyc-status-strip {
  display: flex;
  align-items: center;
}

.hero-account-header {
  justify-content: space-between;
  gap: 16px;
}

.hero-account-header h2,
.operations-hero-copy h2 {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.12;
}

.hero-account-header p,
.operations-hero-copy p {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.hero-balance-block {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.hero-balance-block span,
.summary-tile span,
.account-card-balance span,
.bank-command small,
.workflow-action small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-balance-block strong {
  display: block;
  margin: 8px 0 6px;
  color: var(--ink);
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1;
}

.hero-balance-block small,
.summary-tile small {
  color: var(--muted);
  font-weight: 800;
}

.account-meta-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.account-fact {
  min-width: 0;
  border-right: 1px solid var(--line);
  background: var(--paper);
  padding: 13px 14px;
}

.account-fact:last-child {
  border-right: 0;
}

.account-fact span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.account-fact strong {
  display: block;
  margin-top: 5px;
  color: #26342f;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.banking-hero-side {
  display: grid;
  gap: 10px;
}

.summary-tile {
  display: grid;
  align-content: center;
  min-height: 106px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(23, 33, 29, 0.03);
}

.summary-tile strong {
  display: block;
  margin: 8px 0 4px;
  color: #26342f;
  font-size: 22px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.notification-summary-card {
  align-content: start;
}

.notification-summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.notification-summary-head > span {
  margin: 0;
}

.notification-summary-card .status {
  min-height: 22px;
  padding: 4px 8px;
  font-size: 11px;
}

.notification-summary-card strong {
  font-size: 17px;
}

.notification-summary-card small {
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.notification-count {
  margin-top: 8px;
  color: var(--teal-dark) !important;
}

.bank-command-bar {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.bank-command {
  display: grid;
  min-height: 82px;
  align-content: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #26342f;
  padding: 12px;
  text-align: left;
  box-shadow: 0 1px 2px rgba(23, 33, 29, 0.03);
}

.bank-command:hover,
.bank-command:focus {
  border-color: var(--teal);
  background: #fbfdfc;
  color: var(--teal-dark);
}

.bank-command span {
  font-size: 14px;
  font-weight: 900;
}

.bank-command .image-icon {
  width: 34px;
  height: 34px;
}

.bank-command small {
  color: var(--muted);
  font-size: 11px;
  text-transform: none;
}

.bank-workspace,
.operations-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 14px;
}

.workspace-primary,
.workspace-aside {
  display: grid;
  align-content: start;
  gap: 14px;
}

.bank-section-card,
.customer-ledger-panel,
.workflow-panel {
  min-height: 0;
}

.service-summary-card .bank-status-row {
  padding: 12px 0;
}

.customer-shell {
  --bottom-nav-space: 0px;
}

.customer-shell .dash-main {
  padding: 0;
}

.customer-shell .rail {
  border-right: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
}

.customer-shell .rail-link {
  min-height: 54px;
  gap: 14px;
  color: #3f4a45;
  font-size: 18px;
  font-weight: 700;
}

.customer-shell .rail-link:hover,
.customer-shell .rail-link.active {
  border-color: var(--line);
  background: var(--wash);
  color: var(--teal-dark);
}

.customer-shell .rail-link.danger {
  color: #cc4b68;
}

.customer-shell .rail-link .icon,
.customer-shell .rail-icon-img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #e7eeee;
  color: var(--ink);
  padding: 7px;
}

.rail-section-label {
  display: block;
  margin: 14px 0 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.customer-rail-head {
  display: grid;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}

.customer-rail-profile {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.customer-rail-profile strong,
.profile-popover-head strong {
  display: block;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.15;
}

.customer-rail-profile a,
.profile-popover-head a {
  display: block;
  width: fit-content;
  max-width: 100%;
  color: var(--muted);
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rail-account-pill,
.profile-popover-head small {
  display: inline-flex;
  width: fit-content;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--wash);
  color: var(--muted);
  padding: 5px 9px;
  font-weight: 800;
}

.customer-rail-profile small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.customer-rail-balance span,
.wallet-card span,
.wallet-card small,
.app-section-head h2,
.app-action-tile span,
.crypto-transfer-tile span,
.crypto-transfer-tile small,
.app-metric-card span {
  color: var(--muted);
}

.customer-rail-balance strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 34px;
  line-height: 1;
}

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

.dashboard-appbar {
  position: sticky;
  top: 0;
  z-index: 70;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 76px;
  margin: 0;
  border-width: 0 0 1px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: none;
  backdrop-filter: blur(14px);
}

.appbar-brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  justify-self: center;
  gap: 8px;
  color: #1c2d70;
  font-size: 17px;
  font-weight: 950;
  text-transform: uppercase;
}

.appbar-brand img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.appbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.app-icon-button,
.profile-chip-button,
.theme-toggle,
.wallet-eye,
.wallet-fund,
.section-link,
.popover-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
}

.app-icon-button {
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
}

.app-icon-bell {
  position: relative;
  width: 17px;
  height: 19px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 11px 11px 4px 4px;
}

.app-icon-bell::before {
  position: absolute;
  right: -5px;
  bottom: -5px;
  left: -5px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.app-icon-bell::after {
  position: absolute;
  bottom: -9px;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: currentColor;
  content: "";
  transform: translateX(-50%);
}

.app-badge {
  position: absolute;
  top: -4px;
  right: -3px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #d32626;
  color: #fff;
  display: grid;
  place-items: center;
  padding: 0 5px;
  font-size: 11px;
  font-weight: 900;
}

.profile-chip-button {
  gap: 7px;
  padding: 5px 8px;
}

.profile-avatar {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  flex: 0 0 auto;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #e4e8e8;
  color: #7d8585;
  font-size: 13px;
  font-weight: 900;
}

.profile-avatar-large {
  width: 70px;
  height: 70px;
  font-size: 18px;
}

.profile-avatar-xl {
  width: 126px;
  height: 126px;
  border-radius: 8px;
  font-size: 32px;
}

.profile-caret {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.theme-toggle {
  min-height: 38px;
  gap: 8px;
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 900;
}

.theme-toggle-track {
  position: relative;
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: #dce5e2;
}

.theme-toggle-track::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(23, 33, 29, 0.22);
  content: "";
  transition: transform 160ms ease;
}

body.dark-mode .theme-toggle-track {
  background: var(--teal);
}

body.dark-mode .theme-toggle-track::after {
  transform: translateX(14px);
}

.dashboard-popover {
  position: fixed;
  top: 88px;
  right: 20px;
  z-index: 90;
  display: none;
  width: min(560px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 22px 55px rgba(13, 27, 35, 0.18);
}

body.notifications-open .notifications-popover,
body.profile-menu-open .profile-popover {
  display: block;
}

.dashboard-popover header,
.profile-popover-head,
.profile-popover-list,
.profile-popover-logout {
  border-bottom: 1px solid var(--line);
}

.dashboard-popover header {
  padding: 18px 20px;
}

.dashboard-popover h2 {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
}

.profile-popover-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
}

.profile-popover-list {
  display: grid;
  padding: 12px 0;
}

.profile-popover-list button,
.profile-popover-logout {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 12px 18px;
  text-align: left;
}

.profile-popover-list button:hover,
.profile-popover-list button:focus {
  background: var(--wash);
}

.profile-popover-list strong,
.profile-popover-logout strong {
  display: block;
  font-size: 16px;
}

.profile-popover-list small,
.profile-popover-logout small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.profile-popover-logout {
  width: 100%;
  color: #cc4b68;
}

.popover-link,
.section-link {
  min-height: 42px;
  border: 0;
  color: var(--teal);
  font-weight: 900;
}

.popover-link {
  width: 100%;
  border-top: 1px solid var(--line);
  border-radius: 0;
}

.app-dashboard-home,
.app-view {
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
  padding: 38px 0 calc(34px + var(--bottom-nav-space));
}

.app-welcome {
  margin-bottom: 26px;
}

.app-welcome h1,
.app-view-head h1,
.profile-identity-card h1 {
  margin: 0;
  color: var(--ink);
  font-size: 44px;
  line-height: 1.1;
}

.app-welcome p,
.app-view-head p,
.profile-identity-card p,
.loan-cta-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.5;
}

.wallet-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0) 38%),
    linear-gradient(135deg, #1d8d58 0%, #0b3d25 50%, #062417 100%);
  color: #fff;
  box-shadow: 0 18px 34px rgba(13, 27, 35, 0.16);
}

.wallet-card span,
.wallet-card small {
  color: rgba(255, 255, 255, 0.68);
}

.wallet-card-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  min-height: 148px;
  padding: 24px;
}

.wallet-card-top span,
.app-section-head h2 {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.wallet-card-top strong {
  display: block;
  margin-top: 14px;
  color: #fff;
  font-size: 46px;
  line-height: 1;
}

.wallet-eye,
.wallet-fund {
  min-height: 52px;
  color: #fff;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.wallet-eye {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  padding: 0 16px;
}

.wallet-fund {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.16);
  padding: 0 22px;
}

.wallet-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  padding: 12px 24px;
}

.wallet-meta span {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 800;
}

.wallet-crypto-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.wallet-crypto-item {
  min-width: 0;
  padding: 18px 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.wallet-crypto-item:last-child {
  border-right: 0;
}

.wallet-crypto-item > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  letter-spacing: 0;
}

.wallet-crypto-item strong {
  display: block;
  margin: 10px 0 5px;
  color: #fff;
  font-size: 28px;
  line-height: 1;
}

.service-logo-tiny {
  width: 22px;
  height: 22px;
  margin: 0;
  font-size: 7px;
}

.service-logo-large {
  width: 58px;
  height: 58px;
  font-size: 12px;
}

.app-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 28px 0 14px;
}

.app-section-head h2 {
  margin: 0;
}

.app-tile-grid,
.app-crypto-row,
.card-snapshot-grid,
.card-metric-grid,
.loan-feature-grid {
  display: grid;
  gap: 14px;
}

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

.app-crypto-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-snapshot-grid,
.card-metric-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.app-action-tile,
.crypto-transfer-tile,
.card-snapshot-panel,
.recent-transactions-panel,
.app-empty,
.app-metric-card,
.profile-identity-card,
.loan-feature-card,
.loan-cta-card,
.transfer-balance-preview,
.card-management-tile {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 8px 26px rgba(23, 33, 29, 0.06);
}

.app-action-tile,
.crypto-transfer-tile {
  display: grid;
  min-height: 154px;
  align-content: center;
  justify-items: start;
  gap: 9px;
  color: var(--ink);
  padding: 18px;
  text-align: left;
}

.app-action-tile:hover,
.app-action-tile:focus,
.crypto-transfer-tile:hover,
.crypto-transfer-tile:focus {
  border-color: var(--teal);
  color: var(--teal);
}

.app-action-tile strong,
.crypto-transfer-tile strong {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.2;
}

.app-action-tile span,
.crypto-transfer-tile span,
.crypto-transfer-tile small {
  font-size: 14px;
  line-height: 1.35;
}

.crypto-transfer-tile {
  justify-items: center;
  min-height: 150px;
  text-align: center;
}

.crypto-transfer-tile small {
  width: 100%;
  margin-top: 8px;
  color: var(--muted);
}

.card-snapshot-panel,
.recent-transactions-panel {
  margin-top: 28px;
  padding: 18px;
}

.card-snapshot-panel .app-section-head,
.recent-transactions-panel .app-section-head {
  margin-top: 0;
}

.virtual-card-preview {
  display: grid;
  min-height: 138px;
  align-content: end;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, #163d2a, #0a2018);
  color: #fff;
  padding: 18px;
}

.virtual-card-preview span,
.virtual-card-preview small {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

.virtual-card-preview strong {
  display: block;
  margin: 10px 0 4px;
  font-size: 24px;
  letter-spacing: 0;
}

.app-empty {
  display: grid;
  min-height: 220px;
  place-items: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
}

.app-empty.compact {
  min-height: 150px;
}

.app-empty-icon {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border-radius: 999px;
  background: #e7eeee;
  color: #74817c;
  font-weight: 900;
}

.app-empty strong {
  color: var(--ink);
  font-size: 20px;
}

.app-empty p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.dashboard-popover .app-empty,
.card-snapshot-panel .app-empty,
.recent-transactions-panel .app-empty {
  border: 0;
  box-shadow: none;
}

.transaction-card-list {
  display: grid;
  gap: 10px;
}

.transaction-card-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  padding: 12px;
  text-align: left;
}

.transaction-card-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--mint);
  color: var(--teal);
  font-weight: 900;
}

.transaction-card-row strong {
  display: block;
  font-size: 15px;
}

.transaction-card-row small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

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

.app-view-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}

.transfer-balance-preview,
.app-metric-card,
.loan-feature-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
}

.transfer-balance-preview span,
.loan-feature-card p {
  color: var(--muted);
}

.transfer-balance-preview strong {
  display: block;
  margin: 8px 0;
  color: var(--ink);
  font-size: 38px;
  line-height: 1;
}

.transfer-balance-preview small {
  color: var(--muted);
}

.app-form-card {
  margin-top: 18px;
}

.app-metric-card strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 30px;
  line-height: 1;
}

.card-management-panel {
  margin-top: 22px;
}

.card-management-tile {
  display: grid;
  gap: 14px;
  padding: 14px;
}

.card-management-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.profile-identity-card {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 32px;
  text-align: center;
}

.profile-contact-row,
.profile-identity-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
}

.profile-contact-row a,
.profile-contact-row span {
  color: var(--muted);
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.profile-identity-actions {
  margin-top: 4px;
}

.profile-app-view .dash-panel {
  margin-top: 22px;
}

.loan-feature-grid {
  grid-template-columns: 1fr;
}

.loan-feature-card {
  justify-content: flex-start;
}

.loan-feature-card h3 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 22px;
}

.loan-feature-card p {
  margin: 0;
  font-size: 16px;
}

.loan-cta-card {
  display: grid;
  justify-items: center;
  gap: 16px;
  margin-top: 28px;
  padding: 34px;
  text-align: center;
}

.loan-cta-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: 36px;
}

.bottom-app-nav {
  display: none;
}

body.dark-mode .dashboard-appbar,
body.dark-mode .dash-topbar,
body.dark-mode .dashboard-popover,
body.dark-mode .customer-shell .rail,
body.dark-mode .dash-panel,
body.dark-mode .summary-tile,
body.dark-mode .app-action-tile,
body.dark-mode .crypto-transfer-tile,
body.dark-mode .card-snapshot-panel,
body.dark-mode .recent-transactions-panel,
body.dark-mode .app-empty,
body.dark-mode .app-metric-card,
body.dark-mode .profile-identity-card,
body.dark-mode .loan-feature-card,
body.dark-mode .loan-cta-card,
body.dark-mode .transfer-balance-preview,
body.dark-mode .card-management-tile,
body.dark-mode .table-wrap,
body.dark-mode .primary-account-panel,
body.dark-mode .account-service-panel,
body.dark-mode .bank-action,
body.dark-mode .workflow-action,
body.dark-mode .notice-card,
body.dark-mode .support-card,
body.dark-mode .mini-card,
body.dark-mode .account-card,
body.dark-mode .receipt-card,
body.dark-mode .receipt-grid,
body.dark-mode .detail-grid,
body.dark-mode .receipt-amount-panel,
body.dark-mode .dormant-modal,
body.dark-mode .empty-state {
  background: var(--panel);
  border-color: var(--line);
  color: var(--ink);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
}

body.dark-mode .dashboard-appbar,
body.dark-mode .bottom-app-nav {
  background: rgba(20, 33, 29, 0.94);
}

body.dark-mode .appbar-brand {
  color: #d9e4ff;
}

body.dark-mode .app-icon-button,
body.dark-mode .profile-chip-button,
body.dark-mode .theme-toggle,
body.dark-mode .wallet-eye,
body.dark-mode .section-link,
body.dark-mode .popover-link,
body.dark-mode .rail-close,
body.dark-mode .field input,
body.dark-mode .field select,
body.dark-mode .field textarea,
body.dark-mode .radio-row,
body.dark-mode .mode-tabs,
body.dark-mode .asset-pill,
body.dark-mode .account-fact,
body.dark-mode .crypto-price-card,
body.dark-mode .transaction-card-row {
  background: #101a17;
  border-color: var(--line);
  color: var(--ink);
}

body.dark-mode .customer-shell .rail-link {
  color: #d2ddd8;
}

body.dark-mode .customer-shell .rail-link .icon,
body.dark-mode .customer-shell .rail-icon-img,
body.dark-mode .app-empty-icon,
body.dark-mode .transaction-card-icon {
  background: #1f312c;
  color: var(--teal-dark);
}

body.dark-mode .account-card-main h3,
body.dark-mode .account-card-balance strong,
body.dark-mode .account-fact strong,
body.dark-mode .bank-status-row strong,
body.dark-mode .summary-tile strong,
body.dark-mode .crypto-price-head strong,
body.dark-mode .crypto-price-value,
body.dark-mode .table-primary,
body.dark-mode td,
body.dark-mode th {
  color: var(--ink);
}

body.dark-mode .transaction-row:hover td,
body.dark-mode .transaction-row:focus td,
body.dark-mode .profile-popover-list button:hover,
body.dark-mode .profile-popover-list button:focus {
  background: var(--wash);
}

body.dark-mode .bottom-app-nav button.featured img {
  border-color: var(--paper);
}

.operations-hero {
  grid-template-columns: minmax(280px, 0.52fr) minmax(0, 1fr);
  align-items: stretch;
  padding: 16px;
}

.operations-hero-copy {
  display: grid;
  align-content: center;
  border-right: 1px solid var(--line);
  padding-right: 18px;
}

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

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

.workflow-action {
  display: flex;
  min-height: 86px;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: #26342f;
  padding: 14px;
  text-align: left;
}

.workflow-action:hover,
.workflow-action:focus {
  border-color: var(--teal);
  background: #fff;
  color: var(--teal-dark);
}

.workflow-action strong {
  display: block;
  font-size: 14px;
}

.workflow-action small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  text-transform: none;
}

.admin-action-card {
  display: grid;
  gap: 10px;
}

.bank-overview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.6fr);
  gap: 18px;
  margin-bottom: 18px;
}

.primary-account-panel,
.account-service-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(23, 33, 29, 0.06);
  padding: 20px;
}

.primary-account-panel {
  border-top: 4px solid var(--teal);
}

.account-service-panel {
  border-top: 4px solid var(--gold);
}

.bank-balance-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

.bank-balance-row span,
.account-fact span,
.bank-status-row span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.bank-balance-row strong {
  display: block;
  margin: 8px 0 6px;
  color: var(--ink);
  font-size: 38px;
  line-height: 1;
}

.bank-balance-row small,
.bank-status-row small {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.45;
}

.account-fact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.account-fact {
  min-width: 0;
  border-right: 1px solid var(--line);
  background: var(--paper);
  padding: 12px;
}

.account-fact:last-child {
  border-right: 0;
}

.account-fact strong {
  display: block;
  margin-top: 5px;
  color: #26342f;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.bank-status-row {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding: 13px 0;
}

.bank-status-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.bank-status-row strong {
  display: block;
  margin-top: 4px;
  color: #26342f;
  font-size: 18px;
}

.bank-action-bar {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.bank-action {
  display: grid;
  min-height: 116px;
  align-content: center;
  justify-items: start;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #26342f;
  padding: 14px;
  text-align: left;
  box-shadow: 0 10px 28px rgba(23, 33, 29, 0.05);
}

.bank-action:hover,
.bank-action:focus {
  border-color: var(--teal);
  color: var(--teal-dark);
}

.bank-action span {
  font-weight: 900;
}

.bank-action small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.metric-card {
  min-height: 128px;
  padding: 18px;
}

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

.metric-card strong {
  display: block;
  margin-top: 12px;
  font-size: 31px;
  line-height: 1;
}

.metric-card small {
  display: block;
  margin-top: 12px;
  color: var(--success);
  font-weight: 800;
}

.dashboard-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
}

.dashboard-content.single {
  grid-template-columns: minmax(0, 1fr);
}

.panel-stack {
  display: grid;
  align-content: start;
  gap: 18px;
}

.dash-panel {
  min-width: 0;
  padding: 18px;
}

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

.panel-title h2 {
  font-size: 22px;
}

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

.quick-action {
  display: grid;
  min-height: 94px;
  place-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: #26342f;
  padding: 12px;
  font-weight: 800;
  text-align: center;
}

.quick-action .service-logo,
.quick-action .card-icon,
.quick-action .image-icon,
.bank-action .image-icon {
  margin-bottom: 0;
}

.quick-action:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
}

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

.account-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
}

.account-card-main {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.account-type-pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  background: var(--mint);
  color: var(--teal-dark);
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.account-card-main h3 {
  margin: 0;
  color: #17231e;
  font-size: 19px;
  line-height: 1.25;
}

.account-card-main p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.account-card-balance {
  min-width: 185px;
  text-align: right;
}

.account-card strong {
  display: block;
  font-size: 20px;
}

.account-card-balance strong {
  color: #17231e;
  font-size: 22px;
  line-height: 1.2;
}

.account-card small {
  color: var(--muted);
  font-weight: 800;
}

.account-identifiers {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 9px;
}

.account-identifiers span {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #26342f;
  padding: 6px 8px;
  font-size: 12px;
  font-weight: 900;
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 13px 14px;
  text-align: left;
  vertical-align: middle;
}

th {
  color: #43504a;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

td {
  color: #26342f;
  font-size: 14px;
}

.table-primary {
  display: block;
  color: #17231e;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.amount-cell {
  display: inline-flex;
  justify-content: flex-end;
  min-width: 95px;
  color: #17231e;
  font-weight: 900;
  white-space: nowrap;
}

.amount-positive {
  color: #0d6245;
}

.amount-negative {
  color: #8d3325;
}

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

.transaction-row {
  cursor: pointer;
}

.transaction-row:hover td,
.transaction-row:focus td {
  background: #edf7f3;
}

.transaction-row:focus {
  outline: 2px solid var(--teal);
  outline-offset: -2px;
}

.receipt-link {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--teal-dark);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
}

.receipt-link:hover,
.receipt-link:focus {
  border-color: var(--teal);
  background: var(--wash);
}

.receipt-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  overflow: auto;
  background: rgba(13, 27, 35, 0.55);
  padding: 24px;
}

.receipt-card {
  width: min(780px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(13, 27, 35, 0.28);
  color: var(--ink);
  padding: 26px;
}

.receipt-head,
.receipt-brand,
.receipt-actions,
.kyc-status-strip {
  display: flex;
  align-items: center;
}

.receipt-head {
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

.receipt-brand {
  gap: 12px;
}

.receipt-brand h2 {
  margin: 0;
  font-size: 24px;
}

.receipt-brand p,
.receipt-summary small,
.receipt-footer p {
  color: var(--muted);
}

.receipt-brand p {
  margin: 4px 0 0;
  font-weight: 800;
}

.receipt-summary {
  margin: 22px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--wash);
  padding: 18px;
}

.receipt-summary span,
.kyc-status-strip span,
.detail-line span,
.receipt-line span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.receipt-summary strong {
  display: block;
  margin: 6px 0;
  color: var(--teal-dark);
  font-size: 36px;
  line-height: 1.05;
}

.receipt-grid,
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.receipt-line,
.detail-line {
  min-width: 0;
  border-bottom: 1px solid var(--line);
  padding: 12px;
}

.receipt-line:nth-child(odd),
.detail-line:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.receipt-line strong,
.detail-line strong {
  display: block;
  margin-top: 5px;
  color: #26342f;
  font-size: 14px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

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

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

.bank-receipt {
  width: min(8.1in, 100%);
  padding: 30px;
}

.receipt-letterhead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 3px solid var(--teal-dark);
  padding-bottom: 18px;
}

.receipt-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}

.receipt-logo {
  width: 52px;
  height: 52px;
  border-radius: 8px;
}

.receipt-lockup h2 {
  margin: 0;
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
}

.receipt-lockup p {
  margin: 6px 0 0;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.receipt-bank-meta {
  display: grid;
  justify-items: end;
  gap: 4px;
  max-width: 300px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  text-align: right;
}

.receipt-bank-meta strong {
  color: var(--ink);
  font-size: 13px;
  text-transform: uppercase;
}

.receipt-document-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

.receipt-document-title span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.receipt-document-title h1 {
  margin: 6px 0;
  color: var(--ink);
  font-size: 30px;
  line-height: 1.05;
}

.receipt-document-title p {
  max-width: 540px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.receipt-amount-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.65fr) minmax(0, 1fr);
  gap: 16px;
  margin: 18px 0;
  border: 1px solid var(--line);
  border-left: 5px solid var(--gold);
  border-radius: 8px;
  background: #fbfcfb;
  padding: 18px;
}

.receipt-amount-panel span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.receipt-amount-panel strong {
  display: block;
  margin-top: 7px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.receipt-amount-panel > div:first-child strong {
  color: var(--teal-dark);
  font-size: 38px;
}

.receipt-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.receipt-section {
  margin-top: 14px;
  break-inside: avoid;
  page-break-inside: avoid;
}

.receipt-section h3 {
  margin: 0 0 9px;
  color: var(--ink);
  font-size: 15px;
  text-transform: uppercase;
}

.receipt-disclaimer {
  font-size: 12px;
}

.status {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.status-success {
  background: #dff3e9;
  color: #0d6245;
}

.status-pending {
  background: var(--gold-soft);
  color: #705000;
}

.status-review {
  background: #f7ddd5;
  color: #84321f;
}

.status-info {
  background: #ddeeea;
  color: #0d655d;
}

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

.mini-card,
.support-card,
.notice-card {
  padding: 16px;
}

.balance-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, #0a7c72, #26332e 68%, #c9972b);
  color: #fff;
  padding: 22px;
  box-shadow: var(--shadow);
}

.balance-card span,
.balance-card small {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

.balance-card strong {
  display: block;
  margin: 18px 0;
  font-size: 42px;
  line-height: 1;
}

.card-chip {
  width: 44px;
  height: 32px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0)),
    var(--gold);
}

.form-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.65fr);
  gap: 18px;
}

.dormant-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  background: rgba(13, 27, 35, 0.58);
  padding: 22px;
}

.dormant-modal {
  display: grid;
  justify-items: center;
  gap: 16px;
  width: min(440px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(13, 27, 35, 0.3);
  padding: 26px;
  text-align: center;
}

.dormant-modal-icon {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 8px;
  background: #fff4f0;
}

.dormant-modal h2 {
  margin: 6px 0 8px;
  color: var(--ink);
  font-size: 26px;
}

.dormant-modal p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.dormant-modal-actions {
  display: flex;
  width: 100%;
  gap: 10px;
  justify-content: center;
}

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

.mode-tabs {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 8px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f5f8f6;
  padding: 6px;
}

.mode-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #43504a;
  padding: 8px 13px;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.mode-tabs button.active {
  background: var(--paper);
  color: var(--teal-dark);
  box-shadow: 0 10px 24px rgba(10, 124, 114, 0.1);
}

.radio-row {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 11px 12px;
}

.holding-list {
  display: grid;
  gap: 0;
  margin-top: 14px;
  border-top: 1px solid var(--line);
}

.holding-card {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.holding-card > div {
  min-width: 0;
  flex: 1;
}

.holding-card h3 {
  margin: 0;
  font-size: 14px;
}

.holding-card p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.holding-card strong {
  color: var(--teal-dark);
  font-size: 13px;
  text-align: right;
  white-space: nowrap;
}

.notice-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.asset-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 6px 8px 6px 6px;
  color: #26342f;
  font-size: 12px;
  font-weight: 900;
}

.crypto-market-board {
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

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

.crypto-price-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  padding: 10px;
}

.crypto-price-head {
  display: flex;
  align-items: center;
}

.crypto-price-head {
  gap: 8px;
}

.crypto-price-head > div {
  min-width: 0;
  flex: 1;
}

.crypto-price-head strong {
  display: block;
  color: #26342f;
  font-size: 13px;
}

.crypto-price-head span:not(.market-change) {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.market-change {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  border-radius: 999px;
  padding: 4px 7px;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.market-up {
  background: #dff3e9;
  color: #0d6245;
}

.market-down {
  background: #f7ddd5;
  color: #84321f;
}

.crypto-price-value {
  display: block;
  margin-top: 10px;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.05;
}

.crypto-price-head .service-logo {
  margin-bottom: 0;
}

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

.support-chat-actions {
  margin-top: 16px;
}

.deposit-check-panel {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 16px;
}

.deposit-check-panel strong {
  display: block;
  color: #26342f;
  font-size: 15px;
}

.deposit-check-panel p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

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

.table-subtext {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.selected-row td {
  background: var(--wash);
}

.file-field input[type="file"] {
  min-height: 47px;
  padding: 10px;
}

.kyc-status-strip {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.kyc-status-strip > div {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.kyc-status-strip strong {
  color: #26342f;
  font-size: 14px;
}

.kyc-admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.75fr);
  gap: 18px;
  align-items: start;
}

.kyc-list,
.kyc-detail-panel {
  min-width: 0;
}

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

.kyc-upload-preview {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.kyc-upload-preview img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #e7eeeb;
}

.kyc-upload-preview figcaption {
  display: grid;
  gap: 4px;
  padding: 10px;
}

.kyc-upload-preview figcaption strong {
  color: #26342f;
  font-size: 13px;
}

.kyc-upload-preview figcaption span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.kyc-detail-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}

.panel-title.compact {
  align-items: center;
  margin-bottom: 14px;
}

.panel-title.compact h3 {
  margin: 0;
  font-size: 20px;
}

.panel-title.compact p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.activity-list,
.alert-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.activity-item,
.alert-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 12px;
}

.activity-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 8px;
  background: var(--mint);
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
}

.activity-item strong,
.alert-item strong {
  display: block;
  margin-bottom: 3px;
}

.activity-item span,
.alert-item span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100;
  display: none;
  max-width: min(390px, calc(100% - 36px));
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background: var(--charcoal);
  color: #fff;
  padding: 14px 16px;
  box-shadow: var(--shadow);
}

.toast.show {
  display: block;
}

.site-footer {
  background: #1f2925;
  color: #fff;
  padding: 54px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) repeat(3, minmax(140px, 0.5fr));
  gap: 28px;
}

.site-footer .brand {
  color: #fff;
}

.footer-copy {
  max-width: 430px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.65;
}

.footer-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer h3 {
  margin: 0 0 14px;
  font-size: 15px;
}

.site-footer a,
.site-footer li,
.footer-bottom {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  padding-top: 22px;
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 22px;
  color: var(--muted);
  text-align: center;
}

.hide {
  display: none !important;
}

@media (max-width: 1080px) {
  .nav-links,
  .nav-actions {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .section-head,
  .split,
  .split.reverse,
  .contact-grid,
  .form-panel,
  .kyc-admin-layout,
  .bank-overview-layout,
  .banking-hero,
  .bank-workspace,
  .operations-hero,
  .operations-workspace,
  .dashboard-content {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .stat-grid,
  .timeline,
  .support-grid,
  .crypto-price-grid,
  .operations-metrics,
  .workflow-grid,
  .account-meta-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-shell {
    display: block;
    grid-template-columns: 1fr;
  }

  .receipt-card {
    align-self: start;
  }

  .dormant-modal-actions {
    flex-direction: column;
  }

  .rail {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 120;
    width: min(326px, calc(100vw - 34px));
    height: 100dvh;
    transform: translateX(-105%);
    transition: transform 180ms ease;
    box-shadow: 18px 0 44px rgba(13, 27, 35, 0.24);
  }

  body.dashboard-menu-open .rail {
    transform: translateX(0);
  }

  .dashboard-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 110;
    display: block;
    border: 0;
    background: rgba(13, 27, 35, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
    visibility: hidden;
  }

  body.dashboard-menu-open .dashboard-menu-backdrop {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
  }

  .dash-menu-button,
  .rail-close {
    display: inline-flex;
  }

  .customer-shell {
    --bottom-nav-space: 104px;
  }

  .customer-shell .rail {
    width: min(380px, calc(100vw - 64px));
    padding: 22px 18px calc(24px + var(--bottom-nav-space));
  }

  .customer-shell .rail-close {
    justify-self: end;
    border-color: var(--line);
    background: var(--wash);
    color: var(--ink);
  }

  .customer-shell .dashboard-appbar {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    min-height: 76px;
    padding: 12px 18px;
  }

  .rail-nav {
    grid-template-columns: 1fr;
  }

  .dash-topbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
  }

  .dash-title {
    min-width: 0;
  }

  .dash-tools {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .bottom-app-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 82;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    min-height: 86px;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 -12px 34px rgba(23, 33, 29, 0.08);
    backdrop-filter: blur(14px);
    padding: 8px 8px max(8px, env(safe-area-inset-bottom));
  }

  .bottom-app-nav button {
    display: grid;
    place-items: center;
    gap: 5px;
    min-width: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #6d7472;
    padding: 5px;
    font-size: 12px;
    font-weight: 800;
  }

  .bottom-app-nav img {
    width: 28px;
    height: 28px;
    border-radius: 8px;
  }

  .bottom-app-nav button.active {
    color: var(--teal);
  }

  .bottom-app-nav button.active img {
    background: var(--mint);
    box-shadow: 0 0 0 10px var(--mint);
  }

  .bottom-app-nav button.featured {
    transform: translateY(-22px);
    color: var(--teal);
  }

  .bottom-app-nav button.featured img {
    width: 58px;
    height: 58px;
    border: 4px solid #fff;
    background: var(--teal);
    box-shadow: 0 10px 24px rgba(8, 122, 112, 0.28);
  }

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

  .bank-action-bar,
  .bank-command-bar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .operations-hero-copy {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-right: 0;
    padding-bottom: 18px;
  }

  .account-fact:nth-child(even) {
    border-right: 0;
  }

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

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

  .auth-visual {
    min-height: 480px;
  }
}

@media (max-width: 760px) {
  .nav,
  .container,
  .hero-inner {
    width: min(100% - 28px, 1180px);
  }

  .section {
    padding: 62px 0;
  }

  .hero {
    min-height: 78svh;
    background-position: 62% center;
  }

  .hero-inner {
    padding: 50px 0 64px;
  }

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

  .section-head h2,
  .split-copy h2,
  .auth-copy h1,
  .panel-title h2,
  .modal h2 {
    font-size: 36px;
  }

  .cta-box h2 {
    font-size: 34px;
  }

  .dash-title h1 {
    font-size: 28px;
  }

  .metric-card strong {
    font-size: 28px;
  }

  .balance-card strong {
    font-size: 36px;
  }

  .hero-badges,
  .feature-grid,
  .stat-grid,
  .timeline,
  .support-grid,
  .crypto-price-grid,
  .quick-grid,
  .mini-grid,
  .form-grid,
  .radio-grid,
  .rail-nav,
  .dash-grid,
  .bank-action-bar,
  .operations-metrics,
  .workflow-grid,
  .bank-balance-row,
  .banking-hero,
  .bank-workspace,
  .operations-hero,
  .operations-workspace,
  .account-fact-grid,
  .receipt-section-grid,
  .receipt-amount-panel,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .bank-command-bar,
  .account-meta-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mode-tabs {
    width: 100%;
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-box,
  .dash-topbar,
  .account-card,
  .hero-account-header,
  .footer-bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .cta-box,
  .dash-topbar {
    display: grid;
  }

  .dash-tools,
  .hero-actions,
  .split-actions,
  .form-actions,
  .inline-actions {
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .crypto-submit-btn {
    width: 100%;
    justify-self: stretch;
  }

  .auth-area {
    padding: 18px;
  }

  .auth-visual {
    min-height: 430px;
  }

  .auth-points {
    grid-template-columns: 1fr;
  }

  .dash-main {
    padding: 16px;
  }

  .customer-shell .dash-main {
    padding: 0;
  }

  .customer-shell .dashboard-appbar {
    align-items: center;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 8px;
    margin: 0;
    padding: 12px 14px;
  }

  .customer-shell .dash-menu-button {
    width: 42px;
    min-height: 42px;
  }

  .appbar-brand {
    gap: 6px;
    font-size: 14px;
  }

  .appbar-brand img {
    width: 24px;
    height: 24px;
  }

  .appbar-actions {
    gap: 6px;
  }

  .appbar-theme {
    width: 46px;
    padding: 0;
  }

  .appbar-theme [data-theme-label] {
    display: none;
  }

  .profile-chip-button {
    padding: 3px;
  }

  .profile-caret {
    display: none;
  }

  .app-icon-button,
  .profile-avatar {
    width: 38px;
    height: 38px;
  }

  .dashboard-popover {
    top: 82px;
    right: 14px;
    left: 14px;
    width: auto;
  }

  .app-dashboard-home,
  .app-view {
    width: min(100% - 28px, 980px);
    padding-top: 28px;
  }

  .app-welcome {
    margin-bottom: 20px;
  }

  .app-welcome h1,
  .app-view-head h1,
  .profile-identity-card h1 {
    font-size: 34px;
  }

  .app-welcome p,
  .app-view-head p,
  .profile-identity-card p,
  .loan-cta-card p {
    font-size: 18px;
  }

  .wallet-card-top {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 132px;
    padding: 18px;
  }

  .wallet-card-top strong {
    font-size: 40px;
  }

  .wallet-eye {
    min-height: 42px;
    padding: 0 10px;
  }

  .wallet-fund {
    grid-column: 2;
    min-height: 42px;
    padding: 0 16px;
  }

  .wallet-meta {
    padding: 10px 18px;
  }

  .wallet-crypto-item {
    padding: 14px 12px;
  }

  .wallet-crypto-item strong {
    font-size: 24px;
  }

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

  .app-crypto-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .card-snapshot-grid,
  .card-metric-grid,
  .app-service-strip {
    grid-template-columns: 1fr;
  }

  .app-action-tile {
    min-height: 132px;
    padding: 14px;
  }

  .crypto-transfer-tile {
    min-height: 128px;
    padding: 12px 8px;
  }

  .app-action-tile strong,
  .crypto-transfer-tile strong {
    font-size: 17px;
  }

  .app-action-tile span,
  .crypto-transfer-tile span,
  .crypto-transfer-tile small {
    font-size: 13px;
  }

  .service-logo-large {
    width: 50px;
    height: 50px;
  }

  .card-snapshot-panel,
  .recent-transactions-panel {
    padding: 14px;
  }

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

  .transfer-balance-preview,
  .app-metric-card,
  .loan-feature-card {
    padding: 16px;
  }

  .transfer-balance-preview strong {
    font-size: 34px;
  }

  .profile-identity-card {
    padding: 24px 16px;
  }

  .profile-avatar-xl {
    width: 112px;
    height: 112px;
  }

  body.is-dashboard .dash-topbar {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    margin-bottom: 12px;
    padding: 12px;
  }

  body.is-dashboard .customer-shell .dashboard-appbar {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    margin: 0;
    padding: 12px 14px;
  }

  body.is-dashboard .customer-shell .app-view-head .btn,
  body.is-dashboard .customer-shell .customer-rail-actions .btn,
  body.is-dashboard .customer-shell .profile-identity-actions .btn,
  body.is-dashboard .customer-shell .card-management-actions .btn,
  body.is-dashboard .customer-shell .section-link,
  body.is-dashboard .customer-shell .popover-link {
    width: auto;
  }

  body.is-dashboard .dash-title h1 {
    font-size: 24px;
  }

  body.is-dashboard .dash-title p:last-child {
    font-size: 13px;
    line-height: 1.45;
  }

  body.is-dashboard .dash-panel {
    padding: 14px;
  }

  body.is-dashboard .panel-title {
    gap: 10px;
    margin-bottom: 12px;
  }

  body.is-dashboard .panel-title h2 {
    font-size: 22px;
    line-height: 1.18;
  }

  body.is-dashboard .panel-title p {
    font-size: 13px;
    line-height: 1.45;
  }

  body.is-dashboard .banking-hero,
  body.is-dashboard .bank-command-bar,
  body.is-dashboard .bank-workspace {
    margin-bottom: 10px;
  }

  body.is-dashboard .banking-hero-main {
    padding: 14px;
  }

  body.is-dashboard .hero-account-header h2 {
    font-size: 20px;
  }

  body.is-dashboard .hero-balance-block {
    margin-top: 14px;
    padding-top: 14px;
  }

  body.is-dashboard .hero-balance-block strong {
    font-size: 34px;
  }

  body.is-dashboard .summary-tile {
    min-height: 0;
    padding: 13px;
  }

  body.is-dashboard .summary-tile strong {
    font-size: 18px;
  }

  body.is-dashboard .bank-status-row {
    padding: 10px 0;
  }

  body.is-dashboard .bank-status-row strong {
    font-size: 18px;
  }

  body.is-dashboard .bank-command {
    min-height: 74px;
    gap: 5px;
    padding: 10px;
  }

  body.is-dashboard .bank-command .image-icon {
    width: 28px;
    height: 28px;
  }

  body.is-dashboard .bank-command span {
    font-size: 13px;
  }

  body.is-dashboard .bank-command small {
    font-size: 10px;
    line-height: 1.25;
  }

  body.is-dashboard .responsive-table {
    overflow: visible;
  }

  body.is-dashboard .responsive-table table,
  body.is-dashboard .responsive-table thead,
  body.is-dashboard .responsive-table tbody,
  body.is-dashboard .responsive-table tr,
  body.is-dashboard .responsive-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  body.is-dashboard .responsive-table table {
    border-collapse: separate;
    border-spacing: 0;
  }

  body.is-dashboard .responsive-table thead {
    display: none;
  }

  body.is-dashboard .responsive-table tbody {
    display: grid;
    gap: 10px;
  }

  body.is-dashboard .responsive-table tr {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 12px;
  }

  body.is-dashboard .responsive-table td {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    border-bottom: 1px solid var(--line);
    padding: 0 0 9px;
    font-size: 13px;
  }

  body.is-dashboard .responsive-table td + td {
    padding-top: 9px;
  }

  body.is-dashboard .responsive-table td:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  body.is-dashboard .responsive-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
  }

  body.is-dashboard .responsive-table .amount-cell {
    justify-content: start;
    min-width: 0;
  }

  body.is-dashboard .responsive-table .receipt-link {
    width: fit-content;
  }

  .account-card-balance {
    min-width: 0;
    text-align: left;
  }

  .account-fact {
    border-right: 1px solid var(--line);
  }

  .account-fact:nth-child(even) {
    border-right: 0;
  }

  .panel-title {
    display: grid;
  }

  .image-panel,
  .image-panel img {
    min-height: 380px;
  }

  .activity-item,
  .alert-item {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .receipt-grid,
  .detail-grid,
  .kyc-upload-grid {
    grid-template-columns: 1fr;
  }

  .receipt-line:nth-child(odd),
  .detail-line:nth-child(odd) {
    border-right: 0;
  }

  .receipt-head,
  .receipt-letterhead,
  .receipt-document-title,
  .kyc-status-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .receipt-bank-meta {
    justify-items: start;
    text-align: left;
  }

  .activity-item > .status,
  .alert-item > .status {
    grid-column: 1 / -1;
    width: fit-content;
  }
}

@media (max-width: 430px) {
  .brand-tag {
    display: none;
  }

  .account-meta-strip {
    grid-template-columns: 1fr;
  }

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

  .app-dashboard-home,
  .app-view {
    width: min(100% - 24px, 980px);
  }

  body.is-dashboard .customer-shell .dashboard-appbar {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    padding: 10px 12px;
  }

  .appbar-brand {
    font-size: 12px;
  }

  .appbar-brand img {
    display: none;
  }

  .appbar-actions {
    gap: 4px;
  }

  .app-icon-button,
  .profile-avatar,
  .customer-shell .dash-menu-button {
    width: 36px;
    height: 36px;
    min-height: 36px;
  }

  .theme-toggle {
    min-height: 36px;
  }

  .wallet-card-top {
    padding: 16px;
  }

  .wallet-card-top strong {
    font-size: 34px;
  }

  .wallet-card-top span,
  .app-section-head h2 {
    font-size: 13px;
  }

  .wallet-crypto-item {
    padding: 12px 8px;
  }

  .wallet-crypto-item > span {
    gap: 5px;
    font-size: 11px;
  }

  .wallet-crypto-item strong {
    font-size: 19px;
  }

  .crypto-transfer-tile {
    min-height: 118px;
  }

  .crypto-transfer-tile .service-logo-large {
    width: 42px;
    height: 42px;
  }

  .crypto-transfer-tile strong {
    font-size: 14px;
  }

  .crypto-transfer-tile span,
  .crypto-transfer-tile small {
    font-size: 11px;
  }

  .app-action-tile {
    min-height: 124px;
  }

  .app-welcome h1,
  .app-view-head h1,
  .profile-identity-card h1 {
    font-size: 30px;
  }

  .account-fact,
  .account-fact:nth-child(even) {
    border-right: 0;
  }

  .account-fact:not(:last-child) {
    border-bottom: 1px solid var(--line);
  }

  .hero p,
  .page-hero p,
  .auth-copy p {
    font-size: 16px;
  }

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

  .section-head h2,
  .split-copy h2,
  .auth-copy h1,
  .modal h2 {
    font-size: 32px;
  }

  .glass-stat,
  .stat-tile,
  .feature-card,
  .service-card,
  .dash-panel,
  .auth-card {
    padding: 16px;
  }
}

@page {
  size: Letter;
  margin: 0.45in;
}

@media print {
  body * {
    visibility: hidden;
  }

  .receipt-overlay,
  .receipt-overlay * {
    visibility: visible;
  }

  .receipt-overlay {
    position: absolute;
    inset: 0;
    display: block;
    overflow: visible;
    background: #fff;
    padding: 0;
  }

  .receipt-card {
    width: auto;
    border: 0;
    box-shadow: none;
    padding: 0;
  }

  .bank-receipt {
    font-size: 11px;
  }

  .receipt-letterhead {
    padding-bottom: 12px;
  }

  .receipt-logo {
    width: 42px;
    height: 42px;
  }

  .receipt-lockup h2 {
    font-size: 22px;
  }

  .receipt-document-title {
    padding: 12px 0;
  }

  .receipt-document-title h1 {
    font-size: 24px;
  }

  .receipt-amount-panel {
    margin: 12px 0;
    padding: 12px;
  }

  .receipt-amount-panel > div:first-child strong {
    font-size: 30px;
  }

  .receipt-line {
    padding: 8px;
  }

  .receipt-section {
    margin-top: 10px;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .receipt-footer {
    margin-top: 12px;
  }

  .receipt-actions {
    display: none;
  }
}
