/* ============================================================================
   EPF Invest — Institutional Luxury Financial Design System
   Multi-Theme Engine & High-End Analytics UI (Obsidian Primary Theme)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root,
[data-theme="obsidian"] {
  /* Surface Ramp (Obsidian Crimson Luxury) */
  --bg-page: #08090e;
  --bg-surface: #0e1017;
  --bg-panel: rgba(14, 16, 26, 0.75);
  --bg-panel-raised: rgba(26, 18, 26, 0.85);
  --bg-card: rgba(22, 16, 26, 0.68);
  --bg-card-hover: rgba(36, 20, 34, 0.88);
  --bg-input: rgba(16, 13, 20, 0.85);
  --bg-glass-highlight: rgba(255, 255, 255, 0.05);

  /* Borders & Hairlines */
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-base: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(244, 63, 94, 0.45);
  --border-glow: rgba(244, 63, 94, 0.35);
  --border-highlight: rgba(255, 255, 255, 0.09);

  /* Typography Ramp */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-accent: #fda4af;

  /* Accents & Signals (Hibiscus Bunga Raya Crimson Palette) */
  --accent: #f43f5e;
  --accent-hover: #e11d48;
  --accent-secondary: #fb7185;
  --accent-wash: rgba(244, 63, 94, 0.12);
  --accent-glow: rgba(244, 63, 94, 0.35);
  
  --green: #10b981;
  --green-bg: rgba(16, 185, 129, 0.12);
  --green-border: rgba(16, 185, 129, 0.28);
  --red: #f43f5e;
  --red-bg: rgba(244, 63, 94, 0.12);
  --red-border: rgba(244, 63, 94, 0.28);
  --amber: #f59e0b;
  --amber-bg: rgba(245, 158, 11, 0.12);

  /* Ambient Mesh Gradients (Luxury White / Moonlight Platinum Glow) */
  --smoke-1: rgba(255, 255, 255, 0.12);
  --smoke-2: rgba(255, 255, 255, 0.07);
  --smoke-bg: radial-gradient(circle at 50% 0%, #151722 0%, #08090e 100%);
  --chart-primary: #f43f5e;
}

/* Global Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 14px;
  background-color: var(--bg-page) !important;
  color-scheme: dark;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-page) !important;
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  letter-spacing: -0.01em;
}

/* Numeric & Code Tabular Typography */
.font-mono-numeric {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* Ambient Background Glow Mesh */
.smoke-container,
.purple-smoke-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 100vw;
  height: 100%;
  max-height: 100vh;
  z-index: -10;
  overflow: hidden !important;
  pointer-events: none;
  background: var(--smoke-bg);
  transition: background 0.4s ease;
}

.smoke-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.7;
  pointer-events: none;
  will-change: transform;
  transition: background 0.4s ease;
}

.smoke-blob-1 {
  top: -10%;
  left: 10%;
  width: 55vw;
  height: 55vw;
  background: radial-gradient(circle, var(--smoke-1) 0%, rgba(0, 0, 0, 0) 70%);
  animation: float-smoke-1 25s infinite alternate ease-in-out;
}

.smoke-blob-2 {
  bottom: -15%;
  right: -10%;
  width: 65vw;
  height: 65vw;
  background: radial-gradient(circle, var(--smoke-2) 0%, rgba(0, 0, 0, 0) 70%);
  animation: float-smoke-2 30s infinite alternate ease-in-out;
}

.smoke-blob-3 {
  top: 40%;
  right: 35%;
  width: 35vw;
  height: 35vw;
  background: radial-gradient(circle, var(--smoke-1) 0%, rgba(0, 0, 0, 0) 65%);
  opacity: 0.4;
  animation: float-smoke-1 20s infinite alternate-reverse ease-in-out;
}

@keyframes float-smoke-1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(6%, 10%) scale(1.08); }
  100% { transform: translate(-4%, -6%) scale(0.95); }
}

@keyframes float-smoke-2 {
  0% { transform: translate(0, 0) scale(0.95); }
  50% { transform: translate(-8%, -12%) scale(1.1); }
  100% { transform: translate(4%, 6%) scale(1); }
}

/* Glassmorphic Luxury Surfaces */
.glass-panel {
  background: var(--bg-panel) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  border: 1px solid var(--border-subtle) !important;
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.5), inset 0 1px 0 0 var(--border-highlight) !important;
  border-radius: 16px;
}

