:root {
  --navy-950: #061425;
  --navy-900: #071b31;
  --navy-850: #0a213b;
  --navy-800: #0d2848;
  --navy-700: #173b62;
  --blue-700: #0369a1;
  --blue-600: #0284c7;
  --blue-500: #0ea5e9;
  --blue-400: #38bdf8;
  --cyan-400: #22d3ee;
  --teal-500: #14b8a6;
  --green-500: #10b981;
  --gold-500: #f59e0b;
  --coral-500: #f97360;
  --violet-500: #8b5cf6;
  --red-500: #ef4444;
  --slate-950: #0f172a;
  --slate-900: #172033;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-150: #e9eef5;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f7f9fc;
  --body-bg: #f3f6fa;
  --text: #172033;
  --muted: #64748b;
  --border: #e3e9f1;
  --border-strong: #d5deea;
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.07);
  --shadow-md: 0 18px 48px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 30px 80px rgba(2, 12, 27, 0.20);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Manrope", "Inter", system-ui, sans-serif;
  --transition: 180ms ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--body-bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.modal-open,
body.sidebar-open {
  overflow: hidden;
}

body.app-active {
  background: #f3f6fa;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
}

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

img,
svg {
  display: block;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(14, 165, 233, 0.28);
  outline-offset: 3px;
}

::selection {
  background: rgba(14, 165, 233, 0.22);
  color: var(--navy-950);
}

.hidden {
  display: none !important;
}

.shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 5000;
  top: 14px;
  left: 14px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--white);
  color: var(--navy-950);
  font-weight: 700;
  box-shadow: var(--shadow-md);
  transform: translateY(-150%);
  transition: transform var(--transition);
}

.skip-link:focus {
  transform: translateY(0);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
}

.brand-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  color: var(--navy-950);
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: -0.45px;
}

.brand-wordmark strong {
  font-weight: 800;
}

.brand-wordmark span {
  font-weight: 600;
}

.brand-inverse .brand-wordmark {
  color: var(--white);
}

.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: transform var(--transition), background var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition);
}

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

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue-500), #0078d4 62%, #0068c5);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(14, 165, 233, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #16b5f2, #087bcf 62%, #0063b9);
  box-shadow: 0 14px 30px rgba(14, 165, 233, 0.32);
}

.btn-secondary {
  background: var(--navy-950);
  color: var(--white);
  box-shadow: 0 10px 28px rgba(6, 20, 37, 0.17);
}

.btn-secondary:hover {
  background: var(--navy-800);
}

.btn-outline {
  border-color: var(--border-strong);
  background: var(--white);
  color: var(--slate-700);
  box-shadow: var(--shadow-xs);
}

.btn-outline:hover {
  border-color: #b9c7d9;
  background: var(--slate-50);
  color: var(--navy-950);
}

.btn-quiet {
  background: transparent;
  color: var(--slate-700);
}

.btn-quiet:hover {
  background: var(--slate-100);
  color: var(--navy-950);
}

.btn-glass {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.btn-glass:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.14);
}

.btn-lg {
  min-height: 52px;
  padding-inline: 23px;
  border-radius: 14px;
  font-size: 15px;
}

.full-width {
  width: 100%;
}

.text-link,
.text-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  background: transparent;
  color: var(--blue-700);
  cursor: pointer;
  font-weight: 700;
  transition: color var(--transition), gap var(--transition);
}

.text-link:hover {
  gap: 10px;
  color: var(--blue-500);
}

.text-button {
  font-size: 12px;
  font-weight: 600;
}

/* Public navigation */
.navbar {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(6, 20, 37, 0.82);
  color: var(--white);
  backdrop-filter: blur(18px) saturate(140%);
  transition: background var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.navbar.scrolled {
  border-color: rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.94);
  color: var(--slate-800);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
}

.navbar .nav-shell {
  width: min(1240px, calc(100% - 40px));
  min-height: 76px;
  display: flex;
  align-items: center;
  margin-inline: auto;
}

.navbar:not(.scrolled) .brand-wordmark {
  color: var(--white);
}

.public-nav {
  margin-left: auto;
  margin-right: 28px;
}

#navLinks {
  display: flex;
  align-items: center;
  gap: 30px;
}

#navLinks a {
  position: relative;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 600;
  transition: color var(--transition);
}

.navbar.scrolled #navLinks a {
  color: var(--slate-600);
}

#navLinks a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 2px;
  border-radius: 99px;
  background: var(--cyan-400);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition);
}

#navLinks a:hover,
.navbar.scrolled #navLinks a:hover {
  color: var(--white);
}

.navbar.scrolled #navLinks a:hover {
  color: var(--navy-950);
}

#navLinks a:hover::after {
  transform: scaleX(1);
}

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

.navbar:not(.scrolled) .btn-quiet {
  color: rgba(255, 255, 255, 0.86);
}

.navbar:not(.scrolled) .btn-quiet:hover {
  background: rgba(255, 255, 255, 0.10);
  color: var(--white);
}

.mobile-menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  cursor: pointer;
}

.navbar.scrolled .mobile-menu-btn {
  background: var(--slate-100);
  color: var(--navy-950);
}

