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

:root {
  --bg-main: #0a0d14;
  --bg-card: rgba(18, 24, 38, 0.75);
  --bg-card-hover: rgba(26, 35, 54, 0.85);
  --bg-card-active: rgba(33, 44, 69, 0.95);
  --bg-glass: rgba(15, 20, 32, 0.6);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(74, 144, 255, 0.25);
  
  --text-main: #f0f4fc;
  --text-muted: #8b9bb4;
  --text-dim: #5c6a82;

  --color-bullish: #00e676;
  --color-bullish-dim: rgba(0, 230, 118, 0.15);
  --color-bearish: #ff3366;
  --color-bearish-dim: rgba(255, 51, 102, 0.15);
  --color-neutral: #ffb020;
  --color-neutral-dim: rgba(255, 176, 32, 0.15);
  --color-accent: #3a82f7;
  --color-accent-glow: rgba(58, 130, 247, 0.35);

  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 20px rgba(58, 130, 247, 0.25);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(circle at 15% 10%, rgba(58, 130, 247, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(0, 230, 118, 0.05) 0%, transparent 40%);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* NAVBAR */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #3a82f7, #6c5dd3);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow);
}

.brand-icon svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(90deg, #ffffff, #b4cdff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-badge {
  font-size: 0.65rem;
  text-transform: uppercase;
  font-weight: 700;
  background: rgba(58, 130, 247, 0.2);
  color: #60a5fa;
  padding: 3px 8px;
  border-radius: 20px;
  border: 1px solid rgba(58, 130, 247, 0.4);
}

.market-status {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  padding: 6px 14px;
  border-radius: 30px;
  border: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--color-bullish);
  box-shadow: 0 0 10px var(--color-bullish);
  animation: pulseAnimation 2s infinite;
}

@keyframes pulseAnimation {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(0, 230, 118, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 230, 118, 0); }
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #3a82f7, #2563eb);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.6);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

/* MARKET BAR (TOP BANNER) */
.market-summary-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 10px 28px;
  background: rgba(14, 18, 28, 0.85);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  overflow-x: auto;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.stat-label {
  color: var(--text-dim);
  font-weight: 500;
}

.stat-value {
  color: var(--text-main);
  font-family: var(--font-mono);
  font-weight: 600;
}

.stat-badge-buy {
  background: var(--color-bullish-dim);
  color: var(--color-bullish);
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 700;
}

/* MAIN LAYOUT */
.main-container {
  display: grid;
  grid-template-columns: 340px 1fr 380px;
  gap: 18px;
  padding: 20px 28px;
  flex: 1;
  max-width: 1920px;
  margin: 0 auto;
  width: 100%;
}

@media (max-width: 1400px) {
  .main-container {
    grid-template-columns: 310px 1fr;
  }
  .quant-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .main-container {
    grid-template-columns: 1fr;
    padding: 14px;
  }
}

/* CARDS */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-title {
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-body {
  padding: 18px 20px;
  flex: 1;
  overflow-y: auto;
}

/* WATCHLIST SIDEBAR */
.search-box {
  position: relative;
  margin-bottom: 14px;
}

.search-input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  outline: none;
  transition: all 0.2s;
}

.search-input:focus {
  border-color: var(--color-accent);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 10px rgba(58, 130, 247, 0.2);
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  fill: var(--text-dim);
}

.filter-pills {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.pill-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 5px 11px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.pill-btn:hover, .pill-btn.active {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.ticker-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: calc(100vh - 300px);
  overflow-y: auto;
  padding-right: 4px;
}

.ticker-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
}

.ticker-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-subtle);
  transform: translateX(2px);
}

.ticker-item.active {
  background: var(--bg-card-active);
  border-color: var(--border-highlight);
  box-shadow: 0 4px 15px rgba(58, 130, 247, 0.15);
}