.glass-card,
.chart-card,
#bento-sector-card,
#bento-holding-card,
#bento-active-card,
[class*="glow-hover"] {
  background: var(--bg-card) !important;
  backdrop-filter: blur(20px) saturate(150%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(150%) !important;
  border: 1px solid var(--border-subtle) !important;
  box-shadow: 0 10px 30px -6px rgba(0, 0, 0, 0.4), inset 0 1px 0 0 var(--border-highlight) !important;
  border-radius: 16px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover,
.chart-card:hover,
#bento-sector-card:hover,
#bento-holding-card:hover,
#bento-active-card:hover,
[class*="glow-hover"]:hover {
  background: var(--bg-card-hover) !important;
  border-color: var(--border-strong) !important;
  box-shadow: 0 14px 40px -8px rgba(0, 0, 0, 0.6), 0 0 28px -4px var(--accent-glow), inset 0 1px 0 0 rgba(255, 255, 255, 0.15) !important;
  transform: translateY(-2px);
}

/* Sidebar & Header Glass Navigation */
aside {
  background: var(--bg-panel) !important;
  backdrop-filter: blur(28px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(190%) !important;
  border-right: 1px solid var(--border-subtle) !important;
  box-shadow: 4px 0 24px -4px rgba(0, 0, 0, 0.45);
}

#mobile-header {
  background: var(--bg-panel) !important;
  backdrop-filter: blur(28px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(190%) !important;
  border-bottom: 1px solid var(--border-subtle) !important;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.4);
}

#desktop-global-header {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

/* Navigation Sidebar (Luxury Dark Ambient Glow) */
aside#app-sidebar {
  background: radial-gradient(120% 120% at 0% 0%, rgba(26, 22, 40, 0.75) 0%, rgba(12, 11, 20, 0.9) 60%, rgba(8, 9, 14, 0.98) 100%) !important;
  backdrop-filter: blur(28px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(190%) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 6px 0 30px rgba(0, 0, 0, 0.5) !important;
}

/* ============================================================================
   Luxury Card Design Language (Differentiated Gradients + Organic Light Diffusion)
   ========================================================================== */

/* Universal Glass Card Base */
.glass-card {
  position: relative !important;
  overflow: hidden !important;
  border-radius: 20px !important;
  backdrop-filter: blur(28px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(190%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.16) !important;
  box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.6), inset 0 1px 0 0 rgba(255, 255, 255, 0.12) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.glass-card > * {
  position: relative;
  z-index: 1;
}

/* --- Card Variant 1: Hero Spotlight (Rising Platinum White Bottom Dome) --- */
#bento-holding-card {
  background: radial-gradient(130% 130% at 50% 0%, rgba(30, 32, 44, 0.65) 0%, rgba(14, 16, 24, 0.85) 50%, rgba(8, 8, 14, 0.96) 100%) !important;
}

#bento-holding-card::after {
  content: '';
  position: absolute;
  bottom: -32px;
  left: 50%;
  transform: translateX(-50%);
  width: 85%;
  height: 95px;
  background: radial-gradient(ellipse at 50% 100%, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.18) 40%, rgba(255, 255, 255, 0.04) 65%, transparent 80%) !important;
  filter: blur(22px) !important;
  pointer-events: none;
  border-radius: 50%;
  z-index: 0;
}

/* --- Card Variant 2: Top-Left Ambient White Smoke (Top Sector Card) --- */
#bento-sector-card {
  background: radial-gradient(120% 120% at 0% 0%, rgba(255, 255, 255, 0.08) 0%, rgba(20, 22, 32, 0.7) 45%, rgba(9, 9, 16, 0.95) 100%) !important;
}

#bento-sector-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

#bento-sector-card::after {
  content: '';
  position: absolute;
  top: -35px;
  left: -35px;
  width: 175px;
  height: 155px;
  background: radial-gradient(ellipse at 35% 35%, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.16) 40%, rgba(255, 255, 255, 0.03) 65%, transparent 80%) !important;
  filter: blur(20px) !important;
  pointer-events: none;
  border-radius: 50%;
  z-index: 0;
}

/* --- Card Variant 3: Top-Right Angled White Smoke Plume (Active Positions Card) --- */
#bento-active-card {
  background: radial-gradient(110% 110% at 100% 0%, rgba(255, 255, 255, 0.08) 0%, rgba(20, 22, 32, 0.7) 45%, rgba(9, 9, 16, 0.95) 100%) !important;
}

#bento-active-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 55%;
  background: radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

#bento-active-card::after {
  content: '';
  position: absolute;
  top: -35px;
  right: -35px;
  width: 175px;
  height: 155px;
  background: radial-gradient(ellipse at 65% 35%, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.16) 40%, rgba(255, 255, 255, 0.03) 65%, transparent 80%) !important;
  filter: blur(20px) !important;
  pointer-events: none;
  border-radius: 50%;
  z-index: 0;
}

/* --- Card Variant 4: Wide Horizon Panoramic White Smoke (Portfolio Trend Card) --- */
.portfolio-trend-card {
  background: radial-gradient(160% 110% at 50% 0%, rgba(255, 255, 255, 0.07) 0%, rgba(18, 20, 30, 0.75) 45%, rgba(8, 8, 14, 0.95) 100%) !important;
}

.portfolio-trend-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 45%;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.1) 0%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

.portfolio-trend-card::after {
  content: '';
  position: absolute;
  bottom: -45px;
  left: 10%;
  width: 80%;
  height: 115px;
  background: radial-gradient(ellipse at 50% 90%, rgba(255, 255, 255, 0.26) 0%, rgba(255, 255, 255, 0.12) 45%, rgba(255, 255, 255, 0.02) 70%, transparent 85%) !important;
  filter: blur(28px) !important;
  pointer-events: none;
  border-radius: 50%;
  z-index: 0;
}

