*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green: #2D9A7E;
  --green-light: #E8F5F0;
  --green-dark: #1A6655;
  --green-mid: #22876C;
  --terracotta: #C87B5B;
  --terracotta-light: #F5E8E3;
  --midnight: #1A1A1D;
  --cream: #FAFAF7;
  --white: #ffffff;
  --text: #1a1a18;
  --text-mid: #4a4a46;
  --text-muted: #8a8a84;
  --border: rgba(0,0,0,0.05);
  --border-strong: rgba(0,0,0,0.08);
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'DM Sans', sans-serif;
  --spring-ease: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

html {
  scroll-behavior: smooth;
}

/* Accessibility: Focus visible states */
*:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
  border-radius: 4px;
}

.dash-nav-item:focus-visible,
.btn-primary:focus-visible,
.btn-ghost:focus-visible,
.star-icon:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.02;
  pointer-events: none;
  z-index: 1;
}

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 48px;
  background: transparent;
  backdrop-filter: none;
  border-bottom: 0.5px solid transparent;
  transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s, box-shadow 0.3s;
  position: relative;
  z-index: 10;
}
nav.scrolled {
  background: rgba(250,250,247,0.85);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}
.logo {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--text);
  letter-spacing: -0.5px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  text-decoration: none;
  display: inline-block;
}
.logo:hover {
  transform: translateY(-1px);
  color: var(--green-mid);
}
.logo em {
  color: var(--green);
  font-style: normal;
  transition: color 0.2s ease-in-out;
}
.logo:hover em { color: var(--green-dark); }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { font-size: 14px; color: var(--text-mid); text-decoration: none; font-weight: 400; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--text); color: var(--white);
  padding: 9px 20px; border-radius: 100px;
  font-size: 13px; font-weight: 500; text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.nav-cta:hover { background: var(--green-dark); transform: translateY(-1px); }

/* HERO */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green-light); color: var(--green-mid);
  font-size: 12px; font-weight: 500; letter-spacing: 0.5px;
  padding: 6px 14px; border-radius: 100px;
  margin-bottom: 32px;
  animation: fadeUp 0.6s ease both;
}
.hero-eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(48px, 7vw, 88px);
  line-height: 1.05;
  letter-spacing: -1.5px;
  color: var(--text);
  max-width: 820px;
  margin-bottom: 24px;
  animation: fadeUp 0.7s 0.1s ease both;
}
.hero h1 em { color: var(--green); font-style: italic; }
.hero-sub {
  font-size: 18px; color: var(--text-mid); max-width: 520px;
  line-height: 1.65; margin-bottom: 44px;
  animation: fadeUp 0.7s 0.2s ease both;
  font-weight: 300;
}
.hero-actions {
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: center;
  animation: fadeUp 0.7s 0.3s ease both;
}
.btn-primary {
  background: var(--green); color: white;
  padding: 14px 28px; border-radius: 100px;
  font-size: 15px; font-weight: 500; text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(29,158,117,0.25);
}
.btn-primary:hover { background: var(--green-mid); transform: translateY(-2px); box-shadow: 0 6px 28px rgba(29,158,117,0.35); }
.btn-ghost {
  background: transparent; color: var(--text-mid);
  padding: 16px 32px; border-radius: 100px;
  font-size: 15px; font-weight: 400; text-decoration: none;
  border: 0.5px solid var(--border-strong);
  transition: border-color 0.2s, color 0.2s, transform 0.15s;
  position: relative;
  z-index: 1;
}
.btn-ghost:hover { border-color: var(--text); color: var(--text); transform: translateY(-2px); }
.btn-ghost * {
  pointer-events: none;
}

/* DASHBOARD PREVIEW */
.preview-section {
  padding: 0 24px 100px;
  display: flex; justify-content: center;
}