.ticker-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ticker-symbol {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ticker-name {
  font-size: 0.75rem;
  color: var(--text-dim);
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ticker-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.ticker-price {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.92rem;
}

/* SIGNAL BADGES */
.signal-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.signal-strong-buy {
  background: rgba(0, 230, 118, 0.2);
  color: #00e676;
  border: 1px solid rgba(0, 230, 118, 0.5);
  box-shadow: 0 0 10px rgba(0, 230, 118, 0.2);
}

.signal-buy {
  background: rgba(0, 230, 118, 0.12);
  color: #34d399;
  border: 1px solid rgba(0, 230, 118, 0.3);
}

.signal-neutral {
  background: rgba(255, 176, 32, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(255, 176, 32, 0.4);
}

.signal-sell {
  background: rgba(255, 51, 102, 0.15);
  color: #f87171;
  border: 1px solid rgba(255, 51, 102, 0.3);
}

.signal-strong-sell {
  background: rgba(255, 51, 102, 0.25);
  color: #ff3366;
  border: 1px solid rgba(255, 51, 102, 0.5);
  box-shadow: 0 0 10px rgba(255, 51, 102, 0.2);
}

/* CENTER: CHART WORKSPACE */
.chart-workspace {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ticker-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-symbol-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-symbol {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

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

.hero-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.hero-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.hero-price {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
}

.hero-change {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.text-bullish { color: var(--color-bullish); }
.text-bearish { color: var(--color-bearish); }

/* CHART CONTROLS TOOLBAR */
.chart-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 10px;
}

.toolbar-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.toggle-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.toggle-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  color: var(--text-main);
}

.toggle-btn.active {
  background: rgba(58, 130, 247, 0.2);
  border-color: var(--color-accent);
  color: #93c5fd;
}

.color-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

/* CHART CONTAINER */
.chart-container-box {
  width: 100%;
  height: 480px;
  position: relative;
}

.rsi-container-box {
  width: 100%;
  height: 160px;
  position: relative;
  border-top: 1px solid var(--border-subtle);
}

/* RIGHT PANEL: QUANT & SIGNALS */
.quant-panel {
  display: flex;
  flex-direction: column;
}

.tab-nav {
  display: flex;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
}

.tab-btn {
  flex: 1;
  padding: 13px 8px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  text-align: center;
}

.tab-btn:hover {
  color: var(--text-main);
}

.tab-btn.active {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
  background: rgba(58, 130, 247, 0.05);
}

.tab-content {
  display: none;
  animation: fadeIn 0.25s ease-in-out;
}

.tab-content.active {
  display: block;
}

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

/* SCORE DIAL & SIGNAL CARD */
.score-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  text-align: center;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.score-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 12px;
}

.score-circle {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 800;
  box-shadow: 0 0 20px rgba(0, 230, 118, 0.2);
}

.score-circle.high {
  background: radial-gradient(circle, rgba(0, 230, 118, 0.2) 0%, rgba(0, 230, 118, 0.05) 70%);
  border: 3px solid var(--color-bullish);
  color: var(--color-bullish);
}

.score-circle.mid {
  background: radial-gradient(circle, rgba(255, 176, 32, 0.2) 0%, rgba(255, 176, 32, 0.05) 70%);
  border: 3px solid var(--color-neutral);
  color: var(--color-neutral);
}

.score-circle.low {
  background: radial-gradient(circle, rgba(255, 51, 102, 0.2) 0%, rgba(255, 51, 102, 0.05) 70%);
  border: 3px solid var(--color-bearish);
  color: var(--color-bearish);
}

.score-label-col {
  text-align: left;
}

.score-tag {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 700;
}

.score-rating {
  font-size: 1.15rem;
  font-weight: 800;
  margin-top: 2px;
}

/* RISK LEVELS (STOP LOSS / TAKE PROFIT) */
.levels-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.level-box {
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
}

.level-box.stop-loss {
  border-color: rgba(255, 51, 102, 0.3);
  background: rgba(255, 51, 102, 0.04);
}

.level-box.take-profit {
  border-color: rgba(0, 230, 118, 0.3);
  background: rgba(0, 230, 118, 0.04);
}

.level-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 4px;
}

.level-val {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
}

.level-sub {
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-top: 2px;
}

/* RATIONALE REASONS LIST */
.rationale-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rationale-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.reason-card {
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--color-accent);
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-main);
}

