/* ============================================================
   Wall Street Capital — global stylesheet
   Dark blue / glass theme with light + dark modes.
   ============================================================ */
:root {
  /* ---------- Global scale ---------- */
  /* Bump this to make the entire site larger. 1 = current size.
     1.1 = 10% bigger. 1.15 = 15% bigger. etc. */
  --scale: 2;

  --space-xs: calc(4px * var(--scale));
  --space-sm: calc(8px * var(--scale));
  --space-md: calc(16px * var(--scale));
  --space-lg: calc(24px * var(--scale));
  --space-xl: calc(40px * var(--scale));

  --font-xs:   calc(11px * var(--scale));
  --font-sm:   calc(13px * var(--scale));
  --font-base: calc(15px * var(--scale));
  --font-lg:   calc(18px * var(--scale));
  --font-xl:   calc(22px * var(--scale));
  --font-2xl:  calc(28px * var(--scale));

  --radius-sm: calc(8px  * var(--scale));
  --radius-md: calc(12px * var(--scale));
  --radius-lg: calc(18px * var(--scale));

  /* Capped width — do NOT multiply by --scale or it becomes huge */
  --max-content-width: 1440px;
}
html { font-size: 16px; }
body {
  font-size: var(--font-base);
  line-height: 1.6;
}
:root {
  /* Dark mode (default) — deep navy blue */
  --bg: #050B18;
  --bg-2: #0A1428;
  --panel: rgba(15, 26, 48, 0.6);
  --panel-solid: #0B1730;
  --line: rgba(106, 153, 255, 0.16);
  --line-soft: rgba(255, 255, 255, 0.06);

  /* Blue palette */
  --gold: #3B82F6;
  --gold-bright: #60A5FA;
  --gold-deep: #1D4ED8;
  --gold-glow: rgba(59, 130, 246, 0.35);

  --tick-up: #4ADE80;
  --tick-down: #F87171;

  --text: #FFFFFF;
  --text-dim: #9DA9C0;
  --text-dimmer: #64748B;

  --input-bg: rgba(0, 8, 24, 0.5);
  --input-border: rgba(106, 153, 255, 0.18);
  --input-border-focus: rgba(96, 165, 250, 0.65);

  --serif: Georgia, 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* Light mode override */
html[data-theme="light"] {
  --bg: #F0F4FB;
  --bg-2: #E2EAF7;
  --panel: rgba(255, 255, 255, 0.72);
  --panel-solid: #FFFFFF;
  --line: rgba(29, 78, 216, 0.18);
  --line-soft: rgba(0, 0, 0, 0.06);

  --gold: #1E40AF;
  --gold-bright: #1D4ED8;
  --gold-deep: #1E3A8A;
  --gold-glow: rgba(29, 78, 216, 0.25);

  --tick-up: #15803D;
  --tick-down: #B91C1C;

  --text: #0B1730;
  --text-dim: #475569;
  --text-dimmer: #7A8598;

  --input-bg: rgba(255, 255, 255, 0.75);
  --input-border: rgba(29, 78, 216, 0.2);
  --input-border-focus: rgba(37, 99, 235, 0.6);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  transition: background 0.4s ease, color 0.4s ease;
}

a { color: var(--gold-bright); }

.page { position: relative; z-index: 1; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.narrow { max-width: 460px; margin: 0 auto; padding: 0 24px; }

/* ---------- Global focus reset ---------- */
*:focus { outline: none; }
*:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
button::-moz-focus-inner { border: 0; }

a:focus,
button:focus,
details:focus,
summary:focus,
input:focus,
select:focus,
textarea:focus { outline: none; }

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ---------- Top nav ---------- */
header.nav {
  padding: 22px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(5, 11, 24, 0.85);
  backdrop-filter: blur(12px);
}
html[data-theme="light"] header.nav { background: rgba(240, 244, 251, 0.88); }

.nav-mark {
  font-family: var(--serif);
  font-size: 19px;
  text-decoration: none;
  color: var(--text);
}
.nav-mark em { font-style: normal; color: var(--gold-bright); }
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

/* ---------- Generic card ---------- */
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 32px;
  backdrop-filter: blur(20px);
}

/* ---------- Forms ---------- */
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 13px;
  color: var(--text-dimmer);
  margin-bottom: 8px;
  font-weight: 500;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  color: var(--text);
  padding: 13px 14px;
  font-family: var(--sans);
  font-size: 15px;
  border-radius: 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input::placeholder { color: var(--text-dimmer); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--input-border-focus);
  box-shadow: 0 0 0 3px var(--gold-glow);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--gold);
  color: var(--gold-bright);
  background: transparent;
  transition: all 0.2s ease;
}
.btn:hover {
  background: var(--gold);
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--gold-glow);
}

