/* ══════════════════════════════════════════════════════════════════════════
   FINPATH DESIGN SYSTEM — TUIUIÚ OFFICIAL STYLESHEET
   Reference: Finpath AI-Powered Finance SaaS Dashboard (Behance)
   Palette: Onyx Pitch Black (#08090b), Deep Card (#111419), Volt Lime (#d4f933)
   ══════════════════════════════════════════════════════════════════════════ */

:root {
  --bg: #08090b;
  --bg-subtle: #0d1015;
  --surface: #111419;
  --surface-hover: #171b22;
  --surface-card: #12151b;
  --surface-subtle: #0e1116;
  --surface-muted: #191d26;
  --surface-pill: #161a22;
  --surface-overlay: rgba(8, 9, 11, 0.85);
  
  /* Finpath Hero Brand Accent: Volt Lime */
  --accent: #d4f933;
  --accent-hover: #e2ff4f;
  --accent-subtle: rgba(212, 249, 51, 0.12);
  --accent-border: rgba(212, 249, 51, 0.28);
  --accent-glow: 0 0 24px rgba(212, 249, 51, 0.25);
  --accent-contrast: #08090b;
  
  /* Text */
  --text: #ffffff;
  --text-sub: #9ea8b6;
  --text-muted: #647082;
  
  /* Borders */
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.13);
  --border-subtle: rgba(255, 255, 255, 0.04);
  
  /* Financial Colors */
  --income: #34d399;
  --income-subtle: rgba(52, 211, 153, 0.14);
  --income-border: rgba(52, 211, 153, 0.28);
  --danger: #ff5c5c;
  --danger-subtle: rgba(255, 92, 92, 0.14);
  --danger-border: rgba(255, 92, 92, 0.28);
  --warning: #fbbf24;
  --warning-subtle: rgba(251, 191, 36, 0.14);
  --future: #818cf8;
  --future-subtle: rgba(129, 140, 248, 0.14);
  
  /* Radii */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 22px;
  --r-2xl: 26px;
  --r-full: 9999px;
  
  /* Fonts */
  --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-money: 'Plus Jakarta Sans', 'Inter', monospace;
  --tracking-tight: -0.025em;
  --tracking-wide: 0.04em;
  
  /* Shadows */
  --shadow-card: 0 12px 32px -4px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--border);
  --shadow-elevated: 0 24px 64px -8px rgba(0, 0, 0, 0.85), 0 0 0 1px var(--border-strong);
  --shadow-pill: 0 4px 16px rgba(0, 0, 0, 0.4);

  /* Bridge to styles.css legacy variable names */
  --ac: var(--accent);
  --ac2: var(--income);
  --sf: var(--surface);
  --sf2: var(--surface-hover);
  --sf-solid: var(--surface-card);
  --bd: var(--border);
  --bd2: var(--border-subtle);
  --tx: var(--text);
  --tx2: var(--text-sub);
  --mt: var(--text-muted);
  --glow-ac: var(--accent-subtle);
  --dan: var(--danger);
  --warn: var(--warning);
  --fut: var(--future);
  --grad-bg: none !important;
}

[data-theme="light"] {
  --bg: #f5f6f9;
  --bg-subtle: #ffffff;
  --surface: #ffffff;
  --surface-hover: #f3f4f6;
  --surface-card: #ffffff;
  --surface-subtle: #f9fafb;
  --surface-muted: #e5e7eb;
  --surface-pill: #eef1f5;
  --surface-overlay: rgba(245, 246, 249, 0.88);
  --text: #0b0f17;
  --text-sub: #4b5563;
  --text-muted: #9ca3af;
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.15);
  --border-subtle: rgba(0, 0, 0, 0.04);
  --accent: #bbf246;
  --accent-contrast: #0f172a;
  --shadow-card: 0 8px 24px -2px rgba(0, 0, 0, 0.06), 0 0 0 1px var(--border);
}