/* CALCULATOR FORM */
.calc-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.calc-input {
  width: 100%;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  outline: none;
}

.calc-input:focus {
  border-color: var(--color-accent);
}

.calc-result-box {
  margin-top: 10px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(58, 130, 247, 0.08);
  border: 1px solid rgba(58, 130, 247, 0.3);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.calc-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

.calc-tip {
  font-size: 0.78rem;
  color: #93c5fd;
  margin-top: 6px;
  line-height: 1.4;
  padding-top: 6px;
  border-top: 1px dashed rgba(58, 130, 247, 0.3);
}

/* GLOSSARY CARDS */
.glossary-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.glossary-card {
  padding: 12px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all 0.2s;
}

.glossary-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-highlight);
}

.glossary-card-header {
  font-weight: 700;
  font-size: 0.88rem;
  color: #93c5fd;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.glossary-formula {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-neutral);
  background: rgba(255, 176, 32, 0.08);
  padding: 4px 8px;
  border-radius: 4px;
  margin: 6px 0;
  display: inline-block;
}

.glossary-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* MODAL */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  width: 90%;
  max-width: 520px;
  background: #141a29;
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  padding: 24px;
}

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

.modal-title {
  font-size: 1.2rem;
  font-weight: 700;
}

.close-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.close-btn:hover {
  color: var(--text-main);
}

/* SCROLLBAR */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ========================================================
   ADVISOR & GURU COMPONENTS (WARREN BUFFETT & PETER LYNCH)
   ======================================================== */

.advisor-hero-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: #d8b4fe;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Consensus Card */
.advisor-consensus-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.consensus-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.consensus-scores {
  display: flex;
  gap: 8px;
}

.mini-score-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.buffett-box {
  border-color: rgba(251, 191, 36, 0.25);
}

.lynch-box {
  border-color: rgba(56, 189, 248, 0.25);
}

.guru-icon {
  font-size: 1.25rem;
}

.guru-score-val {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1;
}

.buffett-box .guru-score-val {
  color: #fbbf24;
}

.lynch-box .guru-score-val {
  color: #38bdf8;
}

.guru-score-lbl {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 700;
  margin-top: 2px;
}

.consensus-verdict-col {
  flex: 1;
  min-width: 0;
}

.consensus-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  background: rgba(58, 130, 247, 0.2);
  color: #93c5fd;
  border: 1px solid rgba(58, 130, 247, 0.4);
  margin-bottom: 4px;
}

.consensus-badge.bullish {
  background: rgba(0, 230, 118, 0.15);
  color: #00e676;
  border-color: rgba(0, 230, 118, 0.35);
}

.consensus-badge.bearish {
  background: rgba(255, 51, 102, 0.15);
  color: #ff3366;
  border-color: rgba(255, 51, 102, 0.35);
}

.consensus-text {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin: 0;
}

/* Advisor Subnav */
.advisor-subnav {
  display: flex;
  gap: 6px;
  background: rgba(0, 0, 0, 0.25);
  padding: 4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  margin-bottom: 12px;
}

.adv-subtab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  text-align: center;
}

.adv-subtab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.adv-subtab-btn.active {
  background: var(--color-accent);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(58, 130, 247, 0.4);
}

.adv-subcontent {
  display: none;
}

.adv-subcontent.active {
  display: block;
  animation: fadeIn 0.25s ease;
}

/* Quote Cards */
.guru-quote-card {
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 12px;
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
}

.buffett-theme {
  border-left: 3px solid #fbbf24;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.06) 0%, rgba(20, 26, 41, 0.5) 100%);
}

.lynch-theme {
  border-left: 3px solid #38bdf8;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.06) 0%, rgba(20, 26, 41, 0.5) 100%);
}

.guru-quote-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  gap: 6px;
}