/* --- Card Variant 5A: Upper-Right Flank White Smoke (Smart Money Inflows) --- */
.smart-inflows-card {
  background: radial-gradient(130% 130% at 90% 20%, rgba(255, 255, 255, 0.08) 0%, rgba(18, 22, 28, 0.75) 45%, rgba(8, 9, 14, 0.96) 100%) !important;
}

.smart-inflows-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 35px;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.12) 0%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

.smart-inflows-card::after {
  content: '';
  position: absolute;
  top: -20px;
  right: -15px;
  width: 145px;
  height: 145px;
  background: radial-gradient(circle at 60% 40%, rgba(255, 255, 255, 0.32) 0%, rgba(255, 255, 255, 0.15) 35%, rgba(255, 255, 255, 0.03) 65%, transparent 80%) !important;
  filter: blur(20px) !important;
  pointer-events: none;
  border-radius: 50%;
  z-index: 0;
}

/* --- Card Variant 5B: Bottom-Right Corner Rising White Smoke (Smart Money Outflows) --- */
.smart-outflows-card {
  background: radial-gradient(130% 130% at 85% 85%, rgba(255, 255, 255, 0.08) 0%, rgba(22, 18, 26, 0.75) 45%, rgba(8, 9, 14, 0.96) 100%) !important;
}

.smart-outflows-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 35px;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.12) 0%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

.smart-outflows-card::after {
  content: '';
  position: absolute;
  bottom: -28px;
  right: -20px;
  width: 160px;
  height: 130px;
  background: radial-gradient(ellipse at 65% 75%, rgba(255, 255, 255, 0.32) 0%, rgba(255, 255, 255, 0.15) 35%, rgba(255, 255, 255, 0.03) 65%, transparent 80%) !important;
  filter: blur(22px) !important;
  pointer-events: none;
  border-radius: 50%;
  z-index: 0;
}

/* Fallback for legacy filings card */
.recent-filings-card {
  background: linear-gradient(180deg, rgba(22, 25, 36, 0.65) 0%, rgba(14, 16, 24, 0.8) 50%, rgba(9, 9, 16, 0.95) 100%) !important;
}

.recent-filings-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, transparent 100%);
  pointer-events: none;
}

/* ============================================================================
   Mobile Specific Luxury Glow & Light Diffusion
   ========================================================================== */
/* Mobile Card 1: Top-Center Subtle White Smoke Arch */
#mobile-hero-balance-card {
  background: radial-gradient(130% 120% at 50% 0%, rgba(255, 255, 255, 0.10) 0%, rgba(24, 26, 36, 0.8) 45%, rgba(10, 10, 16, 0.96) 100%) !important;
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.5), inset 0 1px 0 0 rgba(255, 255, 255, 0.15) !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  position: relative;
  overflow: hidden;
}

#mobile-hero-balance-card::after {
  content: '';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 75%;
  height: 50px;
  background: radial-gradient(ellipse at 50% 20%, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.10) 45%, transparent 75%) !important;
  filter: blur(14px) !important;
  pointer-events: none;
  border-radius: 50%;
  z-index: 0;
}

/* Mobile Card 2: Top-Left White Smoke Plume */
#mobile-bento-sector-card {
  background: radial-gradient(120% 120% at 0% 0%, rgba(255, 255, 255, 0.10) 0%, rgba(20, 22, 34, 0.8) 45%, rgba(9, 9, 16, 0.96) 100%) !important;
  box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.5), inset 0 1px 0 0 rgba(255, 255, 255, 0.15) !important;
  position: relative;
  overflow: hidden;
}

#mobile-bento-sector-card::after {
  content: '';
  position: absolute;
  top: -15px;
  left: -15px;
  width: 105px;
  height: 95px;
  background: radial-gradient(ellipse at 35% 35%, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.10) 45%, transparent 75%) !important;
  filter: blur(14px) !important;
  pointer-events: none;
  border-radius: 50%;
  z-index: 0;
}

/* Mobile Card 3: Bottom-Center Rising White Smoke Plume */
#mobile-bento-holding-card {
  background: radial-gradient(130% 130% at 50% 0%, rgba(30, 32, 48, 0.75) 0%, rgba(14, 16, 26, 0.88) 50%, rgba(8, 8, 14, 0.98) 100%) !important;
  box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.5), inset 0 1px 0 0 rgba(255, 255, 255, 0.15) !important;
  position: relative;
  overflow: hidden;
}

#mobile-bento-holding-card::after {
  content: '';
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: 60px;
  background: radial-gradient(ellipse at 50% 100%, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.12) 40%, transparent 70%) !important;
  filter: blur(14px) !important;
  pointer-events: none;
  border-radius: 50%;
  z-index: 0;
}

/* Mobile Card 4: Wide Panoramic Horizon White Smoke */
#mobile-portfolio-card,
#mobile-returns-chart-card {
  background: radial-gradient(140% 110% at 50% 0%, rgba(255, 255, 255, 0.08) 0%, rgba(18, 20, 30, 0.78) 45%, rgba(8, 9, 14, 0.98) 100%) !important;
  box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.6), inset 0 1px 0 0 rgba(255, 255, 255, 0.15) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  position: relative;
  overflow: hidden;
}