/* FULL-SCREEN DASHBOARD APP */
.dashboard-app {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  scroll-snap-align: start;
  background: linear-gradient(to bottom, #FAFAF7 0%, #F5F5F2 100%);
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
  position: relative;
}
.dashboard-app::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 300px;
  background: linear-gradient(135deg, rgba(29,158,117,0.03) 0%, rgba(29,158,117,0) 100%);
  pointer-events: none;
}
.dash-inner-app {
  display: grid;
  grid-template-columns: 220px 1fr;
  width: 100%;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* TAB PANELS */
.tab-panel {
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}
.tab-panel.active {
  display: block;
}

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

/* PORTFOLIO TAB */
.portfolio-top-row {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
  align-items: flex-start;
  animation: fadeUp 0.6s ease both;
}
.portfolio-chart-wrap {
  flex-shrink: 0;
  width: 240px;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 16px;
  padding: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  backdrop-filter: contrast(95%) brightness(105%) blur(10px);
  transition: all 0.3s var(--spring-ease);
}

.portfolio-chart-wrap:hover {
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}
.holdings-table {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: white;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  animation: fadeUp 0.6s 0.2s ease both;
  backdrop-filter: contrast(95%) brightness(105%) blur(10px);
}
.ht-header, .ht-row {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr 1fr 1fr;
  padding: 14px 20px;
  font-size: 13px;
  align-items: center;
}
.ht-header {
  background: linear-gradient(to bottom, rgba(29,158,117,0.04) 0%, rgba(29,158,117,0.01) 100%);
  font-weight: 600;
  color: var(--text-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-bottom: 0.5px solid var(--border);
}
.ht-row {
  border-bottom: 0.5px solid var(--border);
  transition: all 0.2s ease;
  cursor: pointer;
}
.ht-row:hover {
  background: rgba(29,158,117,0.03);
  transform: translateX(2px);
}
.ht-row:last-child { border-bottom: none; }

/* RESEARCH TAB */
.research-search-wrap { margin-bottom: 8px; }
.research-search {
  width: 100%; padding: 10px 16px; border-radius: 10px;
  border: 0.5px solid var(--border-strong); font-size: 13px;
  font-family: var(--sans); background: var(--cream); color: var(--text-muted);
  outline: none;
}
.research-search-note {
  font-size: 10px; color: var(--text-muted); margin-top: 4px;
}
.trending-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
.trending-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  transition: all 0.3s var(--spring-ease);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  backdrop-filter: contrast(95%) brightness(105%) blur(10px);
}
.trending-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--green) 0%, var(--green-mid) 100%);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.trending-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.06);
  border-color: var(--green);
}
.trending-card:hover::before { transform: scaleX(1); }
.badge-up, .badge-down {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  margin-top: 8px;
  letter-spacing: 0.3px;
}
.badge-up { background: var(--green-light); color: var(--green); font-variant-numeric: tabular-nums; }
.badge-down { background: var(--terracotta-light); color: var(--terracotta); font-variant-numeric: tabular-nums; }

/* WATCHLIST CARDS */
.watchlist-section {
  margin-bottom: 20px;
  transition: max-height 0.4s var(--spring-ease), opacity 0.3s ease;
  overflow: hidden;
}
.watchlist-section.collapsed {
  max-height: 0;
  opacity: 0;
  margin-bottom: 0;
}
.watchlist-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.watchlist-card {
  background: linear-gradient(135deg, #FFF9F5 0%, #FFFBF7 100%);
  border: 1px solid rgba(200, 123, 91, 0.15);
  border-radius: 12px;
  padding: 16px;
  position: relative;
  transition: all 0.3s var(--spring-ease);
  cursor: pointer;
  overflow: hidden;
  transform: rotate(-0.5deg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  clip-path: polygon(0 0, 100% 0, 98% 100%, 0 100%);
}
.watchlist-card:nth-child(2n) {
  transform: rotate(0.5deg);
}
.watchlist-card:nth-child(3n) {
  transform: rotate(-0.3deg);
}
.watchlist-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='vintageNoise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23vintageNoise)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
}
.watchlist-card:hover {
  transform: translateY(-4px) rotate(0deg) scale(1.02);
  box-shadow: 0 12px 28px rgba(200,123,91,0.15);
  border-color: rgba(200, 123, 91, 0.3);
}
.watchlist-stamp {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--terracotta);
  opacity: 0.35;
  border: 1.5px solid var(--terracotta);
  border-radius: 50%;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4px;
  transform: rotate(-12deg);
}

/* STAR ICONS */
.star-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.2s var(--spring-ease);
  color: #D4AF37;
  z-index: 10;
  pointer-events: auto;
}
.star-icon:hover {
  transform: scale(1.3) rotate(15deg);
}
.star-icon.starred {
  color: #D4AF37;
  filter: drop-shadow(0 2px 4px rgba(212, 175, 55, 0.4));
}
.trending-card {
  position: relative;
}

/* PULSE POINTS */
.pulse-point {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  backdrop-filter: contrast(95%) brightness(105%) blur(10px);
  position: relative;
  overflow: hidden;
  cursor: default;
  transition: transform 0.3s var(--spring-ease), box-shadow 0.3s var(--spring-ease);
}

.nav-pulse-preview {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: all 0.2s ease;
  box-shadow: 0 0 8px currentColor;
}

.nav-pulse-preview.status-positive {
  background: var(--green);
  color: var(--green);
}

.nav-pulse-preview.status-negative {
  background: var(--red);
  color: var(--red);
}

.nav-pulse-preview.status-neutral {
  background: #94A3B8;
  color: #94A3B8;
}

.dash-nav-item:hover .nav-pulse-preview {
  transform: scale(1.2);
}

.dash-nav-item.active .nav-pulse-preview {
  box-shadow: 0 0 12px currentColor;
}

.pulse-point::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='paperNoise3'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23paperNoise3)'/%3E%3C/svg%3E");
  opacity: 0.01;
  pointer-events: none;
}