.guru-name-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dim);
}

.moat-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.lynch-cat-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.guru-quote-text {
  font-size: 0.8rem;
  font-style: italic;
  color: var(--text-main);
  line-height: 1.4;
  margin: 0 0 8px 0;
  padding-left: 8px;
  border-left: 2px solid rgba(255, 255, 255, 0.15);
}

.guru-verdict-tag {
  font-size: 0.76rem;
  font-weight: 700;
  color: #93c5fd;
  display: flex;
  align-items: center;
  gap: 5px;
}

.lynch-peg-highlight {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.25);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.peg-tag {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

.peg-tag.pass {
  background: rgba(0, 230, 118, 0.2);
  color: #00e676;
}

.peg-tag.warn {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
}

.peg-tag.fail {
  background: rgba(255, 51, 102, 0.2);
  color: #ff3366;
}

/* Checklist Items */
.checklist-container {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 12px;
}

.checklist-header {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.checklist-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.03);
  font-size: 0.76rem;
  transition: all 0.15s;
}

.checklist-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.check-badge {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 4px;
  white-space: nowrap;
}

.check-status-pass {
  background: rgba(0, 230, 118, 0.18);
  color: #00e676;
  border: 1px solid rgba(0, 230, 118, 0.3);
}

.check-status-warn {
  background: rgba(251, 191, 36, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.check-status-fail {
  background: rgba(255, 51, 102, 0.18);
  color: #ff3366;
  border: 1px solid rgba(255, 51, 102, 0.3);
}

.check-col-main {
  flex: 1;
}

.check-rule-name {
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.check-val {
  font-family: var(--font-mono);
  font-weight: 700;
  color: #fff;
  font-size: 0.78rem;
}

.check-reason {
  color: var(--text-muted);
  font-size: 0.72rem;
  margin-top: 2px;
  line-height: 1.3;
}

/* Advisor Interactive Chat */
.advisor-chat-intro {
  margin-bottom: 10px;
  line-height: 1.4;
}

.chat-chips-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
}

.chat-chip {
  background: rgba(58, 130, 247, 0.08);
  border: 1px solid rgba(58, 130, 247, 0.25);
  color: #93c5fd;
  border-radius: var(--radius-sm);
  padding: 5px 8px;
  font-size: 0.74rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
}

.chat-chip:hover {
  background: rgba(58, 130, 247, 0.2);
  border-color: var(--color-accent);
  color: #fff;
  transform: translateX(2px);
}

.advisor-input-box {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.advisor-input-box input {
  flex: 1;
  font-size: 0.8rem;
  padding: 8px 10px;
}

.advisor-input-box button {
  padding: 8px 12px;
  font-size: 0.8rem;
  white-space: nowrap;
}

.advisor-response-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  min-height: 100px;
  max-height: 320px;
  overflow-y: auto;
}

.advisor-resp-placeholder {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-align: center;
  padding: 20px 10px;
  line-height: 1.4;
}

.advisor-answer-bubble {
  animation: fadeIn 0.3s ease;
}

.advisor-headline {
  font-size: 0.85rem;
  font-weight: 700;
  color: #60a5fa;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.advisor-body {
  font-size: 0.78rem;
  color: var(--text-main);
  line-height: 1.5;
  white-space: pre-wrap;
}

/* Modal Dossier Large */
.modal-box-large {
  max-width: 950px;
  width: 95%;
}

.modal-body-scroll {
  max-height: 70vh;
  overflow-y: auto;
  padding-right: 4px;
}

.advisor-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  text-align: left;
}

.advisor-table th {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-dim);
  font-size: 0.72rem;
  text-transform: uppercase;
  font-weight: 700;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.advisor-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

.advisor-table tr:hover {
  background: rgba(58, 130, 247, 0.06);
}

/* ========================================================
   PERFIL DE EMPRESA, GIRO DE NEGOCIO, INDUSTRIA Y FINANZAS
   ======================================================== */

.company-hero-btn {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #7dd3fc;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s;
}

.company-hero-btn:hover {
  background: rgba(56, 189, 248, 0.26);
  color: #fff;
  transform: translateY(-1px);
}

.company-profile-header {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.75) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(58, 130, 247, 0.25);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 12px;
}

