:root {
  --navy-900: #08182b;
  --navy-800: #0b2138;
  --navy-700: #102b47;
  --navy-600: #17395c;
  --navy-500: #1f4a73;
  --ivory: #fbf9f5;
  --ivory-2: #f4f1ea;
  --white: #ffffff;
  --gold: #c6a15b;
  --gold-soft: #e6d5ab;
  --gold-deep: #a8833d;
  --ink: #1c2321;
  --ink-soft: #4a5551;
  --ink-mute: #78837f;
  --line: #e4e0d6;
  --line-strong: #d3cdbe;
  --ok: #1f6d4a;
  --ok-bg: #eaf5ef;
  --warn: #8a5b12;
  --warn-bg: #fdf3e0;
  --stop: #97231f;
  --stop-bg: #fbeceb;
  --shadow-sm: 0 1px 2px rgba(8, 24, 43, 0.05), 0 1px 3px rgba(8, 24, 43, 0.04);
  --shadow-md: 0 4px 14px rgba(8, 24, 43, 0.07), 0 1px 3px rgba(8, 24, 43, 0.04);
  --shadow-lg: 0 20px 48px rgba(8, 24, 43, 0.13), 0 4px 12px rgba(8, 24, 43, 0.06);
  --radius: 14px;
  --radius-sm: 9px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --maxw: 1220px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--ivory);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { max-width: 100%; }
a { color: var(--navy-700); text-decoration: none; }
a:hover { color: var(--navy-500); }

h1, h2, h3, h4 { margin: 0 0 .5rem; line-height: 1.22; letter-spacing: -0.015em; font-weight: 650; }
h1 { font-size: 1.9rem; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 1.15rem; }
li { margin-bottom: .35rem; }

code, .mono { font-family: "SFMono-Regular", ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace; }

.shell { min-height: 100vh; display: flex; flex-direction: column; }
.shell__body { flex: 1 0 auto; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.wrap--narrow { max-width: 820px; }
.wrap--tight { max-width: 560px; }

/* ---------------------------------------------------------------- masthead */

.masthead {
  background: var(--navy-900);
  border-bottom: 1px solid rgba(198, 161, 91, 0.22);
  position: sticky;
  top: 0;
  z-index: 60;
}
.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 68px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--white); }
.brand:hover { color: var(--white); }
.brand__mark { flex: 0 0 auto; display: block; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--serif); font-size: 1.19rem; letter-spacing: 0.02em; font-weight: 600; }
.brand__sub {
  font-size: 0.605rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-soft);
  font-weight: 600;
  margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a.nav__link, .nav button.nav__link {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 13px;
  border-radius: 8px;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  transition: background-color .16s ease, color .16s ease;
}
.nav a.nav__link:hover, .nav button.nav__link:hover { background: rgba(255, 255, 255, 0.08); color: var(--white); }
.nav a.nav__link--active { color: var(--white); background: rgba(255, 255, 255, 0.1); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  cursor: pointer;
}

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  padding: 11px 19px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .16s ease, box-shadow .16s ease, transform .12s ease, border-color .16s ease, color .16s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }

.btn--primary { background: var(--navy-800); color: var(--white); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--navy-600); color: var(--white); box-shadow: var(--shadow-md); }
.btn--gold { background: var(--gold); color: #2a1f07; }
.btn--gold:hover { background: var(--gold-deep); color: #fff; }
.btn--outline { background: transparent; border-color: var(--line-strong); color: var(--navy-800); }
.btn--outline:hover { border-color: var(--navy-600); background: rgba(16, 43, 71, 0.04); color: var(--navy-800); }
.btn--ghost { background: transparent; color: var(--navy-700); padding: 8px 12px; }
.btn--ghost:hover { background: rgba(16, 43, 71, 0.06); }
.btn--light { background: rgba(255, 255, 255, 0.1); color: var(--white); border-color: rgba(255, 255, 255, 0.24); }
.btn--light:hover { background: rgba(255, 255, 255, 0.18); color: var(--white); }
.btn--block { width: 100%; }
.btn--sm { padding: 7px 13px; font-size: 0.8rem; }
.btn--lg { padding: 13px 26px; font-size: 0.95rem; }

/* --------------------------------------------------------------- typography helpers */

.eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 10px;
}
.lede { font-size: 1.02rem; color: var(--ink-soft); }
.muted { color: var(--ink-mute); }
.small { font-size: 0.82rem; }
.tiny { font-size: 0.74rem; }
.strong { font-weight: 640; }
.serif { font-family: var(--serif); }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.mt0 { margin-top: 0; } .mb0 { margin-bottom: 0; }
.stack > * + * { margin-top: .85rem; }
.row { display: flex; align-items: center; gap: 10px; }
.row--between { justify-content: space-between; }
.row--wrap { flex-wrap: wrap; }
.spacer { flex: 1 1 auto; }

/* --------------------------------------------------------------- landing */

.hero {
  background:
    radial-gradient(1100px 520px at 82% -12%, rgba(198, 161, 91, 0.18), transparent 62%),
    linear-gradient(168deg, var(--navy-900) 0%, var(--navy-800) 48%, var(--navy-700) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 70% 0%, #000 12%, transparent 72%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; padding: 74px 0 66px; display: grid; grid-template-columns: 1.06fr .94fr; gap: 56px; align-items: center; }
.hero h1 { font-family: var(--serif); font-size: clamp(2.1rem, 4.1vw, 3.15rem); letter-spacing: -0.01em; margin-bottom: 16px; font-weight: 600; }
.hero h1 em { font-style: normal; color: var(--gold-soft); }
.hero__lede { font-size: clamp(.98rem, 1.4vw, 1.1rem); color: rgba(255, 255, 255, 0.76); max-width: 46ch; margin-bottom: 26px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__note { margin-top: 26px; display: flex; align-items: flex-start; gap: 9px; font-size: .76rem; color: rgba(255,255,255,.62); max-width: 50ch; line-height: 1.55; }
.hero__note svg { flex: 0 0 auto; margin-top: 2px; color: var(--gold); }

.hero__card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.115), rgba(255, 255, 255, 0.045));
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  padding: 26px;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-lg);
}
.hero__card-label { font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-soft); font-weight: 700; }
.hero__balance { font-size: clamp(1.9rem, 3.4vw, 2.5rem); font-weight: 650; letter-spacing: -0.02em; margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
.hero__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); }
.hero__meta dt { font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.5); font-weight: 700; }
.hero__meta dd { margin: 3px 0 0; font-size: .88rem; color: rgba(255,255,255,.92); font-weight: 500; }

.section { padding: 62px 0; }
.section--alt { background: var(--ivory-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { max-width: 620px; margin-bottom: 34px; }
.section__head h2 { font-family: var(--serif); font-size: clamp(1.45rem, 2.5vw, 1.85rem); font-weight: 600; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.feature {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.feature:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--line-strong); }
.feature__icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--navy-800); color: var(--gold-soft); margin-bottom: 14px;
}
.feature h3 { font-size: .98rem; margin-bottom: 6px; }
.feature p { font-size: .855rem; color: var(--ink-soft); margin: 0; }

.notice-band {
  background: var(--navy-900);
  color: rgba(255, 255, 255, .82);
  padding: 15px 0;
  font-size: .8rem;
  border-bottom: 1px solid rgba(198,161,91,.2);
}
.notice-band__inner { display: flex; align-items: center; gap: 10px; justify-content: center; text-align: center; flex-wrap: wrap; }
.notice-band strong { color: var(--gold-soft); font-weight: 700; letter-spacing: .04em; }

/* --------------------------------------------------------------- auth pages */