#mobile-portfolio-card::after,
#mobile-returns-chart-card::after {
  content: '';
  position: absolute;
  bottom: -24px;
  left: 15%;
  width: 70%;
  height: 65px;
  background: radial-gradient(ellipse at 50% 90%, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.08) 50%, transparent 80%) !important;
  filter: blur(16px) !important;
  pointer-events: none;
  border-radius: 50%;
  z-index: 0;
}

/* Mobile Card 5: Bottom-Right Corner Rising White Smoke Plume */
#mobile-activity-card {
  background: radial-gradient(130% 130% at 85% 85%, rgba(255, 255, 255, 0.08) 0%, rgba(20, 22, 32, 0.8) 45%, rgba(8, 9, 14, 0.98) 100%) !important;
  box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.5), inset 0 1px 0 0 rgba(255, 255, 255, 0.12) !important;
  position: relative;
  overflow: hidden;
}

#mobile-activity-card::after {
  content: '';
  position: absolute;
  bottom: -18px;
  right: -15px;
  width: 115px;
  height: 95px;
  background: radial-gradient(ellipse at 65% 75%, rgba(255, 255, 255, 0.26) 0%, rgba(255, 255, 255, 0.10) 45%, transparent 75%) !important;
  filter: blur(15px) !important;
  pointer-events: none;
  border-radius: 50%;
  z-index: 0;
}

/* Mobile Holdings Cards: Non-repetitive White Smoke */
#mobile-pie-company-card {
  background: radial-gradient(120% 120% at 20% 50%, rgba(255, 255, 255, 0.10) 0%, rgba(18, 20, 30, 0.8) 48%, rgba(9, 8, 16, 0.98) 100%) !important;
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.5), inset 0 1px 0 0 rgba(255, 255, 255, 0.14) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  position: relative;
  overflow: hidden;
}

#mobile-pie-company-card::after {
  content: '';
  position: absolute;
  top: 15px;
  left: -15px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle at 40% 50%, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.10) 45%, transparent 75%) !important;
  filter: blur(15px) !important;
  pointer-events: none;
  border-radius: 50%;
  z-index: 0;
}

#mobile-pie-sector-card {
  background: radial-gradient(120% 120% at 80% 20%, rgba(255, 255, 255, 0.10) 0%, rgba(18, 20, 30, 0.8) 48%, rgba(9, 8, 16, 0.98) 100%) !important;
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.5), inset 0 1px 0 0 rgba(255, 255, 255, 0.14) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  position: relative;
  overflow: hidden;
}

#mobile-pie-sector-card::after {
  content: '';
  position: absolute;
  top: -15px;
  right: -15px;
  width: 120px;
  height: 100px;
  background: radial-gradient(ellipse at 65% 35%, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.10) 45%, transparent 75%) !important;
  filter: blur(15px) !important;
  pointer-events: none;
  border-radius: 50%;
  z-index: 0;
}

@media (max-width: 767px) {
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100% !important;
    touch-action: pan-y !important;
    position: relative;
  }

  #app-root, #mobile-app-layout, #mobile-view-container, main {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100% !important;
    touch-action: pan-y !important;
  }

  #mobile-sector-pills {
    touch-action: pan-x pan-y !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }
}

/* --- Card Variant 6: Left-Center Donut White Smoke Halo (Allocation by Company) --- */
#pie-company-card {
  background: radial-gradient(130% 130% at 25% 50%, rgba(255, 255, 255, 0.08) 0%, rgba(18, 20, 30, 0.78) 45%, rgba(9, 8, 16, 0.96) 100%) !important;
  position: relative !important;
  overflow: hidden !important;
}

#pie-company-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 35px;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.10) 0%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

#pie-company-card::after {
  content: '';
  position: absolute;
  top: 50%;
  left: -20px;
  transform: translateY(-50%);
  width: 195px;
  height: 175px;
  background: radial-gradient(ellipse at 40% 50%, rgba(255, 255, 255, 0.32) 0%, rgba(255, 255, 255, 0.14) 40%, rgba(255, 255, 255, 0.03) 65%, transparent 80%) !important;
  filter: blur(24px) !important;
  pointer-events: none;
  border-radius: 50%;
  z-index: 0;
}

/* --- Card Variant 7: Top-Right Diagonal White Smoke Spray (Allocation by Sector) --- */
#pie-sector-card {
  background: radial-gradient(130% 130% at 85% 20%, rgba(255, 255, 255, 0.08) 0%, rgba(18, 20, 30, 0.78) 45%, rgba(9, 8, 16, 0.96) 100%) !important;
  position: relative !important;
  overflow: hidden !important;
}

#pie-sector-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 35px;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.10) 0%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

#pie-sector-card::after {
  content: '';
  position: absolute;
  top: -30px;
  right: -25px;
  width: 190px;
  height: 170px;
  background: radial-gradient(ellipse at 65% 35%, rgba(255, 255, 255, 0.32) 0%, rgba(255, 255, 255, 0.14) 40%, rgba(255, 255, 255, 0.03) 65%, transparent 80%) !important;
  filter: blur(22px) !important;
  pointer-events: none;
  border-radius: 50%;
  z-index: 0;
}