.company-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.company-full-name {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.company-sector-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 3px;
}

.company-symbol-pill {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: rgba(58, 130, 247, 0.2);
  color: #93c5fd;
  border: 1px solid rgba(58, 130, 247, 0.4);
}

.company-health-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.health-tag-pill {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 12px;
  background: rgba(0, 230, 118, 0.12);
  color: #6ee7b7;
  border: 1px solid rgba(0, 230, 118, 0.28);
}

.company-section-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 12px;
}

.company-section-card.industry-card {
  border-left: 3px solid #38bdf8;
}

.company-section-card.financial-card {
  border-left: 3px solid #00e676;
}

.company-sec-title {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #93c5fd;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.company-sec-text {
  font-size: 0.8rem;
  color: var(--text-main);
  line-height: 1.5;
  margin: 0;
}

.company-focus-banner {
  font-size: 0.76rem;
  font-weight: 700;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  margin-bottom: 8px;
}

.company-segments-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.segment-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 7px 9px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
}

.segment-icon {
  font-size: 1.05rem;
  line-height: 1.2;
}

.segment-name {
  font-size: 0.76rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}

.segment-desc {
  font-size: 0.73rem;
  color: var(--text-muted);
  line-height: 1.38;
}

.industry-tag-line {
  font-size: 0.74rem;
  font-weight: 700;
  color: #7dd3fc;
  margin-bottom: 6px;
}

.industry-forces-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 10px;
}

.force-box {
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.tailwind-box {
  border-color: rgba(0, 230, 118, 0.22);
  background: rgba(0, 230, 118, 0.04);
}

.headwind-box {
  border-color: rgba(255, 51, 102, 0.22);
  background: rgba(255, 51, 102, 0.04);
}

.force-title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.force-list {
  margin: 0;
  padding-left: 15px;
  font-size: 0.73rem;
  color: var(--text-main);
  line-height: 1.4;
}

.force-list li {
  margin-bottom: 3px;
}

.company-fin-narrative {
  font-size: 0.78rem;
  color: var(--text-main);
  line-height: 1.5;
  background: rgba(0, 230, 118, 0.05);
  border: 1px solid rgba(0, 230, 118, 0.18);
  border-radius: var(--radius-sm);
  padding: 9px 11px;
  margin-bottom: 10px;
}

.company-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.comp-metric-box {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 6px 8px;
}

.comp-metric-lbl {
  font-size: 0.66rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 600;
}

.comp-metric-val {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: #f0f4fc;
  margin-top: 2px;
}

/* ========================================================
   AUTENTICACIÓN, SEGURIDAD Y GESTIÓN DE USUARIOS
   ======================================================== */

.user-pill-btn {
  background: rgba(58, 130, 247, 0.12);
  border: 1px solid rgba(58, 130, 247, 0.35);
  color: #dbeafe;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.user-pill-btn:hover {
  background: rgba(58, 130, 247, 0.22);
  border-color: rgba(58, 130, 247, 0.6);
}

.user-role-chip {
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.2);
  border: 1px solid rgba(251, 191, 36, 0.45);
  color: #fde68a;
  letter-spacing: 0.04em;
}

.btn-danger-outline {
  background: rgba(255, 51, 102, 0.1);
  border: 1px solid rgba(255, 51, 102, 0.32);
  color: #ff809f;
}

.btn-danger-outline:hover {
  background: rgba(255, 51, 102, 0.22);
  border-color: rgba(255, 51, 102, 0.6);
  color: #fff;
}

.auth-card-panel {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}

.auth-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.auth-form-grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.role-badge-admin {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.16);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: #fcd34d;
}

.role-badge-user {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #7dd3fc;
}

.status-badge-active {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 230, 118, 0.14);
  border: 1px solid rgba(0, 230, 118, 0.35);
  color: #00e676;
}