/* Solid variant — white text in every state */
.btn-solid {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold) 55%, var(--gold-deep));
  color: #FFFFFF !important;
  border: none;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
.btn-solid::after {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}
.btn-solid:hover {
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(59, 130, 246, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-solid:hover::after { left: 130%; }

.btn-solid a,
.btn-solid span { color: #FFFFFF !important; }

.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ---------- Utility ---------- */
.muted { color: var(--text-dimmer); font-size: 13.5px; }

.error-box {
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid var(--tick-down);
  color: #FCA5A5;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 18px;
  display: none;
}
.success-box {
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid var(--tick-up);
  color: #86EFAC;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 18px;
  display: none;
}

/* ---------- Tables ---------- */
table { width: 100%; border-collapse: collapse; }
th, td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
}
th { color: var(--text-dimmer); font-weight: 600; font-size: 12.5px; }
tr:hover td { background: rgba(59, 130, 246, 0.05); }

.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 12px;
  font-size: 12px;
  border: 1px solid var(--line);
}
.badge.ok { color: var(--tick-up); border-color: var(--tick-up); }
.badge.warn { color: var(--gold-bright); border-color: var(--gold); }
.badge.bad { color: var(--tick-down); border-color: var(--tick-down); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 800px) { .grid-2 { grid-template-columns: 1fr; } }

#portfolio-canvas {
  width: 100%;
  height: 320px;
  border: 1px solid var(--line);
  background: var(--panel-solid);
}

/* ============================================================
   AUTH PAGES (login / signup)
   ============================================================ */

.auth-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(59, 130, 246, 0.12), transparent 55%),
    radial-gradient(ellipse at 80% 90%, rgba(29, 78, 216, 0.16), transparent 50%),
    var(--bg);
  transition: background 0.4s ease;
}
html[data-theme="light"] .auth-bg {
  background:
    radial-gradient(ellipse at 20% 10%, rgba(37, 99, 235, 0.10), transparent 55%),
    radial-gradient(ellipse at 80% 90%, rgba(29, 78, 216, 0.14), transparent 50%),
    var(--bg);
}

.auth-bg::before,
.auth-bg::after {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    conic-gradient(from 220deg at 30% 40%,
      transparent 0deg,
      rgba(96, 165, 250, 0.10) 20deg,
      transparent 45deg,
      rgba(29, 78, 216, 0.14) 70deg,
      transparent 95deg),
    conic-gradient(from 40deg at 75% 65%,
      transparent 0deg,
      rgba(59, 130, 246, 0.08) 30deg,
      transparent 60deg),
    linear-gradient(115deg,
      transparent 30%,
      rgba(96, 165, 250, 0.06) 38%,
      transparent 44%,
      rgba(59, 130, 246, 0.10) 52%,
      transparent 58%,
      rgba(29, 78, 216, 0.08) 66%,
      transparent 72%);
  filter: blur(28px);
  opacity: 0.9;
  animation: drift 32s ease-in-out infinite alternate;
}
.auth-bg::after {
  filter: blur(60px);
  opacity: 0.55;
  animation-duration: 48s;
  animation-direction: alternate-reverse;
}
@keyframes drift {
  0%   { transform: translate3d(-2%, -1%, 0) rotate(-2deg); }
  100% { transform: translate3d(3%, 2%, 0) rotate(3deg); }
}

.auth-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 90px 24px 60px;
}

.brand-badge {
  text-align: center;
  margin-bottom: 18px;
}
.brand-badge .v {
  font-family: var(--serif);
  font-size: 44px;
  color: var(--gold-bright);
  letter-spacing: 1px;
  line-height: 1;
  text-shadow: 0 0 30px var(--gold-glow);
}
.brand-badge .label {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 6px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.auth-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  padding: 40px 36px 32px;
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border-radius: 16px;
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.auth-card::before {
  content: "";
  position: absolute;
  top: -1px; right: -1px;
  width: 64px;
  height: 64px;
  background: var(--bg);
  border-bottom-left-radius: 14px;
  border-left: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  clip-path: polygon(100% 0, 100% 100%, 0 0);
}
html[data-theme="light"] .auth-card::before { background: var(--bg); }

.auth-card h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 26px;
  margin: 0 0 8px;
  color: var(--text);
}
.auth-card .sub {
  font-size: 13.5px;
  color: var(--text-dim);
  margin: 0 0 26px;
}