/* --- Card Variant 8: Clean Crisp Data Table with White Smoke Crests (Holdings & Transactions) --- */
.table-card {
  background: radial-gradient(160% 120% at 50% 0%, rgba(255, 255, 255, 0.07) 0%, rgba(18, 20, 30, 0.78) 45%, rgba(9, 9, 16, 0.96) 100%) !important;
  position: relative !important;
  overflow: hidden !important;
}

/* Holdings Table: Center Horizon White Smoke Crest */
.holdings-table-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 40px;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.12) 0%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

.holdings-table-card::after {
  content: '';
  position: absolute;
  top: -30px;
  left: 20%;
  width: 60%;
  height: 80px;
  background: radial-gradient(ellipse at 50% 30%, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.10) 45%, rgba(255, 255, 255, 0.02) 70%, transparent 85%) !important;
  filter: blur(24px) !important;
  pointer-events: none;
  border-radius: 50%;
  z-index: 0;
}

/* Transactions Table: Top-Right Diagonal White Smoke Aurora */
.tx-table-card {
  background: radial-gradient(160% 120% at 75% 0%, rgba(255, 255, 255, 0.08) 0%, rgba(18, 20, 30, 0.78) 45%, rgba(9, 9, 16, 0.96) 100%) !important;
}

.tx-table-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 45px;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.12) 0%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

.tx-table-card::after {
  content: '';
  position: absolute;
  top: -35px;
  right: 8%;
  width: 50%;
  height: 90px;
  background: radial-gradient(ellipse at 70% 30%, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.10) 45%, rgba(255, 255, 255, 0.02) 70%, transparent 85%) !important;
  filter: blur(26px) !important;
  pointer-events: none;
  border-radius: 50%;
  z-index: 0;
}

/* Glass Card Interactive Hover Glow */
.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.3) !important;
  border-top-color: rgba(255, 255, 255, 0.45) !important;
  box-shadow: 0 20px 48px -10px rgba(0, 0, 0, 0.75), 0 0 30px -5px rgba(255, 255, 255, 0.18), inset 0 1px 0 0 rgba(255, 255, 255, 0.25) !important;
  transform: translateY(-2px);
}

/* ============================================================================
   Navigation Buttons (Left-to-Right Crimson Silk Gradient, Clean Borderless)
   ========================================================================== */
.tab-btn {
  position: relative !important;
  overflow: hidden !important;
  border-radius: 12px !important;
  border: none !important;
  outline: none !important;
  transition: color 0.22s ease !important;
  color: #94a3b8 !important;
  font-weight: 500 !important;
  font-size: 13px !important;
  background: transparent !important;
  z-index: 1;
}

.tab-btn > * {
  position: relative;
  z-index: 2;
}

.tab-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(244, 63, 94, 0.58) 0%, rgba(225, 29, 72, 0.42) 40%, rgba(159, 18, 57, 0.16) 80%, rgba(0, 0, 0, 0) 100%);
  transform: translateX(-100%);
  opacity: 0;
  transition: transform 0.36s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s ease;
  z-index: 1;
  pointer-events: none;
}

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.04) !important;
  color: #f8fafc !important;
}