.auth {
  min-height: calc(100vh - 68px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--ivory);
}
.auth__aside {
  background: linear-gradient(165deg, var(--navy-900), var(--navy-700));
  color: var(--white);
  padding: 54px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.auth__aside::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(700px 380px at 20% 110%, rgba(198,161,91,.2), transparent 65%);
  pointer-events: none;
}
.auth__aside-inner { position: relative; z-index: 1; max-width: 400px; }
.auth__aside h2 { font-family: var(--serif); font-size: 1.75rem; font-weight: 600; margin-bottom: 14px; }
.auth__aside p { color: rgba(255,255,255,.72); font-size: .9rem; }
.auth__list { list-style: none; padding: 0; margin: 26px 0 0; }
.auth__list li { display: flex; gap: 11px; align-items: flex-start; font-size: .855rem; color: rgba(255,255,255,.8); margin-bottom: 14px; }
.auth__list svg { flex: 0 0 auto; color: var(--gold); margin-top: 2px; }
.auth__main { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.auth__panel { width: 100%; max-width: 428px; }
.auth__panel h1 { font-size: 1.5rem; margin-bottom: 6px; }
.auth__panel > p.muted { margin-bottom: 24px; font-size: .88rem; }

/* --------------------------------------------------------------- forms */

.field { margin-bottom: 16px; }
.field > label, .label {
  display: block;
  font-size: .78rem;
  font-weight: 620;
  color: var(--ink);
  margin-bottom: 6px;
  letter-spacing: .01em;
}
.label--req::after { content: " *"; color: var(--stop); }
.input, .select, .textarea {
  width: 100%;
  font-family: inherit;
  font-size: .9rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input::placeholder, .textarea::placeholder { color: #a6aeaa; }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--navy-500);
  box-shadow: 0 0 0 3px rgba(31, 74, 115, 0.13);
}
.input[aria-invalid="true"] { border-color: var(--stop); box-shadow: 0 0 0 3px rgba(151, 35, 31, 0.09); }
.textarea { min-height: 92px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%234a5551' d='M1.4 0 6 4.6 10.6 0 12 1.4 6 7.4 0 1.4z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; padding-right: 34px; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.input-group { position: relative; }
.input-group .input { padding-right: 44px; }
.input-group__btn {
  position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; cursor: pointer; padding: 7px; border-radius: 6px;
  color: var(--ink-mute); display: inline-flex;
}
.input-group__btn:hover { color: var(--navy-700); background: rgba(16,43,71,.06); }

.check { display: flex; align-items: flex-start; gap: 9px; font-size: .82rem; color: var(--ink-soft); cursor: pointer; }
.check input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--navy-700); flex: 0 0 auto; }

.form-note { font-size: .74rem; color: var(--ink-mute); margin-top: 6px; }

.alert {
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: .82rem;
  margin-bottom: 16px;
  display: flex;
  gap: 9px;
  align-items: flex-start;
  border: 1px solid transparent;
  line-height: 1.5;
}
.alert svg { flex: 0 0 auto; margin-top: 1px; }
.alert--error { background: var(--stop-bg); border-color: #f0cfcd; color: var(--stop); }
.alert--ok { background: var(--ok-bg); border-color: #cfe7da; color: var(--ok); }
.alert--warn { background: var(--warn-bg); border-color: #f0dfb9; color: var(--warn); }
.alert--info { background: #eef3f9; border-color: #d3e0ee; color: var(--navy-600); }

/* --------------------------------------------------------------- OTP */

.otp { display: flex; gap: 9px; margin: 4px 0 6px; }
.otp input {
  width: 100%; height: 56px; text-align: center;
  font-size: 1.28rem; font-weight: 650; font-variant-numeric: tabular-nums;
  border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--white); color: var(--navy-900);
  transition: border-color .15s, box-shadow .15s;
}
.otp input:focus { outline: none; border-color: var(--navy-500); box-shadow: 0 0 0 3px rgba(31,74,115,.13); }
.otp input[aria-invalid="true"] { border-color: var(--stop); }

.countdown { font-variant-numeric: tabular-nums; font-weight: 620; color: var(--navy-700); }

/* --------------------------------------------------------------- app shell */

.app { display: grid; grid-template-columns: 246px 1fr; min-height: calc(100vh - 68px); background: var(--ivory); }
.sidebar {
  background: var(--navy-900);
  border-right: 1px solid rgba(255,255,255,.07);
  padding: 22px 14px 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sidebar__group { padding: 14px 12px 7px; font-size: .63rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.36); font-weight: 700; }
.sidebar__link {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 8px;
  color: rgba(255,255,255,.7); font-size: .855rem; font-weight: 500;
  transition: background-color .15s, color .15s;
}
.sidebar__link svg { flex: 0 0 auto; opacity: .82; }
.sidebar__link:hover { background: rgba(255,255,255,.07); color: var(--white); }
.sidebar__link--active { background: rgba(198,161,91,.16); color: var(--gold-soft); box-shadow: inset 2px 0 0 var(--gold); }
.sidebar__link--active svg { opacity: 1; }
.sidebar__footer { margin-top: auto; padding-top: 20px; }
.sidebar__acct {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 10px;
  padding: 12px;
  color: rgba(255,255,255,.72);
  font-size: .74rem;
  line-height: 1.5;
}
.sidebar__acct b { color: var(--white); display: block; font-size: .82rem; font-weight: 600; }

.main { padding: 30px 34px 46px; min-width: 0; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head h1 { font-size: 1.35rem; margin-bottom: 3px; }
.page-head p { margin: 0; font-size: .855rem; color: var(--ink-mute); }

/* --------------------------------------------------------------- cards */

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card__head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap;
}
.card__head h2 { font-size: .95rem; margin: 0; }
.card__body { padding: 20px; }
.card__body--flush { padding: 0; }
.card__foot { padding: 13px 20px; border-top: 1px solid var(--line); background: var(--ivory); border-radius: 0 0 var(--radius) var(--radius); font-size: .8rem; }

/* account hero card */
.acct-card {
  background:
    radial-gradient(720px 340px at 92% -30%, rgba(198,161,91,.26), transparent 62%),
    linear-gradient(150deg, var(--navy-900) 0%, var(--navy-700) 62%, var(--navy-600) 100%);
  color: var(--white);
  border-radius: 16px;
  padding: 26px 28px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.acct-card::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px;
  border: 1px solid rgba(255,255,255,.08); border-radius: 50%;
}
.acct-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.acct-card__label { font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.55); font-weight: 700; }
.acct-card__balance { font-size: clamp(1.85rem, 3vw, 2.35rem); font-weight: 650; letter-spacing: -.022em; margin: 5px 0 3px; font-variant-numeric: tabular-nums; }
.acct-card__cur { font-size: .82rem; color: rgba(255,255,255,.62); font-weight: 500; letter-spacing: .06em; }
.acct-card__grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.13); position: relative; z-index: 1; }
.acct-card__grid dt { font-size: .62rem; letter-spacing: .13em; text-transform: uppercase; color: rgba(255,255,255,.46); font-weight: 700; margin-bottom: 3px; }
.acct-card__grid dd { margin: 0; font-size: .855rem; font-weight: 550; color: rgba(255,255,255,.94); font-variant-numeric: tabular-nums; }

.summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; margin: 20px 0; }
.stat {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 17px 18px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 5px;
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.stat:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); border-color: var(--line-strong); }
.stat__label { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); font-weight: 650; display: flex; align-items: center; gap: 6px; }
.stat__value { font-size: 1.14rem; font-weight: 650; letter-spacing: -.015em; font-variant-numeric: tabular-nums; }
.stat__meta { font-size: .74rem; color: var(--ink-mute); }
.stat__value--ok { color: var(--ok); }
.stat__value--warn { color: var(--warn); }
.stat__value--stop { color: var(--stop); }