.pulse-point:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.pulse-icon {
  font-size: 20px;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.pulse-content {
  flex: 1;
}

.pulse-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.pulse-value {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.pulse-point.pulse-green .pulse-icon {
  background: var(--green-light);
  color: var(--green);
}

.pulse-point.pulse-blue .pulse-icon {
  background: #E8F3FF;
  color: #2D7DA8;
}

.pulse-point.pulse-amber .pulse-icon {
  background: #FFF9E6;
  color: #D4A853;
}

.pulse-point.pulse-orange .pulse-icon {
  background: #FFF0E6;
  color: #E07B39;
}

/* GUIDES TAB */
.guides-grid, .learn-grid {
  display: grid; grid-template-columns: 1fr; gap: 12px;
}
.guide-card {
  background: #1a1a18; border-radius: 12px; padding: 32px 20px;
  text-align: center; position: relative;
  display: flex; flex-direction: column; align-items: center;
  gap: 10px; min-height: 180px; justify-content: center;
}
.guide-card .video-title { color: white; font-size: 14px; }
.guide-lock { font-size: 28px; opacity: 0.4; }
.guide-coming { font-size: 12px; color: rgba(255,255,255,0.35); }

/* PORTFOLIO AI ASK SECTION */
.portfolio-ai-ask {
  background: linear-gradient(135deg, var(--green-light) 0%, rgba(232,245,240,0.5) 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
  backdrop-filter: contrast(95%) brightness(105%) blur(10px);
  position: relative;
  overflow: hidden;
}

.portfolio-ai-ask::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='paperNoise2'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23paperNoise2)'/%3E%3C/svg%3E");
  opacity: 0.01;
  pointer-events: none;
}
.ai-ask-header { margin-bottom: 14px; }
.ai-ask-input-wrap {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}
.ai-ask-input {
  flex: 1;
  padding: 11px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  font-size: 13px;
  font-family: var(--sans);
  background: var(--white);
  color: var(--text);
  outline: none;
  transition: all 0.3s var(--spring-ease);
  position: relative;
  z-index: 1;
}
.ai-ask-input:focus { border-color: var(--green); }
.ai-ask-btn {
  background: var(--green);
  color: white;
  border: none;
  padding: 11px 22px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--sans);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}
.ai-ask-btn:hover { background: var(--green-mid); transform: translateY(-1px); }
.ai-quick-questions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.ai-quick-q {
  background: var(--white);
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 12px;
  color: var(--text-mid);
  cursor: pointer;
  font-family: var(--sans);
  transition: all 0.3s var(--spring-ease);
  position: relative;
  z-index: 1;
}
.ai-quick-q:hover {
  border-color: var(--green);
  color: var(--green-mid);
  background: var(--green-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(45,154,126,0.15);
}

/* ENHANCED METRICS */
.enhanced-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
.enhanced-metric-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: transform 0.3s var(--spring-ease), box-shadow 0.3s;
  backdrop-filter: contrast(95%) brightness(105%) blur(10px);
  cursor: pointer;
  position: relative;
  z-index: 1;
}
.enhanced-metric-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}
.enhanced-metric-card * {
  pointer-events: none;
}
.metric-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.metric-content {
  flex: 1;
  min-width: 0;
}
.metric-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.metric-big-val {
  font-size: 26px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}
.metric-sub {
  font-size: 11px;
  color: var(--text-muted);
}

/* NEWS FEED */
.news-feed {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.news-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  transition: all 0.3s var(--spring-ease);
  backdrop-filter: contrast(95%) brightness(105%) blur(10px);
}
.news-item:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}
.news-time {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.news-title {
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 4px;
  line-height: 1.4;
}
.news-source {
  font-size: 11px;
  color: var(--text-muted);
}

/* ACTIVITY FEED */
.activity-feed {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.activity-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: center;
  transition: all 0.3s var(--spring-ease);
  backdrop-filter: contrast(95%) brightness(105%) blur(10px);
}
.activity-item:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}
.activity-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.activity-content {
  flex: 1;
  min-width: 0;
}
.activity-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 2px;
}
.activity-desc {
  font-size: 11px;
  color: var(--text-muted);
}
.activity-right {
  text-align: right;
  flex-shrink: 0;
}
.activity-amount {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 2px;
}
.activity-date {
  font-size: 10px;
  color: var(--text-muted);
}

/* FOUNDATION VIDEOS IN TAB */
.foundation-videos { max-width: 100%; }

/* HIDDEN SECTIONS */
.hidden-section { display: none !important; }
.dashboard-frame {
  width: 100%; max-width: 900px;
  background: var(--white);
  border: 0.5px solid var(--border-strong);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,0.08), 0 0 0 0.5px var(--border);
}
.dash-inner { display: grid; grid-template-columns: 180px 1fr; min-height: 440px; }
.dash-sidebar {
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(20px);
  border-right: 1px solid var(--border);
  padding: 80px 16px 20px;
  box-shadow: 2px 0 20px rgba(0,0,0,0.02);
  display: flex;
  flex-direction: column;
}
.dash-logo {
  font-family: var(--serif);
  font-size: 32px;
  margin-bottom: 32px;
  padding: 0 8px;
  letter-spacing: -1px;
  color: var(--text);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-mid) 100%);
  border-radius: 12px;
  color: white;
  box-shadow: 0 4px 16px rgba(29,158,117,0.3);
  margin: 0 auto 32px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}