/* ─── RESET & BASE ───────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body {
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--bg);
  background-image: radial-gradient(circle at 50% -100px, rgba(212, 249, 51, 0.05) 0%, transparent 60%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  overflow-x: hidden;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  outline: none;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--r-full);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* ─── APP LAYOUT (FINPATH FULL-WIDTH TOPBAR) ────────────────────────────── */
.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Hide legacy sidebar */
.app-sidebar {
  display: none !important;
}

.app-main {
  flex: 1;
  width: 100%;
  margin: 0 auto;
}

.app-page-host {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}

.page {
  display: none !important;
}

.page.active {
  display: block !important;
  animation: finpathFade 0.25s ease;
}

/* ─── FINPATH HEADER (TOPBAR) ───────────────────────────────────────────── */
.finpath-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 76px;
  background-color: var(--surface-overlay);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}

.finpath-header-inner {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Brand / Logo */
.finpath-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.finpath-logo-icon {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  filter: drop-shadow(0 0 10px rgba(212, 249, 51, 0.3));
  transition: transform 0.2s ease;
}

.finpath-brand:hover .finpath-logo-icon {
  transform: scale(1.05);
}

.finpath-brand-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Navigation Capsule */
.finpath-nav-capsule {
  display: flex;
  align-items: center;
  gap: 4px;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  padding: 5px;
  overflow-x: auto;
  scrollbar-width: none;
}

.finpath-nav-capsule::-webkit-scrollbar {
  display: none;
}

.finpath-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-sub);
  background: transparent;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
}

.finpath-nav-link:hover {
  color: var(--text);
  background-color: rgba(255, 255, 255, 0.05);
}

.finpath-nav-link.active {
  color: #ffffff;
  background-color: var(--surface-muted);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Header Right Controls */
.finpath-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.finpath-theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  padding: 4px;
}

.finpath-theme-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.finpath-theme-btn.active {
  background-color: var(--surface-muted);
  color: var(--text);
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.finpath-circle-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--r-full);
  background-color: var(--surface-subtle);
  border: 1px solid var(--border);
  color: var(--text-sub);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s ease;
  position: relative;
}

.finpath-circle-btn:hover {
  background-color: var(--surface-hover);
  color: var(--text);
  border-color: var(--border-strong);
}

.finpath-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--r-full);
  background: linear-gradient(135deg, #1f2937, #111827);
  border: 1.5px solid rgba(212, 249, 51, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  cursor: pointer;
  user-select: none;
}

/* ─── SUB-HEADER (GREETING & GLOBAL ACTIONS) ────────────────────────────── */
.finpath-subbar {
  max-width: 1440px;
  margin: 28px auto 24px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.finpath-greeting {
  display: flex;
  align-items: center;
  gap: 12px;
}

.finpath-greeting h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}

.finpath-greeting-back {
  width: 36px;
  height: 36px;
  border-radius: var(--r-full);
  background-color: var(--surface-subtle);
  border: 1px solid var(--border);
  color: var(--text-sub);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.finpath-greeting-back:hover {
  color: var(--text);
  background-color: var(--surface-hover);
}

.finpath-subbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.finpath-account-select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--r-full);
  background-color: var(--surface-subtle);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.finpath-account-select:hover {
  background-color: var(--surface-hover);
  border-color: var(--border-strong);
}

.month-navigator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--r-full);
  background-color: var(--surface-subtle);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.15s ease;
}

.month-nav-btn {
  background: transparent;
  border: none;
  color: var(--text-sub);
  font-size: 16px;
  line-height: 1;
  padding: 2px 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}

.month-nav-btn:hover {
  color: var(--text);
}

.cur-month-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.qa-wrap, .fab, #fabBtn {
  display: none !important;
}

.finpath-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--r-full);
  background-color: var(--accent);
  color: var(--accent-contrast);
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(212, 249, 51, 0.25);
  transition: all 0.18s ease;
}

.finpath-btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(212, 249, 51, 0.35);
}

