/* restrict.css - CSS Consolidado para todas as funcionalidades */
.light-mode {
  --card-bg: #ffffff;
  --card-bg-secondary: #f5f5f5;
  --card-bg-primary: #ffffff;
  --input-bg: #f5f5f5;
  --border-color: #e0e0e0;
  --text-primary: #333333;
  --text-secondary: #666666;
  --tooltip-bg: rgba(255, 255, 255, 0.95);
  --tooltip-text: #333333;
  --bg-color: #ffffff;
  --bg-secondary: #f5f5f5;
}

/* ==================== ESTILOS BASE ==================== */
* {
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

/* ==================== MODAIS ==================== */
/* Modal PIX */
.lite-modal {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 3000;
  animation: fadeIn 0.3s ease;
}

.lite-modal .modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
}

.lite-modal .modal-content {
  position: relative;
  background: var(--card-bg);
  color: var(--text-primary);
  width: 92%;
  max-width: 480px;
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  text-align: center;
  animation: zoomIn 0.4s ease;
}

.lite-modal .modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--text-secondary);
  cursor: pointer;
}

.lite-modal h2 {
  margin: 0 0 var(--space-md);
  font-size: 22px;
  color: var(--premium-color);
  display: flex;
  justify-content: center;
  gap: 8px;
  align-items: center;
}

.highlight {
  color: var(--accent-secondary);
}

.limitations {
  list-style: none;
  padding: 0;
  margin: var(--space-md) 0;
  text-align: left;
}

.limitations li {
  padding-left: 26px;
  margin-bottom: 8px;
  position: relative;
}

.limitations li::before {
  content: "🚫";
  position: absolute;
  left: 0;
  top: 0;
}

/* CTA principal e secundário */
.cta-btn {
  display: inline-block;
  margin: 8px 0;
  background: var(--gradient-primary);
  color: #fff;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.3s;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.cta-btn.secondary {
  background: var(--accent-color);
}

.contact {
  font-size: 14px;
  color: var(--text-secondary);
}

.contact a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
}

.btn-understood {
  margin-top: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--accent-secondary);
  color: #121212;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn-understood:hover {
  background: var(--accent-color);
}

/* Estilos para o modal PIX */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: var(--card-bg);
  padding: 25px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-primary);
  cursor: pointer;
}

.modal-content h2 {
  margin-top: 0;
  color: var(--accent-color);
  margin-bottom: 20px;
}

.modal-qrcode {
  width: 200px;
  height: 200px;
  margin: 0 auto 20px;
  border: 1px solid var(--border-color);
  padding: 10px;
  background: white;
}

.modal-text {
  margin-bottom: 15px;
  color: var(--text-secondary);
}

.modal-pix-key {
  background: rgba(255, 255, 255, 0.1);
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 15px;
  word-break: break-all;
  font-family: monospace;
  border: 1px dashed var(--accent-color);
}

.btn-copy-pix {
  background: var(--accent-color);
  color: #121212;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 auto;
  transition: background 0.3s;
}

.btn-copy-pix:hover {
  background: var(--accent-secondary);
}

/* Estilos para o formulário de comprovante */
.form-group {
  margin-bottom: 15px;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: var(--text-primary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--bg-color);
  color: var(--text-primary);
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-color);
}

.btn-submit {
  background: var(--accent-color);
  color: #121212;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 20px auto 0;
  width: 100%;
  transition: background 0.3s;
}

.btn-submit:hover {
  background: var(--accent-secondary);
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Modal de Vídeo */
.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  display: none;
  overflow-y: auto;
  font-family: "Inter", sans-serif;
}

.video-modal.active {
  display: block;
  animation: fadeIn 0.3s ease-out;
}

.video-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
  z-index: 1;
  cursor: pointer;
}

.video-modal-container {
  position: relative;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 2;
}

.video-modal-content {
  position: relative;
  background: var(--card-bg);
  border-radius: 12px;
  width: 100%;
  max-width: 900px;
  margin: 20px auto;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  transform: translateY(0);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.video-modal.active .video-modal-content {
  animation: modalSlideIn 0.4s ease-out;
}

.video-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  pointer-events: auto;
}

.video-modal-close:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #000;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: rgba(0, 0, 0, 0.1);
  border-top: 1px solid var(--border-color);
}

.dont-show-again {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
  transition: color 0.2s;
}

.dont-show-again:hover {
  color: var(--text-primary);
}

.dont-show-again input {
  cursor: pointer;
  width: 16px;
  height: 16px;
  accent-color: var(--accent-color);
}

.btn-close-video {
  padding: 8px 20px;
  background: var(--accent-color);
  color: #121212;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  pointer-events: auto;
  position: relative;
  z-index: 10;
}

.btn-close-video:hover {
  background: var(--accent-secondary);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Estilo para o botão Vídeo no menu */
.nav-links #videoBtn {
  transition: all 0.3s ease;
}

.nav-links #videoBtn:hover {
  color: var(--accent-color);
  transform: translateY(-2px);
}

.nav-links #videoBtn .fa-video {
  margin-right: 8px;
}