.dash-logo:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 20px rgba(29,158,117,0.4);
}
.dash-logo em { color: white; font-style: normal; }
.dash-nav-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 0 12px;
  margin-bottom: 8px;
  margin-top: 20px;
  font-weight: 500;
}
.dash-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  color: var(--text-mid);
  cursor: pointer;
  margin-bottom: 3px;
  transition: all 0.2s ease;
  position: relative;
  font-weight: 400;
}
.dash-nav-item:hover {
  background: rgba(29,158,117,0.08);
  color: var(--green-mid);
  transform: translateX(2px);
}
.dash-nav-item.active {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-mid) 100%);
  color: white;
  font-weight: 500;
  box-shadow: 0 2px 12px rgba(29,158,117,0.3);
}
.dash-nav-item.active .dash-nav-icon { opacity: 1; }
.dash-nav-icon {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: currentColor;
  opacity: 0.4;
  flex-shrink: 0;
  transition: opacity 0.2s;
}
.dash-content {
  padding: 80px 48px 48px;
  background: transparent;
  overflow-y: auto;
  max-height: 100vh;
  position: relative;
  z-index: 2;
}
.dash-greeting {
  margin-bottom: 24px;
  animation: fadeUp 0.6s ease both;
}
.dash-greeting h2 {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.8px;
  margin-bottom: 4px;
}
.dash-greeting p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}
.briefing {
  background: white;
  border-left: 3px solid var(--green);
  border-radius: 0 12px 12px 0;
  padding: 18px 20px;
  margin-bottom: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  animation: fadeUp 0.6s 0.1s ease both;
  backdrop-filter: contrast(95%) brightness(105%) blur(10px);
  border: 1px solid var(--border);
  border-left: 3px solid var(--green);
  position: relative;
}

.briefing::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='paperNoise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23paperNoise)'/%3E%3C/svg%3E");
  opacity: 0.015;
  pointer-events: none;
  border-radius: 0 12px 12px 0;
}
.briefing-tag {
  font-size: 10px;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 8px;
}
.briefing-text {
  font-size: 13px;
  color: var(--text);
  line-height: 1.65;
  font-weight: 400;
  position: relative;
  z-index: 1;
}
.metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
  animation: fadeUp 0.6s 0.2s ease both;
}
.metric-box {
  background: white;
  border-radius: 12px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  transition: all 0.3s var(--spring-ease);
  position: relative;
  overflow: hidden;
  backdrop-filter: contrast(95%) brightness(105%) blur(10px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.metric-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green) 0%, var(--green-mid) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.metric-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.06);
  border-color: var(--green);
}
.metric-box:hover::before { opacity: 1; }
.metric-box .label {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}
.metric-box .val {
  font-size: 28px;
  font-weight: 600;
  color: var(--text);
  line-height: 1;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}
.metric-box .chg { font-size: 12px; margin-top: 4px; font-weight: 500; }
.up { color: var(--green); font-variant-numeric: tabular-nums; }
.down { color: var(--terracotta); font-variant-numeric: tabular-nums; }
.neu { color: var(--text-muted); font-variant-numeric: tabular-nums; }
.holdings {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: white;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  animation: fadeUp 0.6s 0.3s ease both;
  backdrop-filter: contrast(95%) brightness(105%) blur(10px);
}
.h-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 0.5px solid var(--border);
  font-size: 13px;
  transition: all 0.2s ease;
  cursor: pointer;
}
.h-row:hover {
  background: rgba(29,158,117,0.03);
  transform: translateX(2px);
}
.h-row:last-child { border-bottom: none; }
.h-ticker {
  font-weight: 600;
  color: var(--text);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: color 0.2s ease;
}
.h-ticker:hover {
  color: var(--green);
}
.h-name {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.h-row div[style*="font-size"] {
  font-variant-numeric: tabular-nums;
}

/* LIVE CHAT SECTION */
.chat-section {
  padding: 80px 24px;
  background: var(--white);
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
}
.section-center { max-width: 680px; margin: 0 auto; }
.section-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--green-mid); font-weight: 500;
  letter-spacing: 0.5px; text-transform: uppercase;
  margin-bottom: 16px;
}
.section-tag-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.section-h2 {
  font-family: var(--serif); font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1; letter-spacing: -0.8px; margin-bottom: 12px;
}
.section-sub { font-size: 16px; color: var(--text-mid); font-weight: 300; margin-bottom: 36px; line-height: 1.6; }
.chat-demo {
  background: var(--cream); border: 0.5px solid var(--border-strong);
  border-radius: 16px; overflow: hidden;
}
.chat-header {
  background: var(--white); border-bottom: 0.5px solid var(--border);
  padding: 14px 18px; display: flex; align-items: center; gap: 10px;
}
.chat-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--green-light); display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--green-mid); font-weight: 500;
}
.chat-header-text { flex: 1; }
.chat-header-name { font-size: 13px; font-weight: 500; color: var(--text); }
.chat-header-status { font-size: 11px; color: var(--green); }
.chat-messages { padding: 20px; display: flex; flex-direction: column; gap: 12px; min-height: 280px; max-height: 380px; overflow-y: auto; }
.msg { max-width: 85%; }
.msg.bot { align-self: flex-start; }
.msg.user { align-self: flex-end; }
.msg-bubble {
  padding: 10px 14px; border-radius: 14px;
  font-size: 13px; line-height: 1.55;
}
.msg.bot .msg-bubble { background: var(--white); border: 0.5px solid var(--border); color: var(--text); border-bottom-left-radius: 4px; }
.msg.user .msg-bubble { background: var(--green); color: white; border-bottom-right-radius: 4px; }
.msg-time { font-size: 10px; color: var(--text-muted); margin-top: 4px; padding: 0 4px; }
.msg.user .msg-time { text-align: right; }
.typing-indicator { display: none; align-items: center; gap: 4px; padding: 10px 14px; background: var(--white); border: 0.5px solid var(--border); border-radius: 14px; border-bottom-left-radius: 4px; width: fit-content; }
.typing-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-muted); animation: bounce 1.2s infinite; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
.chat-footer { background: var(--white); border-top: 0.5px solid var(--border); padding: 12px 16px; display: flex; gap: 10px; align-items: center; }
.chat-input {
  flex: 1; border: 0.5px solid var(--border-strong); border-radius: 100px;
  padding: 10px 18px; font-size: 13px; font-family: var(--sans);
  background: var(--cream); color: var(--text); outline: none;
  transition: border-color 0.2s;
}
.chat-input:focus { border-color: var(--green); }
.chat-send {
  background: var(--green); color: white; border: none;
  border-radius: 100px; padding: 10px 20px;
  font-size: 13px; font-family: var(--sans); font-weight: 500;
  cursor: pointer; transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}
