:root {
  --bg: #061530;
  --bg-soft: #0d254d;
  --card: #ffffff;
  --card-soft: #f4f8ff;
  --primary: #1d74ff;
  --primary-dark: #0f50be;
  --text: #0d1f3d;
  --muted: #5f6d86;
  --sidebar-text: #dbe8ff;
  --success: #0db06b;
  --danger: #d93838;
  --shadow: 0 20px 40px rgba(4, 14, 33, 0.18);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: radial-gradient(circle at top right, #102f61, #061530 70%);
  color: var(--text);
  min-height: 100vh;
}

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

.page-shell {
  display: flex;
  min-height: 100vh;
}

.menu-toggle {
  position: relative;
  z-index: 1;
  display: none;
  border: 1px solid #2f4f81;
  background: #0d2a57;
  color: #fff;
  border-radius: 10px;
  padding: 7px 10px;
  font-weight: 700;
  line-height: 1;
}

.sidebar {
  width: 270px;
  background: linear-gradient(180deg, #071a39 0%, #0b2953 100%);
  color: var(--sidebar-text);
  padding: 20px 16px;
  position: fixed;
  inset: 0 auto 0 0;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  overflow-y: auto;
  z-index: 450;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
}

.sidebar.open {
  transform: translateX(0);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.sidebar-close {
  display: none;
  margin-left: auto;
  margin-bottom: 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  cursor: pointer;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #1d74ff, #0ab8ff);
  color: #fff;
  font-weight: 800;
}

.logo-title {
  font-weight: 700;
  line-height: 1.1;
}

.logo-sub {
  font-size: 0.75rem;
  opacity: 0.75;
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.side-link {
  padding: 10px 12px;
  border-radius: 10px;
  color: #d8e6ff;
  transition: 0.2s ease;
}

.side-link:hover,
.side-link.active {
  background: rgba(255, 255, 255, 0.12);
}

button.side-link {
  width: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: left;
  appearance: none;
}

.dashboard-mobile-menu {
  display: none;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-mobile-title {
  margin-bottom: 8px;
  padding: 0 12px;
  color: #a6c5f5;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
}

.dashboard-mobile-link {
  display: block;
}

.dashboard-mobile-logout {
  color: #fff;
}

.side-note {
  margin-top: 22px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  color: #c6d9ff;
}

.main-content {
  width: 100%;
  margin-left: 0;
  background: linear-gradient(180deg, #edf4ff 0%, #f7fbff 55%, #ffffff 100%);
  min-height: 100vh;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 140;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e2eaf7;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 15px 0;
}

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

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-link {
  color: #173969;
  font-weight: 600;
  font-size: 0.94rem;
}

.topbar-link:hover {
  color: var(--primary-dark);
}

.section {
  padding: 64px 0;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: #0d2a59;
  margin-bottom: 14px;
}

.section-sub {
  color: var(--muted);
  margin-bottom: 22px;
}

.hero-grid,
.grid-3,
.grid-2,
.dashboard-grid,
.stats-grid,
.footer-grid,
.auth-grid {
  display: grid;
  gap: 20px;
}

.hero-grid {
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
}

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

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

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

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

.footer-grid {
  grid-template-columns: 1.4fr repeat(3, 1fr);
}

.card {
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 22px;
  border: 1px solid #e5edfb;
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  margin-bottom: 12px;
  color: #0a2754;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ddecff;
  color: #0d4db5;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 0.84rem;
  margin-bottom: 10px;
}

.btn {
  border: none;
  border-radius: 10px;
  padding: 11px 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
}

.btn-outline {
  border: 1px solid #c7d8f4;
  background: #fff;
  color: #12356e;
}

.btn-danger {
  background: #fbe8e8;
  color: #a02e2e;
}

.image-cover {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 14px;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid #c8d8f4;
  border-radius: 10px;
  padding: 10px;
  font-size: 0.95rem;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.form-group {
  margin-bottom: 14px;
}

.account-open-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.account-purpose-banner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: #e8f1ff;
  color: #11428f;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.form-section {
  border: 1px solid #dbe7f7;
  border-radius: 16px;
  padding: 18px;
  background: linear-gradient(180deg, #fbfdff 0%, #f7fbff 100%);
}

.form-section-title {
  margin-bottom: 14px;
  font-size: 1rem;
  color: #0a2754;
}

.form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.inline-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.inline-row .btn {
  white-space: nowrap;
}

.message {
  margin-top: 12px;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.92rem;
}

.message.success {
  background: #e8fbf3;
  color: #0d7751;
}

.message.error {
  background: #ffeceb;
  color: #a02e2e;
}

.step {
  display: none;
}

.step.active {
  display: block;
}

.password-meter {
  height: 8px;
  border-radius: 8px;
  background: #e2e9f7;
  overflow: hidden;
  margin-top: 6px;
}

.password-meter span {
  display: block;
  height: 100%;
  width: 0;
  transition: width 0.25s ease;
}

.strength-weak span {
  width: 33%;
  background: #e24c4c;
}

.strength-medium span {
  width: 66%;
  background: #ef9a2e;
}

.strength-strong span {
  width: 100%;
  background: #12a566;
}

.tiny {
  font-size: 0.83rem;
  color: var(--muted);
}

.stats-panel {
  background: linear-gradient(135deg, #0f3b80, #1b67d6);
  color: #fff;
}

.stat-box {
  padding: 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.13);
  text-align: center;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 700;
}

.txn-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 360px;
  overflow: auto;
}

.profile-summary {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin: 12px 0 18px;
}

.profile-photo-wrap {
  position: relative;
}

.profile-photo,
.profile-photo-fallback {
  width: 112px;
  height: 112px;
  border-radius: 18px;
  object-fit: cover;
}

.profile-photo {
  display: block;
  border: 1px solid #cfe0fb;
  box-shadow: 0 10px 24px rgba(15, 56, 120, 0.14);
}

.profile-photo-fallback {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #e6f0ff, #f6fbff);
  color: #1c4c9b;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px dashed #b5cbed;
}

.profile-summary-copy p {
  margin: 0 0 8px;
}

.profile-details-grid {
  display: grid;
  gap: 12px;
}

.profile-section {
  border: 1px solid #dbe7f7;
  border-radius: 14px;
  padding: 14px;
  background: #fff;
}

.profile-section h4 {
  margin-bottom: 12px;
  color: #0a2754;
  font-size: 0.98rem;
}

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

.profile-field {
  padding: 10px 12px;
  border-radius: 12px;
  background: #f7fbff;
  border: 1px solid #e3edf9;
}

.profile-field span {
  display: block;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 4px;
}

.profile-field strong {
  display: block;
  color: #0f3167;
  font-size: 0.94rem;
  line-height: 1.35;
  word-break: break-word;
}

.txn-item {
  padding: 11px;
  border: 1px solid #d6e2f7;
  border-radius: 12px;
  background: #f8fbff;
}

.txn-meta {
  font-size: 0.86rem;
  color: var(--muted);
}

.balance {
  color: var(--success);
  font-weight: 700;
  font-size: 2rem;
}

body.dashboard-page {
  background:
    radial-gradient(circle at 12% 10%, rgba(95, 140, 255, 0.18), transparent 26%),
    radial-gradient(circle at 88% 18%, rgba(54, 214, 154, 0.12), transparent 22%),
    linear-gradient(180deg, #fbfdff 0%, #edf4ff 56%, #f8fbff 100%);
}

body.dashboard-page .main-content {
  background:
    radial-gradient(circle at top left, rgba(117, 153, 255, 0.12), transparent 26%),
    radial-gradient(circle at top right, rgba(57, 201, 145, 0.12), transparent 20%),
    linear-gradient(180deg, #fbfdff 0%, #eef4ff 100%);
}

body.dashboard-page .topbar {
  background: rgba(252, 254, 255, 0.9);
  border-bottom: 1px solid rgba(215, 228, 247, 0.95);
  box-shadow: 0 8px 26px rgba(19, 47, 89, 0.04);
}

body.dashboard-page .section {
  padding: 24px 0 34px;
}

body.dashboard-page .container {
  width: min(1500px, calc(100vw - 32px));
}

body.dashboard-page .card {
  border-radius: 24px;
  border: 1px solid #e2ebf8;
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    0 18px 42px rgba(14, 43, 88, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

body.dashboard-page .dashboard-layout {
  display: grid;
  grid-template-columns: minmax(240px, 275px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  min-height: calc(100vh - 132px);
}

body.dashboard-page .dashboard-stage {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

body.dashboard-page .dashboard-profile-rail {
  position: sticky;
  top: 88px;
  align-self: start;
  padding: 18px;
}

body.dashboard-page .dashboard-avatar-frame {
  width: 132px;
  height: 132px;
  margin: 2px auto 8px;
  padding: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #31d38f, #89d4ff 60%, #6f7dff);
  box-shadow:
    0 18px 42px rgba(44, 120, 255, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

body.dashboard-page .dashboard-avatar-frame .profile-photo,
body.dashboard-page .dashboard-avatar-frame .profile-photo-fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

body.dashboard-page .dashboard-avatar-frame .profile-photo {
  border: 4px solid rgba(255, 255, 255, 0.92);
}

body.dashboard-page .dashboard-profile-head {
  text-align: center;
  margin-top: 10px;
}

body.dashboard-page .dashboard-profile-head h2 {
  margin: 6px 0 8px;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  color: #0d2a59;
  line-height: 1.08;
}

body.dashboard-page .dashboard-eyebrow {
  font-size: 0.76rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #8a95ab;
  font-weight: 700;
}

body.dashboard-page .dashboard-purpose-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: 7px 12px;
  border-radius: 999px;
  background: #edf8f1;
  color: #108a58;
  font-size: 0.8rem;
  font-weight: 700;
}

body.dashboard-page .dashboard-profile-meta {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

body.dashboard-page .dashboard-profile-meta div {
  padding: 10px 12px;
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
  border: 1px solid #e2ebf8;
}

body.dashboard-page .dashboard-profile-meta span {
  display: block;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 4px;
}

body.dashboard-page .dashboard-profile-meta strong {
  display: block;
  color: #0f3167;
  line-height: 1.35;
  word-break: break-word;
}

body.dashboard-page .dashboard-overview-card,
body.dashboard-page .dashboard-profile-card,
body.dashboard-page .dashboard-transactions-card,
body.dashboard-page .dashboard-transfer-card,
body.dashboard-page .settings-panel {
  min-width: 0;
}

body.dashboard-page .dashboard-topbar {
  flex-wrap: wrap;
}

body.dashboard-page .dashboard-tabs {
  display: flex;
  flex: 1 1 420px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

body.dashboard-page .dashboard-tab {
  appearance: none;
  border: 1px solid #d8e2f2;
  background: #fff;
  color: #173969;
  border-radius: 999px;
  padding: 9px 14px;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease,
    transform 0.2s ease;
}

body.dashboard-page .dashboard-tab:hover,
body.dashboard-page .dashboard-tab.active {
  background: linear-gradient(135deg, #1d74ff, #0f50be);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(29, 116, 255, 0.18);
  transform: translateY(-1px);
}

body.dashboard-page .dashboard-panel {
  display: none;
  min-width: 0;
}

body.dashboard-page .dashboard-panel.active {
  display: block;
  animation: dashboardPanelIn 0.24s ease;
}

body.dashboard-page .dashboard-panel[hidden] {
  display: none !important;
}

body.dashboard-page .dashboard-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

body.dashboard-page .dashboard-card-head h2,
body.dashboard-page .dashboard-card-head h3 {
  font-size: clamp(1.15rem, 1.8vw, 1.55rem);
  color: #0d2a59;
  margin-top: 4px;
}

body.dashboard-page .dashboard-balance-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #eaf7ff;
  color: #1560d6;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

body.dashboard-page .dashboard-balance {
  margin-top: 4px;
  font-size: clamp(2.2rem, 4.8vw, 3.7rem);
  line-height: 1;
}

body.dashboard-page .dashboard-stat-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

body.dashboard-page .dashboard-stat {
  padding: 14px 15px;
  border-radius: 18px;
  border: 1px solid #e2ebf8;
  background: linear-gradient(180deg, #fbfdff 0%, #f2f7ff 100%);
}

body.dashboard-page .dashboard-stat span {
  display: block;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 4px;
}

body.dashboard-page .dashboard-stat strong {
  display: block;
  color: #0f3167;
  line-height: 1.35;
  word-break: break-word;
}

body.dashboard-page .dashboard-txn-list {
  max-height: 420px;
}

body.dashboard-page .side-note {
  background: linear-gradient(180deg, #f4f8ff 0%, #eef4ff 100%);
  color: #49617f;
  border: 1px solid #d9e6f8;
}

body.dashboard-page .dashboard-profile-card .profile-details-grid {
  gap: 14px;
}

@keyframes dashboardPanelIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.settings-panel {
  display: none;
}

.settings-panel:target,
.settings-panel.open {
  display: block;
}

.success-modal {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  background: rgba(7, 15, 32, 0.45);
  z-index: 260;
}

.success-modal.open {
  display: grid;
}

.success-card {
  width: min(380px, 92%);
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  text-align: center;
  animation: popin 0.35s ease;
}

.tick {
  width: 72px;
  height: 72px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #e9fbf2;
  border: 3px solid #14ab6f;
  display: grid;
  place-items: center;
  font-size: 2rem;
  color: #14ab6f;
  animation: pulse 1s infinite;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 10, 24, 0.35);
  display: none;
  z-index: 190;
}

.overlay.open {
  display: block;
}

body.otp-verifying-lock {
  overflow: hidden;
}

.otp-verify-overlay {
  position: fixed;
  inset: 0;
  z-index: 1250;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background:
    radial-gradient(circle at 50% 38%, rgba(74, 132, 255, 0.28), transparent 28%),
    linear-gradient(180deg, rgba(3, 10, 26, 0.46), rgba(2, 7, 20, 0.82));
  backdrop-filter: blur(18px);
}

.otp-verify-overlay.open {
  display: flex;
}

.otp-verify-card {
  width: min(420px, 92vw);
  padding: 30px 28px 26px;
  border-radius: 26px;
  text-align: center;
  color: #eff6ff;
  background:
    radial-gradient(circle at top, rgba(102, 171, 255, 0.14), transparent 42%),
    linear-gradient(180deg, rgba(10, 24, 52, 0.96), rgba(5, 14, 32, 0.98));
  border: 1px solid rgba(117, 189, 255, 0.22);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  animation: otpCardIn 0.28s ease;
}

.otp-verify-ring {
  position: relative;
  width: 112px;
  height: 112px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
}

.otp-verify-ring::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 8px solid rgba(125, 211, 252, 0.16);
  border-top-color: #6cf2a5;
  border-right-color: #1d74ff;
  border-bottom-color: rgba(255, 255, 255, 0.08);
  animation: otpSpin 0.9s linear infinite;
  box-shadow: inset 0 0 26px rgba(29, 116, 255, 0.14);
}

.otp-verify-ring::after {
  content: '';
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 35%, rgba(37, 99, 235, 0.18), transparent 58%),
    rgba(6, 17, 39, 0.98);
  border: 1px solid rgba(125, 211, 252, 0.16);
}

.otp-verify-spinner,
.otp-verify-check {
  position: relative;
  z-index: 1;
}

.otp-verify-spinner {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.08);
  border-top-color: #62f0a2;
  border-right-color: #7db9ff;
  animation: otpSpin 0.9s linear infinite;
  box-shadow: 0 0 18px rgba(98, 240, 162, 0.18);
}

.otp-verify-check {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #63f0a6;
  font-size: 3rem;
  font-weight: 800;
  opacity: 0;
  transform: scale(0.55);
  transition: opacity 0.28s ease, transform 0.28s ease;
  text-shadow: 0 0 20px rgba(99, 240, 166, 0.38);
}

.otp-verify-title {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-weight: 800;
  letter-spacing: 0.03em;
}

.otp-verify-text {
  margin-top: 8px;
  color: #a9c6ea;
  line-height: 1.5;
}

.otp-verify-overlay[data-state='success'] .otp-verify-ring::before {
  border-top-color: #63f0a6;
  border-right-color: #63f0a6;
  animation: none;
}

.otp-verify-overlay[data-state='success'] .otp-verify-spinner {
  opacity: 0;
  transform: scale(0.55);
}

.otp-verify-overlay[data-state='success'] .otp-verify-check {
  opacity: 1;
  transform: scale(1);
}

.otp-verify-overlay[data-state='success'] .otp-verify-title {
  color: #63f0a6;
}

.otp-verify-overlay[data-state='success'] .otp-verify-text {
  color: #dcfbe7;
}

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

@keyframes otpCardIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.footer-advanced {
  background: #071a39;
  color: #d9e7ff;
  margin-top: 40px;
}

.footer-advanced .container {
  padding: 34px 0;
}

.footer-title {
  color: #fff;
  margin-bottom: 10px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #c9ddff;
}

.footer-copy {
  margin-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 14px;
  color: #aac6ee;
  font-size: 0.88rem;
}

@keyframes popin {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
}

@media (max-width: 1100px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  body.dashboard-page .dashboard-profile-rail {
    position: static;
    margin-top: 6px;
  }

  body.dashboard-page .dashboard-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
    width: 100%;
  }

  body.dashboard-page .dashboard-tabs::-webkit-scrollbar {
    height: 0;
  }

  body.dashboard-page .dashboard-tab {
    flex: 0 0 auto;
  }

  body.dashboard-page .dashboard-stat-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .sidebar-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .main-content {
    margin-left: 0;
    padding-top: 0;
  }

  .topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 160;
  }

  .topbar-inner {
    min-height: 58px;
    padding: 10px 0;
    align-items: center;
  }

  .topbar-nav {
    display: none;
  }

  body.dashboard-page .dashboard-tabs {
    display: none;
  }

  body.dashboard-page #logoutBtn {
    display: none;
  }

  .section:first-of-type {
    padding-top: 96px;
  }

  .hero-grid,
  .grid-3,
  .grid-4,
  .grid-2,
  .auth-grid,
  .dashboard-grid,
  .footer-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  body.dashboard-page .dashboard-layout {
    width: 100%;
  }

  body.dashboard-page .dashboard-section {
    padding-top: 124px;
  }

  body.dashboard-page .dashboard-profile-rail {
    margin-top: 14px;
  }

  body.dashboard-page .dashboard-mobile-menu {
    display: block;
  }

  body.dashboard-page .dashboard-topbar {
    gap: 10px;
  }

  body.dashboard-page .dashboard-card-head {
    flex-direction: column;
  }

  body.dashboard-page .dashboard-avatar-frame {
    width: 116px;
    height: 116px;
  }

  body.dashboard-page .dashboard-profile-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.dashboard-page .profile-fields-grid {
    grid-template-columns: 1fr;
  }

  body.dashboard-page .dashboard-tabs {
    display: none;
  }

  body.dashboard-page .dashboard-tabs::-webkit-scrollbar {
    height: 0;
  }
}

@media (min-width: 961px) {
  .sidebar {
    display: none;
  }

  .overlay {
    display: none !important;
  }
}

/* Admin Theme */
.admin-body {
  background: #0e0e0e;
  color: #111;
}

.admin-layout {
  min-height: 100vh;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 300;
  background: #111;
  color: #fff;
  border-bottom: 1px solid #2d2d2d;
}

.admin-topbar-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
}

.admin-topbar h1 {
  font-size: 1rem;
  letter-spacing: 0.4px;
}

.admin-menu-btn {
  display: none;
  border: 1px solid #444;
  background: #fff;
  color: #111;
  border-radius: 8px;
  padding: 6px 10px;
  font-weight: 700;
}

.admin-shell {
  display: flex;
  min-height: calc(100vh - 58px);
}

.admin-sidebar {
  width: 260px;
  background: #171717;
  color: #f2f2f2;
  border-right: 1px solid #2d2d2d;
  padding: 16px;
  position: sticky;
  top: 58px;
  height: calc(100vh - 58px);
  z-index: 340;
}

.admin-sidebar .side-link {
  color: #f2f2f2;
  background: transparent;
}

.admin-sidebar .side-link:hover,
.admin-sidebar .side-link.active {
  background: #2a2a2a;
}

.admin-main {
  flex: 1;
  background: #f5f5f5;
  padding: 24px 0;
  position: relative;
  z-index: 1;
}

.admin-card {
  background: #fff;
  border: 1px solid #dfdfdf;
  border-radius: 14px;
  box-shadow: none;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid #ececec;
  padding: 10px;
  text-align: left;
  font-size: 0.9rem;
}

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

.btn-dark {
  background: #111;
  color: #fff;
}

.btn-light {
  background: #fff;
  border: 1px solid #bbb;
  color: #111;
}

.btn-warn {
  background: #111;
  color: #fff;
}

.admin-login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
  background: #0d0d0d;
}

.admin-login-card {
  width: min(460px, 96%);
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 14px;
  padding: 24px;
}

.admin-section {
  display: none;
}

.admin-section.active {
  display: block;
}

.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(7, 10, 18, 0.62);
}

.admin-modal.open {
  display: grid;
}

.admin-modal[hidden] {
  display: none !important;
}

.admin-modal-card {
  width: min(840px, 100%);
  max-height: min(90vh, 900px);
  overflow: auto;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #d9d9d9;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  padding: 20px;
}

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

.admin-modal-header h3 {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.admin-modal-close {
  border: 1px solid #c8c8c8;
  background: #fff;
  color: #111;
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
}

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

.admin-modal-field {
  border: 1px solid #e4e4e4;
  border-radius: 12px;
  padding: 14px;
  background: #f9fafc;
}

.admin-modal-field span {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5a5a5a;
  margin-bottom: 6px;
}

.admin-modal-field strong,
.admin-modal-field pre {
  display: block;
  font-size: 0.98rem;
  color: #111;
  white-space: pre-wrap;
  word-break: break-word;
}

.admin-modal-wide {
  grid-column: 1 / -1;
}

.admin-metric {
  background: #111;
  color: #fff;
  border-radius: 12px;
  padding: 16px;
  border: 1px solid #2e2e2e;
}

.admin-metric-number {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  margin-top: 6px;
}

.admin-plot-wrap {
  margin-top: 16px;
  border: 1px solid #d7d7d7;
  border-radius: 12px;
  background: linear-gradient(180deg, #fafafa, #efefef);
  padding: 10px;
}

.admin-plot {
  width: 100%;
  height: 240px;
  display: block;
}

#adminPlotLine {
  fill: none;
  stroke: #111;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 960px) {
  .inline-row {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-menu-btn {
    display: inline-block;
  }

  .admin-sidebar {
    position: fixed;
    inset: 58px auto 0 0;
    z-index: 400;
    transform: translateX(-105%);
    transition: transform 0.25s ease;
    height: calc(100vh - 58px);
    overflow-y: auto;
  }

  .admin-sidebar.open {
    transform: translateX(0);
  }

  .admin-main {
    width: 100%;
    padding: 18px 0;
  }

  .admin-table {
    min-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
  }

  .admin-table thead {
    display: none;
  }

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

  .admin-table tr {
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 12px;
  }

  .admin-table td {
    border: 0;
    padding: 6px 4px;
  }

  .admin-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: #3d3d3d;
    margin-bottom: 4px;
  }

  .admin-table td input {
    width: 100%;
  }

  .admin-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .admin-actions .btn {
    width: 100%;
  }

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

/* Business Theme */
.business-body {
  background: #101820;
  color: #111;
}

.business-login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}

.business-login-card {
  width: min(500px, 96%);
  border-radius: 14px;
  border: 1px solid #2e3743;
  background: #fff;
  padding: 24px;
}

.business-topbar {
  position: sticky;
  top: 0;
  z-index: 320;
  background: #0d141b;
  color: #fff;
  border-bottom: 1px solid #28313d;
}

.business-topbar-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.business-topbar h1 {
  font-size: 1.02rem;
  margin-bottom: 2px;
}

.business-topbar p {
  color: #b5c3d2;
  font-size: 0.86rem;
}

.business-menu-btn {
  display: none;
  border: 1px solid #3e4a5a;
  background: #fff;
  color: #111;
  border-radius: 8px;
  padding: 6px 10px;
  font-weight: 700;
}

.business-shell {
  display: flex;
  min-height: calc(100vh - 64px);
}

.business-sidebar {
  width: 290px;
  background: #151f2a;
  border-right: 1px solid #263241;
  padding: 16px;
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto;
  z-index: 340;
}

.business-sidebar .side-link {
  color: #f4f8fd;
  font-size: 0.86rem;
}

.business-sidebar .side-link:hover,
.business-sidebar .side-link.active {
  background: #243345;
}

.business-main {
  flex: 1;
  background: #f3f6fa;
  padding: 22px 0 30px;
}

.business-section {
  display: none;
}

.business-section.active {
  display: block;
}

.business-card {
  border: 1px solid #dde5ef;
  box-shadow: none;
}

.business-statement {
  margin-top: 12px;
  background: #101820;
  color: #d9ebff;
  border-radius: 10px;
  padding: 12px;
  white-space: pre-wrap;
  word-break: break-word;
  min-height: 160px;
}

@media (max-width: 980px) {
  .business-menu-btn {
    display: inline-block;
  }

  .business-sidebar {
    position: fixed;
    inset: 64px auto 0 0;
    z-index: 401;
    transform: translateX(-106%);
    transition: transform 0.25s ease;
  }

  .business-sidebar.open {
    transform: translateX(0);
  }

  .business-main {
    width: 100%;
    padding: 14px 0 20px;
  }
}

/* Banker Login Redesign */
.loading-lock {
  overflow: hidden;
}

.business-auth-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 20%, rgba(84, 123, 255, 0.24), transparent 30%),
    radial-gradient(circle at 80% 30%, rgba(0, 191, 255, 0.18), transparent 32%),
    linear-gradient(135deg, #040b26 0%, #08184f 48%, #0b2269 100%);
  overflow-x: hidden;
}

.business-auth-page::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 85%);
  pointer-events: none;
  opacity: 0.24;
}

.bank-auth-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(360px, 520px) minmax(0, 1fr);
}

.bank-auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 26px;
}

.bank-auth-card {
  width: min(520px, 100%);
  padding: 30px 28px;
  border-radius: 28px;
  color: #eef4ff;
  background:
    linear-gradient(180deg, rgba(18, 26, 74, 0.9), rgba(8, 16, 48, 0.94)),
    rgba(7, 17, 44, 0.76);
  border: 1px solid rgba(140, 172, 255, 0.28);
  box-shadow:
    0 30px 60px rgba(1, 5, 18, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  position: relative;
  overflow: hidden;
}

.bank-auth-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(124, 165, 255, 0.14), transparent 45%);
  pointer-events: none;
}

.bank-auth-logo {
  position: relative;
  z-index: 1;
}

.bank-auth-copy {
  position: relative;
  z-index: 1;
  margin-bottom: 20px;
}

.bank-auth-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(122, 173, 255, 0.14);
  color: #b8d1ff;
  border: 1px solid rgba(151, 188, 255, 0.2);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bank-auth-copy h1 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
  letter-spacing: 0.08em;
}

.bank-auth-copy p {
  max-width: 44ch;
  color: #bfd0ff;
  line-height: 1.6;
}

.bank-auth-form {
  position: relative;
  z-index: 1;
}

.bank-auth-form label {
  color: #eef4ff;
}

.bank-auth-form input {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(176, 193, 255, 0.38);
  color: #fff;
}

.bank-auth-form input::placeholder {
  color: rgba(221, 231, 255, 0.74);
}

.bank-auth-form input:focus {
  outline: none;
  border-color: rgba(120, 247, 161, 0.85);
  box-shadow: 0 0 0 3px rgba(52, 196, 102, 0.18);
}

.password-field {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.password-field input {
  flex: 1;
  min-width: 0;
}

.password-toggle {
  border: 1px solid rgba(176, 193, 255, 0.42);
  background: rgba(255, 255, 255, 0.1);
  color: #eaf1ff;
  border-radius: 12px;
  padding: 0 14px;
  font-weight: 700;
  cursor: pointer;
  min-width: 78px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.password-toggle:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

.bank-auth-btn,
.bank-auth-secondary {
  min-width: 200px;
}

.bank-auth-visual {
  position: relative;
  padding: 26px 26px 26px 0;
  display: flex;
  align-items: center;
}

.bank-auth-visual-inner {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 52px);
  border-radius: 30px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(1, 8, 24, 0.9), rgba(5, 24, 76, 0.84));
  border: 1px solid rgba(130, 161, 255, 0.25);
  box-shadow: 0 30px 80px rgba(2, 8, 24, 0.45);
}

.bank-auth-visual-image-wrap {
  position: absolute;
  inset: 0;
}

.bank-auth-visual-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
  filter: saturate(1.18) contrast(1.08) brightness(0.88);
}

.bank-auth-visual-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 40% 40%, rgba(134, 98, 255, 0.22), transparent 25%),
    radial-gradient(circle at 72% 54%, rgba(61, 202, 255, 0.15), transparent 24%),
    linear-gradient(90deg, rgba(5, 12, 38, 0.78), rgba(9, 28, 72, 0.12));
}

