/* ═══════════════════════════════════════════════════════════════════════════
   Invest.PriceQ.in — Professional Financial Design System
   Brand: PriceQ Orange (#FF6B00) — Clean Light Mode
   "Compare. Analyze. Grow."
   ═══════════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── CSS Variables ─────────────────────────────────────────────────────────── */
:root {
  /* Brand — matches PriceQ.in exactly */
  --brand:          #FF6B00;
  --brand-dark:     #E55A00;
  --brand-light:    #FFF0E6;
  --brand-border:   #FFCBA4;

  --primary:        var(--brand);
  --primary-dark:   var(--brand-dark);
  --primary-light:  #FF8533;


  /* Semantic colours */
  --success:        #00A651;
  --success-bg:     #E6F9EE;
  --success-border: #A5D6A7;
  --danger:         #D32F2F;
  --danger-bg:      #FFEBEE;
  --danger-border:  #FFCDD2;
  --warning:        #F59E0B;
  --warning-bg:     #FFFDE7;
  --info:           #1565C0;
  --info-bg:        #E3F2FD;

  /* Backgrounds — light, airy, professional */
  --bg-body:        #F0F2F5;
  --bg-card:        #FFFFFF;
  --bg-card-hover:  #FAFBFC;
  --bg-surface:     #F8F9FA;
  --bg-muted:       #EFF2F5;

  /* Borders */
  --border:         #E8ECF0;
  --border-md:      #D0D5DD;
  --border-hover:   #FFCBA4;

  /* Text — maximum readability for financial data */
  --text-primary:   #111111;
  --text-secondary: #374151;
  --text-muted:     #6B7280;
  --text-faint:     #9CA3AF;

  /* Gradients */
  --gradient-brand:  linear-gradient(135deg, #FF6B00, #FF9500);
  --gradient-green:  linear-gradient(135deg, #00A651, #00C853);
  --gradient-header: linear-gradient(135deg, #FFF8F3, #FFF0E6);

  /* Shadows */
  --shadow-xs:  0 1px 3px rgba(0,0,0,0.06);
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 20px rgba(0,0,0,0.10);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.12);
  --shadow-brand: 0 4px 20px rgba(255,107,0,0.25);

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  /* Transitions */
  --transition: all 0.2s ease;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Financial data — monospaced feel for numbers */
  --font-num: 'Inter', 'SF Mono', monospace;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  background: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Scrollbar ─────────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-body); }
::-webkit-scrollbar-thumb { background: var(--border-md); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand); }

/* ── Typography ────────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: var(--transition);
}
a:hover { color: var(--brand-dark); }

/* Financial number display — always sharp and readable */
.num, .nav-value, .return-val, .amount {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Navbar ────────────────────────────────────────────────────────────────── */
.invest-navbar {
  background: #FFFFFF;
  border-bottom: 1.5px solid var(--border);
  padding: 0;
  height: 56px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-xs);
}
.invest-navbar .container {
  height: 56px;
  display: flex;
  align-items: center;
}
.invest-navbar .navbar-brand {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--text-primary) !important;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.invest-navbar .navbar-brand .brand-q {
  color: var(--brand);
}
.invest-navbar .nav-link {
  color: var(--text-secondary) !important;
  font-weight: 500;
  font-size: 0.88rem;
  padding: 0.4rem 0.75rem !important;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.invest-navbar .nav-link:hover,
.invest-navbar .nav-link.active {
  color: var(--brand) !important;
  background: var(--brand-light);
}
.invest-navbar .nav-link.active {
  font-weight: 600;
}
.invest-navbar .btn-premium {
  background: var(--gradient-brand);
  border: none;
  color: #fff !important;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.35rem 1rem !important;
  border-radius: 20px !important;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 8px rgba(255,107,0,0.3);
}
.invest-navbar .btn-premium:hover {
  background: linear-gradient(135deg, #E55A00, #E08000);
  box-shadow: 0 4px 14px rgba(255,107,0,0.4);
  transform: translateY(-1px);
}

/* Dropdown menu */
.invest-navbar .dropdown-menu {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 0.4rem;
}
.invest-navbar .dropdown-item {
  color: var(--text-secondary) !important;
  font-size: 0.87rem;
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.85rem;
}
.invest-navbar .dropdown-item:hover {
  background: var(--bg-surface);
  color: var(--text-primary) !important;
}
.invest-navbar .dropdown-divider { border-color: var(--border); }

/* ── Hero Section ──────────────────────────────────────────────────────────── */
.hero-section {
  background: #FFFFFF;
  border-bottom: 1.5px solid var(--border);
  padding: 56px 0 48px;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 80% 50%, rgba(255,107,0,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 30% 40% at 10% 80%, rgba(255,149,0,0.04) 0%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--brand-light);
  border: 1px solid var(--brand-border);
  border-radius: 20px;
  padding: 0.3rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand-dark);
  margin-bottom: 1.2rem;
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 1rem;
}
.hero-title .accent { color: var(--brand); }
.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 520px;
  line-height: 1.65;
}