.finpath-btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--r-full);
  background-color: var(--surface-subtle);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.finpath-btn-pill:hover {
  background-color: var(--surface-hover);
  border-color: var(--border-strong);
}

/* ─── FINPATH 5-BLOCK DASHBOARD GRID ────────────────────────────────────── */
.finpath-grid {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 28px 60px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Top Row: 3 columns */
.finpath-top-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1.25fr;
  gap: 20px;
}

/* Bottom Row: 2 columns */
.finpath-bottom-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 20px;
}

/* Generic Finpath Card */
.finpath-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  padding: 24px;
  box-shadow: var(--shadow-card);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.finpath-card:hover {
  border-color: var(--border-strong);
}

.finpath-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.finpath-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-sub);
  display: flex;
  align-items: center;
  gap: 8px;
}

.finpath-card-action-arrow {
  width: 32px;
  height: 32px;
  border-radius: var(--r-full);
  background-color: var(--surface-subtle);
  border: 1px solid var(--border);
  color: var(--text-sub);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.finpath-card-action-arrow:hover {
  color: var(--text);
  background-color: var(--surface-hover);
  border-color: var(--border-strong);
}

/* ─── CARD 1: TOTAL BALANCE ─────────────────────────────────────────────── */
.finpath-balance-val {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--text);
  margin-bottom: 22px;
  font-family: var(--font-money);
}

/* Connected Pill Chain */
.finpath-pill-chain {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
  padding: 4px 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.finpath-pill-chain::-webkit-scrollbar {
  display: none;
}

.finpath-chain-item {
  display: flex;
  flex-direction: column;
  padding: 12px 20px;
  border-radius: var(--r-full);
  background-color: var(--surface-pill);
  border: 1px solid var(--border);
  min-width: 110px;
  box-shadow: var(--shadow-pill);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.finpath-chain-item:not(:first-child) {
  margin-left: -14px;
}

.finpath-chain-item:hover {
  transform: translateY(-2px);
  z-index: 3;
}

.finpath-chain-item strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.finpath-chain-item small {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Highlighted Hero Pill in Volt Lime */
.finpath-chain-item.is-hero {
  background-color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 6px 20px rgba(212, 249, 51, 0.4);
  z-index: 2;
}

.finpath-chain-item.is-hero strong {
  color: var(--accent-contrast);
}

.finpath-chain-item.is-hero small {
  color: rgba(8, 9, 11, 0.7);
  font-weight: 600;
}

.finpath-balance-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ─── CARD 2: INVESTMENTS & COMMITMENTS ──────────────────────────────────── */
.finpath-invest-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.finpath-invest-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: var(--r-xl);
  background-color: var(--surface-subtle);
  border: 1px solid var(--border);
  transition: all 0.18s ease;
  cursor: pointer;
}

.finpath-invest-row:hover {
  background-color: var(--surface-hover);
  border-color: var(--border-strong);
}

.finpath-invest-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.finpath-invest-ico {
  width: 36px;
  height: 36px;
  border-radius: var(--r-full);
  background-color: var(--surface-muted);
  border: 1px solid var(--border);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.finpath-invest-info strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.finpath-invest-info small {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
}

.finpath-invest-right {
  text-align: right;
}

.finpath-invest-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--r-full);
  background-color: rgba(52, 211, 153, 0.12);
  color: var(--income);
}

.finpath-invest-badge.neg {
  background-color: rgba(255, 92, 92, 0.12);
  color: var(--danger);
}

.finpath-invest-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Standout Hero Card in Volt Lime */
.finpath-invest-row.is-hero {
  background-color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(212, 249, 51, 0.3);
}

.finpath-invest-row.is-hero .finpath-invest-ico {
  background-color: #08090b;
  color: var(--accent);
  border-color: transparent;
}

.finpath-invest-row.is-hero .finpath-invest-info strong {
  color: #08090b;
  font-weight: 700;
}

.finpath-invest-row.is-hero .finpath-invest-info small {
  color: rgba(8, 9, 11, 0.7);
}

.finpath-invest-row.is-hero .finpath-invest-badge {
  background-color: rgba(8, 9, 11, 0.15);
  color: #08090b;
}

.finpath-invest-row.is-hero .finpath-invest-meta {
  color: rgba(8, 9, 11, 0.7);
}

/* ─── CARD 3: AI ASSISTANT / TUIUIÚ COPILOT ─────────────────────────────── */
.finpath-ai-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 10px 0 18px;
}

