/* AI FinSight — Light Theme
   App name is centralised in webapp/main.py → APP_CONFIG. */

:root {
  --primary:      #1E3A8A;
  --secondary:    #2563EB;
  --success:      #16A34A;
  --warning:      #F59E0B;
  --danger:       #DC2626;
  --bg:           #F8FAFC;
  --card-bg:      #FFFFFF;
  --text:         #1F2937;
  --text-muted:   #6B7280;
  --border:       #E5E7EB;
  --border-light: #F3F4F6;
  --shadow:       0 1px 4px rgba(0,0,0,0.07), 0 2px 12px rgba(0,0,0,0.04);
  --shadow-md:    0 4px 16px rgba(30,58,138,0.10);
}

/* ── Base ────────────────────────────────────────────────────────────────────── */
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
}

/* ── Navbar ─── Bootstrap 5.3 CSS-variable override (definitive white fix) ──── */
.app-navbar {
  background: var(--primary) !important;
  border-bottom: 3px solid var(--secondary) !important;
  box-shadow: 0 2px 8px rgba(30,58,138,0.22);
  /* Bootstrap 5.3 theming variables — these cascade to every child nav-link */
  --bs-navbar-color:              #ffffff;
  --bs-navbar-hover-color:        #ffffff;
  --bs-navbar-active-color:       #ffffff;
  --bs-navbar-brand-color:        #ffffff;
  --bs-navbar-brand-hover-color:  #ffffff;
  --bs-navbar-disabled-color:     rgba(255,255,255,0.4);
  --bs-navbar-toggler-border-color: rgba(255,255,255,0.4);
  --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255%2c255%2c255%2c0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.app-navbar .navbar-brand { color: #ffffff !important; font-weight: 800; letter-spacing: -0.01em; }
.app-navbar .navbar-brand i { color: #93C5FD; }
.app-navbar .app-disclaimer { color: rgba(255,255,255,0.62); font-size: 0.78rem; }

/* ── Search bar ──────────────────────────────────────────────────────────────── */
.search-bar {
  background: var(--primary);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 0.85rem 0;
}
.search-bar .form-control,
.search-bar .form-select {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
}
.search-bar .form-control::placeholder { color: rgba(255,255,255,0.55); }
.search-bar .form-control:focus,
.search-bar .form-select:focus {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.4);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.15);
}
.search-bar .form-select option { background: #1E3A8A; color: #fff; }
.search-bar .input-group-text {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.8);
}
.search-bar .btn-analyze {
  background: #F59E0B;
  border-color: #F59E0B;
  color: #1F2937;
  font-weight: 700;
}
.search-bar .btn-analyze:hover { background: #D97706; border-color: #D97706; }
.search-bar .btn-quick {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font-size: 0.78rem;
  padding: 0.25rem 0.7rem;
}
.search-bar .btn-quick:hover { background: rgba(255,255,255,0.22); }

/* ── Cards ───────────────────────────────────────────────────────────────────── */
.card {
  background: var(--card-bg) !important;
  border: 1px solid var(--border) !important;
  border-radius: 0.6rem !important;
  box-shadow: var(--shadow);
}
.card-header {
  background: #F9FAFB !important;
  border-bottom: 1px solid var(--border) !important;
  border-radius: 0.6rem 0.6rem 0 0 !important;
}
.section-title {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

/* ── Hero card ───────────────────────────────────────────────────────────────── */
#heroCard { border-radius: 0.6rem !important; }
#heroCard.buy  { border-left: 4px solid #16A34A !important; background: #F0FDF4 !important; }
#heroCard.hold { border-left: 4px solid #F59E0B !important; background: #FFFBEB !important; }
#heroCard.sell { border-left: 4px solid #DC2626 !important; background: #FEF2F2 !important; }
#heroName { color: var(--primary) !important; }
#heroPrice { color: var(--primary) !important; }
#heroTicker { background: #EFF6FF !important; color: var(--secondary) !important; border: 1px solid #BFDBFE; }

/* ── Recommendation badges ───────────────────────────────────────────────────── */
.rec-strong-buy  { background: #15803D; color: #fff; }
.rec-buy         { background: #16A34A; color: #fff; }
.rec-accumulate  { background: #65A30D; color: #fff; }
.rec-hold        { background: #D97706; color: #fff; }
.rec-reduce      { background: #EA580C; color: #fff; }
.rec-sell        { background: #DC2626; color: #fff; }
.rec-strong-sell { background: #991B1B; color: #fff; }

/* ── Score bars ──────────────────────────────────────────────────────────────── */
.score-label { font-size: 0.68rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.07em; font-weight: 600; }
.score-val   { font-size: 0.8rem; font-weight: 700; }

/* ── Tables ──────────────────────────────────────────────────────────────────── */
.table th {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border);
  background: #F9FAFB;
}
.table td { font-size: 0.85rem; color: var(--text); border-color: var(--border-light); }
.table-hover tbody tr:hover { background: #EFF6FF !important; }
.table-striped > tbody > tr:nth-of-type(even) > * { background: #F9FAFB; }

/* ── Sidebars ─────────────────────────────────────────────────────────────────── */
#sidebarCol,
#sellSidebarCol {
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  position: sticky;
  top: 120px;
}
@media (max-width: 991px) {
  #sidebarCol, #sellSidebarCol { max-height: none; position: static; }
}

.sidebar-card { font-size: 0.82rem; }

/* Buy sidebar header accent */
.sidebar-header-buy {
  background: linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 100%) !important;
  border-bottom: 1px solid #BBF7D0 !important;
}

/* Sell sidebar header accent */
.sidebar-header-sell {
  background: linear-gradient(135deg, #FEF2F2 0%, #FEE2E2 100%) !important;
  border-bottom: 1px solid #FECACA !important;
}

/* Buy signal list items */
.stock-list-item {
  padding: 0.45rem 0.65rem;
  cursor: pointer;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.12s;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.4rem;
}
.stock-list-item:hover { background: #EFF6FF; }
.stock-list-item:last-child { border-bottom: none; }
.stock-list-item .sym { font-weight: 700; color: var(--primary); font-size: 0.82rem; line-height: 1.2; }
.stock-list-item .sec { font-size: 0.63rem; color: var(--text-muted); }
.stock-list-item .score-chip {
  font-size: 0.63rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Sell signal list items */
.sell-list-item {
  padding: 0.45rem 0.65rem;
  cursor: pointer;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.12s;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.4rem;
}
.sell-list-item:hover { background: #FEF2F2; }
.sell-list-item:last-child { border-bottom: none; }
.sell-list-item .sym { font-weight: 700; color: #B91C1C; font-size: 0.82rem; line-height: 1.2; }
.sell-list-item .sec { font-size: 0.63rem; color: var(--text-muted); }

/* Market Pulse items */
.pulse-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.75rem;
}
.pulse-row:last-child { border-bottom: none; }
.pulse-label { color: var(--text-muted); font-size: 0.7rem; }
.pulse-val   { font-weight: 700; font-size: 0.78rem; }

/* ── Nav tabs ────────────────────────────────────────────────────────────────── */
.nav-tabs {
  border-bottom: 2px solid var(--border);
}
.nav-tabs .nav-link {
  color: var(--text-muted);
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.5rem 0.8rem;
  border-radius: 0;
  transition: color 0.15s, border-color 0.15s;
}
.nav-tabs .nav-link:hover { color: var(--secondary); border-bottom-color: var(--secondary); }
.nav-tabs .nav-link.active {
  color: var(--primary);
  font-weight: 700;
  border-bottom: 2px solid var(--primary);
  background: transparent;
}

/* ── Chart legend rows ────────────────────────────────────────────────────────── */
.chart-legend-row {
  font-size: 0.72rem;
  border-top: 1px solid var(--border-light);
  padding: 0.4rem 1rem;
  background: #F9FAFB;
  color: var(--text-muted);
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  align-items: center;
}
.chart-legend-row span { display: flex; align-items: center; gap: 0.3rem; }

/* ── Markdown content ────────────────────────────────────────────────────────── */
.md-content { color: var(--text); line-height: 1.75; font-size: 0.88rem; }
.md-content h1, .md-content h2, .md-content h3 { color: var(--primary); font-weight: 700; margin: 1rem 0 0.4rem; }
.md-content h2 { font-size: 1rem; border-bottom: 1px solid var(--border); padding-bottom: 0.25rem; }
.md-content h3 { font-size: 0.92rem; color: var(--secondary); }
.md-content p  { margin: 0.45rem 0; }
.md-content ul, .md-content ol { margin: 0.4rem 0 0.4rem 1.2rem; }
.md-content li { margin: 0.2rem 0; }
.md-content strong { color: var(--primary); }
.md-content em     { color: var(--text-muted); }
.md-content table  { width: 100%; border-collapse: collapse; margin: 0.8rem 0; font-size: 0.82rem; }
.md-content th { background: #EFF6FF; color: var(--primary); padding: 0.5rem 0.75rem; text-align: left; border: 1px solid #BFDBFE; font-weight: 600; }
.md-content td { padding: 0.4rem 0.75rem; border: 1px solid var(--border); }
.md-content tr:nth-child(even) td { background: #F9FAFB; }
.md-content code { background: #EFF6FF; color: var(--secondary); padding: 0.1rem 0.35rem; border-radius: 3px; font-size: 0.8rem; }
.md-content blockquote { border-left: 3px solid var(--secondary); padding-left: 0.8rem; color: var(--text-muted); margin: 0.5rem 0; background: #F8FAFC; padding: 0.5rem 0.8rem; border-radius: 0 0.3rem 0.3rem 0; }
.md-content hr { border-color: var(--border); margin: 0.75rem 0; }

/* ── News cards ──────────────────────────────────────────────────────────────── */
.news-card {
  border-left: 3px solid var(--border);
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  background: #FFFFFF;
  border-radius: 0 0.4rem 0.4rem 0;
  box-shadow: var(--shadow);
}
.news-card.positive { border-left-color: #16A34A; background: #F0FDF4; }
.news-card.negative { border-left-color: #DC2626; background: #FEF2F2; }
.news-card.neutral  { border-left-color: #F59E0B; background: #FFFBEB; }
.news-card .news-title { color: var(--primary); font-weight: 600; font-size: 0.88rem; }
.news-card .news-title:hover { color: var(--secondary); }
.news-card .news-summary { color: var(--text-muted); font-size: 0.8rem; }

/* ── SWOT grid ───────────────────────────────────────────────────────────────── */
.swot-cell { padding: 0.75rem; border-radius: 0.375rem; min-height: 90px; }
.swot-s { background: #F0FDF4; border: 1px solid #BBF7D0; }
.swot-w { background: #FEF2F2; border: 1px solid #FECACA; }
.swot-o { background: #EFF6FF; border: 1px solid #BFDBFE; }
.swot-t { background: #FFFBEB; border: 1px solid #FDE68A; }
.swot-cell .swot-heading { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.swot-s .swot-heading { color: #15803D; }
.swot-w .swot-heading { color: #B91C1C; }
.swot-o .swot-heading { color: #1D4ED8; }
.swot-t .swot-heading { color: #B45309; }
.swot-cell ul { margin: 0.25rem 0 0 1rem; padding: 0; }
.swot-cell li { font-size: 0.82rem; color: var(--text); margin: 0.2rem 0; }

/* ── AI badge ────────────────────────────────────────────────────────────────── */
.badge-ai  { background: var(--primary); color: #fff; font-size: 0.65rem; }
.badge-rag { background: #0E7490; color: #fff; font-size: 0.65rem; }
.badge-risk{ background: var(--danger); color: #fff; font-size: 0.65rem; }

/* ── Welcome feature tiles ───────────────────────────────────────────────────── */
.feature-tile { background: #EFF6FF; border: 1px solid #BFDBFE; border-radius: 0.5rem; padding: 1rem; text-align: center; }
.feature-tile i { color: var(--primary); }
.feature-tile .feature-label { color: var(--primary); font-weight: 600; font-size: 0.9rem; margin-top: 0.5rem; }
.feature-tile .feature-sub { color: var(--text-muted); font-size: 0.78rem; }

/* ── Disclaimer ──────────────────────────────────────────────────────────────── */
.alert-disclaimer {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: #1E40AF;
  font-size: 0.82rem;
  border-radius: 0.5rem;
}

/* ── Metric cells in hero ────────────────────────────────────────────────────── */
.metric-cell {
  background: #F9FAFB;
  border: 1px solid var(--border);
  border-radius: 0.4rem;
  padding: 0.6rem 0.75rem;
}
.metric-cell .m-label { font-size: 0.65rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.07em; font-weight: 600; }
.metric-cell .m-value { font-size: 0.92rem; font-weight: 700; color: var(--text); }

/* ── Entry level panel ───────────────────────────────────────────────────────── */
.level-row { padding: 0.45rem 0; border-bottom: 1px solid var(--border-light); }
.level-row:last-child { border-bottom: none; }
.level-label { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }
.level-value { font-size: 0.9rem; font-weight: 700; }

/* ── AI rating circle ────────────────────────────────────────────────────────── */
.ai-rating-display {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 6px solid var(--primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  background: #EFF6FF;
}
.ai-rating-num { font-size: 2.2rem; font-weight: 900; color: var(--primary); line-height: 1; }
.ai-rating-den { font-size: 0.75rem; color: var(--text-muted); }

/* ── Confidence info button & popover ───────────────────────────────────────── */
.conf-info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #DBEAFE;
  color: #1D4ED8;
  font-size: 0.62rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  vertical-align: middle;
  margin-left: 4px;
  flex-shrink: 0;
  line-height: 1;
  padding: 0;
  transition: background 0.15s, color 0.15s;
}
.conf-info-btn:hover { background: #1D4ED8; color: #fff; }
.conf-info-btn:focus { outline: 2px solid #93C5FD; outline-offset: 1px; }

/* Popover overrides for the confidence breakdown */
.popover.conf-popover { max-width: 340px; font-size: 0.82rem; border: 1px solid #BFDBFE; }
.popover.conf-popover .popover-header {
  background: #1E3A8A; color: #fff; font-weight: 700; font-size: 0.82rem;
  border-bottom: 1px solid #2563EB;
}
.popover.conf-popover .popover-body { padding: 0.75rem; color: #1F2937; }
.conf-row { display: flex; justify-content: space-between; align-items: baseline; margin: 0.2rem 0; }
.conf-row-label { color: #6B7280; font-size: 0.78rem; }
.conf-row-val   { font-weight: 700; font-size: 0.82rem; color: #1F2937; }
.conf-divider   { border-top: 1px solid #E5E7EB; margin: 0.5rem 0; }
.conf-weight-bar { display: flex; align-items: center; gap: 0.4rem; margin: 0.18rem 0; }
.conf-weight-track { flex: 1; height: 5px; background: #E5E7EB; border-radius: 3px; overflow: hidden; }
.conf-weight-fill  { height: 5px; border-radius: 3px; }
.conf-note { font-size: 0.72rem; color: #9CA3AF; margin-top: 0.5rem; line-height: 1.4; }

/* ── Animations ──────────────────────────────────────────────────────────────── */
@keyframes fadeIn { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }
.fade-in { animation: fadeIn 0.35s ease forwards; }

/* ── Scrollbar ───────────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: #F1F5F9; }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94A3B8; }

/* ── RAG Document Assistant ───────────────────────────────────────────────────── */

/* Tab header bar */
.rag-tab-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.75rem;
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  border: 1px solid #BFDBFE;
  border-radius: 0.6rem;
  gap: 0.75rem;
}

/* Drop-zone */
.rag-dropzone {
  border: 2.5px dashed #BFDBFE;
  border-radius: 0.75rem;
  background: #EFF6FF;
  padding: 1.75rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
}
.rag-dropzone:hover,
.rag-dropzone.drag-over {
  border-color: #2563EB;
  background: #DBEAFE;
}
.rag-dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.rag-dropzone-icon { font-size: 2.2rem; color: #2563EB; margin-bottom: 0.5rem; }
.rag-dropzone-title { font-size: 0.92rem; font-weight: 700; color: #1E3A8A; margin-bottom: 0.2rem; line-height: 1.4; }
.rag-dropzone-sub   { font-size: 0.76rem; color: #6B7280; }
.rag-dropzone-types { margin-top: 0.5rem; }

.rag-type-badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 0.3rem;
  font-size: 0.68rem;
  font-weight: 700;
  margin: 0.15rem;
  letter-spacing: 0.05em;
}
.rag-type-pdf  { background: #FEE2E2; color: #B91C1C; border: 1px solid #FECACA; }
.rag-type-docx { background: #EFF6FF; color: #1D4ED8; border: 1px solid #BFDBFE; }
.rag-type-txt  { background: #F0FDF4; color: #15803D; border: 1px solid #BBF7D0; }
.rag-type-csv  { background: #FFFBEB; color: #B45309; border: 1px solid #FDE68A; }

/* File info card */
.rag-file-card {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: 0.6rem;
  padding: 0.65rem 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.rag-file-icon { font-size: 1.4rem; color: #16A34A; flex-shrink: 0; }
.rag-file-name { font-weight: 700; color: #15803D; font-size: 0.83rem; }
.rag-file-meta { font-size: 0.72rem; color: #6B7280; }

/* Upload progress */
.rag-upload-progress {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  text-align: center;
}

/* Empty state (right panel before upload) */
.rag-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 340px;
  padding: 2rem;
  border: 2px dashed #E5E7EB;
  border-radius: 0.75rem;
  background: #FAFBFC;
  text-align: center;
}
.rag-empty-state i { font-size: 3.5rem; color: #BFDBFE; margin-bottom: 0.75rem; }
.rag-empty-title { font-size: 1rem; font-weight: 700; color: #9CA3AF; margin-bottom: 0.35rem; }
.rag-empty-sub   { font-size: 0.82rem; color: #D1D5DB; line-height: 1.6; }

/* Summary card */
.rag-summary-card {
  background: #FFFFFF;
  border: 1px solid #BFDBFE;
  border-radius: 0.6rem;
  border-left: 4px solid #2563EB;
  overflow: hidden;
}
.rag-summary-header {
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  border-bottom: 1px solid #BFDBFE;
  padding: 0.55rem 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  user-select: none;
}

/* Suggestion chips (left panel) */
.rag-suggestion {
  display: inline-block;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: #1D4ED8;
  border-radius: 1.5rem;
  padding: 0.25rem 0.7rem;
  font-size: 0.74rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
  margin: 0.18rem 0.1rem;
  line-height: 1.5;
}
.rag-suggestion:hover { background: #DBEAFE; border-color: #93C5FD; }

/* Chat card */
.rag-chat-card { border-radius: 0.6rem !important; overflow: hidden; }

/* Suggestion strip inside chat header */
.rag-suggestion-strip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.75rem;
  background: #F9FAFB;
  border-bottom: 1px solid #F3F4F6;
  overflow-x: auto;
  flex-wrap: wrap;
}
.rag-suggestion-strip .rag-suggestion {
  font-size: 0.7rem;
  padding: 0.18rem 0.6rem;
  white-space: nowrap;
}

/* Chat window */
.rag-chat-window {
  height: 320px;
  overflow-y: auto;
  background: #FAFBFC;
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

/* Chat row wrappers */
.chat-row       { display: flex; flex-direction: column; }
.chat-row.right { align-items: flex-end; }
.chat-row.left  { align-items: flex-start; }

/* Chat bubbles */
.chat-bubble {
  max-width: 88%;
  padding: 0.55rem 0.85rem;
  border-radius: 1rem;
  font-size: 0.86rem;
  line-height: 1.65;
  word-break: break-word;
}
.chat-bubble.user {
  background: #1E3A8A;
  color: #fff;
  border-bottom-right-radius: 0.2rem;
}
.chat-bubble.assistant {
  background: #FFFFFF;
  color: #1F2937;
  border: 1px solid #E5E7EB;
  border-bottom-left-radius: 0.2rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.chat-bubble.assistant .md-content { font-size: 0.86rem; }
.chat-bubble.thinking {
  background: #F3F4F6;
  color: #9CA3AF;
  border: 1px dashed #E5E7EB;
  font-style: italic;
  font-size: 0.8rem;
}
.chat-meta {
  font-size: 0.63rem;
  color: #9CA3AF;
  margin-top: 0.18rem;
  padding: 0 0.2rem;
}

/* Chat input row */
.rag-chat-input-row {
  display: flex;
  gap: 0.5rem;
  padding: 0.55rem 0.7rem;
  background: #fff;
  border-top: 1px solid #F3F4F6;
}
.rag-chat-input {
  flex: 1;
  border: 1.5px solid #E5E7EB;
  border-radius: 0.5rem;
  padding: 0.45rem 0.75rem;
  font-size: 0.86rem;
  resize: none;
  min-height: 40px;
  max-height: 110px;
  outline: none;
  transition: border-color 0.15s;
  font-family: inherit;
  line-height: 1.5;
}
.rag-chat-input:focus { border-color: #2563EB; box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.rag-chat-send {
  background: #1E3A8A;
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  padding: 0 1rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  align-self: flex-end;
  height: 40px;
  flex-shrink: 0;
}
.rag-chat-send:hover:not(:disabled) { background: #2563EB; transform: scale(1.04); }
.rag-chat-send:disabled { background: #CBD5E1; cursor: not-allowed; }

/* Chat footer */
.rag-chat-footer {
  padding: 0.35rem 0.9rem;
  background: #F9FAFB;
  font-size: 0.67rem;
  color: #9CA3AF;
  border-top: 1px solid #F3F4F6;
}

/* ═══════════════════════════════════════════════════════════════════════════
   NAVIGATION DESIGN SYSTEM
   Source of truth: .btn-analyze-nav  (the "Analyze Stock" filled button)
   Every nav element derives from the same token set.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Design tokens (extracted from .btn-analyze-nav) ─────────────────────── */
:root {
  --nav-font-size:      0.83rem;
  --nav-font-weight:    700;
  --nav-letter-spacing: 0.01em;
  --nav-border-radius:  0.5rem;
  --nav-border-width:   1.5px;
  --nav-pad-v:          0.44rem;
  --nav-pad-h:          1rem;
  --nav-min-height:     36px;
  --nav-gap:            0.35rem;
  --nav-easing:         cubic-bezier(0.4, 0, 0.2, 1);
  --nav-duration:       0.22s;
  --amber:              #F59E0B;
  --amber-dark:         #D97706;
  --amber-darker:       #B45309;
  --amber-light:        #FBBF24;
  --amber-glow-md:      rgba(245,158,11,0.40);
  --amber-glow-lg:      rgba(245,158,11,0.50);
}

/* ══════════════════════════════════════════════════════════════════════════
   .nav-btn  — BASE CLASS (ghost/outline variant of the Analyze button)
   Apply to: Home, About, Features, Analysis, Market News, Contact
   ══════════════════════════════════════════════════════════════════════════ */
.nav-btn {
  /* ── Typography — identical to Analyze Stock ── */
  font-size:      var(--nav-font-size)      !important;
  font-weight:    var(--nav-font-weight)    !important;
  letter-spacing: var(--nav-letter-spacing) !important;
  font-family:    inherit;
  line-height:    1;
  color:          #ffffff                   !important;
  text-decoration: none                     !important;

  /* ── Geometry — identical to Analyze Stock ── */
  display:         inline-flex;
  align-items:     center;
  justify-content: center;
  gap:             var(--nav-gap);
  padding:         var(--nav-pad-v) var(--nav-pad-h) !important;
  border-radius:   var(--nav-border-radius);
  min-height:      var(--nav-min-height);
  white-space:     nowrap;

  /* ── Visual — ghost outline (inactive variant) ── */
  background:  transparent;
  border:      var(--nav-border-width) solid rgba(255,255,255,0.28);
  box-shadow:  none;

  /* ── Interaction ── */
  cursor:     pointer;
  transition: all var(--nav-duration) var(--nav-easing);
  position:   relative;
  -webkit-tap-highlight-color: transparent;
}

/* ── .nav-btn  :HOVER ── amber tint approaching the filled state ─────────── */
.nav-btn:hover:not(.nav-active):not(.show) {
  color:       #ffffff                      !important;
  background:  rgba(245,158,11,0.16);
  border-color: rgba(245,158,11,0.52);
  box-shadow:  0 4px 12px rgba(245,158,11,0.22);
  transform:   translateY(-1px);
  text-decoration: none !important;
}

/* ── .nav-btn.nav-active ── EXACT match to Analyze Stock filled state ──────── */
.nav-btn.nav-active {
  background:  linear-gradient(135deg, var(--amber) 0%, var(--amber-dark) 100%) !important;
  color:       #1F2937 !important;
  border-color: rgba(245,158,11,0.70)       !important;
  box-shadow:  0 4px 14px var(--amber-glow-md);
  transform:   translateY(-1px);
  font-weight: var(--nav-font-weight)       !important;
}

/* ── .nav-btn  when dropdown is open ───────────────────────────────────────── */
.nav-btn.dropdown-toggle.show {
  background:   rgba(245,158,11,0.20) !important;
  border-color: rgba(245,158,11,0.50) !important;
  color:        #FCD34D               !important;
  transform:    translateY(-1px);
}

/* ── .nav-btn  :ACTIVE / :FOCUS ─────────────────────────────────────────────── */
.nav-btn:active {
  background:   rgba(245,158,11,0.26) !important;
  color:        #FCD34D               !important;
  border-color: rgba(245,158,11,0.58) !important;
  transform:    translateY(0) scale(0.96) !important;
  box-shadow:   inset 0 1px 4px rgba(0,0,0,0.1) !important;
  outline:      none !important;
}
.nav-btn.nav-active:active {
  background:   var(--amber-dark) !important;
  color:        #1F2937           !important;
  border-color: var(--amber-dark) !important;
  box-shadow:   0 2px 6px rgba(217,119,6,0.35) !important;
}
.nav-btn:focus        { outline: none; }
.nav-btn:focus-visible {
  outline:       2px solid rgba(245,158,11,0.92);
  outline-offset: 2px;
  box-shadow:    0 0 0 4px rgba(245,158,11,0.18);
}

/* ── Dropdown caret ─────────────────────────────────────────────────────────── */
.nav-btn.dropdown-toggle::after {
  border-top-color: currentColor;
  transition: transform var(--nav-duration) var(--nav-easing);
  margin-left: 0.2rem;
}
.nav-btn.dropdown-toggle.show::after { transform: rotate(180deg); }

/* ── Navbar brand ────────────────────────────────────────────────────────────── */
.app-navbar .navbar-brand {
  color: #ffffff !important;
  font-weight: 800;
  letter-spacing: -0.01em;
  transition: opacity var(--nav-duration);
  -webkit-tap-highlight-color: transparent;
}
.app-navbar .navbar-brand:hover { opacity: 0.85; }

/* ── Toggler button ──────────────────────────────────────────────────────────── */
.app-navbar .navbar-toggler {
  border: var(--nav-border-width) solid rgba(255,255,255,0.38);
  padding: 0.22rem 0.5rem;
  border-radius: var(--nav-border-radius);
  transition: all var(--nav-duration) var(--nav-easing);
  -webkit-tap-highlight-color: transparent;
}
.app-navbar .navbar-toggler:hover  { background: rgba(245,158,11,0.15); border-color: rgba(245,158,11,0.55); }
.app-navbar .navbar-toggler:active { background: rgba(245,158,11,0.22) !important; border-color: rgba(245,158,11,0.70) !important; outline: none !important; }
.app-navbar .navbar-toggler:focus  { outline: none; box-shadow: 0 0 0 3px rgba(245,158,11,0.28); }

/* ── Nav list spacing ────────────────────────────────────────────────────────── */
.app-navbar .navbar-nav { gap: 0.35rem; }

/* ══════════════════════════════════════════════════════════════════════════
   .nav-dropdown  — Dropdown container
   ══════════════════════════════════════════════════════════════════════════ */
.nav-dropdown,
.app-dropdown {
  background:    #162860;
  border:        1px solid rgba(255,255,255,0.12) !important;
  border-top:    2px solid var(--amber)           !important;
  border-radius: 0 0 var(--nav-border-radius) var(--nav-border-radius);
  padding:       0.5rem 0.4rem;
  min-width:     230px;
  box-shadow:    0 16px 40px rgba(0,0,0,0.50);
}

/* ══════════════════════════════════════════════════════════════════════════
   .nav-dropdown-item  — Dropdown links
   Same font token set; ghost-button rhythm within dark container
   ══════════════════════════════════════════════════════════════════════════ */
.nav-dropdown-item,
.app-dropdown .dropdown-item {
  /* ── Typography — same token set ── */
  font-size:      var(--nav-font-size)      !important;
  font-weight:    var(--nav-font-weight)    !important;
  letter-spacing: var(--nav-letter-spacing) !important;
  color:          rgba(255,255,255,0.88)    !important;
  text-decoration: none !important;

  /* ── Geometry ── */
  display:      flex;
  align-items:  center;
  gap:          var(--nav-gap);
  padding:      var(--nav-pad-v) 0.9rem;
  border-radius: calc(var(--nav-border-radius) - 0.05rem);
  border-left:  2.5px solid transparent;
  min-height:   var(--nav-min-height);
  white-space:  nowrap;

  /* ── Interaction ── */
  cursor:     pointer;
  transition: all var(--nav-duration) var(--nav-easing);
  -webkit-tap-highlight-color: transparent;
}
.nav-dropdown-item:hover,
.app-dropdown .dropdown-item:hover {
  background:       rgba(245,158,11,0.15);
  color:            #FCD34D        !important;
  border-left-color: var(--amber);
  padding-left:     1.15rem;
  text-decoration:  none !important;
}
.nav-dropdown-item:active,
.nav-dropdown-item:focus,
.app-dropdown .dropdown-item:active,
.app-dropdown .dropdown-item:focus {
  background:       rgba(245,158,11,0.24) !important;
  color:            #FCD34D               !important;
  border-left-color: var(--amber)         !important;
  outline:          none                  !important;
  text-decoration:  none                  !important;
}
.nav-dropdown-item i,
.app-dropdown .dropdown-item i {
  font-size: 0.9rem;
  color: #93C5FD;
  transition: color var(--nav-duration);
}
.nav-dropdown-item:hover i,
.app-dropdown .dropdown-item:hover i { color: var(--amber); }

/* ══════════════════════════════════════════════════════════════════════════
   .btn-analyze-nav  — PRIMARY CTA (the "Analyze Stock" filled button)
   This is the design reference; all nav-btn states converge toward this.
   ══════════════════════════════════════════════════════════════════════════ */
.btn-analyze-nav {
  /* ── Typography — exact match to .nav-btn ── */
  font-size:      var(--nav-font-size)      !important;
  font-weight:    var(--nav-font-weight)    !important;
  letter-spacing: var(--nav-letter-spacing) !important;
  font-family:    inherit;
  line-height:    1;
  color:          #1F2937 !important;
  text-decoration: none   !important;

  /* ── Geometry — exact match to .nav-btn ── */
  display:         inline-flex;
  align-items:     center;
  justify-content: center;
  gap:             var(--nav-gap);
  padding:         var(--nav-pad-v) 1.3rem  !important;
  border-radius:   var(--nav-border-radius);
  min-height:      var(--nav-min-height);
  white-space:     nowrap;

  /* ── Visual — filled/primary variant (ghost goes amber when active) ── */
  background:  linear-gradient(135deg, var(--amber) 0%, var(--amber-dark) 100%);
  border:      var(--nav-border-width) solid rgba(245,158,11,0.65);
  box-shadow:  0 4px 14px var(--amber-glow-md);
  cursor:      pointer;
  transition:  all var(--nav-duration) var(--nav-easing);
  -webkit-tap-highlight-color: transparent;
}
.btn-analyze-nav:hover {
  background:   linear-gradient(135deg, var(--amber-light) 0%, var(--amber) 100%);
  color:        #111827 !important;
  border-color: rgba(251,191,36,0.75);
  transform:    translateY(-2px);
  box-shadow:   0 8px 24px var(--amber-glow-lg);
  text-decoration: none !important;
}
.btn-analyze-nav:active,
.btn-analyze-nav:focus {
  background:   linear-gradient(135deg, var(--amber-dark) 0%, var(--amber-darker) 100%) !important;
  color:        #1F2937                   !important;
  border-color: rgba(217,119,6,0.85)      !important;
  transform:    translateY(0) scale(0.96) !important;
  box-shadow:   0 2px 8px rgba(245,158,11,0.30) !important;
  outline:      none                      !important;
}
.btn-analyze-nav:focus-visible {
  outline:        2px solid rgba(245,158,11,0.95) !important;
  outline-offset: 2px;
  transform:      none !important;
}

/* ══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════════════════ */

/* Tablet (992–1199px) — reduce horizontal padding proportionally */
@media (max-width: 1199px) and (min-width: 992px) {
  .nav-btn { padding: var(--nav-pad-v) 0.7rem !important; }
  .app-navbar .navbar-nav { gap: 0.2rem; }
}

/* Mobile (< 992px) — vertical stack with amber left-strip active indicator */
@media (max-width: 991px) {
  .app-navbar .navbar-nav { gap: 0.15rem; padding: 0.5rem 0; }

  .nav-btn {
    width:        100%;
    justify-content: flex-start;
    padding:      0.62rem 1rem !important;
    border-radius: var(--nav-border-radius);
    border:       var(--nav-border-width) solid rgba(255,255,255,0.12) !important;
    border-left-width: 3px !important;
    border-left-color: transparent !important;
    transform:    none !important;
    box-shadow:   none !important;
    margin:       0.05rem 0;
  }
  .nav-btn:hover:not(.nav-active):not(.show) {
    background:   rgba(245,158,11,0.12);
    border-left-color: rgba(245,158,11,0.42) !important;
    box-shadow:   none;
    transform:    none;
  }
  /* Mobile active: amber left strip (pill is too wide in vertical layout) */
  .nav-btn.nav-active {
    background:    rgba(245,158,11,0.16)  !important;
    color:         #FCD34D                !important;
    border-left-color: var(--amber)       !important;
    border-color:  rgba(245,158,11,0.25)  !important;
    box-shadow:    none;
    transform:     none;
    font-weight:   var(--nav-font-weight) !important;
  }
  .nav-btn:active {
    transform: none !important;
    background: rgba(245,158,11,0.22) !important;
  }
  /* Mobile dropdown */
  .nav-dropdown,
  .app-dropdown {
    background:    rgba(8,18,55,0.6);
    border:        none  !important;
    border-left:   3px solid rgba(245,158,11,0.40) !important;
    border-top:    none  !important;
    border-radius: 0;
    margin-left:   0.75rem;
    padding:       0.25rem 0;
    min-width:     0;
    box-shadow:    none;
  }
  .nav-dropdown-item,
  .app-dropdown .dropdown-item {
    border-radius: 0;
    padding:       0.55rem 1rem;
    width:         100%;
  }
  /* CTA button spans full width in mobile menu */
  .btn-analyze-nav {
    width:           100%;
    justify-content: center;
    margin-top:      0.65rem;
    padding:         0.62rem 1rem !important;
    border-radius:   var(--nav-border-radius);
  }
}

/* ── Page Hero — base ─────────────────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 100%);
  color: #fff;
  padding: 3.5rem 0 3rem;
  position: relative;
  overflow: hidden;
}
/* Pattern overlay layer — overridden per page via .hero-* classes */
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Ccircle cx='20' cy='20' r='1.5' fill='white' fill-opacity='0.25'/%3E%3C/svg%3E");
  background-repeat: repeat;
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}
/* Decorative circle */
.page-hero::after {
  content: '';
  position: absolute;
  top: -55%;
  right: -5%;
  width: 520px;
  height: 520px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-size: 2rem; font-weight: 900; line-height: 1.2; margin-bottom: 0.75rem; }
.page-hero .hero-subtitle { font-size: 1rem; opacity: 0.9; max-width: 580px; line-height: 1.75; margin: 0; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 2rem;
  margin-bottom: 1rem;
}
@media (max-width: 767px) {
  .page-hero { padding: 2.5rem 0 2rem; }
  .page-hero h1 { font-size: 1.5rem; }
  .page-hero .hero-subtitle { font-size: 0.93rem; }
}

/* ── Per-page hero colour + pattern themes ────────────────────────────────── */

/* About — Navy dots */
.hero-about {
  background: linear-gradient(135deg, #0D1F5C 0%, #1E3A8A 55%, #2563EB 100%);
}
.hero-about::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Ccircle cx='20' cy='20' r='1.5' fill='white' fill-opacity='0.3'/%3E%3C/svg%3E");
}

/* Features — Indigo grid */
.hero-features {
  background: linear-gradient(135deg, #1e1b4b 0%, #3730a3 55%, #4f46e5 100%);
}
.hero-features::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='50' height='50'%3E%3Cpath d='M50 0L0 0 0 50' fill='none' stroke='white' stroke-width='0.6' stroke-opacity='0.35'/%3E%3C/svg%3E");
}

/* AI Analysis — Teal/ocean with chart lines */
.hero-ai-analysis {
  background: linear-gradient(135deg, #0c2340 0%, #0c4a6e 50%, #0284c7 100%);
}
.hero-ai-analysis::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='60'%3E%3Cpolyline points='0,52 20,34 40,44 60,18 80,28 100,10 120,20' stroke='white' stroke-width='1.5' fill='none' stroke-opacity='0.28'/%3E%3Cpolyline points='0,38 20,50 40,28 60,44 80,16 100,36 120,24' stroke='white' stroke-width='0.8' fill='none' stroke-opacity='0.14'/%3E%3C/svg%3E");
  background-size: 240px 120px;
}

/* Technical Guide — Electric blue grid */
.hero-technical {
  background: linear-gradient(135deg, #172554 0%, #1e3a8a 45%, #1d4ed8 100%);
}
.hero-technical::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='50' height='50'%3E%3Crect x='0.25' y='0.25' width='49.5' height='49.5' fill='none' stroke='white' stroke-width='0.4' stroke-opacity='0.22'/%3E%3Cline x1='25' y1='0' x2='25' y2='50' stroke='white' stroke-width='0.3' stroke-opacity='0.12'/%3E%3Cline x1='0' y1='25' x2='50' y2='25' stroke='white' stroke-width='0.3' stroke-opacity='0.12'/%3E%3C/svg%3E");
}

/* Fundamental Guide — Emerald green with bar chart */
.hero-fundamental {
  background: linear-gradient(135deg, #052e16 0%, #14532d 45%, #15803d 100%);
}
.hero-fundamental::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='80'%3E%3Crect x='4' y='42' width='14' height='38' fill='white' fill-opacity='0.14' rx='1'/%3E%3Crect x='26' y='22' width='14' height='58' fill='white' fill-opacity='0.14' rx='1'/%3E%3Crect x='48' y='50' width='14' height='30' fill='white' fill-opacity='0.14' rx='1'/%3E%3Crect x='70' y='10' width='14' height='70' fill='white' fill-opacity='0.14' rx='1'/%3E%3Crect x='92' y='30' width='14' height='50' fill='white' fill-opacity='0.14' rx='1'/%3E%3C/svg%3E");
  background-size: 240px 160px;
}

/* Financial Reports — Purple with hexagons */
.hero-reports {
  background: linear-gradient(135deg, #2e1065 0%, #4c1d95 50%, #7c3aed 100%);
}
.hero-reports::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100'%3E%3Cpolygon points='28,2 54,17 54,47 28,62 2,47 2,17' fill='none' stroke='white' stroke-width='0.6' stroke-opacity='0.28'/%3E%3Cpolygon points='28,62 54,77 54,107 28,122 2,107 2,77' fill='none' stroke='white' stroke-width='0.6' stroke-opacity='0.28'/%3E%3C/svg%3E");
  background-size: 56px 100px;
}

/* Market News — Slate with diagonal lines */
.hero-market-news {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 45%, #1e3a8a 100%);
}
.hero-market-news::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cline x1='-10' y1='50' x2='50' y2='-10' stroke='white' stroke-width='0.6' stroke-opacity='0.22'/%3E%3Cline x1='10' y1='50' x2='50' y2='10' stroke='white' stroke-width='0.6' stroke-opacity='0.22'/%3E%3Cline x1='30' y1='50' x2='50' y2='30' stroke='white' stroke-width='0.6' stroke-opacity='0.22'/%3E%3C/svg%3E");
}

/* Contact — Charcoal with cross/plus pattern */
.hero-contact {
  background: linear-gradient(135deg, #111827 0%, #1f2937 40%, #1e3a8a 100%);
}
.hero-contact::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cline x1='20' y1='6' x2='20' y2='34' stroke='white' stroke-width='0.5' stroke-opacity='0.2'/%3E%3Cline x1='6' y1='20' x2='34' y2='20' stroke='white' stroke-width='0.5' stroke-opacity='0.2'/%3E%3C/svg%3E");
}

/* ── Hero Visual Cards (glassmorphism right-side panels) ──────────────────── */
.hero-visual-wrap {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-left: 1rem;
}
.hero-visual-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 1rem;
  padding: 1.5rem;
  color: #fff;
  width: 100%;
  max-width: 340px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}
.hvc-eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.9rem;
}
.hvc-stat     { font-size: 1.7rem; font-weight: 900; color: #fff; line-height: 1; }
.hvc-stat-label { font-size: 0.68rem; color: rgba(255,255,255,0.6); margin-top: 0.25rem; }
.hvc-divider  { border-color: rgba(255,255,255,0.15); margin: 1rem 0; }
.hvc-check-row {
  display: flex;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.88);
  padding: 0.3rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.hvc-check-row:last-child { border-bottom: none; }
.hvc-check-row i { color: #4ade80; font-size: 0.75rem; }
.hvc-icon-tile {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 0.55rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin: 0 auto 0.25rem;
  color: #fff;
}
.hvc-icon-label { font-size: 0.62rem; color: rgba(255,255,255,0.7); text-align: center; line-height: 1.3; }
.hvc-metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 0.82rem;
}
.hvc-metric-row:last-child { border-bottom: none; }
.hvc-metric-label { color: rgba(255,255,255,0.65); }
.hvc-metric-val   { font-weight: 700; color: #fff; }
.hvc-bar-track {
  height: 5px;
  background: rgba(255,255,255,0.18);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 0.25rem;
}
.hvc-bar-fill { height: 5px; border-radius: 3px; }
.hvc-stock-symbol { font-size: 1.3rem; font-weight: 900; color: #fff; letter-spacing: -0.01em; }
.hvc-stock-sub    { font-size: 0.72rem; color: rgba(255,255,255,0.6); }
.hvc-rec-pill {
  display: inline-block;
  padding: 0.28rem 0.8rem;
  border-radius: 2rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.hvc-rec-buy  { background: rgba(22,163,74,0.35);  border: 1px solid rgba(74,222,128,0.5); color: #4ade80; }
.hvc-rec-sell { background: rgba(220,38,38,0.35);  border: 1px solid rgba(248,113,113,0.5); color: #f87171; }
.hvc-rec-hold { background: rgba(245,158,11,0.35); border: 1px solid rgba(251,191,36,0.5);  color: #fbbf24; }
.hvc-sentiment-bar {
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  background: rgba(255,255,255,0.1);
  display: flex;
}
.hvc-sent-pos { background: #4ade80; }
.hvc-sent-neu { background: #fbbf24; }
.hvc-sent-neg { background: #f87171; }
.hvc-news-item {
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.hvc-news-item:last-child { border-bottom: none; }
.hvc-news-headline { font-size: 0.78rem; color: #fff; font-weight: 600; line-height: 1.35; }
.hvc-news-meta     { font-size: 0.66rem; color: rgba(255,255,255,0.5); margin-top: 0.15rem; }
.hvc-doc-icon {
  width: 44px;
  height: 56px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* ── Breadcrumb ───────────────────────────────────────────────────────────── */
.site-breadcrumb {
  background: #F9FAFB;
  border-bottom: 1px solid var(--border);
  padding: 0.55rem 0;
}
.site-breadcrumb .breadcrumb { margin: 0; font-size: 0.78rem; }
.site-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: var(--text-muted); }
.site-breadcrumb a { color: var(--secondary); text-decoration: none; }
.site-breadcrumb a:hover { text-decoration: underline; }

/* ── Feature Cards ────────────────────────────────────────────────────────── */
.feat-card {
  background: #fff;
  border: 1px solid var(--border) !important;
  border-radius: 0.65rem !important;
  padding: 1.5rem;
  height: 100%;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}
.feat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feat-icon {
  width: 48px;
  height: 48px;
  background: #EFF6FF;
  border-radius: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: var(--primary);
  margin-bottom: 0.9rem;
  flex-shrink: 0;
}
.feat-card h3 { font-size: 0.98rem; font-weight: 700; color: var(--primary); margin-bottom: 0.4rem; }
.feat-card p  { color: var(--text-muted); font-size: 0.85rem; line-height: 1.65; margin: 0; }

/* ── Section Headings ─────────────────────────────────────────────────────── */
.section-heading {
  font-size: 1.55rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 0.25rem;
  position: relative;
}
.section-heading::after {
  content: '';
  display: block;
  width: 44px;
  height: 3px;
  background: var(--secondary);
  border-radius: 2px;
  margin-top: 0.4rem;
}
.section-subheading { color: var(--text-muted); font-size: 0.98rem; margin-top: 0.5rem; margin-bottom: 1.5rem; }

/* ── Stat Highlights ──────────────────────────────────────────────────────── */
.stat-highlight {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: 0.6rem;
  padding: 1.25rem 1rem;
  text-align: center;
}
.stat-highlight .stat-num   { font-size: 1.8rem; font-weight: 900; color: var(--primary); line-height: 1; }
.stat-highlight .stat-label { font-size: 0.76rem; color: var(--text-muted); margin-top: 0.3rem; }

/* ── Workflow Steps ───────────────────────────────────────────────────────── */
.workflow-steps { display: flex; flex-direction: column; }
.workflow-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  position: relative;
}
.workflow-step::after {
  content: '';
  position: absolute;
  left: 19px;
  top: 42px;
  width: 2px;
  height: calc(100% + 0.25rem);
  background: linear-gradient(to bottom, #BFDBFE, #E0F2FE);
}
.workflow-step:last-child::after { display: none; }
.workflow-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(30,58,138,0.25);
  position: relative;
  z-index: 1;
}
.workflow-content { padding-bottom: 1.4rem; flex: 1; }
.workflow-content h4 { font-size: 0.92rem; font-weight: 700; color: var(--primary); margin: 0.35rem 0 0.2rem; }
.workflow-content p  { font-size: 0.83rem; color: var(--text-muted); margin: 0; line-height: 1.55; }

/* ── Tech Badges ──────────────────────────────────────────────────────────── */
.tech-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #F9FAFB;
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  padding: 1rem 0.5rem;
  text-align: center;
  transition: box-shadow 0.18s, transform 0.18s;
}
.tech-badge:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.tech-badge i        { font-size: 1.5rem; color: var(--secondary); margin-bottom: 0.35rem; }
.tech-badge .tech-name { font-size: 0.78rem; font-weight: 700; color: var(--text); }
.tech-badge .tech-cat  { font-size: 0.65rem; color: var(--text-muted); }

/* ── Indicator Section Cards ──────────────────────────────────────────────── */
.indicator-section {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.indicator-section h2 {
  color: var(--primary);
  font-size: 1.18rem;
  font-weight: 800;
  margin: 0;
}
.range-tag {
  display: inline-block;
  padding: 0.22rem 0.6rem;
  border-radius: 0.3rem;
  font-size: 0.74rem;
  font-weight: 600;
}
.range-oversold   { background: #F0FDF4; color: #15803D; border: 1px solid #BBF7D0; }
.range-neutral    { background: #FFFBEB; color: #B45309; border: 1px solid #FDE68A; }
.range-overbought { background: #FEF2F2; color: #B91C1C; border: 1px solid #FECACA; }
.ai-insight-box {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-left: 4px solid var(--secondary);
  border-radius: 0 0.4rem 0.4rem 0;
  padding: 0.65rem 0.9rem;
  font-size: 0.82rem;
  color: var(--text);
  line-height: 1.6;
}
.ai-insight-box i { color: var(--secondary); }

/* ── TOC Sidebar ──────────────────────────────────────────────────────────── */
.sticky-toc { position: sticky; top: 80px; }
.toc-nav { display: flex; flex-direction: column; }
.toc-link {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.3rem 0.5rem;
  border-radius: 0.3rem;
  transition: background 0.12s, color 0.12s;
}
.toc-link:hover { background: #EFF6FF; color: var(--primary); }

/* ── Metric Guide Cards ───────────────────────────────────────────────────── */
.metric-guide-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.metric-guide-card .metric-name { font-size: 1.05rem; font-weight: 800; color: var(--primary); }
.metric-guide-card .metric-def  { font-size: 0.85rem; color: var(--text-muted); margin: 0.3rem 0 0; line-height: 1.6; }
.metric-bench {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  background: #F0FDF4;
  color: #15803D;
  border: 1px solid #BBF7D0;
  border-radius: 0.3rem;
  padding: 0.2rem 0.55rem;
  margin-top: 0.5rem;
}
.metric-ai {
  font-size: 0.78rem;
  background: #EFF6FF;
  color: var(--secondary);
  border-left: 3px solid var(--secondary);
  padding: 0.4rem 0.7rem;
  border-radius: 0 0.3rem 0.3rem 0;
  margin-top: 0.5rem;
  line-height: 1.55;
}

/* ── CTA Banner ───────────────────────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 100%);
  color: #fff;
  padding: 3.5rem 0;
  text-align: center;
  margin-top: 3rem;
}
.cta-banner h2 { font-weight: 900; font-size: 1.7rem; margin-bottom: 0.5rem; }
.cta-banner p  { opacity: 0.85; font-size: 1rem; max-width: 500px; margin: 0 auto 1.5rem; }
.btn-cta-primary {
  background: #F59E0B;
  color: #1F2937;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.btn-cta-primary:hover { background: #D97706; color: #1F2937; transform: translateY(-1px); }

/* ── FAQ Accordion ────────────────────────────────────────────────────────── */
.faq-accordion .accordion-button {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
  background: #F9FAFB;
  box-shadow: none !important;
}
.faq-accordion .accordion-button:not(.collapsed) { background: #EFF6FF; color: var(--secondary); }
.faq-accordion .accordion-body { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; }

/* ── Contact Page ─────────────────────────────────────────────────────────── */
.contact-info-card {
  background: var(--primary);
  color: #fff;
  border-radius: 0.75rem;
  padding: 2rem;
}
.contact-info-item { display: flex; gap: 0.85rem; align-items: flex-start; margin-bottom: 1.1rem; }
.contact-info-item i { font-size: 1.1rem; color: #93C5FD; margin-top: 3px; flex-shrink: 0; }
.ci-label { font-size: 0.7rem; color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: 0.05em; }
.ci-val   { font-size: 0.92rem; font-weight: 600; color: #fff; }
.contact-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 0.4rem;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 1rem;
  transition: background 0.15s, color 0.15s;
}
.contact-social-btn:hover { background: rgba(255,255,255,0.25); color: #fff; }

/* ── News Preview Cards (market-news page) ────────────────────────────────── */
.news-preview-card { border-left: 3px solid var(--border) !important; transition: box-shadow 0.15s; }
.news-preview-card:hover { box-shadow: var(--shadow-md); }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.site-footer { background: #111827; color: rgba(255,255,255,0.65); }
.footer-brand { font-size: 1.1rem; font-weight: 800; color: #fff; }
.footer-brand i { color: #93C5FD; }
.footer-desc { font-size: 0.82rem; color: rgba(255,255,255,0.5); line-height: 1.7; }
.footer-heading { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.4); margin-bottom: 0.75rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.4rem; }
.footer-links a { color: rgba(255,255,255,0.6); font-size: 0.84rem; text-decoration: none; transition: color 0.15s; }
.footer-links a:hover { color: #93C5FD; }
.footer-disclaimer { font-size: 0.72rem; color: rgba(255,255,255,0.3); line-height: 1.55; }
.footer-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 0.4rem;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.92rem;
  transition: background 0.15s, color 0.15s;
}
.footer-social-btn:hover { background: rgba(255,255,255,0.18); color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 1rem 0;
  font-size: 0.76rem;
  color: rgba(255,255,255,0.3);
}


/* ═══════════════════════════════════════════════════════════════════════════
   PAGE BACKGROUNDS — per-page body wrappers & section backgrounds
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Page body wrappers (subtle colour tint beneath hero → footer) ─────────── */
.page-body {
  position: relative;
}
/* Shared subtle dot-grid on all page bodies */
.page-body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, rgba(30,58,138,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}
.page-body > * { position: relative; z-index: 1; }

/* Blue — About, Home */
.page-blue {
  background: radial-gradient(ellipse 120% 45% at 50% 0%, rgba(37,99,235,0.07) 0%, transparent 65%), var(--bg);
}
/* Indigo — Features */
.page-indigo {
  background: radial-gradient(ellipse 120% 45% at 50% 0%, rgba(79,70,229,0.07) 0%, transparent 65%), var(--bg);
}
/* Teal — AI Analysis */
.page-teal {
  background: radial-gradient(ellipse 120% 45% at 50% 0%, rgba(2,132,199,0.07) 0%, transparent 65%), var(--bg);
}
/* Electric — Technical Guide */
.page-electric {
  background: radial-gradient(ellipse 120% 45% at 50% 0%, rgba(29,78,216,0.07) 0%, transparent 65%), var(--bg);
}
/* Green — Fundamental */
.page-green {
  background: radial-gradient(ellipse 120% 45% at 50% 0%, rgba(21,128,61,0.07) 0%, transparent 65%), var(--bg);
}
/* Purple — Financial Reports */
.page-purple {
  background: radial-gradient(ellipse 120% 45% at 50% 0%, rgba(124,58,237,0.07) 0%, transparent 65%), var(--bg);
}
/* Slate — Market News */
.page-slate {
  background: radial-gradient(ellipse 120% 45% at 50% 0%, rgba(30,41,59,0.07) 0%, transparent 65%), var(--bg);
}
/* Dark — Contact */
.page-dark {
  background: radial-gradient(ellipse 120% 45% at 50% 0%, rgba(17,24,39,0.06) 0%, transparent 65%), var(--bg);
}

/* ── Section background classes ─────────────────────────────────────────────── */

/* Plain white — default content sections */
.sect-white { background: #ffffff !important; }

/* Light pattern — alternating sections */
.sect-light {
  background:
    radial-gradient(circle, rgba(30,58,138,0.038) 1px, transparent 1px) 0 0 / 28px 28px,
    #F8FAFC !important;
}

/* Colour tints per theme */
.sect-blue   { background: linear-gradient(180deg, #EFF6FF 0%, #F8FAFC 100%) !important; }
.sect-indigo { background: linear-gradient(180deg, #EEF2FF 0%, #F8FAFC 100%) !important; }
.sect-teal   { background: linear-gradient(180deg, #E0F9FF 0%, #F8FAFC 100%) !important; }
.sect-green  { background: linear-gradient(180deg, #F0FDF4 0%, #F8FAFC 100%) !important; }
.sect-purple { background: linear-gradient(180deg, #FAF5FF 0%, #F8FAFC 100%) !important; }
.sect-slate  { background: linear-gradient(180deg, #F1F5F9 0%, #F8FAFC 100%) !important; }

/* Chart-line decoration on section (Technical / AI Analysis) */
.sect-chart-lines {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='80'%3E%3Cpolyline points='0,60 30,42 60,52 90,22 120,34 150,14 200,28' stroke='%232563EB' stroke-width='1' fill='none' stroke-opacity='0.06'/%3E%3Cpolyline points='0,44 30,58 60,32 90,50 120,18 150,42 200,30' stroke='%231E3A8A' stroke-width='0.6' fill='none' stroke-opacity='0.04'/%3E%3C/svg%3E") repeat-x bottom / 400px 160px,
    #F8FAFC !important;
}

/* Grid background (Fundamental / Reports) */
.sect-grid {
  background:
    repeating-linear-gradient(0deg, transparent, transparent 49px, rgba(30,58,138,0.04) 50px),
    repeating-linear-gradient(90deg, transparent, transparent 49px, rgba(30,58,138,0.04) 50px),
    #F8FAFC !important;
}

/* ── Home page dashboard specific ───────────────────────────────────────────── */
.dashboard-wrap {
  background:
    radial-gradient(ellipse 110% 50% at 50% 0%, rgba(37,99,235,0.08) 0%, transparent 60%),
    radial-gradient(circle, rgba(30,58,138,0.04) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--bg);
}

/* Welcome card (home page) accent */
#welcomeDiv .card:first-child {
  background: linear-gradient(135deg, #FAFCFF 0%, #EFF6FF 100%) !important;
  border-color: #BFDBFE !important;
}

/* ── Decorative section divider ─────────────────────────────────────────────── */
.sect-divider {
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--secondary) 30%, var(--primary) 70%, transparent 100%);
  opacity: 0.18;
  border: none;
  margin: 0;
}


/* ═══════════════════════════════════════════════════════════════════════════
   FINAL OVERRIDE LAYER — Amber on every press/focus, zero black flash
   Uses .nav-btn selectors (new design system) + keeps legacy .nav-link cover
   Placed LAST — overrides Bootstrap defaults and any browser UA stylesheet
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Kill tap highlight everywhere ─────────────────────────────────────────── */
.app-navbar *,
.btn-analyze-nav,
.search-bar .btn-analyze,
.search-bar .btn-quick,
.btn-cta-primary {
  -webkit-tap-highlight-color: transparent !important;
}

/* ── Prevent browser dark link :active color ────────────────────────────────── */
.app-navbar a,
.app-navbar a:link,
.app-navbar a:visited { color: #ffffff !important; text-decoration: none !important; }

/* ── .nav-btn (ghost state) — press/focus stays amber ───────────────────────── */
.nav-btn:active,
.app-navbar .nav-link.nav-btn:active,
.nav-btn:focus,
.app-navbar .nav-link.nav-btn:focus {
  background:   rgba(245,158,11,0.26) !important;
  color:        #FCD34D               !important;
  border-color: rgba(245,158,11,0.58) !important;
  transform:    translateY(0) scale(0.96) !important;
  box-shadow:   inset 0 1px 4px rgba(0,0,0,0.1) !important;
  outline:      none !important;
  text-decoration: none !important;
}

/* ── .nav-btn.nav-active — press stays darker amber (not black) ──────────────── */
.nav-btn.nav-active:active,
.nav-btn.nav-active:focus,
.app-navbar .nav-link.nav-active:active,
.app-navbar .nav-link.nav-active:focus {
  background:   var(--amber-dark)             !important;
  color:        #1F2937                       !important;
  border-color: var(--amber-dark)             !important;
  box-shadow:   0 2px 6px rgba(217,119,6,0.35) !important;
  transform:    translateY(0) scale(0.96)     !important;
  outline:      none                          !important;
}

/* ── .nav-dropdown-item / dropdown-item — press/focus stays amber ─────────────── */
.nav-dropdown-item:active,
.nav-dropdown-item:focus,
.app-dropdown .dropdown-item:active,
.app-dropdown .dropdown-item:focus,
.app-dropdown .dropdown-item:focus-visible {
  background:        rgba(245,158,11,0.24) !important;
  color:             #FCD34D              !important;
  border-left-color: var(--amber)         !important;
  outline:           none                 !important;
  text-decoration:   none                 !important;
}

/* ── .btn-analyze-nav (filled CTA) — press stays amber gradient ─────────────── */
.btn-analyze-nav:active,
.btn-analyze-nav:focus {
  background:   linear-gradient(135deg, var(--amber-dark) 0%, var(--amber-darker) 100%) !important;
  color:        #1F2937                   !important;
  border-color: rgba(217,119,6,0.85)      !important;
  transform:    translateY(0) scale(0.96) !important;
  box-shadow:   0 2px 8px rgba(245,158,11,0.30) !important;
  outline:      none                      !important;
  text-decoration: none                   !important;
}
.btn-analyze-nav:focus-visible {
  outline: 2px solid rgba(245,158,11,0.95) !important;
  outline-offset: 2px;
  transform: none !important;
}

/* ── Toggler ────────────────────────────────────────────────────────────────── */
.app-navbar .navbar-toggler:active,
.app-navbar .navbar-toggler:focus-visible {
  background:   rgba(245,158,11,0.22) !important;
  border-color: rgba(245,158,11,0.70) !important;
  outline:      none                  !important;
  box-shadow:   0 0 0 3px rgba(245,158,11,0.28) !important;
}

/* ── Home page: search Analyze button + quick chips ─────────────────────────── */
.search-bar .btn-analyze:active,
.search-bar .btn-analyze:focus {
  background: var(--amber-dark) !important;
  border-color: var(--amber-dark) !important;
  color: #1F2937 !important;
  outline: none !important;
  box-shadow: none !important;
}
.search-bar .btn-quick:active,
.search-bar .btn-quick:focus {
  background:   rgba(255,255,255,0.28) !important;
  color:        #ffffff                !important;
  border-color: rgba(255,255,255,0.45) !important;
  outline:      none                   !important;
}

/* ── CTA buttons on content pages ───────────────────────────────────────────── */
.btn-cta-primary:active,
.btn-cta-primary:focus {
  background:  var(--amber-darker) !important;
  color:       #1F2937             !important;
  transform:   none                !important;
  outline:     none                !important;
  box-shadow:  none                !important;
  text-decoration: none            !important;
}