/* --------------------------------------------------------------- pills / badges */

.pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .675rem; font-weight: 700; letter-spacing: .055em; text-transform: uppercase;
  padding: 3.5px 9px; border-radius: 999px;
  background: #eef1f0; color: var(--ink-soft); border: 1px solid #e2e6e4;
  white-space: nowrap;
}
.pill--ok { background: var(--ok-bg); color: var(--ok); border-color: #cfe7da; }
.pill--warn { background: var(--warn-bg); color: var(--warn); border-color: #f0dfb9; }
.pill--stop { background: var(--stop-bg); color: var(--stop); border-color: #f0cfcd; }
.pill--gold { background: #fbf4e4; color: var(--gold-deep); border-color: var(--gold-soft); }
.pill--navy { background: #eaf0f6; color: var(--navy-600); border-color: #d3e0ee; }
.pill--dot::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

/* --------------------------------------------------------------- tables */

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data { width: 100%; border-collapse: collapse; font-size: .855rem; min-width: 720px; }
table.data th {
  text-align: left; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-mute); font-weight: 700;
  padding: 11px 16px; background: var(--ivory); border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.data td { padding: 13px 16px; border-bottom: 1px solid #efece4; vertical-align: middle; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr { transition: background-color .13s ease; }
table.data tbody tr:hover { background: #fcfbf7; }
.td-amount { text-align: right; font-variant-numeric: tabular-nums; font-weight: 620; white-space: nowrap; }
.td-ref { font-family: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace; font-size: .76rem; color: var(--ink-mute); white-space: nowrap; }
.amount-credit { color: var(--ok); }
.amount-debit { color: var(--ink); }
.tx-desc { display: flex; gap: 11px; align-items: center; min-width: 0; }
.tx-icon {
  width: 33px; height: 33px; border-radius: 9px; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ivory-2); color: var(--navy-600); border: 1px solid var(--line);
}
.tx-icon--credit { background: var(--ok-bg); color: var(--ok); border-color: #d9ece2; }
.tx-desc__text { min-width: 0; }
.tx-desc__title { font-weight: 560; color: var(--ink); display: block; }
.tx-desc__sub { font-size: .74rem; color: var(--ink-mute); }

.empty { padding: 46px 20px; text-align: center; color: var(--ink-mute); }
.empty svg { color: var(--line-strong); margin-bottom: 10px; }
.empty h3 { font-size: .92rem; color: var(--ink-soft); margin-bottom: 4px; }
.empty p { font-size: .82rem; margin: 0; }

/* --------------------------------------------------------------- filters */

.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.filters .field { margin-bottom: 0; }
.filters .field--grow { flex: 1 1 220px; min-width: 180px; }
.chip-row { display: flex; gap: 7px; flex-wrap: wrap; }
.chip {
  font-size: .775rem; font-weight: 550; padding: 6px 13px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--white); color: var(--ink-soft);
  cursor: pointer; text-decoration: none; transition: all .15s ease; white-space: nowrap;
}
.chip:hover { border-color: var(--navy-500); color: var(--navy-700); }
.chip--active { background: var(--navy-800); border-color: var(--navy-800); color: var(--white); }
.chip--active:hover { color: var(--white); }

/* --------------------------------------------------------------- definition lists */

.dl { display: grid; grid-template-columns: 190px 1fr; gap: 0; margin: 0; font-size: .865rem; }
.dl > dt { padding: 11px 0; color: var(--ink-mute); font-weight: 500; border-bottom: 1px solid #f2efe8; }
.dl > dd { padding: 11px 0; margin: 0; font-weight: 550; border-bottom: 1px solid #f2efe8; word-break: break-word; }
.dl > dt:last-of-type, .dl > dd:last-of-type { border-bottom: 0; }

/* --------------------------------------------------------------- entries list */

.entry { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f2efe8; font-size: .845rem; }
.entry:last-child { border-bottom: 0; }
.entry__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); flex: 0 0 auto; margin-top: 7px; }
.entry__dot--ok { background: var(--ok); }
.entry__dot--warn { background: var(--warn); }
.entry__dot--stop { background: var(--stop); }
.entry__main { flex: 1; min-width: 0; }
.entry__time { font-size: .73rem; color: var(--ink-mute); white-space: nowrap; }

/* --------------------------------------------------------------- locked banner */

.locked {
  background: linear-gradient(150deg, #fdf5e6, #fbf0dc);
  border: 1px solid var(--gold-soft);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  display: flex;
  gap: 13px;
  align-items: flex-start;
  margin-bottom: 22px;
}
.locked svg { flex: 0 0 auto; color: var(--gold-deep); margin-top: 2px; }
.locked h3 { font-size: .895rem; margin-bottom: 4px; color: #6b4d11; }
.locked p { margin: 0; font-size: .82rem; color: #7b5c1d; line-height: 1.55; }

/* --------------------------------------------------------------- footer */

.site-footer {
  background: var(--navy-900);
  color: rgba(255,255,255,.6);
  padding: 34px 0 30px;
  border-top: 1px solid rgba(198,161,91,.2);
  margin-top: auto;
  font-size: .8rem;
}
.site-footer__inner { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.site-footer__sig { font-family: var(--serif); font-size: .8rem; letter-spacing: .2em; color: var(--gold-soft); font-weight: 600; margin: 0; }
.site-footer__copy { margin: 0; color: rgba(255,255,255,.62); font-size: .785rem; }
.site-footer__links { display: flex; align-items: center; gap: 8px; font-size: .785rem; }
.site-footer__links a { color: rgba(255,255,255,.76); text-decoration: none; border-bottom: 1px solid transparent; padding-bottom: 1px; transition: color .15s, border-color .15s; }
.site-footer__links a:hover { color: var(--gold-soft); border-color: var(--gold-soft); }
.site-footer__links span { color: rgba(255,255,255,.32); }
.site-footer__note {
  margin: 6px 0 0; font-size: .715rem; color: rgba(255,255,255,.38); max-width: 74ch; line-height: 1.6;
  border-top: 1px solid rgba(255,255,255,.09); padding-top: 14px; width: 100%;
}

/* --------------------------------------------------------------- misc */

.breadcrumbs { font-size: .765rem; color: var(--ink-mute); margin-bottom: 12px; }
.breadcrumbs a { color: var(--ink-mute); }
.breadcrumbs a:hover { color: var(--navy-700); }
.breadcrumbs span { margin: 0 7px; color: var(--line-strong); }

.kbd {
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .74rem;
  background: var(--ivory-2); border: 1px solid var(--line-strong); border-bottom-width: 2px;
  border-radius: 5px; padding: 1.5px 6px; color: var(--ink-soft);
}

.spinner {
  width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.35); border-top-color: #fff;
  animation: spin .65s linear infinite; display: none;
}
.btn[data-loading="true"] .spinner { display: inline-block; }
.btn[data-loading="true"] .btn__label { opacity: .72; }
@keyframes spin { to { transform: rotate(360deg); } }

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 200;
  background: var(--white); color: var(--navy-800); padding: 10px 16px;
  border-radius: 8px; box-shadow: var(--shadow-lg); font-weight: 600;
}
.skip-link:focus { left: 20px; }

.prose { font-size: .9rem; color: var(--ink-soft); }
.prose h2 { font-family: var(--serif); font-size: 1.15rem; color: var(--ink); margin-top: 30px; margin-bottom: 10px; font-weight: 600; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: .9rem; color: var(--ink); margin: 20px 0 6px; font-weight: 650; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .45rem; }
.prose strong { color: var(--ink); font-weight: 620; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 26px 0; }

.callout-warn {
  background: var(--stop-bg); border: 1px solid #f0cfcd; border-left: 3px solid var(--stop);
  border-radius: var(--radius-sm); padding: 14px 16px; font-size: .84rem; color: #7d1c19; margin: 0 0 22px;
}
.callout-warn strong { color: var(--stop); }
.callout-note {
  background: #eef3f9; border: 1px solid #d3e0ee; border-left: 3px solid var(--navy-500);
  border-radius: var(--radius-sm); padding: 14px 16px; font-size: .84rem; color: var(--navy-600);
}

.demo-creds {
  background: var(--ivory-2); border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm); padding: 13px 15px; font-size: .8rem; margin-bottom: 20px;
}
.demo-creds dl { margin: 6px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; }
.demo-creds dt { color: var(--ink-mute); font-weight: 500; }
.demo-creds dd { margin: 0; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .775rem; color: var(--ink); word-break: break-all; }

/* --------------------------------------------------------------- responsive */

@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; padding: 56px 0 54px; }
  .hero__card { max-width: 520px; }
  .summary-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .acct-card__grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .main { padding: 26px 22px 40px; }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav--open {
    display: flex; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--navy-900); flex-direction: column; align-items: stretch;
    padding: 12px 16px 18px; gap: 2px;
    border-bottom: 1px solid rgba(198,161,91,.22); box-shadow: var(--shadow-lg);
  }
  .nav--open a.nav__link, .nav--open button.nav__link { padding: 11px 12px; text-align: left; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth__aside { display: none; }
  .app { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .sidebar--open { display: flex; }
  .mobile-appnav { display: block; }
}

@media (min-width: 901px) { .mobile-appnav { display: none; } }

@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .wrap { padding: 0 16px; }
  .masthead__inner { height: 62px; }
  .brand__name { font-size: 1.06rem; }
  .brand__sub { font-size: .55rem; letter-spacing: .13em; }
  .section { padding: 44px 0; }
  .hero__inner { padding: 40px 0 44px; }
  .summary-grid { grid-template-columns: 1fr 1fr; gap: 11px; }
  .stat { padding: 13px 14px; }
  .stat__value { font-size: 1rem; }
  .acct-card { padding: 20px; border-radius: 13px; }
  .acct-card__grid { grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; padding-top: 14px; }
  .main { padding: 20px 15px 36px; }
  .card__body { padding: 16px; }
  .card__head { padding: 14px 16px; }
  .dl { grid-template-columns: 1fr; }
  .dl > dt { padding: 9px 0 0; border-bottom: 0; font-size: .74rem; letter-spacing: .05em; text-transform: uppercase; }
  .dl > dd { padding: 2px 0 10px; border-bottom: 1px solid #f2efe8; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .otp { gap: 6px; }
  .otp input { height: 50px; font-size: 1.1rem; }
  .auth__main { padding: 30px 17px 40px; }
  .page-head { margin-bottom: 18px; }
  .page-head h1 { font-size: 1.18rem; }
  .filters { gap: 8px; }
  .filters .field--grow { flex: 1 1 100%; }
  .site-footer { padding: 28px 0 24px; }
  h1 { font-size: 1.6rem; }
}

/* mobile app nav bar */
.mobile-appnav {
  position: sticky; top: 62px; z-index: 40;
  background: var(--navy-900);
  border-bottom: 1px solid rgba(198,161,91,.2);
  padding: 9px 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-appnav__inner { display: flex; gap: 6px; min-width: max-content; }
.mobile-appnav a {
  font-size: .78rem; font-weight: 550; color: rgba(255,255,255,.72);
  padding: 6px 12px; border-radius: 999px; white-space: nowrap;
  border: 1px solid rgba(255,255,255,.13);
}
.mobile-appnav a:hover { color: var(--white); background: rgba(255,255,255,.08); }
.mobile-appnav a[aria-current="page"] { background: var(--gold); color: #2a1f07; border-color: var(--gold); font-weight: 650; }

@media print {
  .masthead, .site-footer, .sidebar, .mobile-appnav, .btn { display: none !important; }
  .app { grid-template-columns: 1fr; }
  body { background: #fff; }
}

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