.status-badge-inactive {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 51, 102, 0.14);
  border: 1px solid rgba(255, 51, 102, 0.35);
  color: #ff6685;
}

.user-actions-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.user-action-btn {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.15s ease;
}

.user-action-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
}

.user-action-btn.danger {
  border-color: rgba(255, 51, 102, 0.32);
  color: #ff809f;
}

.user-action-btn.danger:hover {
  background: rgba(255, 51, 102, 0.2);
  color: #fff;
}

/* ========================================================
   FASE 1: WATCHLIST PERSONAL & PORTAFOLIO / PAPER TRADING
   ======================================================== */

.portfolio-nav-btn {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.16), rgba(58, 130, 247, 0.16));
  border: 1px solid rgba(16, 185, 129, 0.42);
  color: #e2fbe8;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.portfolio-nav-btn:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.28), rgba(58, 130, 247, 0.28));
  border-color: rgba(16, 185, 129, 0.7);
}

.portfolio-nav-chip {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #6ee7b7;
}

.watchlist-star-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1;
  padding: 4px 7px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.watchlist-star-btn:hover,
.watchlist-star-btn.active {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.5);
  background: rgba(251, 191, 36, 0.12);
}

.ticker-star-mini {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 0.92rem;
  padding: 0 4px 0 0;
  cursor: pointer;
  line-height: 1;
}

.ticker-star-mini.active,
.ticker-star-mini:hover {
  color: #fbbf24;
}

.trade-hero-btn {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(0, 230, 118, 0.14);
  border: 1px solid rgba(0, 230, 118, 0.42);
  color: #6ee7b7;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.18s ease;
}

.trade-hero-btn:hover {
  background: rgba(0, 230, 118, 0.25);
  border-color: rgba(0, 230, 118, 0.75);
  transform: translateY(-1px);
}

.hero-pos-chip {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(58, 130, 247, 0.18);
  border: 1px solid rgba(58, 130, 247, 0.45);
  color: #93c5fd;
}

.portfolio-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.port-kpi-card {
  background: linear-gradient(145deg, rgba(25, 34, 52, 0.85), rgba(15, 21, 35, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 13px 15px;
}

.port-kpi-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.03em;
}

.port-kpi-value {
  font-family: var(--font-mono);
  font-size: 1.32rem;
  font-weight: 800;
  color: #fff;
  margin: 4px 0;
}

.port-kpi-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.portfolio-alerts-banner {
  background: rgba(251, 191, 36, 0.09);
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-bottom: 14px;
  font-size: 0.8rem;
  color: #fde68a;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.port-order-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 10px;
}

.port-order-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.port-risk-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.sector-bar-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sector-bar-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
}

.sector-bar-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  overflow: hidden;
}

.sector-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #3a82f7, #00e676);
}

.corr-summary-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  background: rgba(58, 130, 247, 0.14);
  border: 1px solid rgba(58, 130, 247, 0.35);
  color: #93c5fd;
}

.corr-pair-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.78rem;
}

.sl-tp-alert-chip {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 999px;
  margin-top: 3px;
}

.sl-tp-alert-chip.sl {
  background: rgba(255, 51, 102, 0.2);
  border: 1px solid rgba(255, 51, 102, 0.5);
  color: #ff809f;
}

.sl-tp-alert-chip.tp {
  background: rgba(0, 230, 118, 0.18);
  border: 1px solid rgba(0, 230, 118, 0.45);
  color: #00e676;
}

/* ========================================================
   SELECTOR DE HORIZONTE TEMPORAL DEL GRÁFICO (1M - MAX)
   ======================================================== */

.range-selector-group {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-sm);
  padding: 2px;
  gap: 2px;
}

.range-btn {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 5px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.range-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.range-btn.active {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(58, 130, 247, 0.4);
}

.range-btn.loading {
  opacity: 0.65;
  cursor: wait;
}

.toolbar-divider {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.12);
  margin: 0 4px;
}