/* Hero Search */
.hero-search-bar {
  background: #FFFFFF;
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 0.6rem 0.6rem 0.6rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 580px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.hero-search-bar:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(255,107,0,0.12);
}
.hero-search-bar input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: var(--font-sans);
}
.hero-search-bar input::placeholder { color: var(--text-faint); }

/* ── Stats Bar ─────────────────────────────────────────────────────────────── */
.stats-bar {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 1rem;
}
.stat-item { text-align: center; }
.stat-value {
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  font-weight: 500;
}

/* ── Section Headers ────────────────────────────────────────────────────────── */
.section-tag {
  display: inline-block;
  padding: 0.25rem 0.85rem;
  background: var(--brand-light);
  border: 1px solid var(--brand-border);
  border-radius: 20px;
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--brand-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.85rem;
}
.section-title {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 0.65rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.section-desc {
  color: var(--text-muted);
  max-width: 540px;
  font-size: 0.97rem;
  line-height: 1.65;
}

/* ── Cards ─────────────────────────────────────────────────────────────────── */
.invest-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: var(--transition);
  position: relative;
}
.invest-card:hover {
  border-color: var(--border-md);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Fund Cards — core data display */
.fund-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.25rem;
  transition: var(--transition);
  cursor: pointer;
}
.fund-card:hover {
  border-color: var(--brand-border);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.fund-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.45;
}
.fund-house {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 0.7rem;
  font-weight: 500;
}