.finpath-ai-waveform {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-full);
  background: radial-gradient(circle, rgba(212, 249, 51, 0.25) 0%, transparent 70%);
  filter: drop-shadow(0 0 14px rgba(212, 249, 51, 0.5));
}

.finpath-ai-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
}

.finpath-ai-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 18px;
}

.finpath-ai-chip {
  padding: 6px 14px;
  border-radius: var(--r-full);
  background-color: var(--surface-subtle);
  border: 1px solid var(--border);
  color: var(--text-sub);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.finpath-ai-chip:hover {
  background-color: var(--surface-hover);
  color: var(--text);
  border-color: var(--border-strong);
}

/* AI Chat Input Box */
.finpath-ai-box {
  background-color: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.finpath-ai-inp {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 13px;
}

.finpath-ai-inp::placeholder {
  color: var(--text-muted);
}

.finpath-ai-bottom-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 8px;
}

.finpath-ai-pills {
  display: flex;
  align-items: center;
  gap: 6px;
}

.finpath-micro-pill {
  padding: 3px 8px;
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  background-color: var(--surface-muted);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.finpath-micro-pill:hover {
  color: var(--text);
}

.finpath-ai-send-btn {
  width: 28px;
  height: 28px;
  border-radius: var(--r-full);
  background-color: var(--accent);
  color: var(--accent-contrast);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.finpath-ai-send-btn:hover {
  transform: scale(1.08);
}

/* ─── CARD 4: CASHFLOW & ROUNDED BAR CHART ──────────────────────────────── */
.finpath-cashflow-val {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 14px;
  font-family: var(--font-money);
}

.finpath-chart-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.finpath-filter-tabs {
  display: inline-flex;
  background-color: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  padding: 3px;
  gap: 2px;
}

.finpath-filter-tab {
  padding: 5px 14px;
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.finpath-filter-tab.active {
  background-color: var(--surface-muted);
  color: var(--text);
}

/* Gorgeous Rounded Pill Bars & Chart Body */
.finpath-chart-body {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  height: 190px;
  position: relative;
  padding-top: 36px;
}

.finpath-chart-yaxis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 145px;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  padding-bottom: 24px;
}

.finpath-bars-wrapper {
  flex: 1;
  height: 145px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6px;
  position: relative;
}

.finpath-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  position: relative;
}

.finpath-bar-track {
  width: 100%;
  max-width: 28px;
  background-color: var(--surface-subtle);
  border-radius: var(--r-full);
  position: relative;
  overflow: visible;
  transition: height 0.3s ease;
}

/* Normal Dark Bar */
.finpath-bar {
  width: 100%;
  background: linear-gradient(180deg, #242a36 0%, #151821 100%);
  border-radius: var(--r-full);
  transition: all 0.2s ease;
}

/* Highlighted Hero Bar in Volt Lime */
.finpath-bar-col.is-hero::before {
  content: '';
  position: absolute;
  top: -12px;
  bottom: 22px;
  width: 1px;
  border-left: 1.5px dashed var(--accent);
  z-index: 1;
  pointer-events: none;
  opacity: 0.6;
}

.finpath-bar-col.is-hero .finpath-bar {
  background: linear-gradient(180deg, var(--accent) 0%, rgba(212, 249, 51, 0.4) 100%);
  box-shadow: 0 0 20px rgba(212, 249, 51, 0.4);
}

.finpath-bar-tooltip {
  position: absolute;
  top: -34px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 10px;
  border-radius: var(--r-full);
  background-color: #08090b;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  z-index: 2;
}

.finpath-bar-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 10px;
}

/* ─── CARD 5: TRANSACTIONS LIST ─────────────────────────────────────────── */
.finpath-tx-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.finpath-tx-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--r-lg);
  background-color: var(--surface-subtle);
  border: 1px solid var(--border);
  transition: all 0.15s ease;
  cursor: pointer;
}