.chat-send:hover { background: var(--green-mid); transform: translateY(-1px); }
.chat-send:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.quick-prompts { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 16px 12px; }
.quick-btn {
  background: var(--cream); border: 0.5px solid var(--border-strong);
  border-radius: 100px; padding: 6px 14px; font-size: 12px;
  color: var(--text-mid); cursor: pointer; font-family: var(--sans);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.quick-btn:hover { border-color: var(--green); color: var(--green-mid); background: var(--green-light); }

/* FEATURES */
.features-section { padding: 100px 24px; max-width: 1000px; margin: 0 auto; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 48px; }
.feature-card {
  background: var(--white); border: 0.5px solid var(--border);
  border-radius: 16px; padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover { border-color: var(--green); transform: translateY(-3px); }
.feature-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--green-light); display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; font-size: 18px;
}
.feature-title { font-size: 15px; font-weight: 500; margin-bottom: 8px; color: var(--text); }
.feature-desc { font-size: 13px; color: var(--text-mid); line-height: 1.6; font-weight: 300; }
.feature-tag {
  display: inline-block; margin-top: 12px;
  font-size: 10px; padding: 3px 10px; border-radius: 100px;
  font-weight: 500; letter-spacing: 0.3px;
}
.tag-free { background: var(--green-light); color: var(--green-mid); }
.tag-pro { background: #FFF3E0; color: #E65100; }

/* PRICING */
.pricing-section { padding: 80px 24px; background: var(--white); border-top: 0.5px solid var(--border); }
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 640px; margin: 48px auto 0; }
.pricing-card {
  border: 0.5px solid var(--border); border-radius: 16px; padding: 28px;
  background: var(--cream);
}
.pricing-card.featured { background: var(--green-dark); border-color: var(--green-dark); }
.pricing-plan { font-size: 12px; font-weight: 500; letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 8px; }
.pricing-card.featured .pricing-plan { color: rgba(255,255,255,0.6); }
.pricing-price { font-family: var(--serif); font-size: 42px; margin-bottom: 4px; }
.pricing-card.featured .pricing-price, .pricing-card.featured .pricing-note, .pricing-card.featured .pricing-feature { color: white; }
.pricing-note { font-size: 12px; color: var(--text-muted); margin-bottom: 20px; }
.pricing-features { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.pricing-feature { font-size: 13px; color: var(--text-mid); display: flex; gap: 8px; align-items: flex-start; }
.pricing-feature::before { content: '✓'; color: var(--green); font-weight: 500; flex-shrink: 0; }
.pricing-card.featured .pricing-feature::before { color: #5DCAA5; }
.pricing-btn {
  width: 100%; padding: 12px; border-radius: 100px; font-size: 14px; font-weight: 500;
  font-family: var(--sans); cursor: pointer; border: none; transition: all 0.2s;
  text-decoration: none; display: block; text-align: center;
}
.pricing-btn-ghost { background: transparent; border: 0.5px solid var(--border-strong); color: var(--text); }
.pricing-btn-ghost:hover { border-color: var(--text); }
.pricing-btn-solid { background: var(--green); color: white; }
.pricing-btn-solid:hover { background: #1D9E75cc; }

/* MISSION */
.mission-section {
  padding: 100px 24px;
  text-align: center; max-width: 680px; margin: 0 auto;
}
.mission-quote {
  font-family: var(--serif); font-size: clamp(24px, 3.5vw, 38px);
  line-height: 1.25; letter-spacing: -0.5px; color: var(--text);
  margin-bottom: 24px;
}
.mission-quote em { color: var(--green); font-style: italic; }
.mission-sub { font-size: 15px; color: var(--text-mid); font-weight: 300; line-height: 1.7; }

/* FOOTER */
footer {
  padding: 32px 48px; border-top: 0.5px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  background: var(--cream);
}
.footer-logo { font-family: var(--serif); font-size: 18px; }
.footer-logo em { color: var(--green); font-style: normal; }
.footer-note { font-size: 12px; color: var(--text-muted); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 12px; color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }

/* ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-5px); }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}
.online-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); animation: pulse-dot 1.6s ease-in-out infinite;
  margin-right: 2px; vertical-align: middle;
}

/* SCROLL REVEAL */
.scroll-reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.scroll-reveal.revealed {
  opacity: 1; transform: translateY(0);
}

/* AI MISSION ANCHOR */
.ai-anchor-section {
  padding: 80px 24px;
  background: var(--green-dark);
  text-align: center;
}
.ai-anchor-section h2 {
  font-family: var(--serif); font-size: clamp(28px, 4vw, 42px);
  color: white; line-height: 1.15; letter-spacing: -0.5px; margin-bottom: 14px;
}
.ai-anchor-section p {
  font-size: 16px; color: rgba(255,255,255,0.7); max-width: 540px;
  margin: 0 auto 32px; line-height: 1.65; font-weight: 300;
}
.ai-anchor-section .btn-primary {
  display: inline-block;
}

/* MOBILE HAMBURGER */
.hamburger {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 4px; z-index: 200;
}
.hamburger span {
  display: block; width: 22px; height: 2px; background: var(--text);
  border-radius: 2px; transition: transform 0.3s, opacity 0.3s;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* MODAL */
.modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4); backdrop-filter: blur(4px);
  z-index: 300; display: none; align-items: center; justify-content: center;
  padding: 24px; opacity: 0; transition: opacity 0.25s;
}
.modal-overlay.visible { display: flex; opacity: 1; }
.modal {
  background: var(--white); border-radius: 20px; padding: 36px;
  max-width: 420px; width: 100%; position: relative;
  box-shadow: 0 40px 100px rgba(0,0,0,0.15);
  transform: translateY(20px); transition: transform 0.3s;
}
.modal-overlay.visible .modal { transform: translateY(0); }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; font-size: 20px; cursor: pointer;
  color: var(--text-muted); transition: color 0.2s; line-height: 1;
}
.modal-close:hover { color: var(--text); }
.modal h3 {
  font-family: var(--serif); font-size: 26px; margin-bottom: 8px;
  letter-spacing: -0.5px;
}
.modal p { font-size: 14px; color: var(--text-mid); margin-bottom: 24px; line-height: 1.6; font-weight: 300; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 12px; font-weight: 500; color: var(--text); margin-bottom: 6px; }
.form-group input, .form-group select {
  width: 100%; padding: 10px 14px; border-radius: 10px;
  border: 0.5px solid var(--border-strong); font-size: 14px;
  font-family: var(--sans); background: var(--cream); color: var(--text);
  outline: none; transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus { border-color: var(--green); }
.form-group .field-error { font-size: 11px; color: #D85A30; margin-top: 4px; display: none; }
.form-group.has-error input, .form-group.has-error select { border-color: #D85A30; }
.form-group.has-error .field-error { display: block; }
.form-submit {
  width: 100%; padding: 13px; border-radius: 100px;
  background: var(--green); color: white; border: none;
  font-size: 15px; font-weight: 500; font-family: var(--sans);
  cursor: pointer; transition: background 0.2s, transform 0.15s;
  margin-top: 8px;
}
.form-submit:hover { background: var(--green-mid); transform: translateY(-1px); }
.form-success {
  display: none; text-align: center; padding: 20px 0;
}
.form-success .success-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--green-light); display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; font-size: 28px;
}
.form-success h4 { font-family: var(--serif); font-size: 22px; margin-bottom: 8px; }
.form-success p { font-size: 14px; color: var(--text-mid); font-weight: 300; }

/* FEATURE DETAIL MODAL */
.feature-card { cursor: pointer; }
.feature-detail-content { display: none; }

/* VIDEO PLACEHOLDER */
.video-placeholder {
  background: #1a1a18; border-radius: 12px; padding: 48px 24px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; cursor: pointer; transition: background 0.2s;
  min-height: 200px;
}
.video-placeholder:hover { background: #2a2a28; }
.video-play-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255,255,255,0.1); border: 2px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}
.video-placeholder:hover .video-play-icon { background: rgba(29,158,117,0.3); border-color: var(--green); }
.video-play-icon svg { fill: white; width: 20px; height: 20px; margin-left: 2px; }
.video-label { color: rgba(255,255,255,0.5); font-size: 13px; font-weight: 400; }
.video-title { color: white; font-size: 15px; font-weight: 500; }

/* DASHBOARD INTERACTIVE */
.dash-nav-item { transition: background 0.2s, color 0.2s; }
.dash-nav-item:hover { background: var(--green-light); color: var(--green-mid); }

/* TOAST */
.toast {
  position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: var(--text); color: white; padding: 12px 24px;
  border-radius: 100px; font-size: 13px; font-weight: 500;
  z-index: 400; opacity: 0; transition: transform 0.4s, opacity 0.4s;
  pointer-events: none; white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* AI FLOATING ACTION BUTTON */
.ai-fab {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-mid) 100%);
  border-radius: 50%;
  box-shadow: 0 8px 32px rgba(29,158,117,0.4);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  transition: all 0.3s ease-in-out;
  border: 3px solid white;
}
.ai-fab.visible { display: flex; animation: fabEntry 0.4s ease both; }
.ai-fab:hover {
  transform: scale(1.1) translateY(-4px);
  box-shadow: 0 12px 40px rgba(29,158,117,0.5);
}
.ai-fab:active { transform: scale(0.95); }
.ai-fab-icon {
  font-size: 28px;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes fabEntry {
  from { opacity: 0; transform: scale(0) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* TICKER INFO TOOLTIP */
.ticker-with-info {
  position: relative;
  display: inline-block;
  cursor: help;
}
.ticker-info-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: var(--text);
  color: white;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease-in-out;
  z-index: 1000;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  max-width: 280px;
  white-space: normal;
  line-height: 1.5;
}
.ticker-info-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--text);
}
.ticker-with-info:hover .ticker-info-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(-12px);
}
.ticker-info-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  opacity: 0.7;
  margin-bottom: 4px;
}
.ticker-info-role {
  font-weight: 500;
  margin-bottom: 6px;
}
.ticker-info-desc {
  font-size: 11px;
  opacity: 0.9;
  line-height: 1.6;
}