.bank-auth-emblem {
  position: absolute;
  right: 34px;
  top: 34px;
  width: 132px;
  aspect-ratio: 1;
  border-radius: 24px;
  background: rgba(8, 10, 32, 0.36);
  border: 1px solid rgba(201, 214, 255, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #f1e3ff;
  backdrop-filter: blur(8px);
}

.bank-auth-emblem-top {
  letter-spacing: 0.18em;
  font-size: 0.82rem;
}

.bank-auth-emblem-body {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(241, 227, 255, 0.7);
  font-size: 2.4rem;
  font-weight: 800;
}

.bank-auth-meter {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 26px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(8, 13, 28, 0.55);
  border: 1px solid rgba(177, 201, 255, 0.18);
  color: #eaf1ff;
  backdrop-filter: blur(12px);
}

.bank-auth-meter-label {
  display: block;
  margin-bottom: 4px;
  color: #8db0ff;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.bank-auth-meter strong {
  font-size: 1.2rem;
}

.bank-auth-meter-ring {
  width: 108px;
  height: 108px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #91ffb5;
  border: 1px solid rgba(145, 255, 181, 0.42);
  background:
    radial-gradient(circle, rgba(18, 255, 114, 0.12), transparent 65%),
    rgba(4, 13, 16, 0.4);
  box-shadow: inset 0 0 24px rgba(29, 255, 112, 0.14);
}

.bank-auth-meter-ring span {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.bank-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  place-items: center;
  background:
    radial-gradient(circle at 50% 35%, rgba(49, 93, 216, 0.22), transparent 30%),
    linear-gradient(180deg, #061034 0%, #020610 100%);
}

.bank-loading-overlay.open {
  display: grid;
}

.bank-loading-shell {
  width: min(1180px, 94vw);
  height: min(92vh, 920px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  border-radius: 28px;
  border: 1px solid rgba(56, 255, 126, 0.25);
  background: rgba(2, 8, 16, 0.94);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.bank-loading-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bank-loading-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  color: #8dffb3;
  background: rgba(15, 50, 30, 0.42);
  border: 1px solid rgba(79, 255, 140, 0.26);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.bank-loading-stage {
  color: #96ffb2;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.bank-loading-terminal {
  position: relative;
  flex: 1;
  display: block;
  padding: 0;
  border-radius: 22px;
  border: 1px solid rgba(56, 255, 126, 0.18);
  background:
    radial-gradient(circle at 50% 50%, rgba(23, 255, 124, 0.08), transparent 58%),
    linear-gradient(180deg, rgba(2, 7, 18, 0.98), rgba(1, 3, 6, 0.98));
  overflow: hidden;
}

.bank-loading-terminal::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.016) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
  opacity: 0.14;
}

.bank-loading-terminal::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.16) 50%, transparent 100%),
    linear-gradient(90deg, rgba(60, 255, 126, 0.06), transparent 18%, transparent 82%, rgba(60, 255, 126, 0.06));
  pointer-events: none;
}