body.app-active .navbar,
body.app-active #siteFooter {
  display: none;
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 800px;
  overflow: hidden;
  padding: 154px 0 102px;
  background:
    radial-gradient(circle at 10% 20%, rgba(14, 165, 233, 0.16), transparent 30%),
    radial-gradient(circle at 88% 15%, rgba(20, 184, 166, 0.16), transparent 25%),
    linear-gradient(130deg, #061425 0%, #07192d 46%, #08213b 100%);
  color: var(--white);
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -210px;
  bottom: -360px;
  width: 930px;
  height: 930px;
  border: 1px solid rgba(56, 189, 248, 0.11);
  border-radius: 50%;
  box-shadow: 0 0 0 80px rgba(14, 165, 233, 0.025), 0 0 0 160px rgba(14, 165, 233, 0.018);
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -5%;
  bottom: -20%;
  width: 65%;
  height: 75%;
  opacity: 0.44;
  background-image: linear-gradient(rgba(56, 189, 248, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(56, 189, 248, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to top, black, transparent 78%);
  transform: perspective(640px) rotateX(62deg) rotateZ(-11deg);
  transform-origin: bottom right;
}

.hero-orb {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(2px);
}

.hero-orb-one {
  top: 142px;
  right: 8%;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(34, 211, 238, 0.16);
  background: radial-gradient(circle at 35% 35%, rgba(34, 211, 238, 0.12), transparent 65%);
}

.hero-orb-two {
  bottom: 42px;
  left: -160px;
  width: 360px;
  height: 360px;
  background: rgba(14, 165, 233, 0.08);
  filter: blur(70px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(520px, 1.08fr);
  align-items: center;
  gap: 76px;
}

.hero-copy {
  position: relative;
  z-index: 3;
}

.eyebrow {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: var(--blue-700);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow-dark {
  padding: 8px 12px;
  border: 1px solid rgba(103, 232, 249, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #b6f4fb;
}

.eyebrow-light {
  color: #a5f3fc;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan-400);
  box-shadow: 0 0 0 5px rgba(34, 211, 238, 0.10);
}

.hero h1 {
  max-width: 700px;
  margin-bottom: 24px;
  font-family: var(--font-display);
  font-size: clamp(50px, 5.4vw, 76px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.hero h1 span {
  background: linear-gradient(90deg, #67e8f9 4%, #38bdf8 47%, #2dd4bf 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy > p {
  max-width: 590px;
  margin-bottom: 32px;
  color: rgba(226, 232, 240, 0.78);
  font-size: 17px;
  line-height: 1.78;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 38px;
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: 18px;
}

.proof-item {
  display: flex;
  align-items: center;
  gap: 11px;
}

.proof-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--cyan-400);
  font-size: 13px;
}

.proof-item > span:last-child {
  display: flex;
  flex-direction: column;
}

.proof-item strong {
  color: var(--white);
  font-size: 13px;
  line-height: 1.25;
}

.proof-item small {
  color: rgba(203, 213, 225, 0.58);
  font-size: 10px;
  white-space: nowrap;
}

.proof-divider {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.12);
}

.hero-visual {
  position: relative;
  min-height: 570px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-glow {
  position: absolute;
  top: 14%;
  left: 10%;
  width: 78%;
  height: 70%;
  border-radius: 50%;
  background: rgba(0, 174, 239, 0.22);
  filter: blur(85px);
}

.dashboard-preview {
  position: relative;
  z-index: 2;
  width: min(590px, 100%);
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 26px;
  background: rgba(248, 250, 252, 0.97);
  color: var(--slate-800);
  box-shadow: 0 40px 90px rgba(0, 7, 18, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transform: perspective(1500px) rotateY(-5deg) rotateX(1.5deg) rotateZ(0.4deg);
}

.dashboard-preview::before {
  content: "";
  position: absolute;
  inset: 8px;
  z-index: -1;
  border: 1px solid rgba(15, 23, 42, 0.05);
  border-radius: 20px;
}

.preview-topbar,
.preview-greeting,
.preview-panel-head,
.preview-account-row,
.preview-legend {
  display: flex;
  align-items: center;
}

.preview-topbar {
  justify-content: space-between;
  margin-bottom: 22px;
}

.preview-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
}

.preview-brand img {
  width: 28px;
  height: 28px;
}

.preview-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--slate-500);
}

.preview-top-actions > span:first-child {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--white);
  font-size: 11px;
}

.preview-avatar {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #dbeafe, #cffafe);
  color: var(--navy-800);
  font-size: 9px;
  font-weight: 800;
}

.preview-greeting {
  justify-content: space-between;
  margin-bottom: 14px;
}

.preview-greeting > div {
  display: flex;
  flex-direction: column;
}

.preview-greeting small {
  margin-bottom: 2px;
  color: var(--slate-500);
  font-size: 9px;
}

.preview-greeting strong {
  color: var(--slate-800);
  font-size: 11px;
}

.preview-greeting button {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--slate-100);
  color: var(--slate-500);
}

.preview-balance-card {
  position: relative;
  min-height: 170px;
  overflow: hidden;
  margin-bottom: 14px;
  padding: 22px;
  border-radius: 18px;
  background: linear-gradient(135deg, #071b31 0%, #0c3152 70%, #064c64 100%);
  color: var(--white);
}

.preview-balance-card > div:first-child {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

.preview-balance-card span {
  color: rgba(226, 232, 240, 0.62);
  font-size: 9px;
}

.preview-balance-card strong {
  margin: 4px 0;
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: -0.04em;
}

.preview-balance-card small {
  width: fit-content;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  color: #6ee7b7;
  font-size: 8px;
}

.preview-balance-icon {
  position: absolute;
  z-index: 2;
  top: 20px;
  right: 20px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #8beaf3;
}

.preview-sparkline {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 78px;
}

.preview-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 14px;
}

.preview-panel {
  min-height: 164px;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--white);
}

.preview-panel-head {
  justify-content: space-between;
  margin-bottom: 12px;
  color: var(--slate-800);
  font-size: 9px;
  font-weight: 700;
}

.preview-panel-head i,
.preview-panel-head small {
  color: var(--slate-400);
  font-size: 8px;
  font-weight: 500;
}

.preview-account-row {
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid var(--slate-100);
}

.preview-account-row > span:nth-child(2) {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.preview-account-row strong,
.preview-account-row b {
  font-size: 8px;
}

.preview-account-row small {
  color: var(--slate-400);
  font-size: 7px;
}

.mini-icon {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-size: 8px;
}

.mini-icon.blue { background: #e0f2fe; color: var(--blue-600); }
.mini-icon.teal { background: #ccfbf1; color: #0f766e; }
.mini-icon.gold { background: #fef3c7; color: #b45309; }

.preview-spending > strong {
  display: block;
  margin: 4px 0 9px;
  font-family: var(--font-display);
  font-size: 20px;
}

.mini-bars {
  height: 74px;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  padding-top: 4px;
}

.mini-bars i {
  width: 100%;
  height: var(--bar);
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(to top, var(--blue-500), var(--cyan-400));
}

.mini-bars i:nth-child(even) {
  opacity: 0.58;
}

.preview-legend {
  justify-content: space-between;
  margin-top: 10px;
  color: var(--slate-400);
  font-size: 7px;
}

.preview-legend span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.preview-legend i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal-500);
}

.preview-legend span:last-child i {
  background: var(--blue-500);
}

.floating-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--slate-800);
  box-shadow: 0 20px 48px rgba(0, 7, 18, 0.30);
  backdrop-filter: blur(12px);
}

.floating-card > span:last-child {
  display: flex;
  flex-direction: column;
}

.floating-card small {
  color: var(--slate-500);
  font-size: 8px;
}

.floating-card strong {
  font-size: 10px;
}

.floating-card-one {
  right: -22px;
  bottom: 52px;
  animation: float 5s ease-in-out infinite;
}

.floating-card-two {
  top: 46px;
  left: -26px;
  animation: float 5s ease-in-out -2.1s infinite;
}

.floating-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #dcfce7;
  color: #16a34a;
  font-size: 12px;
}


@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Public sections */
.trust-strip {
  position: relative;
  z-index: 4;
  margin-top: -42px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.84);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
}

.trust-grid > div {
  display: grid;
  grid-template-columns: 42px auto;
  grid-template-rows: auto auto;
  align-items: center;
  padding: 20px 24px;
  border-right: 1px solid var(--border);
}

.trust-grid > div:last-child {
  border-right: 0;
}

.trust-icon {
  grid-row: 1 / 3;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #ecfeff;
  color: var(--blue-600);
}

.trust-grid strong {
  color: var(--navy-950);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.15;
}

.trust-grid small {
  color: var(--slate-500);
  font-size: 11px;
}

.section {
  padding: 112px 0;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 48px;
}

.section-heading.centered {
  margin-inline: auto;
  text-align: center;
}

.section-heading.centered .eyebrow {
  margin-inline: auto;
}

.section-heading h2,
.business-copy h2,
.security-copy h2,
.support-card h2 {
  margin-bottom: 17px;
  color: var(--navy-950);
  font-family: var(--font-display);
  font-size: clamp(34px, 3.8vw, 48px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.12;
}

.section-heading p,
.business-copy > p,
.support-card p {
  color: var(--slate-600);
  font-size: 16px;
  line-height: 1.75;
}

.services {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

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

.service-card {
  position: relative;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-xs);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.service-card::after {
  content: "";
  position: absolute;
  right: -65px;
  bottom: -65px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.08), transparent 70%);
  transition: transform 350ms ease;
}

.service-card:hover {
  border-color: rgba(14, 165, 233, 0.28);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.09);
  transform: translateY(-7px);
}

.service-card:hover::after {
  transform: scale(1.35);
}

.service-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 27px;
  border-radius: 16px;
  font-size: 21px;
}