/* LEARNING PROGRESS INDICATOR */
.learning-progress {
  margin: 12px 12px 8px;
  padding: 12px;
  background: linear-gradient(135deg, rgba(29,158,117,0.08) 0%, rgba(29,158,117,0.03) 100%);
  border-radius: 10px;
  border: 0.5px solid rgba(29,158,117,0.2);
}
.progress-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
  font-weight: 500;
}
.progress-bar-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.progress-bar {
  flex: 1;
  height: 6px;
  background: rgba(29,158,117,0.15);
  border-radius: 100px;
  overflow: hidden;
  position: relative;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green) 0%, var(--green-mid) 100%);
  border-radius: 100px;
  transition: width 0.6s ease-in-out;
  box-shadow: 0 0 10px rgba(29,158,117,0.5);
}
.progress-percent {
  font-size: 11px;
  font-weight: 600;
  color: var(--green);
  min-width: 35px;
  text-align: right;
}
.progress-status {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 6px;
}

.sidebar-mission {
  margin-top: auto;
  padding: 16px 12px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.sidebar-mission-quote {
  font-family: var(--serif);
  font-size: 12px;
  font-style: italic;
  color: var(--text-mid);
  line-height: 1.6;
  letter-spacing: -0.2px;
}

/* AI CHATBOT ASSISTANT */
.ai-chatbot-container {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.ai-chatbot-window {
  width: 420px;
  max-width: calc(100vw - 64px);
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
  backdrop-filter: contrast(95%) brightness(105%) blur(10px);
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: all 0.4s var(--spring-ease);
  max-height: 600px;
  display: flex;
  flex-direction: column;
}

.ai-chatbot-window.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.ai-chatbot-window::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='chatNoise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23chatNoise)'/%3E%3C/svg%3E");
  opacity: 0.015;
  pointer-events: none;
  z-index: 0;
}

.ai-chatbot-header {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-mid) 100%);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  position: relative;
  z-index: 1;
}

