:root {
  color-scheme: dark;
  --ink: #05080d;
  --surface: #0e1218;
  --raised: #171c24;
  --pearl: #fbf8f3;
  --champagne: #e7d3b5;
  --beige: #d9c8b2;
  --taupe: #a99c8f;
  --gold: #c79c5a;
  --line: rgba(231, 211, 181, 0.13);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { background: var(--ink); scroll-behavior: smooth; }
body { margin: 0; color: var(--pearl); min-width: 320px; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--champagne); outline-offset: 4px; }

.app-shell { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: 234px minmax(0, 1fr); }
.sidebar {
  position: sticky; top: 0; height: 100vh; height: 100dvh;
  display: flex; flex-direction: column; padding: 38px 22px 28px 30px;
  background: #090d13; border-right: 1px solid var(--line);
}
.brand, .mobile-brand { width: fit-content; display: inline-flex; align-items: flex-start; gap: 7px; font-size: 24px; font-weight: 650; letter-spacing: .18em; line-height: 1; color: var(--champagne); }
.brand-mark { display: inline-block; width: 5px; height: 5px; margin-top: 2px; border-radius: 50%; background: var(--gold); }
.sidebar-label { margin-top: 74px; margin-bottom: 16px; color: #716d68; font-size: 10px; font-weight: 700; letter-spacing: .18em; }
.side-nav { display: grid; gap: 4px; }
.nav-link { display: flex; align-items: center; gap: 14px; min-height: 48px; padding: 0 14px; border-radius: 11px; color: #aaa7a3; font-size: 13px; font-weight: 560; transition: background .2s ease, color .2s ease; }
.nav-link:hover { color: var(--pearl); background: rgba(255,255,255,.055); }
.nav-link.active { color: var(--champagne); background: rgba(231,211,181,.09); }
.nav-icon { display: grid; place-items: center; width: 22px; font-family: Arial, sans-serif; font-size: 19px; font-weight: 400; }
.sidebar-bottom { display: flex; align-items: center; gap: 9px; margin-top: auto; color: #8c8781; font-size: 12px; }
.status-dot, .demo-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px rgba(199,156,90,.35); }

.main-content { width: min(100%, 1450px); padding: 0 clamp(26px, 5vw, 88px) 90px; margin: 0 auto; }
.topbar { height: 94px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.topbar-copy { display: flex; align-items: center; gap: 13px; color: #9d9892; font-size: 12px; font-weight: 550; }
.topbar-kicker { color: var(--champagne); font-size: 11px; font-weight: 700; letter-spacing: .18em; }
.topbar-divider { width: 1px; height: 15px; background: var(--line); }
.topbar-access { display: inline-flex; align-items: center; gap: 15px; color: var(--champagne); font-size: 12px; font-weight: 650; transition: opacity .2s ease; }
.topbar-access:hover, .access-link:hover { opacity: .7; }
.topbar-access span { font-size: 18px; font-weight: 400; }
.mobile-brand { display: none; }
.page-heading { display: flex; align-items: end; justify-content: space-between; padding: 43px 0 25px; }
.eyebrow { margin: 0; color: var(--taupe); font-size: 10px; font-weight: 720; letter-spacing: .2em; }
h1, h2, p { margin-top: 0; }
h1 { margin: 10px 0 0; font-size: clamp(31px, 3.5vw, 49px); font-weight: 600; letter-spacing: -.045em; line-height: 1; }
.demo-pill { display: inline-flex; align-items: center; gap: 8px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 100px; color: var(--beige); font-size: 9px; font-weight: 730; letter-spacing: .15em; white-space: nowrap; }

.balance-panel {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between;
  min-height: 360px; padding: 36px 38px 29px; border: 1px solid rgba(231,211,181,.27); border-radius: 23px;
  background:
    radial-gradient(ellipse 55% 88% at 63% 9%, rgba(199,156,90,.28), transparent 70%),
    linear-gradient(116deg, #192027 0%, #0d1219 45%, #13161b 100%);
  box-shadow: 0 30px 80px rgba(0,0,0,.22), inset 0 1px rgba(255,255,255,.08);
}
.balance-panel::before { content: ""; position: absolute; z-index: -1; inset: -110% auto auto 57%; width: 24%; height: 230%; transform: rotate(27deg); background: linear-gradient(90deg, transparent, rgba(255,249,232,.085), transparent); pointer-events: none; }
.balance-panel::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 1px solid transparent; background: linear-gradient(135deg, rgba(255,255,255,.2), transparent 27%, transparent 70%, rgba(199,156,90,.15)) border-box; mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0); mask-composite: exclude; pointer-events: none; }
.balance-content { position: relative; z-index: 1; }
.panel-kicker { margin: 0 0 33px; color: var(--champagne); font-size: 11px; font-weight: 700; letter-spacing: .18em; }
.balance-amount { margin: 0 0 19px; font-size: clamp(53px, 6.4vw, 91px); font-weight: 680; letter-spacing: -.075em; line-height: .95; font-variant-numeric: tabular-nums; white-space: nowrap; }
.balance-amount span { color: #ded6cc; }
.balance-meta { display: flex; align-items: center; gap: 10px; color: #c8beb1; font-size: 12px; }
.meta-separator { width: 3px; height: 3px; border-radius: 50%; background: var(--gold); }
.panel-foot { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: end; color: #9b8f80; font-size: 10px; font-weight: 700; letter-spacing: .2em; }
.panel-foot-right { color: #82776c; }
.panel-foot-right span { padding: 0 4px; }

.actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 15px; }
.action { min-width: 0; display: flex; align-items: center; gap: 15px; min-height: 62px; padding: 0 21px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--pearl); font-size: 13px; font-weight: 650; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.action:hover { transform: translateY(-2px); border-color: rgba(231,211,181,.34); background: #171b22; }
.action-primary { background: var(--champagne); color: var(--ink); border-color: var(--champagne); }
.action-primary:hover { background: #f1dec1; }
.action-symbol { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid currentColor; border-radius: 50%; font-family: Arial, sans-serif; font-size: 16px; font-weight: 400; }
.action-tail { margin-left: auto; opacity: .55; font-size: 17px; font-weight: 400; }

.lower-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(290px, .75fr); gap: 32px; margin-top: 57px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.section-heading h2 { margin: 0; font-size: 20px; font-weight: 640; letter-spacing: -.03em; }
.section-heading span { color: var(--taupe); font-size: 10px; font-weight: 700; letter-spacing: .17em; }
.account-row { display: flex; align-items: center; gap: 15px; padding: 23px 0; }
.currency-tile { display: grid; place-items: center; flex: 0 0 52px; height: 52px; border-radius: 15px; background: var(--champagne); color: var(--ink); font-size: 27px; font-weight: 700; }
.account-name, .account-value { display: grid; gap: 5px; }
.account-name strong, .account-value strong { font-size: 15px; font-weight: 650; }
.account-name span, .account-value span { color: var(--taupe); font-size: 12px; }
.account-value { margin-left: auto; text-align: right; font-variant-numeric: tabular-nums; }
.access-section { position: relative; min-height: 240px; padding: 29px; overflow: hidden; border-radius: 18px; background: #121820; border: 1px solid var(--line); }
.access-section::after { content: ""; position: absolute; right: -100px; bottom: -155px; width: 300px; height: 300px; border-radius: 50%; border: 1px solid rgba(231,211,181,.11); box-shadow: 0 0 0 45px rgba(231,211,181,.025), 0 0 0 90px rgba(231,211,181,.02); pointer-events: none; }
.access-icon { position: absolute; right: 25px; top: 22px; color: var(--champagne); font-size: 26px; font-weight: 300; }
.access-section h2 { max-width: 250px; margin: 21px 0 10px; font-size: 24px; line-height: 1.18; font-weight: 610; letter-spacing: -.035em; }
.access-section > p:not(.eyebrow) { max-width: 270px; margin: 0; color: #a8a39e; font-size: 12px; line-height: 1.55; }
.access-link { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 15px; margin-top: 27px; color: var(--champagne); font-size: 12px; font-weight: 700; border-bottom: 1px solid rgba(231,211,181,.5); padding-bottom: 5px; transition: opacity .2s ease; }
.access-link span { font-size: 17px; font-weight: 400; }
.mobile-nav { display: none; }

@media (max-width: 980px) {
  .app-shell { grid-template-columns: 190px minmax(0, 1fr); }
  .sidebar { padding-left: 20px; padding-right: 16px; }
  .main-content { padding-left: 30px; padding-right: 30px; }
  .lower-grid { grid-template-columns: 1fr; gap: 18px; }
  .access-section { min-height: 215px; }
}

@media (max-width: 720px) {
  .app-shell { display: block; }
  .sidebar { display: none; }
  .main-content { padding: 0 20px calc(108px + env(safe-area-inset-bottom)); }
  .topbar { height: 76px; border-bottom-color: rgba(231,211,181,.08); }
  .mobile-brand { display: inline-flex; font-size: 20px; }
  .topbar-copy { display: none; }
  .topbar-access { font-size: 0; gap: 0; }
  .topbar-access span { font-size: 26px; }
  .page-heading { padding: 30px 0 20px; align-items: center; }
  h1 { margin-top: 8px; font-size: 35px; }
  .demo-pill { font-size: 9px; padding: 8px 9px; }
  .balance-panel { min-height: 290px; padding: 27px 25px 23px; border-radius: 20px; }
  .panel-kicker { margin-bottom: 42px; font-size: 10px; }
  .balance-amount { font-size: clamp(48px, 13vw, 64px); }
  .actions { gap: 8px; margin-top: 11px; }
  .action { min-height: 56px; padding: 0 9px; justify-content: center; gap: 6px; font-size: 11px; border-radius: 12px; }
  .action-symbol { width: 24px; height: 24px; flex: 0 0 24px; font-size: 14px; }
  .action-tail { display: none; }
  .lower-grid { margin-top: 42px; }
  .section-heading h2 { font-size: 19px; }
  .account-row { padding: 19px 0; }
  .access-section { min-height: 212px; padding: 25px; }
  .mobile-nav { position: fixed; z-index: 10; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(3, 1fr); height: calc(67px + env(safe-area-inset-bottom)); padding: 6px 12px env(safe-area-inset-bottom); background: rgba(13,17,23,.96); border-top: 1px solid var(--line); backdrop-filter: blur(18px); }
  .mobile-nav a { display: grid; place-items: center; align-content: center; gap: 3px; color: var(--taupe); font-size: 10px; font-weight: 650; }
  .mobile-nav a[aria-current] { color: var(--champagne); }
  .mobile-nav span { font-family: Arial, sans-serif; font-size: 20px; line-height: 1; }
}

@media (max-width: 370px) {
  .main-content { padding-left: 15px; padding-right: 15px; }
  .balance-panel { padding-left: 20px; padding-right: 20px; }
  .balance-amount { font-size: 47px; }
  .action { font-size: 10px; }
  .action-symbol { display: none; }
}

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