/* Bharat Alpha AI - Master CSS Stylesheet (Glassmorphism & Custom Floating Tooltips) */

:root {
  --bg-dark: #070a11;
  --bg-card: rgba(14, 20, 34, 0.75);
  --border-card: rgba(255, 255, 255, 0.1);
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  
  --accent-green: #10b981;
  --accent-cyan: #06b6d4;
  --accent-gold: #f59e0b;
  --accent-purple: #8b5cf6;
  --accent-red: #ef4444;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
}

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

body {
  font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.5;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(16, 185, 129, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.08) 0%, transparent 40%);
  background-attachment: fixed;
}

/* Custom Floating Glassmorphism Tooltip */
.custom-tooltip {
  position: fixed;
  z-index: 9999;
  background: rgba(10, 15, 28, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid var(--accent-cyan);
  color: #fff;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  max-width: 280px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(6, 182, 212, 0.2);
  pointer-events: none;
  display: none;
  line-height: 1.4;
  transition: opacity 0.15s ease;
}

.custom-tooltip strong {
  color: var(--accent-green);
  display: block;
  margin-bottom: 4px;
}

/* Mode Switch Toggle */
.mode-switch-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-card);
  padding: 4px 10px;
  border-radius: 20px;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}

.mode-switch-wrapper:hover {
  border-color: var(--accent-cyan);
}

.mode-toggle-pill {
  width: 38px;
  height: 20px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  position: relative;
  transition: background 0.3s ease;
}

.mode-toggle-circle {
  width: 16px;
  height: 16px;
  background: var(--accent-green);
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.mode-expert-active .mode-toggle-pill {
  background: rgba(139, 92, 246, 0.3);
}

.mode-expert-active .mode-toggle-circle {
  transform: translateX(18px);
  background: var(--accent-purple);
}

/* Header & Ticker Tape */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(7, 10, 17, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-card);
}

.ticker-bar {
  background: rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  white-space: nowrap;
  padding: 6px 0;
  font-size: 0.8rem;
}

.ticker-track {
  display: inline-block;
  animation: ticker 35s linear infinite;
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 24px;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 24px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: bold;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff;
}

.brand-sub {
  font-size: 0.7rem;
  color: var(--accent-cyan);
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--accent-green);
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  transition: border-color 0.3s;
}

.glass-card:hover {
  border-color: rgba(16, 185, 129, 0.3);
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-card);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-green);
}

/* Badges & Text Gradients */
.badge-green {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
}

.badge-red {
  background: rgba(239, 68, 68, 0.15);
  color: var(--accent-red);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
}

.badge-cyan {
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-cyan);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
}

.badge-gold {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-gold);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
}

.text-gradient-green {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-cyan {
  background: linear-gradient(135deg, #38bdf8 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-gold {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Main Container & Hero Grid */
.main-container {
  max-width: 1280px;
  margin: 24px auto;
  padding: 0 24px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--accent-green);
  margin-bottom: 16px;
}

.hero-title {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 14px;
}

.hero-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  gap: 14px;
}

/* Market Briefing Box */
.market-brief-box {
  background: linear-gradient(180deg, rgba(6, 182, 212, 0.08) 0%, rgba(14, 20, 34, 0.9) 100%);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.brief-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.brief-badge {
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-cyan);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 12px;
}

.brief-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.metric-pill {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-card);
  padding: 10px 14px;
  border-radius: var(--radius-md);
}

.metric-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
}

.metric-val {
  font-size: 1.1rem;
  font-weight: 700;
}

/* Picks Grid & Cards */
.picks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 20px;
}

.pick-card {
  background: rgba(14, 20, 34, 0.9);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: all 0.25s;
  position: relative;
}

.pick-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-green);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

.pick-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.pick-symbol {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
}

.pick-name {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.conviction-ring {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
}

.pick-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
}

.current-price {
  font-size: 1.6rem;
  font-weight: 800;
}

.pick-targets {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  background: rgba(0, 0, 0, 0.3);
  padding: 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  text-align: center;
}

.target-box span {
  display: block;
  font-size: 0.7rem;
  color: var(--text-dim);
}

.target-box strong {
  font-size: 0.95rem;
}

.beginner-summary-box {
  background: rgba(6, 182, 212, 0.08);
  border-left: 3px solid var(--accent-cyan);
  padding: 10px 12px;
  border-radius: 4px;
  font-size: 0.82rem;
  color: #e5e7eb;
  margin-bottom: 14px;
}