.ai-chatbot-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ai-chatbot-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  border: 2px solid rgba(255,255,255,0.3);
}

.ai-chatbot-info h4 {
  font-family: var(--serif);
  font-size: 16px;
  color: white;
  margin-bottom: 2px;
  font-weight: 500;
}

.ai-chatbot-status {
  font-size: 11px;
  color: rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  gap: 6px;
}

.ai-chatbot-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  animation: pulse-dot 1.6s ease-in-out infinite;
}

.ai-chatbot-close {
  background: rgba(255,255,255,0.15);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  color: white;
  font-size: 18px;
}

.ai-chatbot-close:hover {
  background: rgba(255,255,255,0.25);
  transform: rotate(90deg);
}

.ai-chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--cream);
  min-height: 360px;
  max-height: 440px;
  position: relative;
  z-index: 1;
}

.ai-message {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  animation: fadeUp 0.3s ease both;
}

.ai-message.user {
  flex-direction: row-reverse;
}

.ai-message-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.ai-message.user .ai-message-avatar {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-mid) 100%);
  color: white;
  border: none;
}

.ai-message-content {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  padding: 12px 16px;
  max-width: 75%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.ai-message.user .ai-message-content {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-mid) 100%);
  color: white;
  border: none;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 4px;
}

.ai-message-text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
}

.ai-message.user .ai-message-text {
  color: white;
}

.ai-message-time {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 6px;
}

.ai-message.user .ai-message-time {
  color: rgba(255,255,255,0.7);
}