.finpath-tx-row:hover {
  background-color: var(--surface-hover);
  border-color: var(--border-strong);
}

.finpath-tx-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.finpath-tx-ico {
  width: 36px;
  height: 36px;
  border-radius: var(--r-full);
  background-color: var(--surface-muted);
  border: 1px solid var(--border);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.finpath-tx-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.finpath-tx-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.finpath-tx-amount {
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-money);
  white-space: nowrap;
}

.finpath-tx-amount.neg {
  color: var(--danger);
}

.finpath-tx-amount.pos {
  color: var(--accent);
}

/* ─── SECONDARY VIEWS CONTAINER & STYLING ────────────────────────────────── */
.finpath-page {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 28px 60px;
  display: none;
  animation: finpathFade 0.2s ease;
}

.finpath-page.active {
  display: block;
}

@keyframes finpathFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Common Table & Box Styling for Finpath */
.finpath-box, .box {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 22px;
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
}

.ph {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
  flex-wrap: wrap;
}

.pt {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.ps {
  font-size: 13px;
  color: var(--text-sub);
  margin-top: 3px;
}

/* Form Inputs */
.fi, .sel, select, input[type="text"], input[type="number"], input[type="date"] {
  background-color: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 10px 14px;
  color: var(--text);
  font-size: 13px;
  transition: all 0.15s ease;
}

.fi:focus, .sel:focus, select:focus, input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-subtle);
}

.fl {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-sub);
  margin-bottom: 6px;
  display: block;
}

