/* ── WEALTH WATCH — DESIGN SYSTEM v2 (Navy & Gold) ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,500;1,400&display=swap');

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

:root {
  /* Brand */
  --navy:        #1a2744;
  --navy-dark:   #111c33;
  --navy-deep:   #0d1526;
  --navy-mid:    #243052;
  --navy-light:  #2e3d6b;
  --navy-muted:  #1e2d50;
  --gold:        #b8962e;
  --gold-light:  #c8a96e;
  --gold-bright: #d4aa4a;
  --gold-dim:    #7a6030;
  --gold-pale:   #f0e4c0;
  --gold-bg:     #120f06;
  --gold-border: #2a2010;

  /* Surfaces */
  --black:       #080a10;
  --surface:     #0e1220;
  --surface2:    #131929;
  --surface3:    #182033;
  --surface4:    #1e2840;

  /* Borders */
  --border:      #1e2744;
  --border2:     #263354;
  --border3:     #131929;
  --border4:     #0e1526;

  /* Text */
  --text-1:      #f0f2f8;
  --text-2:      #8fa0c8;
  --text-3:      #5a6f9a;
  --text-4:      #384770;
  --text-5:      #243050;

  /* Status */
  --green:       #2a6a3a;
  --green-bg:    #08140e;
  --green-border:#1a2e1e;
  --green-text:  #4a9a60;
  --amber:       #6a5010;
  --amber-bg:    #140e00;
  --amber-border:#2a2000;
  --amber-text:  #c8a030;
  --red-bg:      #140808;
  --red-border:  #2e1414;
  --red-text:    #9a4040;
  --blue-bg:     #081428;
  --blue-border: #1a2a44;
  --blue-text:   #4a7aaa;

  /* Radii */
  --radius-sm:   5px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   16px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--text-1);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ── NAV ── */