.ai-chatbot-typing {
  display: none;
  align-items: center;
  gap: 10px;
}

.ai-chatbot-typing.active {
  display: flex;
}

.ai-chatbot-typing-bubble {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  padding: 12px 16px;
  display: flex;
  gap: 4px;
  align-items: center;
}

.ai-typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: bounce 1.2s infinite;
}

.ai-typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.ai-typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

.ai-chatbot-input-wrap {
  padding: 16px 20px;
  background: white;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.ai-chatbot-input {
  flex: 1;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  padding: 10px 18px;
  font-size: 13px;
  font-family: var(--sans);
  background: var(--cream);
  color: var(--text);
  outline: none;
  transition: all 0.3s var(--spring-ease);
}

.ai-chatbot-input:focus {
  border-color: var(--green);
  background: white;
}

.ai-chatbot-send {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-mid) 100%);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s var(--spring-ease);
  font-size: 18px;
  flex-shrink: 0;
}

.ai-chatbot-send:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 16px rgba(45,154,126,0.3);
}

.ai-chatbot-send:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.ai-chatbot-trigger {
  width: 380px;
  max-width: calc(100vw - 64px);
  background: white;
  border: 1px solid var(--border);
  border-radius: 100px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  backdrop-filter: contrast(95%) brightness(105%) blur(10px);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  cursor: text;
  transition: all 0.3s var(--spring-ease);
  position: relative;
  overflow: hidden;
}

.ai-chatbot-trigger::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='triggerNoise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23triggerNoise)'/%3E%3C/svg%3E");
  opacity: 0.015;
  pointer-events: none;
}

.ai-chatbot-trigger:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  transform: translateY(-2px);
  border-color: var(--green);
}

.ai-chatbot-trigger.hidden {
  display: none;
}

.ai-trigger-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-mid) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  color: white;
}

.ai-trigger-text {
  flex: 1;
  font-size: 14px;
  color: var(--text-muted);
  font-family: var(--sans);
  user-select: none;
  position: relative;
  transition: opacity 0.1s ease;
  z-index: 1;
}

.ai-chatbot-suggestions {
  padding: 0 20px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background: white;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.ai-suggestion-chip {
  background: var(--cream);
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 12px;
  color: var(--text-mid);
  cursor: pointer;
  transition: all 0.3s var(--spring-ease);
  font-family: var(--sans);
}

.ai-suggestion-chip:hover {
  background: var(--green-light);
  border-color: var(--green);
  color: var(--green-mid);
  transform: translateY(-2px);
}

@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

.skeleton-loader {
  background: linear-gradient(
    90deg,
    rgba(0,0,0,0.03) 0%,
    rgba(0,0,0,0.06) 50%,
    rgba(0,0,0,0.03) 100%
  );
  background-size: 1000px 100%;
  animation: shimmer 2s infinite ease-in-out;
  border-radius: 8px;
}

.skeleton-text {
  height: 14px;
  margin-bottom: 8px;
  width: 100%;
}

.skeleton-price {
  height: 28px;
  width: 120px;
  margin-bottom: 8px;
}

.skeleton-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  backdrop-filter: contrast(95%) brightness(105%) blur(10px);
}

/* RESPONSIVE */
@media (max-width: 700px) {
  nav { padding: 16px 20px; }
  .hamburger { display: flex; }
  .nav-links {
    display: none; flex-direction: column; position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(250,250,247,0.98); backdrop-filter: blur(12px);
    justify-content: center; align-items: center; gap: 28px;
    z-index: 150;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 20px; }
  .nav-links .nav-cta { font-size: 16px; padding: 14px 32px; }
  .dash-inner { grid-template-columns: 1fr; }
  .dash-inner-app { grid-template-columns: 1fr; }
  .dash-sidebar { display: none; }
  .sidebar-mission { display: none; }
  .portfolio-top-row { flex-direction: column; }
  .portfolio-chart-wrap { width: 100%; }
  .trending-row { grid-template-columns: repeat(2, 1fr); }
  .guides-grid, .learn-grid { grid-template-columns: 1fr; }
  .ht-header, .ht-row { grid-template-columns: 1fr 1.5fr 1fr 1fr 1fr; font-size: 11px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .enhanced-metrics { grid-template-columns: 1fr; }
  .ai-ask-input-wrap { flex-direction: column; }
  .ai-ask-btn { width: 100%; }
  footer { flex-direction: column; gap: 16px; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }

  .ai-chatbot-container {
    bottom: 16px;
    right: 16px;
  }

  .ai-chatbot-window {
    width: calc(100vw - 32px);
    max-height: 70vh;
  }

  .ai-chatbot-messages {
    min-height: 280px;
    max-height: calc(70vh - 240px);
  }

  .ai-chatbot-trigger {
    width: calc(100vw - 32px);
    padding: 12px 16px;
  }

  .ai-trigger-icon {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  .ai-trigger-text {
    font-size: 13px;
  }

  .ai-chatbot-suggestions {
    flex-direction: column;
  }

  .ai-suggestion-chip {
    width: 100%;
    text-align: center;
  }
}