/* Active State (Left-to-Right Hibiscus Crimson Gradient Sweep) */
.tab-btn.active {
  color: #ffffff !important;
  font-weight: 600 !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.tab-btn.active::before {
  opacity: 1 !important;
  transform: translateX(0) !important;
}

.tab-btn.active svg {
  color: #ffffff !important;
  filter: drop-shadow(0 0 6px rgba(251, 113, 133, 0.6));
}

.tab-panel {
  display: none;
  animation: panelFadeIn 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.tab-panel.active {
  display: flex !important;
  flex-direction: column !important;
}

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

/* ============================================================================
   Canvas Sizing & Container Constraints (Zero Overflow & Fixed Boundaries)
   ========================================================================== */
canvas {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
}

.portfolio-trend-card,
.recent-filings-card {
  flex: 1 1 0% !important;
  min-height: 0 !important;
  height: 100% !important;
  max-height: none !important;
}

.returns-chart-card {
  flex: 1 1 0% !important;
  min-height: 0 !important;
  height: 100% !important;
  max-height: none !important;
}

.chart-body {
  flex: 1 1 0% !important;
  min-height: 200px !important;
  height: 100% !important;
  max-height: none !important;
  position: relative;
  width: 100%;
  overflow: hidden;
}

.chart-footer {
  flex-shrink: 0 !important;
  margin-top: 8px !important;
  padding-top: 8px !important;
  padding-bottom: 2px !important;
}

.returns-chart-card {
  flex: 1 1 0% !important;
  min-height: 0 !important;
  height: 100% !important;
}

.chart-body-tall {
  flex: 1 1 0% !important;
  min-height: 0 !important;
  height: 100% !important;
  position: relative;
  width: 100%;
  overflow: hidden;
}

.table-scroll-wrapper {
  flex: 1 1 0% !important;
  min-height: 0 !important;
  height: 100% !important;
  overflow-y: auto !important;
  overflow-x: auto !important;
  position: relative;
}

.table-scroll-wrapper thead {
  position: sticky !important;
  top: 0 !important;
  z-index: 25 !important;
}

.table-scroll-wrapper thead th {
  background-color: #131219 !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 25 !important;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08) !important;
  transition: background-color 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease !important;
}

.table-card:hover .table-scroll-wrapper thead th,
.glass-card:hover .table-scroll-wrapper thead th {
  background-color: #221320 !important;
  box-shadow: inset 0 -1px 0 rgba(244, 63, 94, 0.45) !important;
}

.pie-chart-container {
  width: 180px !important;
  height: 180px !important;
  min-width: 180px !important;
  max-width: 180px !important;
  min-height: 180px !important;
  max-height: 180px !important;
  position: relative;
  flex-shrink: 0;
}

.pie-chart-container-compact {
  width: 130px !important;
  height: 130px !important;
  min-width: 130px !important;
  max-width: 130px !important;
  min-height: 130px !important;
  max-height: 130px !important;
  position: relative;
  flex-shrink: 0;
}

/* Floating Precision Chart Tooltip (Never breaks layout flow) */
.chart-tooltip {
  position: fixed !important;
  pointer-events: none !important;
  z-index: 99999 !important;
  background: rgba(15, 12, 20, 0.96) !important;
  backdrop-filter: blur(14px) !important;
  border: 1px solid rgba(244, 63, 94, 0.35) !important;
  border-radius: 8px !important;
  padding: 6px 10px !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.6), 0 0 12px rgba(244, 63, 94, 0.25) !important;
  display: none;
  font-family: var(--font-sans) !important;
  line-height: 1.35 !important;
}

.tt-label {
  font-size: 10.5px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  margin-bottom: 2px !important;
}

.tt-value {
  font-size: 11px !important;
  font-weight: 700 !important;
  font-family: var(--font-mono) !important;
}

.tt-positive {
  color: #34d399 !important;
}

.tt-negative {
  color: #fb7185 !important;
}

@media (max-width: 767px) {
  body.mobile-locked,
  html.mobile-locked {
    overflow: hidden !important;
    height: 100vh !important;
    max-height: 100vh !important;
    position: fixed !important;
    width: 100% !important;
    overscroll-behavior: none !important;
    touch-action: pan-x !important;
  }

  .chart-body {
    height: 160px !important;
    min-height: 160px !important;
    max-height: 160px !important;
  }
  .chart-body-tall {
    height: 190px !important;
    min-height: 190px !important;
    max-height: 190px !important;
  }

  /* Performance: Pause continuous GPU composition of mesh animations on mobile */
  .smoke-blob {
    animation: none !important;
    opacity: 0.15 !important;
  }
  .smoke-container {
    pointer-events: none !important;
  }
}

/* ============================================================================
   Segmented Control / Time Toggles (Hibiscus Crimson Gradient Pill)
   ========================================================================== */
.chart-toggle-group {
  background: rgba(18, 12, 18, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 9999px !important;
  padding: 3px !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4) !important;
  display: inline-flex !important;
  align-items: center !important;
}

.chart-toggle {
  color: #8e95a5 !important;
  border-radius: 9999px !important;
  padding: 4px 13px !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
  border: 1px solid transparent !important;
  background: transparent !important;
}

.chart-toggle:hover {
  color: #ffffff !important;
}

/* Active State (Soft Hibiscus Crimson Silk Gradient Pill) */
.chart-toggle.active {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.85) 0%, rgba(225, 29, 72, 0.75) 50%, rgba(190, 18, 60, 0.7) 100%) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.35), 0 2px 10px rgba(244, 63, 94, 0.4) !important;
}

/* Chart Canvas Responsive Containers */
.chart-body {
  width: 100% !important;
  min-height: 280px !important;
  height: 100% !important;
  position: relative !important;
  display: flex !important;
  flex: 1 1 0% !important;
}

/* Linear & Bar Chart Canvases stretch to fit grid coordinates */
#portfolio-canvas,
#returns-canvas {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
}

/* Pie & Donut Canvases MUST preserve strict 1:1 circular aspect ratio (No stretching) */
.pie-body {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 220px !important;
  position: relative !important;
}

.pie-body canvas,
#pie-company-canvas,
#pie-sector-canvas {
  position: relative !important;
  display: block !important;
  margin: 0 auto !important;
  aspect-ratio: 1 / 1 !important;
}

/* Luxury Promo Card in Sidebar / Dashboard */
.luxury-cta-card {
  background: linear-gradient(135deg, var(--accent-wash) 0%, rgba(0, 0, 0, 0.4) 100%) !important;
  border: 1px solid var(--border-strong) !important;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px -4px var(--accent-glow);
}

.luxury-cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, var(--accent-glow) 0%, transparent 60%);
  opacity: 0.25;
  pointer-events: none;
}

/* Stock Logo & Symbol (Strictly Circular, Horizontal Single-Line, Size 32px) */
.stock-symbol-link {
  text-decoration: none;
  color: inherit;
  display: inline-flex !important;
  align-items: center !important;
}

.stock-symbol {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px !important;
}

.stock-icon-img {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  max-width: 32px !important;
  border-radius: 9999px !important; /* STRICTLY CIRCULAR */
  object-fit: cover !important;
  background: var(--bg-card) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  display: inline-block !important;
  flex-shrink: 0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35) !important;
  aspect-ratio: 1 / 1 !important;
}

