/* ============ NeuroForge / LuxuryPartners unified UI ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
:root {
  --bg: #EEEFF1;
  --bg-soft: #E8EAED;
  --bg-card: #FFFFFF;
  --ink: #0B0B0E;
  --ink-2: #555A63;
  --muted: #858A93;
  --line: #DDE1E6;
  --line-strong: #BFC6D0;
  --accent: #D8FF36;
  --accent-hover: #C5EC22;
  --accent-soft: rgba(216, 255, 54, .2);
  --violet: #7A5BFF;
  --green: #2BB673;
  --red: #E5484D;
  --radius-lg: 28px;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(11, 11, 14, .05);
  --shadow-lg: 0 18px 60px rgba(11, 11, 14, .12), 0 2px 8px rgba(11, 11, 14, .05);
  --shadow-soft: 0 18px 48px rgba(11, 11, 14, .08);
  --font-display: 'Inter', system-ui, -apple-system, sans-serif;
  --font-ui: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'Inter', system-ui, -apple-system, sans-serif;
}
body {
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-weight: 650;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font-family: inherit; }
img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 48px); }
.section { padding: 96px 0; position: relative; }
.container.section { padding-left: clamp(18px, 4vw, 48px); padding-right: clamp(18px, 4vw, 48px); }
.section + .section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: min(1040px, calc(100% - 48px));
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}
.section-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; margin: 0 auto 52px; }
.section-head h2 { max-width: 780px; font-size: clamp(34px, 5vw, 64px); line-height: .98; letter-spacing: -.055em; }
.section-head p { max-width: 620px; color: var(--ink-2); font-size: 16px; }
.section-head.row { flex-direction: row; align-items: flex-end; justify-content: space-between; text-align: left; }
h1, h2, h3 { font-family: var(--font-ui); color: var(--ink); font-weight: 850; letter-spacing: -.045em; }
h3 { font-size: 20px; line-height: 1.15; }
.eyebrow {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  color: var(--muted); font-size: 11px; font-weight: 850; letter-spacing: .18em; text-transform: uppercase;
}
.eyebrow .tick { width: 24px; height: 2px; border-radius: 999px; background: var(--accent); display: inline-block; }
.accent-text { position: relative; font-style: normal; }
.accent-text::after { content: ''; position: absolute; left: -.04em; right: -.04em; bottom: .06em; height: .28em; z-index: -1; border-radius: 999px; background: var(--accent); }

.nav {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 100;
  width: min(1200px, calc(100% - 32px)); display: flex; align-items: center; gap: 20px;
  padding: 10px 12px 10px 16px; background: rgba(255, 255, 255, .88); border: 1px solid rgba(221, 225, 230, .9);
  border-radius: 999px; box-shadow: var(--shadow-lg); backdrop-filter: blur(16px);
}
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 850; font-size: 15px; letter-spacing: -.03em; white-space: nowrap; }
.logo-mark { width: auto; height: 44px; max-width: 220px; border-radius: 0; object-fit: contain; flex: 0 0 auto; }
.nav .logo-mark { height: 64px; max-width: 280px; }
.logo-mark:not(img) { background: var(--ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.nav-links { display: flex; gap: 2px; margin: 0 auto; }
.nav-links a { padding: 8px 14px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-size: 13.5px; font-weight: 750; transition: color .15s, background .15s; }
.nav-links a:hover { color: var(--ink); background: var(--bg-soft); }
.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav-action-icon, .nav-profile-icon { width: 17px; height: 17px; flex: 0 0 auto; object-fit: contain; }
.nav-profile-icon { width: 24px; height: 24px; }
.user-chip { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font-size: 13.5px; font-weight: 800; }
.user-chip .avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 850; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px;
  padding: 13px 24px; border: 1px solid transparent; border-radius: 999px; cursor: pointer;
  color: var(--ink); background: transparent; text-decoration: none; font-size: 14px; font-weight: 850; line-height: 1; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, transform .12s, box-shadow .15s;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: var(--ink); box-shadow: 0 0 0 1px rgba(11,11,14,.06), 0 12px 30px -10px rgba(216,255,54,.7); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #1A1A20; transform: translateY(-1px); }
.btn-outline { background: var(--bg-card); color: var(--ink); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--ink); transform: translateY(-1px); }
.btn-ghost { color: var(--ink); }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-danger { background: rgba(229, 72, 77, .08); color: var(--red); border-color: rgba(229, 72, 77, .25); }
.btn-success { background: rgba(43, 182, 115, .08); color: var(--green); border-color: rgba(43, 182, 115, .25); }
.btn-sm { min-height: 36px; padding: 9px 16px; font-size: 13px; }
.btn-lg { min-height: 54px; padding: 17px 32px; font-size: 15px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn .arr, .icon { width: 16px; height: 16px; flex: 0 0 auto; }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 11px; font-weight: 850; letter-spacing: .02em; border: 1px solid var(--line); color: var(--ink-2); background: var(--bg-card); }
.chip.accent { color: var(--ink); border-color: transparent; background: var(--accent); }
.chip.green { color: var(--green); border-color: rgba(43, 182, 115, .25); background: rgba(43, 182, 115, .08); }
.chip.red { color: var(--red); border-color: rgba(229, 72, 77, .25); background: rgba(229, 72, 77, .08); }
.chip.gold { color: var(--ink); border-color: transparent; background: var(--accent); }
.chip.light { border-color: rgba(255,255,255,.24); color: #fff; background: rgba(255,255,255,.08); }
.badge { position: absolute; top: -11px; right: 22px; padding: 6px 14px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 850; letter-spacing: .06em; }

.card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.card-soft { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.card-hover { transition: border-color .2s, transform .2s, box-shadow .2s; }
.card-hover:hover { border-color: var(--line-strong); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-num { position: absolute; right: 18px; top: 8px; color: var(--ink); opacity: .045; pointer-events: none; font-size: 104px; font-weight: 900; line-height: 1; letter-spacing: -.08em; }
.surface-ink { background: var(--ink); color: #fff; border-radius: var(--radius-lg); position: relative; overflow: hidden; }
.surface-ink::before { content: ''; position: absolute; inset: auto -120px -180px auto; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(216,255,54,.18), transparent 68%); }
.surface-ink h2, .surface-ink h3 { color: #fff; }
.surface-ink p { color: rgba(255,255,255,.72); }

.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label { color: var(--ink-2); font-size: 11px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.input, .select, textarea.input { width: 100%; padding: 12px 14px; outline: none; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--bg-card); color: var(--ink); font: inherit; font-size: 14px; font-weight: 650; transition: border-color .15s, box-shadow .15s; }
.input:focus, .select:focus, textarea.input:focus { border-color: var(--accent-hover); box-shadow: 0 0 0 3px var(--accent-soft); }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.form-msg { min-height: 20px; margin-top: 4px; font-size: 13px; }
.form-msg.err { color: var(--red); }
.form-msg.ok { color: var(--green); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-card); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { padding: 13px 18px; border-bottom: 1px solid var(--line); background: var(--bg-soft); color: var(--muted); font-size: 11px; font-weight: 850; letter-spacing: .1em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.tbl td { padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tbody tr:hover { background: var(--bg-soft); }
.tbl .num, .num { font-variant-numeric: tabular-nums; white-space: nowrap; }

.tabs { display: flex; gap: 4px; width: max-content; max-width: 100%; overflow-x: auto; padding: 4px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; }
.tabs button { padding: 10px 20px; border: none; border-radius: 999px; background: transparent; color: var(--ink-2); cursor: pointer; font: inherit; font-size: 13px; font-weight: 850; white-space: nowrap; }
.tabs button.active { background: var(--bg-card); color: var(--ink); box-shadow: var(--shadow); }
.tab-panel { display: none; animation: fadeUp .25s ease; }
.tab-panel.active { display: block; }

.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.kpi { padding: 22px 24px; }
.kpi small, .dash-k { display: block; margin-bottom: 10px; color: var(--muted); font-size: 11px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.kpi b, .dash-balance b { display: flex; align-items: baseline; gap: 6px; color: var(--ink); font-size: clamp(22px, 2.6vw, 34px); font-weight: 900; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 170px; }
.bars .bar { flex: 1; min-width: 3px; border-radius: 4px 4px 2px 2px; background: var(--accent); opacity: .9; position: relative; }
.bars .bar::after { content: attr(data-v); position: absolute; bottom: calc(100% + 5px); left: 50%; transform: translateX(-50%); opacity: 0; color: var(--muted); font-size: 10px; white-space: nowrap; }
.bars .bar:hover::after { opacity: 1; }
.progress { height: 8px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 999px; background: var(--accent); }

.faq { display: grid; gap: 14px; max-width: 840px; margin: 0 auto; }
.faq-item { padding: 26px 30px; transition: border-color .2s, box-shadow .2s; }
.faq-item[open] { border-color: var(--ink); box-shadow: 0 0 0 3px var(--accent-soft); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-weight: 850; font-size: 16px; letter-spacing: -.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-strong); display: inline-flex; align-items: center; justify-content: center; font-size: 20px; color: var(--ink); background: var(--bg-card); transition: transform .2s, background .2s, color .2s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--ink); color: #fff; }
.faq p { max-width: 680px; margin-top: 14px; color: var(--ink-2); font-size: 14px; line-height: 1.65; }

.modal-backdrop { position: fixed; inset: 0; z-index: 200; display: none; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 8vh 16px 16px; background: rgba(11,11,14,.45); backdrop-filter: blur(4px); }
.modal-backdrop.open { display: flex; }
.modal { width: 100%; max-width: 560px; position: relative; padding: 30px; border: 1px solid var(--line); border-radius: 24px; background: var(--bg-card); box-shadow: var(--shadow-lg); animation: fadeUp .22s ease; }
.modal h3 { margin-bottom: 6px; font-size: 24px; }
.modal .modal-sub { margin-bottom: 22px; color: var(--ink-2); font-size: 13.5px; }
.modal-close { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg-card); color: var(--ink-2); cursor: pointer; font-size: 18px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); z-index: 300; opacity: 0; pointer-events: none; padding: 13px 22px; border-radius: 999px; background: var(--ink); color: #fff; box-shadow: var(--shadow-lg); font-size: 13.5px; font-weight: 850; transition: all .25s ease; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.ok { background: var(--green); }
.toast.err { background: var(--red); }
.copy-field { display: flex; gap: 8px; align-items: center; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 6px 6px 6px 16px; }
.copy-field code { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); font-size: 12.5px; }

.row { display: flex; align-items: center; gap: 10px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.muted { color: var(--ink-2); }
.dim { color: var(--muted); }
.small { font-size: 12.5px; }
.empty { padding: 44px 16px; text-align: center; color: var(--muted); font-size: 14px; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .7s linear infinite; display: inline-block; }
.footer { margin-top: 40px; padding: 56px 0 36px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 36px; }
.footer h5 { margin-bottom: 16px; color: var(--muted); font-size: 11px; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.footer a { display: block; padding: 5px 0; color: var(--ink-2); text-decoration: none; font-size: 13.5px; }
.footer a:hover { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
.float { animation: float 6s ease-in-out infinite; }
@media (max-width: 860px) { .nav-links { display: none; } .section { padding: 68px 0; } .section-head.row { flex-direction: column; text-align: center; align-items: center; } }
@media (max-width: 640px) { .nav { width: calc(100% - 24px); gap: 8px; padding: 8px 10px 8px 12px; } .logo-mark { height: 46px; max-width: 220px; } .nav .logo-mark { height: 34px; max-width: 150px; } .nav-actions { gap: 6px; } .nav-actions .btn-ghost { display: inline-flex; min-width: 38px; padding: 0; } .nav-actions .btn-primary { min-height: 38px; padding: 0 14px; font-size: 12px; } .nav .nav-actions .user-chip { width: 38px; height: 38px; justify-content: center; gap: 0; font-size: 0; } .nav-actions .nav-action-label { display: none; } .nav-action-icon { width: 18px; height: 18px; } .nav-profile-icon { width: 23px; height: 23px; } .footer-bottom { flex-direction: column; gap: 10px; } }