.service-icon-teal { background: #ccfbf1; color: #0f766e; }
.service-icon-blue { background: #e0f2fe; color: #0369a1; }
.service-icon-gold { background: #fef3c7; color: #b45309; }
.service-icon-violet { background: #ede9fe; color: #6d28d9; }

.service-tag {
  margin-bottom: 10px;
  color: var(--blue-700);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.service-card h3 {
  margin-bottom: 12px;
  color: var(--navy-950);
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: -0.02em;
}

.service-card p {
  margin-bottom: 24px;
  color: var(--slate-500);
  font-size: 13px;
  line-height: 1.7;
}

.service-card .text-link {
  margin-top: auto;
  font-size: 12px;
}

.business-section {
  overflow: hidden;
  background: var(--white);
}

.business-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: 92px;
}

.business-visual {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 34px;
  background:
    radial-gradient(circle at 28% 18%, rgba(34, 211, 238, 0.16), transparent 34%),
    linear-gradient(145deg, #071729, #0a2d4c);
}

.business-visual::before,
.business-visual::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(103, 232, 249, 0.12);
  border-radius: 50%;
}

.business-visual::before {
  width: 330px;
  height: 330px;
}

.business-visual::after {
  width: 420px;
  height: 420px;
}

.business-card {
  position: relative;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 30px 70px rgba(0, 6, 16, 0.32);
}

.business-card-main {
  width: 74%;
  min-height: 280px;
  padding: 28px;
  border-radius: 22px;
  transform: rotate(-2deg);
}

.business-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  color: var(--slate-500);
  font-size: 12px;
  font-weight: 600;
}

.positive-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: 10px;
  font-weight: 700;
}

.business-card-main > strong {
  display: block;
  color: var(--navy-950);
  font-family: var(--font-display);
  font-size: 35px;
  letter-spacing: -0.04em;
}

.business-card-main > small {
  color: var(--slate-400);
  font-size: 11px;
}

.business-chart {
  height: 110px;
  display: flex;
  align-items: flex-end;
  gap: 9px;
  margin-top: 26px;
  padding-top: 12px;
  border-top: 1px solid var(--slate-100);
}

.business-chart span {
  width: 100%;
  height: var(--h);
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(to top, var(--blue-600), var(--cyan-400));
}

.business-chart span:nth-child(2n) {
  opacity: 0.65;
}

.business-card-side {
  position: absolute;
  z-index: 3;
  right: 4%;
  bottom: 42px;
  width: 190px;
  padding: 22px;
  border-radius: 18px;
  transform: rotate(3deg);
}

.side-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 12px;
  background: #dbeafe;
  color: var(--blue-600);
}

.business-card-side span,
.business-card-side small {
  display: block;
  color: var(--slate-500);
  font-size: 10px;
}

.business-card-side strong {
  display: block;
  margin: 2px 0;
  color: var(--navy-950);
  font-family: var(--font-display);
  font-size: 30px;
}

.feature-list {
  display: grid;
  gap: 17px;
  margin: 28px 0 32px;
  list-style: none;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  color: var(--slate-600);
  font-size: 13px;
}

.feature-list li > i {
  width: 23px;
  height: 23px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #ccfbf1;
  color: #0f766e;
  font-size: 9px;
}

.feature-list strong {
  color: var(--slate-800);
}

.security-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #061425, #08213b);
  color: var(--white);
}

.security-section::after {
  content: "";
  position: absolute;
  right: -180px;
  bottom: -340px;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: rgba(14, 165, 233, 0.10);
  filter: blur(40px);
}

.security-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  align-items: center;
  gap: 90px;
}

.security-copy h2 {
  color: var(--white);
}

.security-copy > p {
  max-width: 600px;
  color: rgba(203, 213, 225, 0.72);
  font-size: 15px;
  line-height: 1.75;
}

.security-points {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}

.security-points > div {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 17px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.security-points > div > span {
  width: 36px;
  height: 36px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 11px;
  background: rgba(34, 211, 238, 0.10);
  color: var(--cyan-400);
}

.security-points > div > div {
  display: flex;
  flex-direction: column;
}

.security-points strong {
  margin-bottom: 3px;
  color: var(--white);
  font-size: 13px;
}

.security-points small {
  color: rgba(203, 213, 225, 0.58);
  font-size: 11px;
}

.security-visual {
  position: relative;
  min-height: 470px;
  display: grid;
  place-items: center;
}

.security-shield {
  position: relative;
  z-index: 3;
  width: 138px;
  height: 138px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 42px;
  background: linear-gradient(145deg, rgba(34, 211, 238, 0.20), rgba(14, 165, 233, 0.08));
  color: #67e8f9;
  font-size: 55px;
  box-shadow: 0 30px 80px rgba(0, 4, 14, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transform: rotate(2deg);
}

.security-orbit {
  position: absolute;
  border: 1px solid rgba(103, 232, 249, 0.14);
  border-radius: 50%;
}

.security-orbit-one { width: 290px; height: 290px; }
.security-orbit-two { width: 410px; height: 410px; }

.security-chip {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 15px;
  background: rgba(10, 33, 59, 0.88);
  box-shadow: 0 18px 45px rgba(0, 5, 18, 0.35);
  backdrop-filter: blur(12px);
}

.security-chip > i {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(34, 211, 238, 0.10);
  color: var(--cyan-400);
}

.security-chip > span {
  display: flex;
  flex-direction: column;
}

.security-chip strong {
  color: var(--white);
  font-size: 11px;
}

.security-chip small {
  color: rgba(203, 213, 225, 0.55);
  font-size: 9px;
}

.chip-top { top: 58px; right: 18px; }
.chip-bottom { bottom: 56px; left: 10px; }

.support-section {
  background: var(--slate-50);
}

.support-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: 48px 54px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background:
    radial-gradient(circle at 85% 20%, rgba(14, 165, 233, 0.12), transparent 30%),
    var(--white);
  box-shadow: var(--shadow-sm);
}

.support-card > div {
  max-width: 710px;
}

.support-card h2 {
  margin-bottom: 10px;
  font-size: clamp(30px, 3.4vw, 43px);
}

/* Footer */
#siteFooter {
  background: var(--navy-950);
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr repeat(3, 0.7fr);
  gap: 70px;
  padding: 72px 0 52px;
}

.footer-brand-column p {
  max-width: 370px;
  margin-top: 18px;
  color: rgba(203, 213, 225, 0.55);
  font-size: 12px;
  line-height: 1.75;
}

.footer-grid > div:not(:first-child) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
}

.footer-grid > div > strong {
  margin-bottom: 4px;
  font-size: 12px;
}

.footer-grid a,
.footer-grid button {
  padding: 0;
  background: transparent;
  color: rgba(203, 213, 225, 0.56);
  cursor: pointer;
  font-size: 11px;
  transition: color var(--transition);
}

.footer-grid a:hover,
.footer-grid button:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 21px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(203, 213, 225, 0.45);
  font-size: 10px;
}