.frow {
  display: flex;
  gap: 14px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.fg {
  flex: 1;
  min-width: 180px;
  display: flex;
  flex-direction: column;
}

/* Action Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}

.btn-p {
  background-color: var(--accent);
  color: var(--accent-contrast);
  font-weight: 700;
}
.btn-p:hover {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-g {
  background-color: var(--surface-subtle);
  border-color: var(--border);
  color: var(--text);
}
.btn-g:hover {
  background-color: var(--surface-hover);
  border-color: var(--border-strong);
}

.btn-d {
  background-color: var(--danger-subtle);
  border-color: var(--danger-border);
  color: var(--danger);
}
.btn-d:hover {
  background-color: rgba(255, 92, 92, 0.22);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

/* Item Action Icon Buttons */
.ib {
  width: 30px;
  height: 30px;
  border-radius: var(--r-full);
  background-color: var(--surface-subtle);
  border: 1px solid var(--border);
  color: var(--text-sub);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ib:hover {
  background-color: var(--surface-hover);
  color: var(--text);
  border-color: var(--border-strong);
}

.ib.ok {
  color: var(--income);
}
.ib.ok:hover {
  background-color: var(--income-subtle);
}
.ib.del {
  color: var(--danger);
}
.ib.del:hover {
  background-color: var(--danger-subtle);
}

/* Badges */
.bdg {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 600;
  background-color: var(--surface-muted);
  border: 1px solid var(--border);
  color: var(--text-sub);
}

/* ─── MODAL OVERLAYS (FINPATH SLEEK DIALOGS) ────────────────────────────── */
.ov {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.ov.open {
  display: flex;
}

.modal {
  background-color: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-2xl);
  padding: 28px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-elevated);
  position: relative;
  animation: modalPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.mt {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 4px;
}

.ms {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.mc {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  border-radius: var(--r-full);
  background-color: var(--surface-subtle);
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mc:hover {
  background-color: var(--surface-hover);
  color: var(--text);
  border-color: var(--border-strong);
}

/* Toast */
.tst {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  padding: 10px 18px;
  border-radius: var(--r-full);
  background-color: #08090b;
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-elevated);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: finpathFade 0.25s ease;
}

/* Mobile Responsiveness */
@media (max-width: 1080px) {
  .finpath-top-grid {
    grid-template-columns: 1fr;
  }
  .finpath-bottom-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .finpath-header {
    height: auto;
    padding: 10px 0;
  }
  .finpath-header-inner {
    flex-wrap: wrap;
    padding: 0 16px;
    gap: 10px;
  }
  .finpath-nav-capsule {
    order: 3;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    display: flex;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 6px;
  }
  .finpath-nav-capsule::-webkit-scrollbar {
    display: none;
  }
  .finpath-nav-capsule button {
    flex-shrink: 0;
  }
  .finpath-subbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 0 16px;
    margin: 12px auto;
  }
  .finpath-subbar-actions {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
  }
  .finpath-subbar-actions::-webkit-scrollbar {
    display: none;
  }
  .finpath-subbar-actions > * {
    flex-shrink: 0;
  }
  .finpath-grid {
    padding: 0 16px 40px;
  }
  .app-page-host {
    padding: 0 16px 40px;
  }
}

@media (max-width: 600px) {
  .finpath-pill-chain {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 16px 0;
  }
  .finpath-chain-item {
    margin-left: 0 !important;
    width: 100% !important;
    min-width: unset !important;
    border-radius: var(--r-xl) !important;
    padding: 12px 18px !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
  }
  .finpath-chain-item small {
    margin-top: 0 !important;
    order: 1;
  }
  .finpath-chain-item strong {
    order: 2;
  }
}

/* Disable legacy background gradients */
body::before {
  display: none !important;
}

/* Mobile bottom nav - sleek Finpath styling */
.fnav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background-color: rgba(8, 9, 11, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 1000;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.fn-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.fn-item:hover, .fn-item.active {
  color: var(--accent);
}

.fn-item.active .fni {
  color: var(--accent);
}

.fni {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

/* Hide bottom nav on desktop - keep clean Finpath header */
@media (min-width: 769px) {
  .fnav {
    display: none !important;
  }
}

/* ─── SYSTEM OVERLAYS, SETUP & MODALS ────────────────────────────────────── */
.conn-toast, .sync-badge, .ptr, .btst {
  display: none !important;
}

#setup {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(8, 9, 11, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 28px 20px;
}

#setup.visible {
  display: flex !important;
}

.setup-box {
  width: 440px;
  max-width: 95vw;
  background-color: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-2xl);
  padding: 32px 28px;
  box-shadow: var(--shadow-elevated);
  animation: finpathFade 0.25s ease;
}

.setup-brand-head {
  text-align: center;
  margin-bottom: 24px;
}

.setup-brand-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--r-full);
  background-color: rgba(212, 249, 51, 0.12);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.setup-brand-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.setup-brand-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.setup-auth-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.setup-section-note, .setup-auth-intro {
  font-size: 12px;
  color: var(--text-sub);
  margin-bottom: 8px;
}

.mode-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: var(--r-xl);
  background-color: var(--surface-subtle);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  transition: all 0.18s ease;
  width: 100%;
  text-align: left;
}

.mode-btn:hover {
  background-color: var(--surface-hover);
  border-color: var(--border-strong);
}

.mode-emo {
  width: 38px;
  height: 38px;
  border-radius: var(--r-full);
  background-color: var(--surface-muted);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mode-lbl {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.mode-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.sinp, .fi {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--r-md);
  background-color: var(--surface-subtle);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 13px;
  transition: border-color 0.15s ease;
}

.sinp:focus, .fi:focus {
  border-color: var(--accent);
}

.slbl, .fl {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-sub);
  margin-bottom: 4px;
}