.fallback-icon {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  max-width: 32px !important;
  border-radius: 9999px !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35) !important;
  aspect-ratio: 1 / 1 !important;
}

.stock-name {
  font-weight: 700;
  font-size: 12.5px;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* Pie Legend High-End Chips Matrix */
.pie-legend {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  width: 100%;
}

.pie-legend-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  transition: all 0.2s ease;
}

.pie-legend-chip:hover {
  background: var(--accent-wash);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.pie-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  flex-shrink: 0;
}

/* --- Card Variant 9: Returns Chart Panoramic Horizon Smoke --- */
.returns-chart-card {
  background: radial-gradient(160% 120% at 50% 0%, rgba(255, 255, 255, 0.07) 0%, rgba(18, 20, 30, 0.78) 45%, rgba(8, 8, 14, 0.96) 100%) !important;
  position: relative !important;
  overflow: hidden !important;
}

.returns-chart-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 45px;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.12) 0%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

.returns-chart-card::after {
  content: '';
  position: absolute;
  bottom: -45px;
  left: 10%;
  width: 80%;
  height: 110px;
  background: radial-gradient(ellipse at 50% 90%, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.10) 45%, rgba(255, 255, 255, 0.02) 70%, transparent 85%) !important;
  filter: blur(26px) !important;
  pointer-events: none;
  border-radius: 50%;
  z-index: 0;
}

/* --- Card Variant 10: Top Capital Movers Cards (Diagonal White Smoke Counterpoints) --- */
.mover-card-accumulated {
  background: radial-gradient(130% 130% at 20% 20%, rgba(255, 255, 255, 0.08) 0%, rgba(18, 22, 28, 0.75) 45%, rgba(8, 9, 14, 0.96) 100%) !important;
  position: relative !important;
  overflow: hidden !important;
}

.mover-card-accumulated::after {
  content: '';
  position: absolute;
  top: -25px;
  left: -20px;
  width: 160px;
  height: 140px;
  background: radial-gradient(ellipse at 35% 35%, rgba(255, 255, 255, 0.30) 0%, rgba(167, 243, 208, 0.12) 35%, rgba(255, 255, 255, 0.03) 65%, transparent 80%) !important;
  filter: blur(20px) !important;
  pointer-events: none;
  border-radius: 50%;
  z-index: 0;
}

.mover-card-divested {
  background: radial-gradient(130% 130% at 80% 80%, rgba(255, 255, 255, 0.08) 0%, rgba(22, 18, 26, 0.75) 45%, rgba(8, 9, 14, 0.96) 100%) !important;
  position: relative !important;
  overflow: hidden !important;
}

.mover-card-divested::after {
  content: '';
  position: absolute;
  bottom: -25px;
  right: -20px;
  width: 160px;
  height: 140px;
  background: radial-gradient(ellipse at 65% 65%, rgba(255, 255, 255, 0.30) 0%, rgba(254, 205, 211, 0.12) 35%, rgba(255, 255, 255, 0.03) 65%, transparent 80%) !important;
  filter: blur(20px) !important;
  pointer-events: none;
  border-radius: 50%;
  z-index: 0;
}

/* Returns Stat Bento Cards (Consistent White Smoke with Rotating Non-Repetitive Micro-Smoke) */
.returns-stat-card {
  background: rgba(20, 22, 32, 0.75) !important;
  backdrop-filter: blur(18px) saturate(170%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(170%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 16px !important;
  padding: 12px 14px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  min-height: 94px !important;
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.45), inset 0 1px 0 0 rgba(255, 255, 255, 0.12) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  position: relative !important;
  overflow: hidden !important;
}

.returns-stat-card > * {
  position: relative;
  z-index: 1;
}

.returns-stat-card::after {
  content: '';
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  z-index: 0;
}

/* 1. Total Acquired: Top-Left White Smoke */
.returns-stat-card:nth-child(1) {
  background: radial-gradient(130% 130% at 20% 20%, rgba(255, 255, 255, 0.08) 0%, rgba(20, 22, 32, 0.78) 50%, rgba(9, 9, 16, 0.96) 100%) !important;
}
.returns-stat-card:nth-child(1)::after {
  top: -16px;
  left: -16px;
  width: 85px;
  height: 75px;
  background: radial-gradient(ellipse at 35% 35%, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.10) 45%, transparent 75%) !important;
  filter: blur(14px) !important;
}

/* 2. Total Disposed: Bottom-Right White Smoke */
.returns-stat-card:nth-child(2) {
  background: radial-gradient(130% 130% at 80% 80%, rgba(255, 255, 255, 0.08) 0%, rgba(20, 22, 32, 0.78) 50%, rgba(9, 9, 16, 0.96) 100%) !important;
}
.returns-stat-card:nth-child(2)::after {
  bottom: -16px;
  right: -16px;
  width: 85px;
  height: 75px;
  background: radial-gradient(ellipse at 65% 65%, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.10) 45%, transparent 75%) !important;
  filter: blur(14px) !important;
}