.bank-loading-streams {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 18px 18px 108px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  overscroll-behavior: contain;
}

.bank-loading-streams::-webkit-scrollbar {
  display: none;
}

.bank-terminal-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #31ff71;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: clamp(0.94rem, 1vw, 1.16rem);
  line-height: 1.35;
  letter-spacing: 0.08em;
  white-space: pre-wrap;
  word-break: break-word;
  text-shadow: 0 0 14px rgba(49, 255, 113, 0.28);
  min-height: 1.35em;
}

.bank-terminal-line.command {
  color: #31ff71;
}

.bank-terminal-line.success {
  color: #effff4;
  text-shadow: 0 0 16px rgba(130, 255, 173, 0.34);
}

.bank-terminal-prefix {
  flex: 0 0 auto;
  color: #9effb8;
}

.bank-terminal-text {
  flex: 1 1 auto;
  min-width: 0;
}

.bank-terminal-cursor {
  display: inline-block;
  min-width: 1ch;
  color: #b8ffc8;
  animation: bankCursorBlink 1s steps(1) infinite;
}

.bank-loading-status-wrap {
  position: absolute;
  z-index: 2;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  border-top: 1px solid rgba(74, 255, 140, 0.18);
  border-radius: 14px;
  background: rgba(1, 6, 8, 0.58);
  backdrop-filter: blur(8px);
}