.sbtn, .btn-p {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--r-full);
  background-color: var(--accent);
  color: var(--accent-contrast);
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.18s ease;
  width: 100%;
}

.sbtn:hover, .btn-p:hover {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
}

.sbtn.secondary, .btn-g {
  background-color: var(--surface-muted);
  color: var(--text);
  border: 1px solid var(--border);
}

.sbtn.secondary:hover, .btn-g:hover {
  background-color: var(--surface-hover);
}

.back-btn {
  background: none;
  border: none;
  color: var(--text-sub);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.back-btn:hover {
  color: var(--text);
}

/* User Account Popover */
.acct-pop {
  display: none !important;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 200px;
  background-color: var(--surface-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-xl);
  padding: 6px;
  box-shadow: var(--shadow-elevated);
  z-index: 2000;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.acct-pop.open {
  display: flex !important;
  flex-direction: column;
  gap: 3px;
}

.pop-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: var(--r-sm);
  color: var(--text-sub);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pop-item:hover {
  background-color: var(--surface-hover);
  color: var(--text);
}

.pop-item.danger {
  color: var(--danger);
}

.pop-item.danger:hover {
  background-color: var(--danger-subtle);
}

.pop-div {
  height: 1px;
  background-color: var(--border-subtle);
  margin: 4px 6px;
}

/* Search Modal Overlay */
.srch-ov {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(8, 9, 11, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
  align-items: flex-start;
  justify-content: center;
  padding-top: 14vh;
}

.srch-ov.open {
  display: flex;
}

.srch-box {
  width: 600px;
  max-width: 92vw;
  background-color: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-elevated);
  overflow: hidden;
  animation: finpathFade 0.2s ease;
}

.srch-inp {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.srch-inp input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 15px;
}

.srch-scopes {
  display: flex;
  gap: 6px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
}

.srch-res {
  max-height: 380px;
  overflow-y: auto;
  padding: 8px 0;
}

.srch-empty {
  padding: 32px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

/* Quick Action Wrap & FAB */
.qa-wrap, .fab, #fabBtn {
  display: none !important;
}

.qa-panel {
  display: none;
  position: absolute;
  bottom: calc(100% + 14px);
  right: 0;
  background-color: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-2xl);
  padding: 16px;
  box-shadow: var(--shadow-elevated);
  width: 320px;
  flex-direction: column;
  gap: 10px;
}

.qa-wrap.open .qa-panel {
  display: flex;
}

.qa-fast-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.qa-amount-input, .qa-note {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--r-md);
  background-color: var(--surface-subtle);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 13px;
}

.qa-amount-input:focus, .qa-note:focus {
  border-color: var(--accent);
}

.qa-save {
  padding: 10px;
  border-radius: var(--r-full);
  background-color: var(--accent);
  color: var(--accent-contrast);
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.qa-save:hover {
  background-color: var(--accent-hover);
}

.fab {
  width: 52px;
  height: 52px;
  border-radius: var(--r-full);
  background-color: var(--accent);
  color: var(--accent-contrast);
  border: none;
  box-shadow: 0 8px 24px rgba(212, 249, 51, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fab:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 30px rgba(212, 249, 51, 0.5);
}

/* Modals Overlay */
.ov {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(8, 9, 11, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.ov.open {
  display: flex;
}

.modal {
  width: 520px;
  max-width: 95vw;
  max-height: 90vh;
  overflow-y: auto;
  background-color: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-2xl);
  padding: 28px;
  box-shadow: var(--shadow-elevated);
  position: relative;
  animation: finpathFade 0.2s ease;
}

.mc {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  border-radius: var(--r-full);
  transition: color 0.15s ease;
}

.mc:hover {
  color: var(--text);
}

.mt {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 4px;
}

.ms {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.frow {
  display: flex;
  gap: 12px;
}

.frow .fg {
  flex: 1;
}

.fg {
  margin-bottom: 14px;
}

.ma {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