/* 3. Net Momentum: Bottom-Center Rising White Smoke Dome */
.returns-stat-card:nth-child(3) {
  background: radial-gradient(130% 130% at 50% 100%, rgba(255, 255, 255, 0.08) 0%, rgba(20, 22, 32, 0.78) 50%, rgba(9, 9, 16, 0.96) 100%) !important;
}
.returns-stat-card:nth-child(3)::after {
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 50px;
  background: radial-gradient(ellipse at 50% 100%, rgba(255, 255, 255, 0.30) 0%, rgba(255, 255, 255, 0.12) 45%, transparent 75%) !important;
  filter: blur(14px) !important;
}

/* 4. Total Filings: Top-Right White Smoke */
.returns-stat-card:nth-child(4) {
  background: radial-gradient(130% 130% at 80% 20%, rgba(255, 255, 255, 0.08) 0%, rgba(20, 22, 32, 0.78) 50%, rgba(9, 9, 16, 0.96) 100%) !important;
}
.returns-stat-card:nth-child(4)::after {
  top: -16px;
  right: -16px;
  width: 85px;
  height: 75px;
  background: radial-gradient(ellipse at 65% 35%, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.10) 45%, transparent 75%) !important;
  filter: blur(14px) !important;
}

/* 5. Tracked Stocks: Bottom-Left White Smoke */
.returns-stat-card:nth-child(5) {
  background: radial-gradient(130% 130% at 20% 80%, rgba(255, 255, 255, 0.08) 0%, rgba(20, 22, 32, 0.78) 50%, rgba(9, 9, 16, 0.96) 100%) !important;
}
.returns-stat-card:nth-child(5)::after {
  bottom: -16px;
  left: -16px;
  width: 85px;
  height: 75px;
  background: radial-gradient(ellipse at 35% 65%, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.10) 45%, transparent 75%) !important;
  filter: blur(14px) !important;
}

/* 6. Trade Days: Top-Center White Smoke */
.returns-stat-card:nth-child(6) {
  background: radial-gradient(130% 130% at 50% 0%, rgba(255, 255, 255, 0.08) 0%, rgba(20, 22, 32, 0.78) 50%, rgba(9, 9, 16, 0.96) 100%) !important;
}
.returns-stat-card:nth-child(6)::after {
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 50px;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.10) 45%, transparent 75%) !important;
  filter: blur(14px) !important;
}

.returns-stat-card:hover {
  border-color: rgba(255, 255, 255, 0.25) !important;
  border-top-color: rgba(255, 255, 255, 0.35) !important;
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.65), 0 0 25px -4px rgba(255, 255, 255, 0.12), inset 0 1px 0 0 rgba(255, 255, 255, 0.2) !important;
  transform: translateY(-2px);
}

/* Tables & Lists */
table thead tr {
  border-bottom: 1px solid var(--border-base) !important;
}

table th {
  background: transparent !important;
  color: var(--text-muted) !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  padding: 14px 16px !important;
}

#holdings-tbody tr, #tx-tbody tr {
  border-bottom: 1px solid var(--border-subtle) !important;
  transition: all 0.15s ease !important;
}

#holdings-tbody td, #tx-tbody td {
  padding: 12px 16px !important;
  font-size: 12.5px;
}

#holdings-tbody tr:hover, #tx-tbody tr:hover {
  background: var(--accent-wash) !important;
}

/* Status & Delta Badges */
.badge-pill-success {
  background: var(--green-bg) !important;
  color: var(--green) !important;
  border: 1px solid var(--green-border) !important;
  padding: 2px 8px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.15);
}

.badge-pill-danger {
  background: var(--red-bg) !important;
  color: var(--red) !important;
  border: 1px solid var(--red-border) !important;
  padding: 2px 8px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  box-shadow: 0 0 10px rgba(244, 63, 94, 0.15);
}

.badge-pill-accent {
  background: var(--accent-wash) !important;
  color: var(--text-accent) !important;
  border: 1px solid var(--border-strong) !important;
  padding: 2px 8px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  box-shadow: 0 0 12px var(--accent-glow);
}

/* Transaction Type Badges */
.tx-type {
  padding: 3px 8px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tx-type.acquired {
  background: var(--green-bg);
  color: var(--green);
  border: 1px solid var(--green-border);
}

.tx-type.disposed, .tx-type.divestment {
  background: var(--red-bg);
  color: var(--red);
  border: 1px solid var(--red-border);
}

/* Inputs & Form Controls */
input[type="text"], input[type="date"], input[type="number"], select {
  background: var(--bg-input) !important;
  border: 1px solid var(--border-base) !important;
  color: var(--text-primary) !important;
  border-radius: 10px !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3) !important;
  transition: all 0.2s ease !important;
}

input[type="text"]:focus, input[type="date"]:focus, input[type="number"]:focus, select:focus {
  outline: none !important;
  border-color: var(--accent) !important;
  box-shadow: 0 0 16px var(--accent-glow), inset 0 1px 2px rgba(0, 0, 0, 0.4) !important;
}

/* Tooltip & Popups */
.chart-tooltip, .filter-popup {
  background: var(--bg-panel-raised) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  border: 1px solid var(--border-base) !important;
  border-radius: 12px !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 20px var(--accent-glow) !important;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}