.footer-bottom span:last-child {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

/* Application shell */
.app-container {
  min-height: 100vh;
  display: flex;
  background: #f3f6fa;
}

.sidebar {
  position: fixed;
  z-index: 1200;
  top: 0;
  bottom: 0;
  left: 0;
  width: 264px;
  display: flex;
  flex-direction: column;
  padding: 24px 18px 18px;
  overflow-y: auto;
  background:
    radial-gradient(circle at 12% 8%, rgba(14, 165, 233, 0.13), transparent 24%),
    linear-gradient(180deg, #071729 0%, #071b31 55%, #061425 100%);
  color: var(--white);
  box-shadow: 12px 0 35px rgba(15, 23, 42, 0.06);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px 24px;
}

.sidebar-brand .brand-mark {
  width: 40px;
  height: 40px;
}

.sidebar-close {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--white);
  cursor: pointer;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-label {
  margin: 10px 12px 10px;
  color: rgba(203, 213, 225, 0.38);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.sidebar-link {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: rgba(226, 232, 240, 0.66);
  cursor: pointer;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
}

.sidebar-link i {
  width: 19px;
  color: rgba(148, 163, 184, 0.72);
  text-align: center;
  transition: color var(--transition);
}

.sidebar-link:hover {
  background: rgba(255, 255, 255, 0.055);
  color: var(--white);
  transform: translateX(2px);
}

.sidebar-link.active {
  border-color: rgba(56, 189, 248, 0.15);
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.20), rgba(14, 165, 233, 0.08));
  color: var(--white);
  box-shadow: inset 3px 0 0 var(--cyan-400);
}

.sidebar-link.active i {
  color: var(--cyan-400);
}

.sidebar-spacer {
  flex: 1;
  min-height: 30px;
}

.sidebar-security {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.sidebar-security-icon {
  width: 33px;
  height: 33px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  background: rgba(34, 211, 238, 0.10);
  color: var(--cyan-400);
  font-size: 12px;
}

.sidebar-security > div {
  display: flex;
  flex-direction: column;
}

.sidebar-security strong {
  color: rgba(255, 255, 255, 0.9);
  font-size: 10px;
}

.sidebar-security small {
  color: rgba(203, 213, 225, 0.45);
  font-size: 8px;
  line-height: 1.5;
}

.sidebar-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 5px 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.avatar {
  width: 40px;
  height: 40px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: linear-gradient(135deg, #0ea5e9, #14b8a6);
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.avatar-small {
  width: 36px;
  height: 36px;
  border-color: rgba(14, 165, 233, 0.22);
  font-size: 10px;
}

.sidebar-profile-copy {
  min-width: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.sidebar-profile-copy strong {
  overflow: hidden;
  color: var(--white);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-profile-copy span {
  overflow: hidden;
  color: rgba(203, 213, 225, 0.45);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#logoutBtn {
  width: 33px;
  height: 33px;
  flex: 0 0 auto;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(226, 232, 240, 0.68);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

#logoutBtn:hover {
  background: rgba(239, 68, 68, 0.13);
  color: #fca5a5;
}

.sidebar-backdrop {
  position: fixed;
  z-index: 1150;
  inset: 0;
  display: none;
  background: rgba(6, 20, 37, 0.62);
  backdrop-filter: blur(4px);
}

.app-main {
  min-width: 0;
  width: calc(100% - 264px);
  margin-left: 264px;
}

.app-topbar {
  position: sticky;
  z-index: 900;
  top: 0;
  height: 72px;
  display: flex;
  align-items: center;
  padding: 0 34px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px) saturate(130%);
}

.app-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  margin-right: 12px;
  border-radius: 11px;
  background: var(--slate-100);
  color: var(--slate-700);
  cursor: pointer;
}

.app-search {
  position: relative;
  width: min(480px, 48vw);
  display: flex;
  align-items: center;
}

.app-search > i {
  position: absolute;
  left: 14px;
  color: var(--slate-400);
  font-size: 12px;
  pointer-events: none;
}

.app-search input {
  width: 100%;
  height: 42px;
  padding: 0 60px 0 39px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--slate-50);
  color: var(--slate-800);
  outline: none;
  font-size: 11px;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.app-search input:focus {
  border-color: rgba(14, 165, 233, 0.55);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.08);
}

.app-search kbd {
  position: absolute;
  right: 11px;
  padding: 3px 7px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: var(--white);
  color: var(--slate-400);
  font-family: var(--font-body);
  font-size: 8px;
  box-shadow: var(--shadow-xs);
}

.app-top-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
}

.icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: var(--slate-500);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}

.icon-btn:hover,
.icon-btn[aria-expanded="true"] {
  border-color: var(--border);
  background: var(--slate-50);
  color: var(--navy-950);
}

.notification-dot {
  position: absolute;
  top: 3px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  padding-inline: 4px;
  border: 2px solid var(--white);
  border-radius: 999px;
  background: var(--red-500);
  color: var(--white);
  font-size: 7px;
  font-weight: 800;
}

.notification-dot:empty,
.notification-dot[data-count="0"] {
  display: none;
}

.top-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 8px;
  padding-left: 14px;
  border-left: 1px solid var(--border);
}

.top-profile > div:last-child {
  display: flex;
  flex-direction: column;
}

.top-profile strong {
  max-width: 130px;
  overflow: hidden;
  color: var(--slate-800);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-profile span {
  color: var(--slate-400);
  font-size: 8px;
}

.notification-panel {
  position: absolute;
  z-index: 1300;
  top: 62px;
  right: 170px;
  width: 330px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.notification-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 17px;
  border-bottom: 1px solid var(--border);
}

.notification-panel-header strong {
  font-size: 12px;
}

.notification-panel-header span {
  color: var(--slate-400);
  font-size: 9px;
}

.notification-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 14px 17px;
  border-bottom: 1px solid var(--slate-100);
}

.notification-item:last-child {
  border-bottom: 0;
}

.notification-item > i {
  width: 28px;
  height: 28px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: #fff7ed;
  color: #c2410c;
  font-size: 10px;
}

.notification-item div {
  display: flex;
  flex-direction: column;
}

.notification-item strong {
  color: var(--slate-700);
  font-size: 10px;
}

.notification-item small {
  margin-top: 2px;
  color: var(--slate-400);
  font-size: 8px;
}

.dashboard-content {
  width: min(100%, 1600px);
  margin: 0 auto;
  padding: 36px 34px 56px;
}

.dashboard-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
  scroll-margin-top: 100px;
}