/* NAV display — critical financial number, must be crystal clear */
.fund-nav {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.fund-nav-date {
  font-size: 0.7rem;
  color: var(--text-faint);
  margin-top: 0.1rem;
}

/* Return badges — investment returns need clear positive/negative signalling */
.fund-return {
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}
.return-positive {
  color: #00802A;
  background: #E6F9EE;
  border: 1px solid #A5D6A7;
}
.return-negative {
  color: #C62828;
  background: #FFEBEE;
  border: 1px solid #FFCDD2;
}
.return-neutral {
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1px solid var(--border);
}

/* Risk Badges */
.risk-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.18rem 0.55rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid;
}
.risk-low      { background: #E6F9EE; color: #00802A; border-color: #A5D6A7; }
.risk-moderate { background: #FFFDE7; color: #E65100; border-color: #FFE082; }
.risk-high     { background: #FFEBEE; color: #C62828; border-color: #FFCDD2; }
.risk-veryhigh { background: #FCE4EC; color: #880E4F; border-color: #F48FB1; }

/* ── Buttons ────────────────────────────────────────────────────────────────── */
.btn-invest {
  background: var(--gradient-brand);
  border: none;
  color: #fff;
  font-weight: 700;
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  transition: var(--transition);
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 2px 8px rgba(255,107,0,0.25);
  cursor: pointer;
}
.btn-invest:hover {
  background: linear-gradient(135deg, #E55A00, #D47000);
  transform: translateY(-1px);
  box-shadow: var(--shadow-brand);
  color: #fff;
}
.btn-invest:active { transform: translateY(0); }

.btn-outline-invest {
  background: transparent;
  border: 1.5px solid var(--brand);
  color: var(--brand);
  font-weight: 600;
  padding: 0.55rem 1.4rem;
  border-radius: 8px;
  transition: var(--transition);
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}
.btn-outline-invest:hover {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-brand);
}

.btn-success-invest {
  background: var(--gradient-green);
  border: none;
  color: #fff;
  font-weight: 700;
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  transition: var(--transition);
  font-size: 0.88rem;
  cursor: pointer;
}
.btn-success-invest:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,166,81,0.35); color: #fff; }

/* ── Feature icons ──────────────────────────────────────────────────────────── */
.feature-icon-wrap {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  flex-shrink: 0;
}
.icon-orange { background: var(--brand-light); color: var(--brand); }
.icon-purple { background: #F3E8FF; color: #7C3AED; }
.icon-cyan   { background: #E0F7FA; color: #0097A7; }
.icon-green  { background: #E6F9EE; color: #00802A; }
.icon-amber  { background: #FFFDE7; color: #E65100; }
.icon-red    { background: #FFEBEE; color: #C62828; }
.icon-blue   { background: #E3F2FD; color: #1565C0; }

/* ── Comparison Table ───────────────────────────────────────────────────────── */
.compare-table {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-xs);
}
.compare-table th {
  background: var(--bg-surface);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.85rem 1rem;
  border-bottom: 1.5px solid var(--border);
}
.compare-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-primary);
  vertical-align: middle;
  font-variant-numeric: tabular-nums;
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:hover td { background: var(--bg-surface); }
.compare-table .best-value {
  color: #00802A;
  font-weight: 700;
}

/* ── Calculator Card ────────────────────────────────────────────────────────── */
.calc-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

/* Calculator result boxes — financial numbers must be crystal clear */
.calc-result-box {
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-align: center;
}
.calc-result-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.calc-result-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── Form Inputs ────────────────────────────────────────────────────────────── */
.invest-input {
  background: #FFFFFF;
  border: 1.5px solid var(--border);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  padding: 0.6rem 0.9rem;
  font-size: 0.88rem;
  font-family: var(--font-sans);
  width: 100%;
  transition: var(--transition);
  outline: none;
  font-variant-numeric: tabular-nums;
}
.invest-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(255,107,0,0.12);
}
.invest-input::placeholder { color: var(--text-faint); }

/* Range slider */
.range-input {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  outline: none;
  cursor: pointer;
}
.range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--brand);
  cursor: pointer;
  border: 2.5px solid #fff;
  box-shadow: 0 0 0 2px var(--brand), 0 2px 6px rgba(255,107,0,0.35);
}
.range-input::-moz-range-thumb {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--brand);
  cursor: pointer;
  border: 2.5px solid #fff;
  box-shadow: 0 0 0 2px var(--brand);
}

/* ── Pricing ────────────────────────────────────────────────────────────────── */
.pricing-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.pricing-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.pricing-card.featured {
  border-color: var(--brand);
  box-shadow: var(--shadow-brand);
}
.pricing-card.featured::before {
  content: 'MOST POPULAR';
  position: absolute;
  top: 1rem; right: -2.5rem;
  background: var(--gradient-brand);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 0.3rem 3.5rem;
  transform: rotate(35deg);
  letter-spacing: 0.1em;
}
.pricing-amount {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}
.pricing-feature {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.87rem;
  color: var(--text-secondary);
  padding: 0.4rem 0;
}
.pricing-feature .check { color: #00802A; flex-shrink: 0; }
.pricing-feature .cross { color: var(--text-faint); flex-shrink: 0; }

/* ── Dashboard Sidebar ──────────────────────────────────────────────────────── */
.sidebar {
  background: var(--bg-card);
  border-right: 1.5px solid var(--border);
  min-height: 100vh;
  width: 240px;
  position: fixed;
  top: 0; left: 0;
  padding-top: 4.5rem;
  overflow-y: auto;
  transition: var(--transition);
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.25rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition);
  border-left: 3px solid transparent;
}
.sidebar-link:hover,
.sidebar-link.active {
  color: var(--brand);
  background: var(--brand-light);
  border-left-color: var(--brand);
}
.sidebar-link.active { font-weight: 600; }
.sidebar-link i { width: 20px; text-align: center; font-size: 1rem; }

.main-content { margin-left: 240px; padding: 6rem 2rem 2rem; }
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .main-content { margin-left: 0; padding: 5rem 1rem 1rem; }
}

/* ── Dashboard Stat Cards ───────────────────────────────────────────────────── */
.dash-stat {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--transition);
}
.dash-stat:hover { border-color: var(--brand-border); box-shadow: var(--shadow-sm); }
.dash-stat-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.dash-stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.dash-stat-label { font-size: 0.78rem; color: var(--text-muted); font-weight: 500; }
.dash-stat-change { font-size: 0.78rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.dash-stat-change.positive { color: #00802A; }
.dash-stat-change.negative { color: #C62828; }

/* ── Blog Cards ─────────────────────────────────────────────────────────────── */
.blog-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.blog-card:hover {
  border-color: var(--brand-border);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.blog-card img { width: 100%; height: 172px; object-fit: cover; }
.blog-card-body { padding: 1.1rem; }
.blog-category {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand);
  margin-bottom: 0.4rem;
}
.blog-title { font-size: 0.97rem; font-weight: 700; line-height: 1.35; margin-bottom: 0.4rem; color: var(--text-primary); }
.blog-excerpt { font-size: 0.82rem; color: var(--text-muted); line-height: 1.55; }

/* ── AI Chat ────────────────────────────────────────────────────────────────── */
.chat-container {
  height: 480px;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
}
.chat-msg { max-width: 80%; }
.chat-msg.user { align-self: flex-end; }
.chat-msg.bot  { align-self: flex-start; }
.chat-bubble {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  line-height: 1.6;
}
.chat-bubble.user { background: var(--brand); color: #fff; border-bottom-right-radius: 3px; }
.chat-bubble.bot  { background: #fff; border: 1.5px solid var(--border); color: var(--text-primary); border-bottom-left-radius: 3px; }

/* ── Footer ─────────────────────────────────────────────────────────────────── */
.invest-footer {
  background: var(--bg-card);
  border-top: 1.5px solid var(--border);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}
.footer-brand {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.footer-brand .brand-q { color: var(--brand); }
.footer-link {
  color: var(--text-muted);
  font-size: 0.85rem;
  display: block;
  margin-bottom: 0.4rem;
  transition: var(--transition);
}
.footer-link:hover { color: var(--brand); }
.footer-disclaimer {
  background: #FFFDE7;
  border: 1px solid #FFE082;
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2rem;
  line-height: 1.75;
}
.footer-disclaimer strong { color: #E65100; }

/* ── Alerts & Toasts ────────────────────────────────────────────────────────── */
.toast-container { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999; }

/* ── Breadcrumb ──────────────────────────────────────────────────────────────── */
.invest-breadcrumb {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
}
.invest-breadcrumb a { color: var(--text-muted); font-weight: 500; }
.invest-breadcrumb a:hover { color: var(--brand); }
.invest-breadcrumb .separator { margin: 0 0.35rem; color: var(--text-faint); }

/* ── Screener Sidebar ────────────────────────────────────────────────────────── */
.screener-sidebar {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  position: sticky;
  top: 4.5rem;
}
.filter-group { margin-bottom: 1.25rem; }
.filter-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  display: block;
}

/* ── Table Styles (for fund comparison & amortization) ─────────────────────── */
.invest-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.invest-table thead th {
  background: var(--bg-surface);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.7rem 0.9rem;
  border-bottom: 1.5px solid var(--border);
  white-space: nowrap;
}
.invest-table tbody td {
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
  vertical-align: middle;
  font-variant-numeric: tabular-nums;
}
.invest-table tbody tr:last-child td { border-bottom: none; }
.invest-table tbody tr:hover td { background: var(--bg-surface); }

/* Number cells — critical for financial readability */
.td-num {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}
.td-pos { color: #00802A; }
.td-neg { color: #C62828; }

/* ── Metric Chips (used in landing page & fund details) ─────────────────────── */
.metric-chip {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.85rem;
  font-size: 0.82rem;
}
.metric-chip-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.metric-chip-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* ── Status indicators ──────────────────────────────────────────────────────── */
.status-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
}
.status-dot.live { background: #00A651; animation: pulse-dot 2s infinite; }
.status-dot.offline { background: #D32F2F; }

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0,166,81,0.4); }
  50%       { opacity: 0.9; box-shadow: 0 0 0 5px rgba(0,166,81,0); }
}

@keyframes pulse-glow {
  0%, 100% { transform: scale(0.6); opacity: 0.4; }
  50%       { transform: scale(1); opacity: 1; }
}

/* ── Animations ─────────────────────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.animate-in { animation: fadeInUp 0.45s ease both; }

/* ── Utilities ──────────────────────────────────────────────────────────────── */
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.fw-900 { font-weight: 900; }

.text-brand    { color: var(--brand) !important; }
.text-pos      { color: #00802A !important; }
.text-neg      { color: #C62828 !important; }
.text-muted-i  { color: var(--text-muted) !important; }
.text-secondary-i { color: var(--text-secondary) !important; }

.bg-card-i     { background: var(--bg-card) !important; }
.bg-surface-i  { background: var(--bg-surface) !important; }
.border-i      { border-color: var(--border) !important; }

.divider-invest { border-color: var(--border); opacity: 1; margin: 1.25rem 0; }
.flex-1 { flex: 1; }

/* ── Responsive ──────────────────────────────────────────────────────────────── */
@media (max-width: 992px) {
  .hero-title { font-size: clamp(1.75rem, 5vw, 2.5rem); }
  .section-title { font-size: clamp(1.35rem, 4vw, 1.9rem); }
  .calc-result-value { font-size: 1.35rem; }
}
@media (max-width: 576px) {
  .stats-bar { flex-direction: column; gap: 1.25rem; }
  .hero-section { padding: 36px 0 32px; }
  .stat-value { font-size: 1.4rem; }
  .fund-nav { font-size: 0.95rem; }
}

/* ── Print — for investment reports ─────────────────────────────────────────── */
@media print {
  .invest-navbar, .invest-footer { display: none; }
  body { background: #fff; }
  .invest-card { box-shadow: none; border: 1px solid #ccc; }
  .fund-return, .risk-badge { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