.allocation-note {
  background: rgba(245, 158, 11, 0.08);
  border: 1px dashed rgba(245, 158, 11, 0.3);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  color: var(--accent-gold);
  margin-bottom: 14px;
}

.tag-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag-item {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 4px;
}

/* Beginners 4-Step Grid */
.beginner-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}

.step-card {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 20px;
  position: relative;
}

.step-num-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-gold);
  font-weight: 800;
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 10px;
}

.step-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.step-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.step-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
}

.step-action-box {
  background: rgba(16, 185, 129, 0.08);
  border-left: 3px solid var(--accent-green);
  padding: 8px 10px;
  border-radius: 4px;
  font-size: 0.78rem;
  color: var(--accent-green);
}

/* Compounder Calculator Wrapper */
.compounder-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.calc-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.form-value-badge {
  color: var(--accent-green);
  font-weight: 700;
}

.form-control {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-card);
  color: #fff;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  outline: none;
}

.form-control:focus {
  border-color: var(--accent-green);
}

.range-slider {
  width: 100%;
  accent-color: var(--accent-green);
}

.strategy-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

.strategy-btn {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-card);
  color: var(--text-muted);
  padding: 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
  text-align: center;
}

.strategy-btn.active {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--accent-green);
  color: #fff;
  font-weight: 700;
}

.compound-results {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.big-result-num {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--accent-green);
  margin: 10px 0;
}

.milestone-bar-container {
  margin-top: 20px;
}

.milestone-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.progress-track {
  width: 100%;
  height: 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981 0%, #06b6d4 100%);
  border-radius: 6px;
  transition: width 0.5s ease;
}

/* Stock Analyzer Terminal */
.analyzer-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.search-box-row {
  display: flex;
  gap: 12px;
}

.chart-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tf-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-card);
  color: var(--text-muted);
  padding: 4px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
}

.tf-btn.active {
  background: var(--accent-green);
  color: #fff;
  border-color: var(--accent-green);
}

.chart-container {
  width: 100%;
  height: 320px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  position: relative;
}

#stockCanvas {
  width: 100%;
  height: 100%;
}

.metrics-grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.scorecard-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-card);
  padding: 16px;
  border-radius: var(--radius-sm);
}

/* AI Chat Section ("Agent Dalal") */
.chat-container-card {
  background: rgba(14, 20, 34, 0.95);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  height: 580px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}

.chat-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: rgba(10, 15, 28, 0.85);
  border-bottom: 1px solid var(--border-card);
  gap: 8px;
}

.persona-switcher {
  display: flex;
  gap: 6px;
  overflow-x: auto;
}

.persona-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  padding: 5px 12px;
  border-radius: 16px;
  font-size: 0.76rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.persona-btn.active {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--accent-green);
  color: #ffffff;
}

.ai-config-btn {
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.25);
  color: var(--accent-cyan);
  padding: 5px 12px;
  border-radius: 16px;
  font-size: 0.76rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.ai-config-btn:hover {
  background: rgba(6, 182, 212, 0.2);
  color: #ffffff;
}