.ww-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  border-bottom: 0.5px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(8,10,16,0.97);
  backdrop-filter: blur(12px);
  z-index: 100;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-mark {
  width: 32px; height: 32px;
  background: var(--navy);
  border: 0.5px solid var(--gold-dim);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav-mark svg { width: 18px; height: 18px; }
.nav-name { font-size: 14px; font-weight: 600; color: var(--text-1); letter-spacing: .5px; text-transform: uppercase; }
.nav-name em { color: var(--gold-light); font-style: normal; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { font-size: 13px; color: var(--text-3); text-decoration: none; transition: color .15s; letter-spacing: .3px; }
.nav-links a:hover { color: var(--gold-light); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-btn {
  font-size: 12px; padding: 7px 16px;
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  cursor: pointer; text-decoration: none;
  transition: all .15s;
  border: 0.5px solid var(--border2);
  background: none; color: var(--text-3);
  letter-spacing: .3px;
}
.nav-btn:hover { border-color: var(--gold-dim); color: var(--gold-light); }
.nav-btn.primary { background: var(--gold); color: var(--navy-deep); border-color: var(--gold); font-weight: 600; }
.nav-btn.primary:hover { background: var(--gold-bright); }
.nav-pill { font-size: 10px; padding: 2px 9px; border-radius: 20px; letter-spacing: .06em; margin-left: 6px; }
.nav-pill.provider { color: var(--gold-light); background: var(--gold-bg); border: 0.5px solid var(--gold-border); }
.nav-pill.owner    { color: var(--green-text); background: var(--green-bg); border: 0.5px solid var(--green-border); }

/* ── PROGRESS BAR ── */
.progress-bar { height: 2px; background: var(--border); }
.progress-fill { height: 2px; background: linear-gradient(90deg, var(--navy-light), var(--gold)); transition: width .4s ease; }

/* ── TYPOGRAPHY ── */
.playfair { font-family: 'Playfair Display', serif; }
.eyebrow { font-size: 11px; color: var(--gold-dim); letter-spacing: .12em; text-transform: uppercase; }
.section-label { font-size: 11px; color: var(--text-4); letter-spacing: .08em; text-transform: uppercase; }
.gold-rule { display: flex; align-items: center; gap: 12px; }
.gold-rule::before, .gold-rule::after { content:''; flex:1; height:.5px; background: linear-gradient(90deg, transparent, var(--gold-dim)); }
.gold-rule::after { transform: scaleX(-1); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 12px 20px; border-radius: var(--radius-md);
  font-size: 13px; font-weight: 500; font-family: 'Inter', sans-serif;
  cursor: pointer; text-decoration: none; border: none;
  transition: all .15s; letter-spacing: .2px;
}
.btn-full { width: 100%; }
.btn-primary { background: var(--gold); color: var(--navy-deep); font-weight: 600; }
.btn-primary:hover { background: var(--gold-bright); }
.btn-primary:disabled { background: var(--surface3); color: var(--text-4); cursor: not-allowed; }
.btn-secondary { background: var(--surface2); color: var(--text-3); border: 0.5px solid var(--border2); }
.btn-secondary:hover { background: var(--surface3); color: var(--text-2); border-color: var(--gold-dim); }
.btn-ghost { background: none; color: var(--text-3); border: 0.5px solid var(--border2); }
.btn-ghost:hover { color: var(--text-2); border-color: var(--border2); }
.btn-navy { background: var(--navy); color: var(--gold-light); border: 0.5px solid var(--gold-dim); }
.btn-navy:hover { background: var(--navy-mid); }
.btn-green { background: var(--green-bg); color: var(--green-text); border: 0.5px solid var(--green-border); }
.btn-red   { background: var(--red-bg);   color: var(--red-text);   border: 0.5px solid var(--red-border); }
.btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ── FIELDS ── */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field label { font-size: 11px; color: var(--text-4); letter-spacing: .06em; text-transform: uppercase; }
.field input, .field select, .field textarea {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 13px; color: var(--text-1);
  font-family: 'Inter', sans-serif;
  outline: none; appearance: none; resize: none;
  transition: border-color .15s;
  width: 100%;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-5); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold-dim); }
.field select { color: var(--text-5); cursor: pointer; }
.field select.chosen { color: var(--text-1); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ── CARDS ── */
.card { background: var(--surface); border: 0.5px solid var(--border); border-radius: var(--radius-lg); }
.card-pad { padding: 16px 18px; }
.card-hover { transition: background .15s, border-color .15s; cursor: pointer; }
.card-hover:hover { background: var(--surface2); border-color: var(--border2); }
.card-gold { border-color: var(--gold-dim); }

/* ── STAT GRID ── */
.stat-grid { display: grid; gap: 1px; background: var(--border); border-radius: var(--radius-md); overflow: hidden; }
.stat-cell { background: var(--surface); padding: 14px 16px; }
.stat-label { font-size: 11px; color: var(--text-4); margin-bottom: 4px; letter-spacing: .04em; }
.stat-val { font-size: 20px; font-weight: 600; color: var(--text-1); }
.stat-sub { font-size: 11px; color: var(--text-5); margin-top: 2px; }
.stat-sub.up { color: var(--green-text); }
.stat-sub.gold { color: var(--gold-dim); }

/* ── LIST STACK ── */
.list-stack { display: flex; flex-direction: column; gap: 1px; background: var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.list-row { background: var(--surface); padding: 14px 16px; display: flex; align-items: center; gap: 12px; transition: background .15s; }
.list-row.clickable { cursor: pointer; }
.list-row.clickable:hover { background: var(--surface2); }

/* ── ICON BOX ── */
.icon-box { border-radius: var(--radius-sm); background: var(--surface2); border: 0.5px solid var(--border2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.icon-box svg { stroke: var(--text-3); fill: none; stroke-width: 1.5; }
.icon-box.sm { width: 28px; height: 28px; } .icon-box.sm svg { width: 13px; height: 13px; }
.icon-box.md { width: 36px; height: 36px; } .icon-box.md svg { width: 17px; height: 17px; }
.icon-box.lg { width: 44px; height: 44px; } .icon-box.lg svg { width: 22px; height: 22px; }
.icon-box.gold { background: var(--gold-bg); border-color: var(--gold-border); }
.icon-box.gold svg { stroke: var(--gold-light); }

/* ── BADGES ── */
.badge { font-size: 10px; padding: 2px 8px; border-radius: 20px; font-weight: 500; white-space: nowrap; letter-spacing: .04em; }
.badge-green { background: var(--green-bg); color: var(--green-text); border: 0.5px solid var(--green-border); }
.badge-amber { background: var(--amber-bg); color: var(--amber-text); border: 0.5px solid var(--amber-border); }
.badge-blue  { background: var(--blue-bg);  color: var(--blue-text);  border: 0.5px solid var(--blue-border); }
.badge-muted { background: var(--surface2); color: var(--text-4);    border: 0.5px solid var(--border2); }
.badge-gold  { background: var(--gold-bg);  color: var(--gold-light); border: 0.5px solid var(--gold-border); }

/* ── STATUS DOTS ── */
.status { display: flex; align-items: center; gap: 5px; font-size: 11px; }
.dot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
.dot-green { background: #2a6a3a; } .status-green { color: #2a5a3a; }
.dot-amber { background: #6a5010; } .status-amber { color: #5a4010; }
.dot-blue  { background: #2a4a6a; } .status-blue  { color: #2a4a6a; }
.dot-live  { background: var(--gold); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }

/* ── DIVIDER ── */
.divider { height: 0.5px; background: var(--border); margin: 20px 0; }

/* ── AVATAR ── */
.avatar { border-radius: 50%; background: var(--navy-muted); border: 0.5px solid var(--gold-dim); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; color: var(--gold-light); flex-shrink: 0; letter-spacing: .5px; }
.avatar.sm { width: 30px; height: 30px; }
.avatar.md { width: 36px; height: 36px; font-size: 12px; }
.avatar.sq { border-radius: var(--radius-sm); }

/* ── TWO COL ── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ── PAGE WRAP ── */
.page { max-width: 540px; margin: 0 auto; padding: 32px 24px 56px; }
.page-wide { max-width: 720px; margin: 0 auto; padding: 32px 24px 56px; }

/* ── SKIP LINK ── */
.skip-link { text-align: center; font-size: 12px; color: var(--text-4); cursor: pointer; margin-top: 12px; }
.skip-link:hover { color: var(--gold-dim); }

/* ── TOAST ── */
.toast-wrap { position: fixed; bottom: 24px; right: 24px; z-index: 999; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--surface2); border: 0.5px solid var(--border2); border-radius: 10px; padding: 12px 16px; font-size: 13px; color: var(--text-2); display: flex; align-items: center; gap: 10px; min-width: 220px; animation: slideIn .2s ease; }
.toast.success { border-color: var(--green-border); background: var(--green-bg); color: var(--green-text); }
.toast.error   { border-color: var(--red-border);   background: var(--red-bg);   color: var(--red-text); }
.toast svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; flex-shrink: 0; }
@keyframes slideIn { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:translateY(0)} }

/* ── SKELETON ── */
.skeleton { background: var(--surface2); border-radius: 4px; animation: shimmer 1.4s infinite; }
@keyframes shimmer { 0%,100%{opacity:.4} 50%{opacity:.9} }

/* ── MODAL ── */
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.75); display: none; align-items: center; justify-content: center; z-index: 150; padding: 24px; }
.modal-bg.open { display: flex; }
.modal { background: var(--surface); border: 0.5px solid var(--gold-dim); border-radius: var(--radius-xl); padding: 28px; width: 100%; max-width: 420px; }
.modal-title { font-family: 'Playfair Display', serif; font-size: 20px; color: var(--text-1); margin-bottom: 6px; }
.modal-sub { font-size: 13px; color: var(--text-3); margin-bottom: 20px; line-height: 1.6; }
.modal-actions { display: flex; gap: 8px; margin-top: 20px; }

/* ── FORM ERROR ── */
.form-error { background: var(--red-bg); border: 0.5px solid var(--red-border); border-radius: var(--radius-sm); padding: 10px 14px; font-size: 13px; color: var(--red-text); display: none; margin-bottom: 12px; }
.form-error.show { display: block; }

/* ── GOLD ACCENT LINE ── */
.gold-accent { width: 40px; height: 2px; background: linear-gradient(90deg, var(--gold), var(--gold-dim)); border-radius: 1px; margin-bottom: 16px; }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .ww-nav { padding: 14px 16px; }
  .nav-links { display: none; }
  .page, .page-wide { padding: 24px 16px 48px; }
  .two-col { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