.bank-loading-status {
  color: #d4ffe1;
  font-size: 1.1rem;
  font-weight: 700;
}

.bank-loading-note {
  color: #7fd996;
  font-size: 0.9rem;
}

.bank-loading-overlay.done .bank-loading-status {
  color: #fff;
}

@keyframes bankCursorBlink {
  0%,
  49% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0;
  }
}

@media (max-width: 1100px) {
  .bank-auth-shell {
    grid-template-columns: 1fr;
  }

  .bank-auth-visual {
    padding: 0 26px 26px;
  }

  .bank-auth-visual-inner {
    min-height: 420px;
  }

  .bank-auth-meter {
    left: 20px;
    right: 20px;
  }
}

@media (max-width: 760px) {
  .bank-auth-panel {
    padding: 16px;
  }

  .bank-auth-card {
    padding: 22px 18px;
    border-radius: 22px;
  }

  .bank-auth-copy h1 {
    font-size: 2rem;
  }

  .bank-auth-visual {
    padding: 0 16px 16px;
  }

  .bank-auth-visual-inner {
    min-height: 360px;
    border-radius: 22px;
  }

  .bank-auth-emblem {
    width: 104px;
    right: 18px;
    top: 18px;
  }

  .bank-auth-meter {
    flex-direction: column;
    align-items: flex-start;
  }

  .password-field {
    flex-direction: column;
  }

  .password-toggle {
    min-width: 100%;
    height: 44px;
  }

  .bank-loading-shell {
    width: min(96vw, 1180px);
    height: 94vh;
    padding: 14px;
  }

  .bank-loading-streams {
    padding: 14px 14px 104px;
    font-size: 0.92rem;
    gap: 7px;
  }

  .bank-terminal-line {
    letter-spacing: 0.06em;
  }

  .account-open-form {
    gap: 14px;
  }

  .form-section {
    padding: 14px;
  }

  .profile-summary {
    grid-template-columns: 1fr;
  }

  .profile-photo,
  .profile-photo-fallback {
    width: 96px;
    height: 96px;
  }

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