.auth-panel { display: none; opacity: 0; transition: opacity 0.35s ease; }
.auth-panel.active { display: block; opacity: 1; }

.input-icon { position: relative; }
.input-icon input { padding-left: 42px; }
.input-icon .ic {
  position: absolute;
  left: 13px; top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  color: var(--text-dimmer);
  pointer-events: none;
}

.form-row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 0 22px;
  font-size: 13px;
}
.form-row-between a { color: var(--gold-bright); text-decoration: none; }
.form-row-between a:hover { text-decoration: underline; }

.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--text-dim);
  user-select: none;
}
.check input { display: none; }
.check .box {
  width: 16px; height: 16px;
  border-radius: 4px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.check input:checked + .box {
  background: var(--gold);
  border-color: var(--gold);
}
.check input:checked + .box::after {
  content: "";
  width: 8px; height: 4px;
  border-left: 2px solid #FFFFFF;
  border-bottom: 2px solid #FFFFFF;
  transform: rotate(-45deg) translate(1px, -1px);
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-dimmer);
  font-size: 12px;
  margin: 22px 0 18px;
}
.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.sso-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}
.sso-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
html[data-theme="light"] .sso-btn { background: rgba(0,0,0,0.03); }
.sso-btn:hover {
  background: rgba(59, 130, 246, 0.08);
  border-color: var(--gold);
}

.auth-footer {
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 24px;
}
.auth-footer a {
  color: var(--gold-bright);
  text-decoration: none;
  font-weight: 600;
}
.auth-footer a:hover { text-decoration: underline; }

/* ============================================================
   THEME TOGGLE — draggable, position controlled by JS
   ============================================================
   IMPORTANT: Do NOT set `bottom`, `top`, `left`, or `right` here.
   JS sets `left`/`top` inline, and any static positioning in this
   rule will fight the drag behaviour.
   ============================================================ */
.theme-toggle {
  position: fixed;
  z-index: 9999;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--gold-bright);
  cursor: grab;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 0.15s ease, opacity 0.2s ease, border-color 0.2s ease, box-shadow 0.25s;
  /* left/top are set by JS — no need to declare them here */
}
.theme-toggle:hover {
  transform: translateY(-3px) rotate(-15deg);
  box-shadow: 0 12px 32px var(--gold-glow);
}
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .icon-sun,
.theme-toggle .icon-moon { transition: opacity 0.2s; }
html[data-theme="light"] .theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon,
:root:not([data-theme]) .theme-toggle .icon-moon { display: none; }

/* Drag state — suppress transition so dragging feels instant */
.theme-toggle.dragging {
  cursor: grabbing;
  opacity: 0.9;
  transform: scale(1.08);
  transition: none;
}
/* Snap animation after release */
.theme-toggle.snapping {
  transition: left 0.28s cubic-bezier(0.22, 1, 0.36, 1),
              top  0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

/* On mobile, keep it slightly smaller (size, not transform) */
@media (max-width: 700px) {
  .theme-toggle { width: 40px; height: 40px; }
  .theme-toggle svg { width: 16px; height: 16px; }
}

/* ---------- Small legal note (auth pages) ---------- */
.legal-note {
  font-size: 11.5px;
  color: var(--text-dimmer);
  text-align: center;
  margin-top: 18px;
  line-height: 1.6;
}
.legal-note a { color: var(--text-dim); text-decoration: underline; }

@media (max-width: 480px) {
  .auth-card { padding: 32px 22px 26px; border-radius: 14px; }
  .sso-row { grid-template-columns: 1fr; }
}
.tv-embed-container {
  color-scheme: light;
}

/* ============================================================
   NOTIFICATIONS DROPDOWN
   ============================================================ */
.tb-notif-wrap {
  position: relative;
}
.tb-notif-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 360px;
  max-height: 480px;
  display: none;
  flex-direction: column;
  background: rgba(15, 26, 48, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  z-index: 60;
  overflow: hidden;
  animation: notifIn 0.18s ease-out;
}
html[data-theme="light"] .tb-notif-panel {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.tb-notif-panel.open { display: flex; }
@keyframes notifIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@media (max-width: 500px) {
  .tb-notif-panel {
    width: calc(100vw - 40px);
    right: -20px;
  }
}

.tb-notif-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-soft);
  flex-shrink: 0;
}
.tb-notif-head .title {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
}
.tb-notif-head .mark-all {
  font-size: 11.5px;
  color: var(--gold-bright);
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
}
.tb-notif-head .mark-all:hover {
  background: rgba(96, 165, 250, 0.1);
  text-decoration: underline;
}