/* Efeito ativo quando o modal está aberto */
.nav-links #videoBtn.active-video {
  color: var(--accent-color);
  background: rgba(187, 134, 252, 0.1);
}

/* Modal Trading System */
.trading-system-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  animation: fadeIn 0.3s ease-out;
}

#tradingSystemAlertModal {
  animation: fadeIn 0.3s ease;
}

#tradingSystemModalBox {
  animation: zoomIn 0.4s ease forwards;
}

/* ==================== MULTITEMPORAL STRATEGY ==================== */
.multitemporal-strategy {
  grid-column: span 12;
  background-color: var(--card-bg);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--space-md);
  border-top: 3px solid var(--premium-color);
}

.multitemporal-strategy h2 {
  color: var(--premium-color);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* Grid de timeframes */
.timeframe-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.timeframe-card {
  background-color: #2a2a2a;
  padding: var(--space-md);
  border-radius: var(--radius-md);
  transition: all 0.3s;
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

body.light-mode .timeframe-card {
  background-color: #f5f5f5;
}

.timeframe-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
}

.timeframe-card h3 {
  font-size: 16px;
  margin-top: 0;
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.timeframe-card h4 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: #bb86fc;
}

/* Indicadores EMA */
.ema-container {
  margin-bottom: var(--space-md);
}

.ema-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-xs);
  font-size: 14px;
}

.ema-label {
  color: var(--text-secondary);
}

.ema-value {
  font-weight: bold;
}

/* Sinais de tendência */
.trend-direction,
.crossover-signal,
.entry-signal {
  padding: var(--space-sm);
  border-radius: var(--radius-sm);
  text-align: center;
  margin-bottom: var(--space-md);
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
}

.trend-direction.uptrend {
  background-color: rgba(38, 166, 154, 0.2);
  color: var(--positive-color);
  border-left: 3px solid var(--positive-color);
}

.trend-direction.downtrend {
  background-color: rgba(239, 83, 80, 0.2);
  color: var(--negative-color);
  border-left: 3px solid var(--negative-color);
}

.trend-direction.neutral {
  background-color: rgba(176, 190, 197, 0.2);
  color: var(--neutral-color);
  border-left: 3px solid var(--neutral-color);
}

.crossover-signal.buy {
  background-color: rgba(38, 166, 154, 0.2);
  color: var(--positive-color);
  border-left: 3px solid var(--positive-color);
}

.crossover-signal.sell {
  background-color: rgba(239, 83, 80, 0.2);
  color: var(--negative-color);
  border-left: 3px solid var(--negative-color);
}

/* Sinais de entrada */
.entry-signal.confirmed {
  background-color: rgba(38, 166, 154, 0.3);
  color: var(--positive-color);
  border-left: 3px solid var(--positive-color);
  animation: pulse 1.5s infinite;
}

.entry-signal.rejected {
  background-color: rgba(239, 83, 80, 0.3);
  color: var(--negative-color);
  border-left: 3px solid var(--negative-color);
}

.entry-signal.buy-confirmed {
  color: #4caf50;
  background-color: rgba(76, 175, 80, 0.1);
  border-left: 4px solid #4caf50;
}

.entry-signal.buy-pending {
  color: #8bc34a;
  background-color: rgba(139, 195, 74, 0.1);
  border-left: 4px solid #8bc34a;
}

.entry-signal.sell-confirmed {
  color: #f44336;
  background-color: rgba(244, 67, 54, 0.1);
  border-left: 4px solid #f44336;
}

.entry-signal.sell-pending {
  color: #ff9800;
  background-color: rgba(255, 152, 0, 0.1);
  border-left: 4px solid #ff9800;
}

/* Recomendações e níveis-chave */
.recommendation {
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: var(--space-md);
  min-height: 60px;
  padding: var(--space-xs);
  border-radius: var(--radius-sm);
  background-color: rgba(187, 134, 252, 0.1);
}

.key-levels,
.price-position,
.momentum-indicator,
.entry-details {
  margin-top: var(--space-md);
}

.key-levels h4,
.price-position h4,
.momentum-indicator h4,
.entry-details h4 {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: var(--space-xs);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.levels-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.level-tag {
  background-color: #333;
  color: var(--text-primary);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-size: 11px;
}

body.light-mode .level-tag {
  background-color: #e0e0e0;
}

/* Conclusão multitemporal */
.multitemporal-conclusion {
  background-color: #2a2a2a;
  padding: var(--space-md);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--premium-color);
}

body.light-mode .multitemporal-conclusion {
  background-color: #f5f5f5;
}