.chat-messages {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.msg-bubble {
  max-width: 82%;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 0.90rem;
  line-height: 1.6;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.msg-ai {
  align-self: flex-start;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e5e7eb;
  border-top-left-radius: 4px;
}

.msg-ai h3 {
  font-size: 1.0rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}

.msg-ai h4 {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-cyan);
  margin: 10px 0 4px 0;
  letter-spacing: -0.1px;
}

.msg-ai strong {
  font-weight: 600;
  color: #ffffff;
}

.msg-ai p {
  margin-bottom: 8px;
}

.msg-ai p:last-child {
  margin-bottom: 0;
}

.msg-ai ul, .msg-ai ol {
  margin: 4px 0 8px 18px;
  color: #d1d5db;
}

.msg-ai li {
  margin-bottom: 4px;
}

.msg-ai blockquote {
  background: rgba(16, 185, 129, 0.08);
  border-left: 3px solid var(--accent-green);
  padding: 8px 12px;
  margin: 8px 0;
  border-radius: 4px;
  color: #e5e7eb;
  font-size: 0.86rem;
}

.msg-ai code {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.82rem;
  color: #38bdf8;
}

.msg-ai pre {
  background: #020617;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow-x: auto;
  margin: 10px 0;
}

.msg-ai pre code {
  background: transparent;
  padding: 0;
}

.msg-user {
  align-self: flex-end;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
  border-top-right-radius: 4px;
  font-weight: 500;
}

.chat-input-bar {
  display: flex;
  gap: 12px;
  padding: 16px 24px;
  background: rgba(10, 15, 28, 0.8);
  border-top: 1px solid var(--border-card);
}

.prompt-chips-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 24px;
  background: rgba(7, 10, 17, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.prompt-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.prompt-chip:hover {
  background: rgba(16, 185, 129, 0.1);
  border-color: var(--accent-green);
  color: #ffffff;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-card {
  background: rgba(14, 20, 34, 0.98);
  border: 1px solid var(--accent-green);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 440px;
  padding: 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 1.4rem;
  cursor: pointer;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast-msg {
  background: rgba(14, 20, 34, 0.96);
  border: 1px solid var(--accent-cyan);
  color: #ffffff;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 0.86rem;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  animation: slideUpToast 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}

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

.broker-option-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-card);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s;
  color: #ffffff;
}

.broker-option-card:hover {
  border-color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.1);
}

/* High-Density Professional Wall Street Bloomberg Terminal Styles (Expert Mode) */
body.mode-expert-active {
  background-color: #04060a;
  font-family: 'Consolas', 'Menlo', 'Monaco', 'Courier New', monospace, sans-serif;
}

body.mode-expert-active .glass-card,
body.mode-expert-active .pick-card,
body.mode-expert-active .scorecard-card {
  background: rgba(10, 14, 24, 0.95) !important;
  border: 1px solid rgba(6, 182, 212, 0.4) !important;
  border-radius: 4px !important;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.1) !important;
}

body.mode-expert-active .navbar {
  background: #020408 !important;
  border-bottom: 1px solid rgba(6, 182, 212, 0.5) !important;
}

body.mode-expert-active .text-gradient-green,
body.mode-expert-active .text-gradient-gold,
body.mode-expert-active .text-gradient-cyan {
  background: none !important;
  -webkit-text-fill-color: initial !important;
}

body.mode-expert-active .text-gradient-green { color: #10b981 !important; }
body.mode-expert-active .text-gradient-gold { color: #f59e0b !important; }
body.mode-expert-active .text-gradient-cyan { color: #06b6d4 !important; }

/* Quant Terminal Table Grid */
.quant-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
  background: rgba(0, 0, 0, 0.6);
  padding: 10px;
  border-radius: 4px;
  border: 1px solid rgba(6, 182, 212, 0.3);
  font-family: monospace;
  font-size: 0.78rem;
}

.quant-metric-box {
  background: rgba(255, 255, 255, 0.03);
  padding: 6px 10px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.quant-metric-box label {
  color: var(--text-dim);
  font-size: 0.7rem;
  display: block;
  text-transform: uppercase;
}

.quant-metric-box strong {
  color: #fff;
  font-size: 0.9rem;
}



/* Footer & Disclaimers */
footer {
  border-top: 1px solid var(--border-card);
  background: rgba(0, 0, 0, 0.8);
  margin-top: 40px;
  padding: 32px 24px;
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.disclaimer-box {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Responsive Rules */
@media (max-width: 900px) {
  .hero-grid, .compounder-wrapper {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
}

/* Main Workspace vs Academy Tab Switching System */
.workspace-nav-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.4);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-card);
  gap: 4px;
}

.workspace-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.workspace-tab-btn.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25) 0%, rgba(16, 185, 129, 0.25) 100%);
  color: #fff;
  border: 1px solid var(--accent-gold);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
}

.academy-level-tab {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.academy-level-tab:hover {
  background: rgba(245, 158, 11, 0.1);
  border-color: var(--accent-gold);
  color: #fff;
}

.academy-level-tab.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(14, 20, 34, 0.95) 100%);
  border: 2px solid var(--accent-gold);
  color: #fff;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
}

.academy-terminal-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  margin-top: 24px;
}

.quick-nav-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 14px;
  background: rgba(14, 20, 34, 0.95);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  position: sticky;
  top: 72px;
  z-index: 90;
  backdrop-filter: blur(16px);
}

.quick-nav-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.quick-nav-chip:hover {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--accent-green);
  color: var(--accent-green);
  transform: translateY(-1px);
}