.tb-notif-list {
  overflow-y: auto;
  flex: 1;
}
.tb-notif-list::-webkit-scrollbar { width: 5px; }
.tb-notif-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }

.tb-notif-item {
  display: flex;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line-soft);
  cursor: pointer;
  transition: background 0.15s;
}
.tb-notif-item:hover { background: rgba(59, 130, 246, 0.06); }
.tb-notif-item.unread { background: rgba(59, 130, 246, 0.04); }
.tb-notif-item .ni-icon {
  width: 32px; height: 32px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: #FFFFFF;
}
.tb-notif-item .ni-icon svg { width: 15px; height: 15px; }
.tb-notif-item .ni-icon.referral    { background: linear-gradient(135deg, #4ADE80, #15803D); }
.tb-notif-item .ni-icon.loan        { background: linear-gradient(135deg, #FBBF24, #B45309); }
.tb-notif-item .ni-icon.kyc         { background: linear-gradient(135deg, #60A5FA, #1D4ED8); }
.tb-notif-item .ni-icon.transfer    { background: linear-gradient(135deg, #22D3EE, #0E7490); }
.tb-notif-item .ni-icon.default     { background: linear-gradient(135deg, #94A3B8, #475569); }

.tb-notif-item .ni-body {
  flex: 1; min-width: 0;
}
.tb-notif-item .ni-title {
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 2px;
}
.tb-notif-item .ni-msg {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.5;
  margin-bottom: 4px;
  word-break: break-word;
}
.tb-notif-item .ni-time {
  font-size: 10.5px;
  color: var(--text-dimmer);
  font-family: var(--mono);
}
.tb-notif-item .ni-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold-bright);
  flex-shrink: 0;
  align-self: center;
  box-shadow: 0 0 8px var(--gold-bright);
}

.tb-notif-empty {
  padding: 40px 20px;
  text-align: center;
  font-size: 13px;
  color: var(--text-dimmer);
}

/* Badge pulse animation for unread count */
@keyframes notifPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.15); opacity: 0.85; }
}
.tb-icon-btn .dot.pulse { animation: notifPulse 2s infinite ease-in-out; }

/* ============================================================
   VERIFIED BADGE VARIANTS (topbar)
   ============================================================ */
.tb-verified.pending {
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.4);
  color: #FDE68A;
}
.tb-verified.rejected {
  background: rgba(248, 113, 113, 0.1);
  border-color: rgba(248, 113, 113, 0.4);
  color: #FCA5A5;
}

/* ============================================================
   INLINE LOADING SPINNER (small)
   ============================================================ */
.spinner-sm {
  display: inline-block;
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--gold-bright);
  animation: spinSm 0.7s linear infinite;
  vertical-align: middle;
}
@keyframes spinSm { to { transform: rotate(360deg); } }

/* ============================================================
   LOAN HISTORY TABLE
   ============================================================ */
.loan-table { width: 100%; border-collapse: collapse; }
.loan-table th, .loan-table td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
}
.loan-table th {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dimmer);
  font-weight: 600;
}
.loan-table td.mono { font-family: var(--mono); color: var(--text); }
.loan-table tr:hover td { background: rgba(59, 130, 246, 0.04); }

/* ============================================================
   BRAND LOGO — shared across every page
   ============================================================ */
.wsc-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}

.wsc-logo-img {
  display: block;
  height: 40px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(212, 175, 106, 0.35));
}

.wsc-logo.wsc-logo-sm .wsc-logo-img { height: 30px; }
.wsc-logo.wsc-logo-lg .wsc-logo-img { height: 56px; max-width: 300px; }

html[data-theme="light"] .wsc-logo-img {
  filter: drop-shadow(0 0 4px rgba(180, 140, 60, 0.25));
}