@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

:root {
  --ink: #f8f3e7;
  --muted: #aeb9c8;
  --night: #07111f;
  --panel: #102039;
  --panel-soft: rgba(17, 34, 59, 0.78);
  --line: rgba(255, 255, 255, 0.11);
  --gold: #ddb65f;
  --mint: #86d2b0;
  --danger: #ffad9b;
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 85% 5%, rgba(134, 210, 176, 0.12), transparent 28rem),
    linear-gradient(145deg, #07111f 0%, #0c1b31 55%, #07111f 100%);
  font-family: 'DM Sans', sans-serif;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 64px 64px;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
.shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 24px 0 48px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0 26px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(221,182,95,.55); border-radius: 50%; color: var(--gold); }
.nav { display: flex; flex-wrap: wrap; gap: 6px; }
.nav a { padding: 9px 12px; border-radius: 6px; color: var(--muted); font-size: 14px; }
.nav a:hover, .nav a.active { color: white; background: rgba(255,255,255,.08); }
.eyebrow { color: var(--mint); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; font-family: 'Playfair Display', serif; letter-spacing: 0; }
h1 { max-width: 850px; margin-top: 14px; font-size: clamp(42px, 7vw, 82px); line-height: 1.02; }
h2 { font-size: clamp(28px, 4vw, 44px); }
h3 { font-size: 22px; }
p { line-height: 1.7; }
.lead { max-width: 720px; color: var(--muted); font-size: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 11px 18px; border: 1px solid var(--line); border-radius: 6px; color: white; background: transparent; cursor: pointer; font-weight: 700; }
.button.primary { border-color: var(--gold); color: #101725; background: var(--gold); }
.button.secondary:hover, .button:hover { border-color: rgba(221,182,95,.6); }
.hero { padding: 72px 0 54px; }
.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.section { padding: 44px 0; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--panel-soft); box-shadow: 0 24px 60px rgba(0,0,0,.2); }
.card p:last-child { margin-bottom: 0; }
.muted { color: var(--muted); }
.stat strong { display: block; margin-top: 12px; color: white; font-family: 'Playfair Display', serif; font-size: 32px; }
.form-card { width: min(620px, 100%); margin: 36px auto 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
label { color: var(--muted); font-size: 14px; }
input, select { width: 100%; margin-top: 8px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 6px; outline: none; color: white; background: rgba(5,13,25,.8); }
input:focus, select:focus { border-color: var(--gold); }
.full { grid-column: 1 / -1; }
.notice { display: none; margin: 14px 0 0; color: var(--mint); }
.notice.show { display: block; }
.account-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin: 26px 0; }
.balance { font-family: 'Playfair Display', serif; font-size: clamp(38px, 6vw, 64px); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; min-width: 680px; background: rgba(7,17,31,.5); }
th, td { padding: 15px 18px; border-bottom: 1px solid var(--line); text-align: left; }
th { color: var(--muted); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.positive { color: var(--mint); }
.negative { color: var(--danger); }
.status { display: inline-block; padding: 5px 9px; border-radius: 999px; color: var(--mint); background: rgba(134,210,176,.1); font-size: 12px; }
.status.pending { color: var(--gold); background: rgba(221,182,95,.1); }
.list { display: grid; gap: 12px; padding: 0; list-style: none; }
.list li { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.footer { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

@media (max-width: 800px) {
  .topbar { align-items: flex-start; flex-direction: column; }
  .hero { padding-top: 40px; }
  .grid.two, .grid.three, .grid.four, .form-grid { grid-template-columns: 1fr; }
  .full { grid-column: auto; }
  .account-head { align-items: flex-start; flex-direction: column; }
}