/* ============ WealthHaven Capital — Design System (Navy & Gold) ============ */
:root {
  --navy-950: #060d1a;
  --navy-900: #0a1424;
  --navy-800: #0e1c33;
  --navy-700: #14263f;
  --navy-600: #1d3355;
  --gold: #d4af37;
  --gold-light: #e8c86a;
  --gold-dark: #b8912a;
  --cream: #f4eee1;
  --ink: #e9eef7;
  --muted: #93a1b8;
  --line: rgba(212, 175, 55, 0.22);
  --line-soft: rgba(147, 161, 184, 0.16);
  --green: #3ddc97;
  --red: #ff6b6b;
  --radius: 16px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--navy-900);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--gold-light); text-decoration: none; }
h1, h2, h3, .font-display { font-family: var(--font-display); font-weight: 700; line-height: 1.15; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea {
  font-family: inherit; font-size: 0.95rem;
  background: rgba(255,255,255,0.045);
  border: 1px solid var(--line-soft);
  color: var(--ink);
  border-radius: 10px;
  padding: 0.72rem 0.9rem;
  width: 100%;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,175,55,.15);
}
select option { color: #111; }
label { font-size: 0.82rem; color: var(--muted); display: block; margin-bottom: 0.35rem; letter-spacing: .02em; }
.gold-text {
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 55%, var(--gold-dark));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.container { width: min(1180px, 92%); margin: 0 auto; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border: none; border-radius: 12px;
  padding: .8rem 1.6rem;
  font-weight: 600; font-size: .95rem; letter-spacing: .02em;
  transition: transform .15s, box-shadow .2s, background .2s;
}
.btn:active { transform: translateY(1px); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 60%, var(--gold-dark));
  color: var(--navy-950);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.28);
}
.btn-gold:hover { box-shadow: 0 12px 30px rgba(212, 175, 55, 0.4); transform: translateY(-1px); }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--gold-light); }
.btn-ghost:hover { background: rgba(212,175,55,.08); }
.btn-dark { background: var(--navy-700); color: var(--ink); border: 1px solid var(--line-soft); }
.btn-dark:hover { background: var(--navy-600); }
.btn-danger { background: rgba(255,107,107,.12); color: var(--red); border: 1px solid rgba(255,107,107,.35); }
.btn-danger:hover { background: rgba(255,107,107,.2); }
.btn-green { background: rgba(61,220,151,.12); color: var(--green); border: 1px solid rgba(61,220,151,.35); }
.btn-green:hover { background: rgba(61,220,151,.2); }
.btn-sm { padding: .45rem .9rem; font-size: .82rem; border-radius: 9px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* badges */
.badge { display: inline-block; padding: .18rem .65rem; border-radius: 999px; font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.badge-pending { background: rgba(232,200,106,.12); color: var(--gold-light); border: 1px solid var(--line); }
.badge-approved { background: rgba(61,220,151,.12); color: var(--green); border: 1px solid rgba(61,220,151,.3); }
.badge-rejected { background: rgba(255,107,107,.12); color: var(--red); border: 1px solid rgba(255,107,107,.3); }
.badge-active { background: rgba(61,220,151,.12); color: var(--green); border: 1px solid rgba(61,220,151,.3); }
.badge-disabled { background: rgba(255,107,107,.12); color: var(--red); border: 1px solid rgba(255,107,107,.3); }
.badge-deposit { background: rgba(61,220,151,.1); color: var(--green); }
.badge-withdrawal { background: rgba(232,200,106,.1); color: var(--gold-light); }
.badge-credit { background: rgba(96,165,250,.12); color: #8ab6ff; }
.badge-debit { background: rgba(255,107,107,.1); color: var(--red); }

/* cards */
.card {
  background: linear-gradient(160deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.4rem;
}

/* forms */
.field { margin-bottom: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

/* toast */
.toast-wrap { position: fixed; top: 18px; right: 18px; z-index: 9999; display: flex; flex-direction: column; gap: .6rem; }
.toast {
  background: var(--navy-800); border: 1px solid var(--line); border-left: 4px solid var(--gold);
  color: var(--ink); padding: .85rem 1.2rem; border-radius: 12px; box-shadow: var(--shadow);
  max-width: 340px; font-size: .9rem; animation: toastIn .25s ease;
}
.toast.success { border-left-color: var(--green); }
.toast.error { border-left-color: var(--red); }
@keyframes toastIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }

/* modal */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(4, 9, 18, .78);
  display: flex; align-items: center; justify-content: center; z-index: 500;
  padding: 1rem; backdrop-filter: blur(4px);
}
.modal {
  background: var(--navy-800); border: 1px solid var(--line); border-radius: 20px;
  width: min(640px, 96vw); max-height: 90vh; overflow: auto; padding: 1.8rem;
  box-shadow: var(--shadow); animation: modalIn .2s ease;
}
.modal h3 { margin-bottom: 1.1rem; color: var(--cream); font-size: 1.35rem; }
@keyframes modalIn { from { opacity: 0; transform: scale(.96) translateY(8px); } to { opacity: 1; transform: none; } }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
th {
  text-align: left; padding: .8rem 1rem; color: var(--muted); font-weight: 600; font-size: .74rem;
  text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid var(--line-soft);
  background: rgba(255,255,255,.02); white-space: nowrap;
}
td { padding: .85rem 1rem; border-bottom: 1px solid rgba(147,161,184,.08); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(212,175,55,.03); }

/* misc */
.muted { color: var(--muted); }
.mono { font-variant-numeric: tabular-nums; }
.divider { height: 1px; background: var(--line-soft); margin: 1.2rem 0; }
.hidden { display: none !important; }
.loading { padding: 3rem; text-align: center; color: var(--muted); }
.spin {
  display: inline-block; width: 26px; height: 26px; border: 3px solid var(--line);
  border-top-color: var(--gold); border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