.conclusion-content {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.conclusion-header {
  padding: 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
}

.conclusion-header.ideal {
  background-color: rgba(46, 125, 50, 0.2);
  border-left: 4px solid var(--positive-color);
}

.conclusion-header.moderate {
  background-color: rgba(255, 160, 0, 0.2);
  border-left: 4px solid var(--warning-color);
}

.conclusion-header.weak {
  background-color: rgba(239, 83, 80, 0.2);
  border-left: 4px solid var(--negative-color);
}

.conclusion-body {
  padding: 0 8px;
}

.alignment-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 12px 0;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

/* Gerenciamento de risco */
.risk-management {
  padding: var(--space-sm);
  background-color: rgba(239, 83, 80, 0.1);
  border-radius: var(--radius-sm);
}

.risk-management h4 {
  color: var(--negative-color);
  margin-top: 0;
  margin-bottom: var(--space-xs);
}

.risk-content {
  font-size: 13px;
  line-height: 1.5;
}

.risk-header {
  padding: 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
}

.risk-header.strong {
  background-color: rgba(46, 125, 50, 0.15);
}

.risk-header.moderate {
  background-color: rgba(255, 160, 0, 0.15);
}

.risk-header.weak {
  background-color: rgba(239, 83, 80, 0.15);
}

.risk-body ul {
  padding-left: 20px;
  margin: 8px 0;
}

.risk-body li {
  margin-bottom: 6px;
}

/* Painéis de conclusão e risco */
.multitemporal-conclusion-wrapper {
  display: flex;
  flex-direction: row;
  gap: 16px;
}

.conclusion-panel,
.risk-panel {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  background-color: #1e1e1e;
}

/* Grid de indicadores */
.indicators-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.indicator-card {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 10px;
  border-radius: var(--radius-sm);
  text-align: center;
}

.indicator-card h5 {
  margin: 0 0 6px 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.indicator-value {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 4px;
}

.indicator-value.overbought {
  color: var(--negative-color);
}

.indicator-value.oversold {
  color: var(--positive-color);
}

.indicator-value.spike {
  color: var(--positive-color);
}

.indicator-value.up {
  color: var(--positive-color);
}

.indicator-value.down {
  color: var(--negative-color);
}

.indicator-label {
  font-size: 12px;
  color: var(--text-secondary);
}

.indicator-tag {
  background: #333;
  color: #fff;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 3px;
  margin-top: 4px;
  display: inline-block;
}

/* Estilos para sinais de trade */
.signal-item {
  background-color: #1e1e1e;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.signal-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.signal-pair {
  font-weight: bold;
  color: #bb86fc;
  margin-right: 8px;
}

.signal-type {
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  font-size: 12px;
}

.signal-type.buy {
  background-color: #4caf50;
  color: white;
}

.signal-type.sell {
  background-color: #f44336;
  color: white;
}

.signal-timeframe {
  font-size: 12px;
  color: #888;
  margin-left: 6px;
}

.timeframe-indicator {
  font-size: 0.8em;
  color: #888;
  margin-left: 5px;
  font-weight: normal;
}

.signal-details {
  font-size: 13px;
  margin-top: 4px;
  color: #ccc;
}

.signal-confidence {
  height: 6px;
  border-radius: 3px;
  margin-top: 4px;
}

.confidence-high {
  background-color: #4caf50;
}

.confidence-medium {
  background-color: #ff9800;
}

.confidence-low {
  background-color: #f44336;
}

.crossover-strength {
  height: 4px;
  background: linear-gradient(90deg, #ff4444, #ffbb33, #00c851);
  margin-top: 5px;
  border-radius: 2px;
}

.price-position-indicator {
  font-size: 0.8em;
  padding: 3px 6px;
  border-radius: 4px;
  background: #333;
  margin-left: 5px;
}

.above {
  color: #00c851;
}

.below {
  color: #ff4444;
}

.between {
  color: #ffbb33;
}

/* Dicas adicionais */
.additional-tips {
  background-color: rgba(187, 134, 252, 0.1);
  padding: 10px;
  border-radius: var(--radius-sm);
  margin-top: 12px;
  font-size: 13px;
}

.technical-summary {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 10px;
  border-radius: var(--radius-sm);
  margin-top: 12px;
}

.technical-summary h4 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 14px;
}

/* Estilos para volume */
.volume-highlight {
  font-weight: bold;
  color: #4caf50;
}

.volume-lowlight {
  font-weight: bold;
  color: #f44336;
}

.rsi-warning {
  color: orange;
  font-size: 0.9em;
  margin-top: 5px;
  font-weight: bold;
}

/* Estilos para recomendações de risco */
.risk-recommendation {
  background: #1e1e2e;
  border-radius: 10px;
  padding: 15px;
  margin-top: 15px;
  border-left: 4px solid var(--accent-color, #bb86fc);
}

.recommendation-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #2a2a3a;
}

.recommendation-header.bull {
  color: #4caf50;
}

.recommendation-header.bear {
  color: #f44336;
}

.confidence-badge {
  background: #333;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  margin-left: auto;
}

.signal-details-container {
  display: grid;
  gap: 15px;
}

.signal-detail {
  display: grid;
  gap: 10px;
}

.signal-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #bb86fc;
  font-weight: 500;
}

.signal-values {
  display: grid;
  gap: 8px;
  padding-left: 25px;
}

.signal-value {
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.signal-value .label {
  min-width: 60px;
  color: #aaa;
}

.signal-value .value {
  font-weight: 500;
  min-width: 80px;
  text-align: right;
}

.signal-value .note {
  color: #777;
  font-size: 0.9rem;
}

.signal-value.positive .value {
  color: #4caf50;
}

.signal-value.negative .value {
  color: #f44336;
}

.signal-value.neutral .value {
  color: #bb86fc;
}

.signal-meta {
  display: flex;
  gap: 15px;
  margin-top: 10px;
  padding-left: 25px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.9rem;
  color: #aaa;
}

.signal-footer {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.footer-item {
  background: #2a2a3a;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

.footer-item.success-bg {
  background: rgba(76, 175, 80, 0.15);
  color: #4caf50;
}

.footer-item.danger-bg {
  background: rgba(244, 67, 54, 0.15);
  color: #f44336;
}

.success-icon {
  color: #4caf50;
}

.danger-icon {
  color: #f44336;
}

/* ==================== ORDER BOOK ==================== */
.order-book-panel {
  background-color: var(--card-bg);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--space-md);
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.order-book-panel:hover {
  box-shadow: var(--shadow-lg);
}

.order-book-panel h2 {
  margin-top: 0;
  color: var(--accent-secondary);
  font-size: 1.25rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  position: relative;
}

/* Grid de Zonas */
.zones-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-md);
}

/* Cards de Zona */
.zone-card {
  background-color: var(--card-bg-secondary);
  padding: var(--space-md);
  border-radius: var(--radius-sm);
  transition: all var(--transition-normal);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
  animation: fadeIn var(--transition-slow) forwards;
}

.zone-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.zone-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
}

.zone-card.support::before {
  background-color: var(--positive-color);
}

.zone-card.resistance::before {
  background-color: var(--negative-color);
}

.zone-card.demand::before {
  background: linear-gradient(90deg, var(--positive-color), #4caf50aa);
}

.zone-card.supply::before {
  background: linear-gradient(90deg, var(--negative-color), #f44336aa);
}

.zone-title {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.zone-title i {
  font-size: 1rem;
}

.zone-value {
  font-size: 1.375rem;
  font-weight: bold;
  margin: var(--space-xs) 0;
  color: var(--text-primary);
  font-family: "Orbitron", sans-serif;
  letter-spacing: 0.5px;
}

.zone-detail {
  font-size: 0.875rem;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
}

.zone-detail strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Container do Order Book */
.order-book-container {
  background-color: var(--card-bg-secondary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  margin-top: var(--space-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.order-book-visualization {
  height: 220px;
  display: flex;
  flex-direction: column;
  position: relative;
  font-size: 14px;
}

.order-book-header {
  display: flex;
  justify-content: space-between;
  padding: 8px 16px;
  background-color: rgba(0, 0, 0, 0.2);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
}

.order-book-asks,
.order-book-bids {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 0 16px;
}

.order-book-asks {
  justify-content: flex-end;
}

.order-book-bids {
  justify-content: flex-start;
}

.order-book-current-price {
  padding: 8px 0;
  background-color: var(--accent-color);
  color: white;
  text-align: center;
  font-weight: bold;
  font-size: 0.9rem;
  position: relative;
  z-index: 2;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.order-book-current-price::before,
.order-book-current-price::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 100%
  );
}

.order-book-current-price::before {
  top: 0;
}

.order-book-current-price::after {
  bottom: 0;
}

.order-book-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 0.8rem;
  position: relative;
  transition: all var(--transition-fast);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.order-book-row:last-child {
  border-bottom: none;
}

.order-book-row:hover {
  background-color: rgba(255, 255, 255, 0.05);
  transform: scaleX(1.01);
}

.ask-row {
  color: #ef5350;
}

.bid-row {
  color: #4caf50;
}

.price-cell,
.volume-cell {
  flex: 1;
  text-align: right;
  font-family: "Roboto Mono", monospace;
  position: relative;
  z-index: 2;
}

.price-cell {
  font-weight: 600;
}

.volume-cell {
  color: var(--text-secondary);
}

.volume-bar {
  position: absolute;
  top: 0;
  height: 100%;
  opacity: 0.15;
  transition: all var(--transition-fast);
}

.ask-row .volume-bar {
  right: 0;
  background-color: #ef5350;
}

.bid-row .volume-bar {
  left: 0;
  background-color: #4caf50;
}

.order-book-row:hover .volume-bar {
  opacity: 0.25;
}

/* Controles do Order Book */
.order-book-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  background-color: rgba(0, 0, 0, 0.1);
  border-top: 1px solid var(--border-color);
}

.control-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 4px;
  transition: all var(--transition-fast);
  font-size: 0.9rem;
}

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

.depth-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
}

.depth-selector select {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  cursor: pointer;
}

.depth-selector select:hover {
  border-color: var(--accent-color);
}

/* Elementos Premium */
.premium-highlight {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(108, 92, 231, 0.05) 0%,
    rgba(0, 206, 201, 0.05) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.refresh-badge {
  font-size: 0.7rem;
  background-color: rgba(0, 206, 201, 0.2);
  color: var(--accent-secondary);
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 8px;
  font-weight: normal;
}

.significant-level {
  color: var(--text-primary) !important;
  font-weight: 700 !important;
}

.significant-level i {
  margin-right: 4px;
}

/* Tooltips Premium */
.premium-tooltip {
  position: absolute;
  background: var(--tooltip-bg);
  color: var(--tooltip-text);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  white-space: pre;
  z-index: 100;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  pointer-events: none;
  transform: translateY(5px);
  opacity: 0;
  transition: all var(--transition-fast);
  max-width: 250px;
  line-height: 1.4;
}

.order-book-row:hover .premium-tooltip {
  transform: translateY(0);
  opacity: 1;
}

/* Estados de Erro */
.error-message {
  color: var(--negative-color);
  text-align: center;
  padding: var(--space-md);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.error-message i {
  font-size: 1.2rem;
}

/* ==================== COURSES ==================== */
.curso-header {
  background: linear-gradient(135deg, #1e1e2e, #121212);
  padding: 2rem;
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
  text-align: center;
  border-bottom: 4px solid var(--accent-color);
}

.curso-title {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: var(--accent-color);
  font-family: "Orbitron", sans-serif;
}

.curso-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.aula-container {
  background-color: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--accent-color);
}

.aula-selector {
  margin-bottom: 2rem;
}

.aula-selector select {
  width: 100%;
  padding: 1rem;
  border-radius: var(--radius-sm);
  background-color: var(--input-bg);
  color: #ccc;
  border: 1px solid var(--border-color);
  font-size: 1rem;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.aula-selector option {
  background-color: #222;
  color: #ccc;
}

.aula-title {
  font-size: 1.4rem;
  color: var(--accent-secondary);
  margin-bottom: 1rem;
}

.aula-desc {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin-bottom: 1.5rem;
  border-radius: var(--radius-sm);
  background: #000;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-controls {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  align-items: center;
}

.btn-assistir {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--accent-color);
  color: #121212;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}

.btn-assistir:hover {
  background-color: var(--accent-secondary);
  transform: translateY(-2px);
}

.video-status {
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.progresso-container {
  background-color: var(--card-bg);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md);
}

.progresso-bar {
  height: 10px;
  background-color: #333;
  border-radius: 5px;
  margin-top: 1rem;
  overflow: hidden;
}

.progresso-fill {
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--accent-color),
    var(--accent-secondary)
  );
  width: 0%;
  transition: width 0.5s ease;
}

.progresso-texto {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.modulo-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.modulo-card {
  flex: 1;
  min-width: 200px;
  background-color: var(--card-bg);
  padding: 1rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--accent-color);
}

.modulo-card h3 {
  margin-top: 0;
  color: var(--accent-secondary);
  font-size: 1.1rem;
}

.modulo-card p {
  margin-bottom: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Questionário */
.questionario-container {
  margin-bottom: 2rem;
}

.pergunta-item {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background-color: var(--card-bg-secondary);
  border-radius: var(--radius-sm);
}

.pergunta-item h4 {
  margin-top: 0;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.opcao-resposta {
  margin-bottom: 0.5rem;
}

.opcao-resposta input[type="radio"] {
  margin-right: 0.5rem;
}

.opcao-resposta label {
  cursor: pointer;
  color: var(--text-secondary);
  transition: color 0.3s;
}

.opcao-resposta:hover label {
  color: var(--text-primary);
}

.btn-enviar-questionario {
  background-color: var(--accent-color);
  color: #121212;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 1rem;
}

.btn-enviar-questionario:hover {
  background-color: var(--accent-secondary);
  transform: translateY(-2px);
}

.resultado-questionario {
  margin-bottom: 2rem;
}

.feedback-item {
  padding: 0.5rem;
  margin-bottom: 0.5rem;
  border-radius: var(--radius-sm);
}

.feedback-item.correto {
  background-color: rgba(0, 200, 0, 0.1);
  color: var(--success-color);
}

.feedback-item.incorreto {
  background-color: rgba(200, 0, 0, 0.1);
  color: var(--error-color);
}

/* Ações de aula */
.aula-actions {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn-pdf {
  background-color: #e74c3c;
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-pdf:hover {
  background-color: #c0392b;
  transform: translateY(-2px);
}

.btn-retry-quiz {
  background-color: #3498db;
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-retry-quiz:hover {
  background-color: #2980b9;
  transform: translateY(-2px);
}

/* Notas */
.notas-container {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.nota-aula-atual,
.nota-geral {
  flex: 1;
  min-width: 250px;
}

.nota-info {
  text-align: center;
  padding: 1rem;
}

.nota-valor {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

.nota-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Ajustes para light mode */
body.light-mode .aula-selector select {
  background-color: #fff;
  color: #333;
}

body.light-mode .aula-selector option {
  background-color: #fff;
  color: #333;
}

body.light-mode .pergunta-item {
  background-color: var(--card-bg-secondary);
}

body.light-mode .opcao-resposta label {
  color: var(--text-secondary);
}

body.light-mode .progresso-bar {
  background-color: #e0e0e0;
}

/* ==================== NAVEGAÇÃO ==================== */
.header-navigation {
  flex-grow: 1;
  display: flex;
  justify-content: center;
}

.nav-links {
  display: flex;
  gap: 20px;
  margin: 0 20px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border-radius: 8px;
  text-decoration: none;
  color: #ccc;
  transition: all 0.3s ease;
  font-weight: 500;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transform: translateY(-2px);
}

.nav-link.active {
  background: rgba(187, 134, 252, 0.2);
  color: #bb86fc;
  box-shadow: 0 2px 10px rgba(187, 134, 252, 0.2);
}

.nav-link i {
  font-size: 1.1em;
}

/* Perfil do usuário */
.user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 20px;
  position: relative;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #bb86fc;
  color: #121212;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.user-avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 0 0 2px rgba(187, 134, 252, 0.5);
}

.user-name {
  font-weight: 500;
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: #2a2a3a;
  border-radius: 8px;
  padding: 10px 0;
  min-width: 200px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1000;
}

.user-profile:hover .user-dropdown {
  display: block;
}

.user-dropdown a {
  display: block;
  padding: 8px 16px;
  color: #e0e0e0;
  text-decoration: none;
  transition: all 0.2s;
}

.user-dropdown a:hover {
  background: rgba(187, 134, 252, 0.2);
  color: #bb86fc;
}

.user-dropdown a i {
  margin-right: 8px;
  width: 20px;
  text-align: center;
}

/* ==================== ANIMAÇÕES ==================== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes zoomIn {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

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

@keyframes pulse {
  0% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.6;
  }
}

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

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(108, 92, 231, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(108, 92, 231, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(108, 92, 231, 0);
  }
}

@keyframes flashUpdate {
  0% {
    background-color: rgba(0, 206, 201, 0.1);
  }
  50% {
    background-color: rgba(0, 206, 201, 0.3);
  }
  100% {
    background-color: rgba(0, 206, 201, 0.1);
  }
}

.updating {
  animation: flashUpdate 1.5s infinite;
}

/* ==================== RESPONSIVIDADE ==================== */
@media (max-width: 1200px) {
  .timeframe-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .zones-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-links {
    gap: 10px;
  }

  .nav-link {
    padding: 8px 12px;
    font-size: 0.9em;
  }
}

@media (max-width: 768px) {
  .timeframe-grid {
    grid-template-columns: 1fr;
  }

  .zones-grid {
    grid-template-columns: 1fr;
  }

  .multitemporal-conclusion-wrapper {
    flex-direction: column;
  }

  .indicators-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .alignment-details {
    grid-template-columns: 1fr;
  }

  .header-navigation {
    order: 3;
    width: 100%;
    margin-top: 15px;
  }

  .nav-links {
    justify-content: center;
    width: 100%;
  }

  .user-name {
    display: none;
  }

  .user-avatar {
    width: 32px;
    height: 32px;
    font-size: 0.9em;
  }

  .aula-actions {
    flex-direction: column;
  }

  .btn-pdf,
  .btn-retry-quiz {
    width: 100%;
    justify-content: center;
  }

  .progresso-texto {
    flex-direction: column;
    gap: 0.5rem;
  }

  .notas-container {
    flex-direction: column;
  }

  .video-modal-container {
    padding: 10px;
    align-items: flex-start;
  }

  .video-modal-content {
    margin: 10px auto;
  }

  .video-modal-footer {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }

  .btn-close-video {
    width: 100%;
  }

  .video-modal-close {
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .indicators-grid {
    grid-template-columns: 1fr;
  }

  .signal-meta {
    flex-direction: column;
    gap: 8px;
  }

  .signal-footer {
    flex-direction: column;
  }

  .curso-title {
    font-size: 1.8rem;
  }

  .curso-subtitle {
    font-size: 1rem;
  }

  .modulo-info {
    flex-direction: column;
  }

  .video-wrapper {
    padding-bottom: 75%;
  }

  .dont-show-again {
    font-size: 13px;
  }

  .order-book-panel {
    padding: var(--space-sm);
  }

  .order-book-visualization {
    height: 250px;
    font-size: 12px;
  }

  .zone-card {
    padding: var(--space-sm);
  }

  .zone-value {
    font-size: 1.125rem;
  }

  .order-book-current-price {
    font-size: 0.8rem;
    padding: 6px 0;
  }

  .order-book-asks,
  .order-book-bids {
    padding: 0 12px;
  }
}

/* ==================== UTILITÁRIOS ==================== */
.text-center {
  text-align: center;
}

.mb-0 {
  margin-bottom: 0;
}

.mt-1 {
  margin-top: 1rem;
}

.mb-1 {
  margin-bottom: 1rem;
}

.hidden {
  display: none;
}

.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

.slide-in-right {
  animation: slideInFromRight 0.3s ease forwards;
}

.slide-in-left {
  animation: slideInFromLeft 0.3s ease forwards;
}

.highlight {
  animation: highlight 1s ease forwards;
}

/* ==================== ESTILOS DE FORMULÁRIO ==================== */
.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  margin-bottom: var(--space-xs);
  color: var(--text-secondary);
  font-weight: 500;
}

.form-input {
  width: 100%;
  padding: var(--space-sm);
  background-color: var(--input-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  transition: border-color var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-color);
}

.form-select {
  width: 100%;
  padding: var(--space-sm);
  background-color: var(--input-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  cursor: pointer;
  appearance: none;
}

.form-select:focus {
  outline: none;
  border-color: var(--accent-color);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-md);
  background-color: var(--accent-color);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  gap: var(--space-xs);
}

.btn:hover {
  background-color: var(--accent-secondary);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--card-bg-secondary);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background-color: var(--border-color);
}

.btn-sm {
  padding: var(--space-xs) var(--space-sm);
  font-size: 0.875rem;
}

/* ==================== ESTILOS DE TEXTO ==================== */
.text-success {
  color: var(--positive-color);
}

.text-danger {
  color: var(--negative-color);
}

.text-warning {
  color: var(--warning-color);
}

.text-muted {
  color: var(--text-secondary);
}

.text-bold {
  font-weight: 700;
}

.text-uppercase {
  text-transform: uppercase;
}

/* ==================== ESTILOS DE ÍCONES ==================== */
.icon-sm {
  font-size: 0.875rem;
}

.icon-md {
  font-size: 1rem;
}

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

.icon-xl {
  font-size: 1.5rem;
}

/* ==================== ESTILOS DE BADGE ==================== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  gap: 4px;
}

.badge-success {
  background-color: rgba(76, 175, 80, 0.2);
  color: var(--positive-color);
}

.badge-danger {
  background-color: rgba(244, 67, 54, 0.2);
  color: var(--negative-color);
}

.badge-warning {
  background-color: rgba(255, 152, 0, 0.2);
  color: var(--warning-color);
}

.badge-info {
  background-color: rgba(0, 206, 201, 0.2);
  color: var(--accent-secondary);
}

.badge-premium {
  background-color: rgba(255, 215, 0, 0.2);
  color: var(--premium-color);
}

/* ==================== EFEITOS ESPECIAIS ==================== */
.order-book-panel::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(108, 92, 231, 0.05) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

.zone-card.active {
  animation: pulse 2s infinite;
  border-color: var(--accent-color);
}

/* Scrollbar Personalizada */
.order-book-asks::-webkit-scrollbar,
.order-book-bids::-webkit-scrollbar {
  width: 6px;
}

.order-book-asks::-webkit-scrollbar-track,
.order-book-bids::-webkit-scrollbar-track {
  background: transparent;
}

.order-book-asks::-webkit-scrollbar-thumb,
.order-book-bids::-webkit-scrollbar-thumb {
  background: var(--accent-color);
  border-radius: 3px;
}

.order-book-asks::-webkit-scrollbar-thumb:hover,
.order-book-bids::-webkit-scrollbar-thumb:hover {
  background: var(--accent-secondary);
}

/* Indicador de carregamento */
.loading-indicator {
  font-size: 0.9em;
  color: #aaa;
  margin-left: 10px;
}

/* Acessibilidade */
.video-modal-close:focus,
.btn-close-video:focus,
.dont-show-again input:focus {
  outline: 2px solid var(--accent-secondary);
  outline-offset: 2px;
}

/* Dark/Light mode compatibility */
body.light-mode .video-modal-content {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

body.light-mode .video-modal-footer {
  background: rgba(0, 0, 0, 0.05);
}

body.light-mode .dont-show-again {
  color: var(--text-secondary);
}

/* CONCLUSÃO MULTITEMPORAL - LAYOUT RESPONSIVO */
.multitemporal-conclusion {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 16px;
  padding: 24px;
  margin: 20px 0;
  border: 1px solid #2a2a4a;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.multitemporal-conclusion h3 {
  color: #00d4ff;
  font-size: 1.4rem;
  margin-bottom: 20px;
  text-align: center;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 212, 255, 0.3);
}

/* BARRA DE CONFLUÊNCIA */
.confluence-bar-container {
  margin: 20px 0;
}

.confluence-bar {
  height: 12px;
  background: #2a2a4a;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.confluence-progress {
  height: 100%;
  border-radius: 10px;
  transition: width 0.5s ease;
  background: linear-gradient(90deg, #ff4444 0%, #ffaa00 50%, #00cc66 100%);
}

.confluence-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  font-size: 0.9rem;
  color: #ccc;
}

/* GRID DE TIMEFRAMES */
.timeframe-analysis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.timeframe-item {
  background: rgba(42, 42, 74, 0.6);
  padding: 16px;
  border-radius: 12px;
  border-left: 4px solid;
  transition: transform 0.2s ease;
}

.timeframe-item:hover {
  transform: translateY(-2px);
}

.timeframe-item.aligned {
  border-left-color: #00cc66;
  background: rgba(0, 204, 102, 0.1);
}

.timeframe-item.misaligned {
  border-left-color: #ff4444;
  background: rgba(255, 68, 68, 0.1);
}

.timeframe-item.neutral {
  border-left-color: #ffaa00;
  background: rgba(255, 170, 0, 0.1);
}

/* RECOMENDAÇÕES */
.risk-recommendation {
  background: linear-gradient(135deg, #2d2d4e 0%, #1e1e3f 100%);
  border-radius: 16px;
  padding: 24px;
  margin-top: 20px;
  border: 1px solid #3a3a6a;
}

.recommendation-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 1.2rem;
  color: #00ff99;
}

.recommendation-header.bull {
  color: #00ff99;
}

.recommendation-header.bear {
  color: #ff6b6b;
}

/* GRID DE NÍVEIS */
.trade-levels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.level-card {
  background: rgba(42, 42, 74, 0.8);
  padding: 16px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid #3a3a6a;
}

.level-card.target {
  border-color: #00cc66;
  background: rgba(0, 204, 102, 0.1);
}

.level-card.stop {
  border-color: #ff4444;
  background: rgba(255, 68, 68, 0.1);
}

.level-card .value {
  font-size: 1.3rem;
  font-weight: bold;
  margin: 8px 0;
  display: block;
}

.level-card.target .value {
  color: #00ff99;
}

.level-card.stop .value {
  color: #ff6b6b;
}

/* DETALHES DA ESTRATÉGIA */
.strategy-details {
  background: rgba(42, 42, 74, 0.6);
  padding: 20px;
  border-radius: 12px;
  margin-top: 20px;
}

.strategy-details ul {
  list-style: none;
  padding: 0;
}

.strategy-details li {
  padding: 8px 0;
  border-bottom: 1px solid #3a3a6a;
  display: flex;
  align-items: center;
  gap: 12px;
}

.strategy-details li:last-child {
  border-bottom: none;
}

/* ALERTAS E AVISOS */
.alert-banner {
  background: linear-gradient(135deg, #ffaa00 0%, #ff7700 100%);
  color: #fff;
  padding: 16px;
  border-radius: 12px;
  margin: 16px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.alert-banner.critical {
  background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
}

/* BADGES */
.confluence-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-left: 12px;
}

.badge-strong {
  background: rgba(0, 204, 102, 0.2);
  color: #00ff99;
  border: 1px solid #00cc66;
}

.badge-moderate {
  background: rgba(255, 170, 0, 0.2);
  color: #ffaa00;
  border: 1px solid #ffaa00;
}

.badge-weak {
  background: rgba(255, 68, 68, 0.2);
  color: #ff4444;
  border: 1px solid #ff4444;
}

/* RESPONSIVIDADE */
@media (max-width: 768px) {
  .multitemporal-conclusion {
    padding: 16px;
    margin: 16px 0;
  }

  .multitemporal-conclusion h3 {
    font-size: 1.2rem;
  }

  .timeframe-analysis-grid {
    grid-template-columns: 1fr;
  }

  .trade-levels-grid {
    grid-template-columns: 1fr;
  }

  .recommendation-header {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  .confluence-info {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .multitemporal-conclusion {
    padding: 12px;
  }

  .timeframe-item {
    padding: 12px;
  }

  .level-card {
    padding: 12px;
  }

  .strategy-details {
    padding: 16px;
  }

  .level-card .value {
    font-size: 1.1rem;
  }
}

/* ANIMAÇÕES */
@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.6);
  }
  100% {
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
  }
}

.multitemporal-conclusion.strong-signal {
  animation: pulseGlow 2s ease-in-out infinite;
}

/* ICONS ESPECIAIS */
.icon-bull {
  color: #00ff99;
  font-size: 1.4em;
}

.icon-bear {
  color: #ff6b6b;
  font-size: 1.4em;
}

.icon-neutral {
  color: #ffaa00;
  font-size: 1.4em;
}

/* MULTITEMPORAL CONCLUSION RSI AND BB */
.badge-rsi {
  background: linear-gradient(45deg, #ff6b6b, #ee5a24);
  color: white;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.7rem;
  margin-left: 5px;
}

.badge-bb {
  background: linear-gradient(45deg, #4834d4, #686de0);
  color: white;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.7rem;
  margin-left: 5px;
}

.special-conditions {
  display: flex;
  gap: 5px;
  margin-top: 5px;
  flex-wrap: wrap;
}

.signal-details {
  background: rgba(255, 255, 255, 0.1);
  padding: 8px;
  border-radius: 5px;
  margin: 8px 0;
  font-size: 0.85rem;
}

.confluence-badge {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: bold;
  margin-left: 10px;
}

.badge-excellent {
  background: #00cc66;
  color: white;
}
.badge-very-strong {
  background: #00aa44;
  color: white;
}
.badge-strong {
  background: #008833;
  color: white;
}
.badge-moderate {
  background: #ffaa00;
  color: black;
}
.badge-weak {
  background: #ff6600;
  color: black;
}
.badge-very-weak {
  background: #ff4444;
  color: white;
}

.signal-metrics {
  display: flex;
  gap: 10px;
  font-size: 0.8rem;
  margin-top: 5px;
}

.metric-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 8px;
}

.rsi-indicator.ideal,
.bb-indicator.extreme {
  color: #00ff00;
}
.rsi-indicator.good,
.bb-indicator.good {
  color: #ffff00;
}

/* MULTITEMPORAL NEW LOGIC */

.system-active {
  background: linear-gradient(135deg, #4caf50, #45a049);
  color: white;
}

.system-inactive {
  background: linear-gradient(135deg, #f44336, #d32f2f);
  color: white;
}

.system-neutral {
  background: linear-gradient(135deg, #ff9800, #f57c00);
  color: white;
}

.system-status {
  padding: 10px;
  border-radius: 8px;
  text-align: center;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
}

.system-status:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