.dashboard-kicker {
  margin-bottom: 3px;
  color: var(--blue-700) !important;
  font-size: 9px !important;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.dashboard-heading h1 {
  margin-bottom: 5px;
  color: var(--slate-950);
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.dashboard-heading p {
  color: var(--slate-500);
  font-size: 11px;
}

.dashboard-heading-actions {
  display: flex;
  gap: 9px;
}

.account-summary-grid {
  display: grid;
  grid-template-columns: minmax(330px, 1.55fr) repeat(3, minmax(205px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
  scroll-margin-top: 100px;
}

.summary-card,
.dashboard-card,
.admin-kpi {
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.summary-card {
  min-height: 236px;
  padding: 21px;
  border-radius: 18px;
}

.balance-card {
  position: relative;
  overflow: hidden;
  border: 0;
  background:
    radial-gradient(circle at 92% 12%, rgba(34, 211, 238, 0.18), transparent 29%),
    linear-gradient(135deg, #071729 0%, #0b3152 68%, #07506a 100%);
  color: var(--white);
  box-shadow: 0 14px 34px rgba(6, 20, 37, 0.18);
}

.balance-card-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.balance-card-top > div {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.card-label {
  color: var(--slate-500);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.balance-card .card-label {
  color: rgba(226, 232, 240, 0.62);
}

.inline-icon-btn {
  width: 25px;
  height: 25px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.66);
  cursor: pointer;
}

.trend-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 800;
}

.trend-pill.positive {
  background: rgba(16, 185, 129, 0.11);
  color: #059669;
}

.balance-card .trend-pill.positive {
  background: rgba(16, 185, 129, 0.14);
  color: #6ee7b7;
}

.balance-value {
  position: relative;
  z-index: 2;
  display: block;
  margin: 15px 0 1px;
  font-family: var(--font-display);
  font-size: clamp(31px, 3vw, 42px);
  letter-spacing: -0.055em;
  line-height: 1.1;
}

.balance-subtitle {
  position: relative;
  z-index: 2;
  color: rgba(203, 213, 225, 0.54);
  font-size: 9px;
}

.balance-account-row {
  position: absolute;
  z-index: 2;
  right: 21px;
  bottom: 18px;
  left: 21px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  color: rgba(226, 232, 240, 0.72);
  font-size: 9px;
}

.balance-account-row > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.account-number-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 0.04em;
}

.account-number-wrap button {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.65);
  cursor: pointer;
}

.balance-wave {
  position: absolute;
  right: 0;
  bottom: 34px;
  left: 0;
  width: 100%;
  height: 88px;
  opacity: 0.38;
}

.balance-wave path:first-child {
  fill: rgba(34, 211, 238, 0.11);
}

.balance-wave path:last-child {
  fill: none;
  stroke: rgba(103, 232, 249, 0.74);
  stroke-linecap: round;
  stroke-width: 2;
}

.summary-card-head,
.card-heading-row,
.action-card-heading,
.cashflow-row,
.goal-body,
.section-heading-row,
.table-footer {
  display: flex;
  align-items: center;
}

.summary-card-head {
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}

.summary-card-head > div {
  display: flex;
  flex-direction: column;
}

.summary-card-head small {
  margin-top: 4px;
  color: var(--slate-400);
  font-size: 8px;
}

.summary-icon {
  width: 38px;
  height: 38px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 11px;
  font-size: 14px;
}

.summary-icon.blue { background: #e0f2fe; color: #0369a1; }
.summary-icon.teal { background: #ccfbf1; color: #0f766e; }
.summary-icon.gold { background: #fef3c7; color: #b45309; }
.summary-icon.violet { background: #ede9fe; color: #6d28d9; }

.metric-value {
  display: block;
  margin-bottom: 18px;
  color: var(--slate-900);
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: -0.04em;
}

.cashflow-row {
  justify-content: space-between;
  margin: 9px 0 6px;
  color: var(--slate-500);
  font-size: 9px;
}

.cashflow-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cashflow-row strong {
  color: var(--slate-700);
  font-size: 9px;
}

.income-dot,
.expense-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-500);
}

.expense-dot {
  background: var(--coral-500);
}

.metric-bar {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--slate-100);
}

.metric-bar i {
  width: 0;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #10b981, #34d399);
  transition: width 500ms ease;
}

.metric-bar.expense i {
  background: linear-gradient(90deg, #fb7185, #f97360);
}

.activity-card,
.account-status-card,
.cashflow-card {
  display: flex;
  flex-direction: column;
}

.activity-card .metric-value {
  margin-bottom: 12px;
  font-size: 34px;
}

.activity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px 0 5px;
  color: var(--slate-500);
  font-size: 9px;
}

.activity-row span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.activity-row strong {
  color: var(--slate-700);
  font-size: 10px;
}

.pending-dot,
.review-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-500);
}

.review-dot {
  background: var(--blue-500);
}

.activity-card .card-link {
  margin-top: auto;
}

.account-state {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 5px 0 16px;
  padding: 14px;
  border: 1px solid #bbf7d0;
  border-radius: 14px;
  background: #f0fdf4;
}

.account-state-icon {
  width: 42px;
  height: 42px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  background: #dcfce7;
  color: #15803d;
  font-size: 15px;
}

.account-state > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.account-state strong {
  color: #166534;
  font-family: var(--font-display);
  font-size: 18px;
}

.account-state small {
  color: #4b7b5c;
  font-size: 8px;
}

.account-security-list {
  display: grid;
  gap: 8px;
  margin-top: auto;
  color: var(--slate-500);
  font-size: 8px;
}

.account-security-list span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.account-security-list i {
  color: var(--teal-500);
  font-size: 8px;
}

.card-link {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding: 0;
  background: transparent;
  color: var(--blue-700);
  cursor: pointer;
  font-size: 9px;
  font-weight: 700;
}


.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.quick-action {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--white);
  color: var(--slate-800);
  cursor: pointer;
  text-align: left;
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.quick-action:hover {
  border-color: rgba(14, 165, 233, 0.28);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.quick-icon {
  width: 39px;
  height: 39px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 11px;
  font-size: 13px;
}

.quick-icon.green { background: #dcfce7; color: #15803d; }
.quick-icon.blue { background: #dbeafe; color: #1d4ed8; }
.quick-icon.coral { background: #ffedd5; color: #c2410c; }
.quick-icon.violet { background: #ede9fe; color: #6d28d9; }

.quick-action > span:nth-child(2) {
  min-width: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.quick-action strong {
  color: var(--slate-800);
  font-size: 10px;
}

.quick-action small {
  margin-top: 2px;
  overflow: hidden;
  color: var(--slate-400);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-action > i {
  color: var(--slate-300);
  font-size: 9px;
}

.analytics-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.75fr);
  gap: 16px;
  margin-bottom: 16px;
  scroll-margin-top: 100px;
}

.dashboard-card {
  border-radius: 18px;
  padding: 21px;
}

.card-heading-row {
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.card-heading-row > div:first-child {
  min-width: 0;
}

.card-heading-row h2,
.section-heading-row h2 {
  margin-top: 3px;
  color: var(--slate-900);
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.card-heading-row select,
.table-tools select {
  height: 34px;
  padding: 0 30px 0 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background-color: var(--slate-50);
  color: var(--slate-600);
  outline: none;
  font-size: 9px;
}

.chart-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.chart-summary > strong {
  color: var(--slate-900);
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: -0.04em;
}

.line-chart {
  position: relative;
  height: 245px;
  margin-top: 4px;
}

.line-chart svg {
  width: 100%;
  height: 220px;
  overflow: visible;
}

.chart-grid-lines line {
  stroke: #edf1f6;
  stroke-width: 1;
}

#balanceLinePath {
  fill: none;
  stroke: var(--blue-500);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

#balanceChartDots circle {
  fill: var(--white);
  stroke: var(--blue-500);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.chart-labels {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
  color: var(--slate-400);
  font-size: 8px;
}

.period-chip,
.workflow-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--slate-100);
  color: var(--slate-500);
  font-size: 8px;
  font-weight: 700;
}

.alert-chip {
  background: #fff7ed;
  color: #c2410c;
}

.spending-total {
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
}

.spending-total strong {
  color: var(--slate-900);
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: -0.035em;
}

.spending-total small {
  color: var(--slate-400);
  font-size: 8px;
}

.spending-body {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  min-height: 165px;
}

.spending-donut {
  --spending-gradient: conic-gradient(#0ea5e9 0 36%, #14b8a6 36% 60%, #8b5cf6 60% 77%, #f59e0b 77% 89%, #f97360 89% 100%);
  position: relative;
  width: 128px;
  height: 128px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--spending-gradient);
}

.spending-donut::before {
  content: "";
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--slate-100);
}

.spending-donut > span {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.spending-donut strong {
  color: var(--slate-900);
  font-family: var(--font-display);
  font-size: 14px;
}

.spending-donut small {
  color: var(--slate-400);
  font-size: 7px;
}

.spending-legend {
  display: grid;
  gap: 9px;
}

.spending-legend-row {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  color: var(--slate-500);
  font-size: 8px;
}

.spending-legend-row > i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--legend-color);
}

.spending-legend-row strong {
  color: var(--slate-700);
  font-size: 8px;
}

.spending-card .card-link {
  margin-top: 13px;
}

.money-actions-section {
  margin-bottom: 16px;
  padding-top: 8px;
  scroll-margin-top: 90px;
}

.section-heading-row {
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 0 2px;
}

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

.action-card {
  min-height: 354px;
}

.action-card-heading {
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 19px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--slate-100);
}

.action-card-heading h3 {
  margin-bottom: 3px;
  color: var(--slate-900);
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: -0.02em;
}

.action-card-heading p {
  color: var(--slate-400);
  font-size: 8px;
}

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

.form-group label,
.label-row label {
  display: block;
  margin-bottom: 6px;
  color: var(--slate-600);
  font-size: 9px;
  font-weight: 700;
}

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.input-shell {
  position: relative;
  min-height: 44px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 11px;
  background: var(--slate-50);
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.input-shell:focus-within {
  border-color: rgba(14, 165, 233, 0.65);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.08);
}

.input-shell > i,
.input-shell > span {
  width: 41px;
  flex: 0 0 auto;
  color: var(--slate-400);
  text-align: center;
  font-size: 11px;
}

.input-shell input,
.input-shell select {
  min-width: 0;
  width: 100%;
  height: 42px;
  padding: 0 12px 0 0;
  border: 0;
  background: transparent;
  color: var(--slate-800);
  outline: 0;
  font-size: 10px;
}

.input-shell select {
  cursor: pointer;
}

.input-shell input::placeholder {
  color: var(--slate-400);
}

.currency-input > span {
  color: var(--slate-600);
  font-weight: 700;
}

.action-card .btn {
  margin-top: 3px;
}

.message {
  min-height: 17px;
  margin-top: 8px;
  color: var(--slate-500);
  font-size: 8px;
  font-weight: 600;
  text-align: center;
}

.message.success { color: #047857; }
.message.error { color: #dc2626; }

.history-card {
  overflow: hidden;
  padding: 0;
}

.history-card > .card-heading-row {
  margin: 0;
  padding: 20px 21px;
  border-bottom: 1px solid var(--border);
}

.transaction-heading {
  align-items: center;
}

.table-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.table-search {
  position: relative;
  display: flex;
  align-items: center;
}

.table-search i {
  position: absolute;
  left: 11px;
  color: var(--slate-400);
  font-size: 9px;
  pointer-events: none;
}

.table-search input {
  width: 190px;
  height: 34px;
  padding: 0 10px 0 30px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--slate-50);
  color: var(--slate-700);
  outline: 0;
  font-size: 9px;
}

.table-search input:focus {
  border-color: rgba(14, 165, 233, 0.55);
  background: var(--white);
}

.table-container {
  width: 100%;
  overflow-x: auto;
}

.transaction-table {
  width: 100%;
  min-width: 790px;
  border-collapse: collapse;
}

.transaction-table th,
.transaction-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--slate-100);
  text-align: left;
  vertical-align: middle;
}

.transaction-table th {
  background: #fbfcfe;
  color: var(--slate-400);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.transaction-table td {
  color: var(--slate-600);
  font-size: 9px;
}

.transaction-table tbody tr {
  transition: background var(--transition);
}

.transaction-table tbody tr:hover {
  background: #fbfdff;
}

.transaction-description {
  display: flex;
  align-items: center;
  gap: 10px;
}

.transaction-icon {
  width: 31px;
  height: 31px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px;
  font-size: 10px;
}

.transaction-icon.deposit { background: #dcfce7; color: #15803d; }
.transaction-icon.transfer { background: #dbeafe; color: #1d4ed8; }
.transaction-icon.payment { background: #ffedd5; color: #c2410c; }
.transaction-icon.default { background: var(--slate-100); color: var(--slate-600); }

.transaction-description > span:last-child {
  display: flex;
  flex-direction: column;
}

.transaction-description strong {
  color: var(--slate-800);
  font-size: 9px;
}

.transaction-description small {
  margin-top: 1px;
  color: var(--slate-400);
  font-size: 7px;
}

.reference-code,
.mono-text {
  display: inline-flex;
  padding: 4px 7px;
  border-radius: 6px;
  background: var(--slate-100);
  color: var(--slate-500);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 8px;
  letter-spacing: 0.02em;
}

.amount {
  font-weight: 800;
  white-space: nowrap;
}

.amount.incoming { color: #059669; }
.amount.outgoing { color: var(--slate-800); }
.amount.neutral { color: var(--slate-500); }

.status {
  min-width: 74px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 800;
}

.status::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.status.pending { background: #fff7ed; color: #c2410c; }
.status.approved { background: #ecfdf5; color: #047857; }
.status.declined { background: #fef2f2; color: #b91c1c; }

.empty-state td {
  padding: 44px 16px !important;
  color: var(--slate-400) !important;
  text-align: center !important;
}

.table-footer {
  justify-content: space-between;
  padding: 13px 21px 16px;
  color: var(--slate-400);
  font-size: 8px;
}

.table-footer .text-link {
  font-size: 8px;
}

/* Admin */
.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.admin-kpi {
  min-height: 136px;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 20px;
  border-radius: 17px;
}

.admin-kpi > div {
  display: flex;
  flex-direction: column;
}

.admin-kpi small {
  color: var(--slate-500);
  font-size: 8px;
  font-weight: 700;
}

.admin-kpi strong {
  margin: 3px 0;
  color: var(--slate-900);
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: -0.04em;
}

.admin-kpi span:not(.summary-icon) {
  color: var(--slate-400);
  font-size: 8px;
}

.admin-pending-card {
  margin-bottom: 16px;
}

.admin-table {
  min-width: 850px;
}

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

.btn-approve,
.btn-decline {
  width: 31px;
  height: 31px;
  border-radius: 8px;
  cursor: pointer;
  transition: transform var(--transition), opacity var(--transition);
}

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

.btn-approve {
  background: #dcfce7;
  color: #15803d;
}

.btn-decline {
  background: #fee2e2;
  color: #b91c1c;
}

/* Modal */
.modal {
  position: fixed;
  z-index: 3000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 20, 37, 0.74);
  backdrop-filter: blur(8px);
}

.modal-content {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: calc(100vh - 44px);
  overflow-y: auto;
  padding: 31px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.985);
  box-shadow: 0 34px 100px rgba(0, 8, 22, 0.40);
  animation: modalIn 220ms ease both;
}

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

.modal-close {
  position: absolute;
  top: 17px;
  right: 17px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--slate-100);
  color: var(--slate-500);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.modal-close:hover {
  background: var(--slate-200);
  color: var(--slate-800);
}

.modal-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  color: var(--navy-950);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
}

.modal-brand img {
  width: 34px;
  height: 34px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin-bottom: 23px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--slate-100);
}

.auth-tab {
  min-height: 39px;
  border-radius: 9px;
  background: transparent;
  color: var(--slate-500);
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}

.auth-tab.active {
  background: var(--white);
  color: var(--navy-950);
  box-shadow: var(--shadow-xs);
}

.modal-heading {
  margin-bottom: 21px;
}

.modal-kicker {
  color: var(--blue-700);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.modal-heading h2 {
  margin: 4px 0 5px;
  color: var(--slate-950);
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: -0.04em;
}

.modal-heading p {
  color: var(--slate-500);
  font-size: 10px;
}

.auth-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 20px;
}

.auth-info > div {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--slate-50);
}

.auth-info > div > i {
  width: 30px;
  height: 30px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px;
  background: #e0f2fe;
  color: var(--blue-600);
  font-size: 10px;
}

.auth-info > div:last-child > i {
  background: #ede9fe;
  color: #6d28d9;
}

.auth-info > div > span {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.auth-info strong {
  color: var(--slate-700);
  font-size: 8px;
}

.auth-info small {
  margin-top: 2px;
  color: var(--slate-400);
  font-size: 7px;
}

.auth-info code {
  padding: 1px 3px;
  border-radius: 3px;
  background: var(--slate-200);
  color: var(--slate-700);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

.modal-content .input-shell {
  min-height: 48px;
}

.modal-content .input-shell input,
.modal-content .input-shell select {
  height: 46px;
  font-size: 11px;
}

.password-toggle {
  width: 41px;
  height: 46px;
  flex: 0 0 auto;
  background: transparent;
  color: var(--slate-400);
  cursor: pointer;
}

.modal-submit {
  min-height: 49px;
  margin-top: 4px;
  border-radius: 12px;
}

.form-grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 11px;
}

.full-span {
  grid-column: 1 / -1;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 4px 0 15px;
  color: var(--slate-500);
  cursor: pointer;
  font-size: 8px;
  line-height: 1.5;
}

.checkbox-row input {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  margin-top: 1px;
  accent-color: var(--blue-600);
}

.auth-message {
  min-height: 18px;
  margin-top: 10px;
}

.modal-footnote {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 7px;
  padding-top: 15px;
  border-top: 1px solid var(--slate-100);
  color: var(--slate-400);
  font-size: 7px;
  line-height: 1.5;
}

.modal-footnote i {
  margin-top: 1px;
  color: var(--teal-500);
}

/* Toasts */
.toast-container {
  position: fixed;
  z-index: 5000;
  right: 20px;
  bottom: 20px;
  width: min(360px, calc(100% - 40px));
  display: grid;
  gap: 10px;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 15px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
  animation: toastIn 240ms ease both;
}

.toast.removing {
  animation: toastOut 180ms ease both;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(10px) translateX(12px); }
  to { opacity: 1; transform: translate(0); }
}

@keyframes toastOut {
  to { opacity: 0; transform: translateY(8px) translateX(12px); }
}

.toast > i {
  width: 30px;
  height: 30px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px;
  background: #e0f2fe;
  color: var(--blue-600);
  font-size: 11px;
}

.toast.success > i { background: #dcfce7; color: #15803d; }
.toast.error > i { background: #fee2e2; color: #b91c1c; }
.toast.warning > i { background: #fff7ed; color: #c2410c; }

.toast > div {
  min-width: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.toast strong {
  color: var(--slate-800);
  font-size: 10px;
}

.toast span {
  margin-top: 2px;
  color: var(--slate-500);
  font-size: 8px;
}

.toast button {
  width: 26px;
  height: 26px;
  background: transparent;
  color: var(--slate-400);
  cursor: pointer;
}

/* Scroll reveal */
.has-js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.has-js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.has-js .reveal-delay { transition-delay: 120ms; }
.has-js .reveal-delay-sm { transition-delay: 70ms; }
.has-js .reveal-delay-md { transition-delay: 140ms; }
.has-js .reveal-delay-lg { transition-delay: 210ms; }

/* Responsive */
@media (max-width: 1280px) {
  .hero-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(490px, 1.1fr);
    gap: 48px;
  }

  .service-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-card {
    min-height: 300px;
  }

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

  .balance-card {
    grid-column: 1 / -1;
  }

  .quick-actions {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .dashboard-grid .action-card:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1100px) {
  .public-nav {
    margin-right: 14px;
  }

  #navLinks {
    gap: 18px;
  }

  .hero {
    min-height: auto;
    padding-bottom: 90px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 760px;
    text-align: center;
    margin-inline: auto;
  }

  .hero-copy .eyebrow,
  .hero-actions {
    margin-inline: auto;
    justify-content: center;
  }

  .hero-copy > p {
    margin-inline: auto;
  }

  .hero-proof {
    justify-content: center;
  }

  .hero-visual {
    width: min(680px, 100%);
    min-height: 560px;
    margin-inline: auto;
  }

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

  .trust-grid > div:nth-child(2) {
    border-right: 0;
  }

  .trust-grid > div:nth-child(-n+2) {
    border-bottom: 1px solid var(--border);
  }

  .business-grid,
  .security-grid {
    grid-template-columns: 1fr;
    gap: 58px;
  }

  .business-copy {
    max-width: 720px;
  }

  .security-copy {
    max-width: 760px;
  }

  .security-visual {
    min-height: 390px;
  }

  .footer-grid {
    grid-template-columns: 1.4fr repeat(3, 0.7fr);
    gap: 35px;
  }

  .analytics-grid {
    grid-template-columns: 1fr;
  }

  .spending-body {
    grid-template-columns: 150px 1fr;
  }

  .admin-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .navbar .nav-shell {
    min-height: 68px;
  }

  .mobile-menu-btn {
    display: grid;
    place-items: center;
  }

  .public-nav {
    position: absolute;
    top: 68px;
    right: 20px;
    left: 20px;
    display: none;
    margin: 0;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
  }

  .public-nav.open {
    display: block;
  }

  #navLinks {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  #navLinks a,
  .navbar:not(.scrolled) #navLinks a {
    padding: 11px 12px;
    border-radius: 9px;
    color: var(--slate-700);
  }

  #navLinks a:hover,
  .navbar:not(.scrolled) #navLinks a:hover {
    background: var(--slate-100);
    color: var(--navy-950);
  }

  #navLinks a::after {
    display: none;
  }

  .nav-actions {
    margin-left: 10px;
  }

  .nav-actions .btn-quiet {
    display: inline-grid;
    width: 42px;
    min-width: 42px;
    padding: 0;
    place-items: center;
  }

  .nav-actions .btn-quiet span {
    display: none;
  }

  .hero {
    padding-top: 126px;
  }

  .sidebar {
    transform: translateX(-100%);
    transition: transform 240ms ease;
  }

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

  body.sidebar-open .sidebar-backdrop {
    display: block;
  }

  .sidebar-close {
    display: grid;
    place-items: center;
  }

  .app-main {
    width: 100%;
    margin-left: 0;
  }

  .app-menu-btn {
    display: grid;
    place-items: center;
  }

  .app-topbar {
    padding-inline: 20px;
  }

  .app-search {
    width: min(500px, 55vw);
  }

  .dashboard-content {
    padding: 28px 20px 45px;
  }
}

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

  .brand-wordmark {
    font-size: 16px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .nav-open-account {
    min-height: 40px;
    padding-inline: 14px;
    font-size: 12px;
  }

  .nav-open-account i {
    display: none;
  }

  .hero {
    padding: 118px 0 82px;
  }

  .hero h1 {
    font-size: clamp(44px, 12vw, 62px);
  }

  .hero-copy > p {
    font-size: 15px;
  }

  .hero-proof {
    flex-wrap: wrap;
    gap: 12px;
  }

  .proof-divider {
    display: none;
  }

  .hero-visual {
    min-height: 500px;
  }

  .dashboard-preview {
    padding: 15px;
    border-radius: 21px;
    transform: none;
  }

  .preview-grid {
    grid-template-columns: 1fr;
  }

  .preview-spending {
    display: none;
  }

  .floating-card-two {
    top: 24px;
    left: -8px;
  }

  .floating-card-one {
    right: -5px;
    bottom: 28px;
  }

  .trust-strip {
    margin-top: -28px;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .trust-grid > div {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .trust-grid > div:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 82px 0;
  }

  .service-cards {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 285px;
  }

  .business-visual {
    min-height: 410px;
  }

  .business-card-main {
    width: 86%;
  }

  .business-card-side {
    right: 0;
    bottom: 20px;
  }

  .support-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 36px 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand-column {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
  }

  .top-profile > div:last-child,
  #helpBtn,
  .app-search kbd {
    display: none;
  }

  .top-profile {
    margin-left: 0;
    padding-left: 8px;
    border-left: 0;
  }

  .notification-panel {
    right: 16px;
  }

  .dashboard-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-heading-actions {
    width: 100%;
  }

  .dashboard-heading-actions .btn {
    flex: 1;
  }

  .account-summary-grid,
  .quick-actions,
  .dashboard-grid,
  .admin-kpi-grid {
    grid-template-columns: 1fr;
  }

  .balance-card,
  .dashboard-grid .action-card:last-child {
    grid-column: auto;
  }

  .summary-card {
    min-height: 220px;
  }

  .table-tools {
    width: 100%;
  }

  .transaction-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .table-search {
    flex: 1;
  }

  .table-search input {
    width: 100%;
  }

  .spending-body {
    grid-template-columns: 130px minmax(0, 1fr);
  }

  .section-heading-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

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

  .form-grid-two .form-group {
    grid-column: 1;
  }
}

@media (max-width: 520px) {
  .nav-actions .nav-open-account {
    display: none;
  }

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

  .hero-visual {
    min-height: 440px;
  }

  .dashboard-preview {
    padding: 12px;
  }

  .preview-balance-card {
    min-height: 155px;
  }

  .floating-card-two {
    display: none;
  }

  .floating-card-one {
    transform: scale(0.92);
    transform-origin: bottom right;
  }

  .business-card-main {
    width: 92%;
    padding: 20px;
  }

  .business-card-side {
    width: 165px;
    padding: 17px;
  }

  .security-chip {
    transform: scale(0.88);
  }

  .chip-top { right: -12px; }
  .chip-bottom { left: -14px; }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand-column {
    grid-column: auto;
  }

  .app-topbar {
    padding-inline: 13px;
  }

  .app-search {
    width: auto;
    flex: 1;
  }

  .app-search input {
    padding-right: 10px;
  }

  .dashboard-content {
    padding-inline: 13px;
  }

  .dashboard-heading-actions {
    flex-direction: column;
  }

  .quick-actions {
    gap: 9px;
  }

  .spending-body {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .spending-legend {
    width: 100%;
  }

  .table-tools {
    flex-direction: column;
    align-items: stretch;
  }

  .table-tools select {
    width: 100%;
  }

  .modal {
    padding: 10px;
  }

  .modal-content {
    max-height: calc(100vh - 20px);
    padding: 24px 18px;
    border-radius: 20px;
  }

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

  .toast-container {
    right: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .has-js .reveal {
    opacity: 1;
    transform: none;
  }
}

.role-hidden {
  display: none !important;
}

/* Administrator-issued account numbers and transaction review workflow */
.account-issuance-card {
  margin-bottom: 16px;
  overflow: hidden;
  padding: 0;
  scroll-margin-top: 92px;
}

.account-issuance-card > .card-heading-row {
  margin: 0;
  padding: 20px 21px;
  border-bottom: 1px solid var(--border);
}

.issuance-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 18px;
  padding: 21px;
  border-bottom: 1px solid var(--border);
}

.account-number-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 0 12px;
}

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

.account-number-form .full-span {
  grid-column: 1 / -1;
}

.optional-label {
  color: var(--slate-400);
  font-size: 8px;
  font-weight: 600;
}

.issued-number-panel {
  position: relative;
  min-height: 248px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 26px;
  border: 1px solid rgba(103, 232, 249, 0.13);
  border-radius: 18px;
  background:
    radial-gradient(circle at 90% 10%, rgba(34, 211, 238, 0.18), transparent 34%),
    linear-gradient(145deg, #071729, #0a3152);
  color: var(--white);
  box-shadow: 0 18px 46px rgba(6, 20, 37, 0.16);
}

.issued-number-panel::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -90px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(103, 232, 249, 0.14);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(14, 165, 233, 0.035), 0 0 0 68px rgba(14, 165, 233, 0.02);
}

.issued-number-panel > * {
  position: relative;
  z-index: 1;
}

.issued-number-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--cyan-400);
  font-size: 16px;
}

.issued-number-panel small {
  color: rgba(203, 213, 225, 0.58);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.issued-number-panel strong {
  display: block;
  margin: 7px 0 8px;
  color: var(--white);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: clamp(18px, 2.2vw, 28px);
  letter-spacing: 0.12em;
  line-height: 1.25;
  word-break: break-word;
}

.issued-number-panel p {
  max-width: 390px;
  margin-bottom: 18px;
  color: rgba(203, 213, 225, 0.62);
  font-size: 9px;
  line-height: 1.65;
}

.issued-number-panel .btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

.issued-accounts-table-wrap {
  max-height: 380px;
}

.issued-accounts-table {
  min-width: 820px;
}

.account-number-code {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border-radius: 8px;
  background: var(--slate-100);
  color: var(--slate-700);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.07em;
}

.reservation-copy {
  display: flex;
  flex-direction: column;
}

.reservation-copy strong {
  color: var(--slate-800);
  font-size: 9px;
}

.reservation-copy small {
  margin-top: 2px;
  color: var(--slate-400);
  font-size: 7px;
}

.invite-status {
  min-width: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 800;
}

.invite-status::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.invite-status.available { background: #ecfdf5; color: #047857; }
.invite-status.claimed { background: #eff6ff; color: #1d4ed8; }
.invite-status.revoked { background: #f1f5f9; color: #64748b; }

.account-number-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.account-number-action {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--slate-100);
  color: var(--slate-600);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.account-number-action:hover {
  background: #e0f2fe;
  color: var(--blue-700);
  transform: translateY(-1px);
}

.account-number-action.revoke:hover {
  background: #fee2e2;
  color: #b91c1c;
}

.registration-prerequisite {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px 15px;
  border: 1px solid #bae6fd;
  border-radius: 13px;
  background: #f0f9ff;
}

.registration-prerequisite > i {
  width: 34px;
  height: 34px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  background: #e0f2fe;
  color: var(--blue-700);
  font-size: 12px;
}

.registration-prerequisite > div {
  display: flex;
  flex-direction: column;
}

.registration-prerequisite strong {
  color: var(--slate-800);
  font-size: 10px;
}

.registration-prerequisite span {
  margin-top: 2px;
  color: var(--slate-500);
  font-size: 8px;
  line-height: 1.55;
}

.field-hint {
  display: block;
  margin-top: 6px;
  color: var(--slate-400);
  font-size: 7px;
  line-height: 1.45;
}

.status.under-review {
  background: #eff6ff;
  color: #1d4ed8;
}

.status.cancelled,
.status.declined {
  background: #fef2f2;
  color: #b91c1c;
}

.status-stack {
  display: inline-flex;
  max-width: 170px;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

.status-note,
.admin-note {
  color: var(--slate-400);
  font-size: 7px;
  line-height: 1.45;
}

.admin-detail-stack {
  display: flex;
  max-width: 320px;
  flex-direction: column;
  gap: 3px;
}

.admin-detail-stack strong {
  color: var(--slate-700);
  font-size: 9px;
  font-weight: 600;
}

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

.btn-manage-transaction {
  min-height: 31px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
  color: #1d4ed8;
  cursor: pointer;
  font-size: 8px;
  font-weight: 800;
  transition: transform var(--transition), background var(--transition), border-color var(--transition);
}

.btn-manage-transaction:hover {
  border-color: #93c5fd;
  background: #dbeafe;
  transform: translateY(-1px);
}

.review-modal-content {
  width: min(590px, 100%);
}

.review-transaction-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 20px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--slate-50);
}

.review-summary-item {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 10px;
  border-radius: 10px;
  background: var(--white);
  box-shadow: var(--shadow-xs);
}

.review-summary-item small {
  margin-bottom: 3px;
  color: var(--slate-400);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.review-summary-item strong {
  overflow: hidden;
  color: var(--slate-800);
  font-size: 10px;
  text-overflow: ellipsis;
}

.textarea-shell {
  align-items: flex-start;
}

.textarea-shell > i {
  padding-top: 15px;
}

.input-shell textarea {
  min-width: 0;
  width: 100%;
  min-height: 104px;
  resize: vertical;
  padding: 13px 12px 13px 0;
  border: 0;
  background: transparent;
  color: var(--slate-800);
  outline: 0;
  font-size: 10px;
  line-height: 1.55;
}

.input-shell textarea::placeholder {
  color: var(--slate-400);
}

.review-impact {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 3px 0 14px;
  padding: 11px 12px;
  border: 1px solid #bae6fd;
  border-radius: 11px;
  background: #f0f9ff;
  color: var(--blue-700);
  font-size: 8px;
  line-height: 1.55;
}

.review-impact.warning {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #c2410c;
}

.review-impact.danger {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.review-impact.success {
  border-color: #a7f3d0;
  background: #ecfdf5;
  color: #047857;
}

@media (max-width: 1100px) {
  .issuance-layout {
    grid-template-columns: 1fr;
  }

  .issued-number-panel {
    min-height: 220px;
  }
}

@media (max-width: 760px) {
  .account-number-form,
  .review-transaction-summary {
    grid-template-columns: 1fr;
  }

  .account-number-form .form-group,
  .account-number-form .full-span {
    grid-column: 1;
  }

  .issuance-layout {
    padding: 16px;
  }

  .issued-number-panel {
    padding: 22px;
  }
}

/* --------------------------------------------------------------------------
   Supabase + external-transfer additions
   -------------------------------------------------------------------------- */

.select-shell {
  position: relative;
  overflow: hidden;
}

.select-shell > select {
  min-width: 0;
  width: 100%;
  flex: 1 1 auto;
  padding-right: 46px;
  white-space: nowrap;
  text-overflow: ellipsis;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.select-shell .select-arrow {
  position: absolute;
  top: 50%;
  right: 15px;
  width: auto;
  height: auto;
  display: grid;
  place-items: center;
  flex: none;
  padding: 0;
  color: var(--slate-400);
  font-size: 9px;
  pointer-events: none;
  transform: translateY(-50%);
  transition: color var(--transition);
}

.select-shell:focus-within .select-arrow {
  color: var(--blue-600);
}

.deposit-method-shell > select {
  font-weight: 600;
}

.external-transfer-fields {
  margin: 2px 0 13px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: linear-gradient(180deg, #fbfdff 0%, #f8fafc 100%);
}

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

.external-transfer-grid .form-group {
  margin-bottom: 0;
}

.privacy-hint {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 12px;
  color: var(--slate-500);
  font-size: 8px;
  line-height: 1.55;
}

.privacy-hint i {
  margin-top: 2px;
  color: var(--teal-500);
}

.cloud-auth-info > div {
  align-items: flex-start;
}

.cloud-auth-info small {
  white-space: normal;
  line-height: 1.45;
}

.btn[disabled],
button[disabled] {
  cursor: not-allowed;
  opacity: 0.62;
}

.btn.is-loading {
  pointer-events: none;
}

.btn.is-loading i {
  animation: ocean-invest-spin 0.8s linear infinite;
}

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

.app-sync-message {
  padding: 42px 20px;
  color: var(--slate-500);
  text-align: center;
  font-size: 11px;
}

@media (max-width: 520px) {
  .external-transfer-grid {
    grid-template-columns: 1fr;
  }
}

.modal-secondary-action {
  width: 100%;
  justify-content: center;
  margin-top: 14px;
}
