@import url('./variables.css');

/* ==========================================================================
   VIEW 1: DASHBOARD (Centro de Comando do Administrador / Telemetria)
   ========================================================================== */
.dash-view-wrapper {
  flex: 1;
  padding: 24px 30px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
}

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

/* ==========================================================================
   PREMIUM EXECUTIVE HERO BANNER (Dashboard Header)
   ========================================================================== */
.premium-executive-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(21, 27, 46, 0.95) 0%, rgba(15, 20, 36, 0.98) 100%);
  border: 1px solid rgba(99, 102, 241, 0.22);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.premium-executive-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--accent-purple), var(--color-up));
  border-radius: 4px 0 0 4px;
}

.executive-title-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}

.institutional-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  width: fit-content;
  border-radius: var(--radius-full);
  background-color: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.28);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #A5B4FC;
  text-transform: uppercase;
}

.pulse-dot-purple {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #818CF8;
  box-shadow: 0 0 8px #818CF8;
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.badge-mini-tag {
  font-size: 9px;
  font-weight: 800;
  background-color: rgba(99, 102, 241, 0.25);
  color: #FFFFFF;
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 2px;
}

.executive-headline {
  font-size: 23px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.4px;
  margin: 0;
  line-height: 1.25;
}

.gradient-text-accent {
  background: linear-gradient(135deg, #818CF8 0%, #C084FC 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.executive-subtext {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin: 0;
  font-weight: 500;
  letter-spacing: 0.1px;
}

.executive-telemetry-cluster {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
}

.telemetry-pill-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background-color: rgba(11, 14, 23, 0.6);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.pill-dot.green {
  background-color: var(--color-up);
  box-shadow: 0 0 8px var(--color-up);
}

.pill-dot.blue {
  background-color: #38BDF8;
  box-shadow: 0 0 8px #38BDF8;
}

.pill-meta {
  display: flex;
  flex-direction: column;
}

.pill-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-tertiary);
  letter-spacing: 0.5px;
}

.pill-val {
  font-size: 11.5px;
  font-weight: 700;
  color: #FFFFFF;
  font-family: var(--font-family-mono);
}


.dash-live-date-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #10B981;
  padding: 6px 14px;
  background-color: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-full);
  letter-spacing: 0.2px;
}

.dash-live-date-badge .live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #10B981;
  box-shadow: 0 0 8px #10B981;
  animation: pulse-dot 2s infinite ease-in-out;
}

.dash-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.telemetry-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-md);
  position: relative;
  transition: all var(--transition-fast);
}

.telemetry-card:hover {
  border-color: var(--border-medium);
}

.card-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-label-badge {
  font-size: 11px;
  font-weight: 800;
  color: var(--accent-purple);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  background-color: var(--accent-purple-subtle);
  border-radius: var(--radius-full);
}

.card-live-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-up);
}

.card-live-indicator::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-up);
  box-shadow: 0 0 6px var(--color-up);
}

.card-huge-number {
  font-size: 34px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -1px;
  line-height: 1.1;
}

.card-sub-description {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.card-mini-grid {
  background-color: var(--bg-card-sub);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 12px;
}

.mini-stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
}

.mini-stat-label {
  color: var(--text-tertiary);
  text-transform: uppercase;
  font-weight: 600;
}

.mini-stat-val {
  color: var(--text-primary);
  font-family: var(--font-family-mono);
  font-weight: 700;
}

.btn-card-action {
  width: 100%;
  padding: 9px 0;
  background-color: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-sm);
  color: var(--accent-purple);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-card-action:hover {
  background-color: var(--accent-purple);
  color: #FFFFFF;
}

.dash-shortcuts-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 0;
}

.shortcut-pill-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.shortcut-pill-btn:hover {
  border-color: var(--accent-purple);
  color: #FFFFFF;
  background-color: var(--bg-hover);
}

.shortcut-pill-btn.primary {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(99, 102, 241, 0.1) 100%);
  border-color: rgba(99, 102, 241, 0.5);
  color: #FFFFFF;
}

.dash-middle-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

.panel-container {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.panel-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.equity-canvas-wrapper {
  position: relative;
  width: 100%;
  height: 230px;
}

#equityCanvas {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-sm);
}

.quick-market-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  max-height: 240px;
}

.quick-market-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background-color: var(--bg-card-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.quick-market-item:hover {
  background-color: var(--bg-hover);
  border-color: var(--accent-purple);
}

/* ==========================================================================
   VIEW 2: TRADING ROOM (MetaTrader 5 Sala de Operações)
   Layout: Gráfico + MT5 One-Click no Centro/Esquerda | Market Watch na Direita
   ========================================================================== */
.trading-room-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 8px 12px;
  gap: 8px;
  height: 100vh;
  overflow: hidden;
  box-sizing: border-box;
}

/* Top Ticker Card */
.tr-ticker-banner {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.ticker-left-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.coin-stack-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background-color: rgba(99, 102, 241, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-purple);
  flex-shrink: 0;
}

.symbol-selector-dropdown {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 800;
  color: #FFFFFF;
}

.perp-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background-color: var(--bg-card-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  text-transform: uppercase;
}

.last-price-block {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.last-price-label {
  font-size: 11px;
  color: var(--text-secondary);
}

.last-price-val {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.change-percent-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  display: inline-block;
}

.change-percent-badge.up {
  color: var(--color-up);
  background-color: var(--color-up-subtle);
}

.change-percent-badge.down {
  color: var(--color-down);
  background-color: var(--color-down-subtle);
}

.ticker-stats-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.btn-topbar-nova-ordem {
  height: 34px;
  padding: 0 15px;
  background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
  border: 1px solid rgba(147, 197, 253, 0.35);
  border-radius: var(--radius-sm);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-topbar-nova-ordem:hover {
  background: linear-gradient(135deg, #60A5FA 0%, #2563EB 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.55);
}

.btn-topbar-nova-ordem:active {
  transform: translateY(0);
}

.ticker-stat-box {
  display: flex;
  flex-direction: column;
}

.ticker-stat-box .box-label {
  font-size: 10px;
  color: var(--text-tertiary);
  text-transform: uppercase;
}

.ticker-stat-box .box-val {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
}

/* Main Split: Left 1fr (Chart & MT5 Controls) | Right 330px (Market Watch) */
.tr-main-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr var(--market-watch-width);
  gap: 8px;
  min-height: 0;
}

/* Left: Chart Container Card */
.chart-card-container {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
}

/* MT5 Top Controls & One-Click Trading Bar */
.chart-top-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 12px;
  background-color: var(--bg-card-secondary);
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.timeframe-pill-list {
  display: flex;
  align-items: center;
  gap: 6px;
}

.timeframe-label {
  font-size: 11px;
  color: var(--text-tertiary);
  font-weight: 600;
  margin-right: 4px;
}

.tf-pill {
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tf-pill:hover {
  color: #fff;
  background-color: var(--bg-hover);
}

.tf-pill.active {
  color: #fff;
  background-color: var(--accent-purple);
}

/* ==========================================================================
   AUTHENTIC MT5 ONE-CLICK TRADING BAR (Topo do Gráfico)
   ========================================================================== */
.mt5-one-click-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: rgba(14, 19, 34, 0.85);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 3px 6px;
  box-shadow: var(--shadow-sm);
}

.btn-mt5-oneclick {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  height: 36px;
  padding: 2px 8px;
  border: none;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-mt5-oneclick:active {
  transform: scale(0.97);
}

.btn-mt5-sell {
  background-color: var(--color-mt5-sell);
  color: #FFFFFF;
}

.btn-mt5-sell:hover {
  background-color: var(--color-mt5-sell-hover);
}

.btn-mt5-buy {
  background-color: var(--color-mt5-buy);
  color: #FFFFFF;
}

.btn-mt5-buy:hover {
  background-color: var(--color-mt5-buy-hover);
}

.btn-mt5-oneclick .action-label {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-mt5-oneclick .action-price {
  font-size: 12.5px;
  font-weight: 800;
  font-family: var(--font-family-mono);
  letter-spacing: -0.3px;
}

/* Lot / Volume Stepper Input */
.mt5-lot-stepper {
  display: flex;
  align-items: center;
  height: 36px;
  background-color: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 0 4px;
}

.mt5-lot-input {
  width: 48px;
  background: transparent;
  border: none;
  outline: none;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  font-family: var(--font-family-mono);
}

.mt5-stepper-arrows {
  display: flex;
  flex-direction: column;
}

.btn-stepper-arrow {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 8px;
  cursor: pointer;
  padding: 2px 4px;
  line-height: 1;
}

.btn-stepper-arrow:hover {
  color: #FFFFFF;
}

.btn-open-new-order-modal {
  height: 36px;
  padding: 0 10px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all var(--transition-fast);
}

.btn-open-new-order-modal:hover {
  border-color: var(--accent-purple);
  background-color: var(--bg-hover);
}

#tradingview-widget-container {
  flex: 1;
  width: 100%;
  min-height: 0;
  position: relative;
  overflow: hidden;
}

/* ==========================================================================
   RIGHT COLUMN: MARKET WATCH (Observação do Mercado MT5)
   Com abas Todos, Ações EUA, Índices, Commodities, Cripto
   ========================================================================== */
.market-watch-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  min-height: 0;
}

.mw-header {
  padding: 8px 12px;
  background-color: var(--bg-card-secondary);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

.mw-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mw-title {
  font-size: 13px;
  font-weight: 800;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mw-search-box {
  position: relative;
  width: 100%;
}

.mw-search-input {
  width: 100%;
  height: 30px;
  padding: 0 10px 0 28px;
  background-color: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #FFFFFF;
  font-size: 11.5px;
  outline: none;
  transition: border-color var(--transition-fast);
}

.mw-search-input:focus {
  border-color: var(--accent-purple);
}

.mw-search-icon {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  fill: var(--text-tertiary);
  pointer-events: none;
}

/* Category Filter Pills */
.mw-categories-pills {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.mw-cat-pill {
  padding: 4px 8px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-xs);
  color: var(--text-secondary);
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.mw-cat-pill:hover {
  color: #fff;
  background-color: var(--bg-hover);
}

.mw-cat-pill.active {
  background-color: var(--accent-purple);
  color: #FFFFFF;
}

.mw-table-wrapper {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
}

.mw-table {
  width: 100%;
  border-collapse: collapse;
}

.mw-table thead th {
  position: sticky;
  top: 0;
  background-color: var(--bg-card);
  padding: 8px 10px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  text-align: right;
  border-bottom: 1px solid var(--border-subtle);
  z-index: 10;
  white-space: nowrap;
}

.mw-table thead th:first-child {
  text-align: left;
}

.mw-table th:nth-child(1),
.mw-table td:nth-child(1) {
  width: 40%;
  min-width: 140px;
  text-align: left;
}

.mw-table th:nth-child(2),
.mw-table td:nth-child(2) {
  width: 20%;
  text-align: right;
}

.mw-table th:nth-child(3),
.mw-table td:nth-child(3) {
  width: 20%;
  text-align: right;
}

.mw-table th:nth-child(4),
.mw-table td:nth-child(4) {
  width: 20%;
  text-align: right;
  padding-right: 12px;
}

.mw-row {
  cursor: pointer;
  transition: background-color var(--transition-fast);
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.mw-row:hover {
  background-color: var(--bg-hover);
}

.mw-row.active {
  background-color: rgba(99, 102, 241, 0.18);
  border-left: 3px solid var(--accent-purple);
}

.mw-row td {
  padding: 8px 10px;
  font-size: 12px;
  text-align: right;
  white-space: nowrap;
}

.mw-row td:first-child {
  text-align: left;
}

.mw-symbol-col {
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
}

.mw-symbol-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mw-symbol-icon svg {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: block;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.mw-symbol-info {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.mw-symbol-title {
  font-weight: 800;
  color: #FFFFFF;
  font-size: 12px;
}

.mw-symbol-name {
  font-size: 10px;
  color: var(--text-tertiary);
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.change-pill {
  display: inline-block;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  font-size: 10.5px;
  font-weight: 700;
  font-family: var(--font-family-mono);
}

.change-pill.up {
  color: var(--color-up);
  background-color: var(--color-up-bg);
}

.change-pill.down {
  color: var(--color-down);
  background-color: var(--color-down-bg);
}

/* ==========================================================================
   BOTTOM MT5 TOOLBOX (Caixa de Ferramentas / Terminal de Negociação)
   ========================================================================== */
.mt5-toolbox-panel {
  height: 200px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.mt5-toolbox-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 12px;
  height: 32px;
  background-color: var(--bg-card-secondary);
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.mt5-toolbox-tabs {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mt5-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 9px 0;
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition-fast);
}

.mt5-tab-btn:hover {
  color: #FFFFFF;
}

.mt5-tab-btn.active {
  color: #FFFFFF;
}

.mt5-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--accent-purple);
}

.mt5-badge-counter {
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  background-color: var(--bg-input);
  color: var(--text-primary);
}

.mt5-tab-btn.active .mt5-badge-counter {
  background-color: var(--accent-purple);
  color: #FFFFFF;
}

.mt5-table-container {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

.mt5-table {
  width: 100%;
  border-collapse: collapse;
}

.mt5-table thead th {
  position: sticky;
  top: 0;
  background-color: var(--bg-card);
  padding: 7px 12px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
  z-index: 5;
}

.mt5-table thead th.text-right {
  text-align: right;
}

.mt5-table tbody td {
  padding: 7px 12px;
  font-size: 11.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.mt5-table tbody td.text-right {
  text-align: right;
}

.mt5-table tbody tr:hover {
  background-color: var(--bg-hover);
}

.mt5-type-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  text-transform: uppercase;
}

.mt5-type-badge.buy {
  color: var(--color-mt5-buy);
  background-color: var(--color-mt5-buy-bg);
}

.mt5-type-badge.sell {
  color: var(--color-mt5-sell);
  background-color: var(--color-mt5-sell-bg);
}

.btn-mt5-close-order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: var(--radius-xs);
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-tertiary);
  font-size: 12px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-mt5-close-order:hover {
  background-color: var(--color-mt5-sell);
  color: #fff;
  border-color: var(--color-mt5-sell);
}

.term-empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 80px;
  padding: 26px 20px;
  width: 100%;
}

.term-empty-state span {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-tertiary);
  letter-spacing: 0.2px;
}

/* MT5 Signature Bottom Summary Bar */
.mt5-summary-footer {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 8px 16px;
  background-color: var(--bg-card-secondary);
  border-top: 1px solid var(--border-subtle);
  font-size: 11.5px;
  flex-shrink: 0;
  overflow-x: auto;
}

.summary-metric {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.summary-metric .label {
  color: var(--text-tertiary);
  font-weight: 600;
}

.summary-metric .val {
  color: #FFFFFF;
  font-weight: 800;
  font-family: var(--font-family-mono);
}

/* ==========================================================================
   MODAL OVERLAY SYSTEM (Universal Modal Backdrop)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(6, 9, 18, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.modal-overlay.active,
.modal-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ==========================================================================
   AUTHENTIC MT5 BOLETA DE NEGOCIAÇÃO DIALOG
   ========================================================================== */
.mt5-modal-dialog {
  max-width: 530px;
  width: 94%;
  background: linear-gradient(180deg, #151B2E 0%, #0D1222 100%);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.06);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transform: translateY(-16px) scale(0.98);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .mt5-modal-dialog,
.modal-overlay.open .mt5-modal-dialog,
.modal-overlay.active .modal-crypto-dialog,
.modal-overlay.open .modal-crypto-dialog {
  transform: translateY(0) scale(1);
}

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

.modal-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mt5-badge-tag {
  font-size: 10px;
  font-weight: 800;
  background: linear-gradient(135deg, #4F46E5 0%, #3B82F6 100%);
  color: #FFFFFF;
  padding: 3px 7px;
  border-radius: var(--radius-xs);
  letter-spacing: 0.5px;
}

.modal-title {
  font-size: 15px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.2px;
}

.modal-subtitle {
  font-size: 11px;
  color: var(--text-tertiary);
  display: block;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-xs);
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  color: #FFFFFF;
  background-color: var(--bg-hover);
}

/* Asset Strip with Spread */
.mt5-boleta-asset-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: rgba(14, 19, 34, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
}

.boleta-symbol-info {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.boleta-symbol-name {
  font-size: 16px;
  font-weight: 800;
  color: #FFFFFF;
}

.boleta-symbol-desc {
  font-size: 11px;
  color: var(--text-tertiary);
}

.boleta-spread-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: var(--bg-card);
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-subtle);
}

.spread-label {
  font-size: 9.5px;
  color: var(--text-tertiary);
  font-weight: 700;
}

.spread-val {
  font-size: 12px;
  font-weight: 800;
  color: var(--accent-purple);
}

/* Dual Prices MT5 Box */
.mt5-prices-dual-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.bid-ask-box-item {
  display: flex;
  flex-direction: column;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-card);
  transition: all var(--transition-fast);
}

.bid-ask-box-item.bid {
  border-color: rgba(239, 68, 68, 0.25);
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.08) 0%, rgba(21, 27, 46, 0.95) 100%);
}

.bid-ask-box-item.ask {
  border-color: rgba(59, 130, 246, 0.25);
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.08) 0%, rgba(21, 27, 46, 0.95) 100%);
}

.bid-ask-box-item .tag {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.bid-ask-box-item .price {
  font-size: 21px;
  font-weight: 800;
  line-height: 1.2;
}

.bid-ask-box-item .subtag {
  font-size: 10px;
  color: var(--text-tertiary);
  margin-top: 2px;
}

/* Field Groups */
.boleta-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.field-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-secondary);
}

.field-hint {
  font-size: 10.5px;
  color: var(--text-tertiary);
}

.boleta-select {
  width: 100%;
  height: 36px;
  background-color: var(--bg-card-secondary);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 12.5px;
  font-weight: 600;
  padding: 0 10px;
  outline: none;
}

.boleta-lot-stepper-box {
  display: flex;
  align-items: center;
  gap: 4px;
}

.lot-step-btn {
  height: 36px;
  padding: 0 10px;
  background-color: var(--bg-card-secondary);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xs);
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lot-step-btn.mini {
  padding: 0 8px;
}

.lot-step-btn:hover {
  color: #FFFFFF;
  background-color: var(--bg-hover);
  border-color: var(--accent-purple);
}

.boleta-lot-input {
  flex: 1;
  height: 36px;
  background-color: var(--bg-card-secondary);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xs);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 800;
  text-align: center;
  outline: none;
  transition: border-color var(--transition-fast);
}

.boleta-lot-input:focus {
  border-color: var(--accent-purple);
}

.quick-lot-chips {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
}

.lot-chip {
  flex: 1;
  padding: 4px 0;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  color: var(--text-tertiary);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all var(--transition-fast);
}

.lot-chip:hover {
  color: #FFFFFF;
  background-color: var(--bg-hover);
}

.lot-chip.active {
  background-color: rgba(99, 102, 241, 0.25);
  border-color: var(--accent-purple);
  color: #FFFFFF;
  font-weight: 700;
}

/* Stop Loss & Take Profit Dual Grid */
.boleta-tpsl-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

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

.dot-down {
  background-color: var(--color-down);
  box-shadow: 0 0 6px var(--color-down);
}

.dot-up {
  background-color: var(--color-up);
  box-shadow: 0 0 6px var(--color-up);
}

.risk-est-tag {
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-family-mono);
}

.risk-est-tag.down {
  color: var(--color-down);
}

.risk-est-tag.up {
  color: var(--color-up);
}

.boleta-input-container {
  display: flex;
  align-items: center;
  position: relative;
}

.boleta-num-input {
  width: 100%;
  height: 36px;
  background-color: var(--bg-card-secondary);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xs);
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 700;
  padding: 0 30px 0 10px;
  outline: none;
  transition: border-color var(--transition-fast);
}

.boleta-num-input:focus {
  border-color: var(--accent-purple);
}

.btn-clear-input {
  position: absolute;
  right: 6px;
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  font-size: 16px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 3px;
}

.btn-clear-input:hover {
  color: #FFFFFF;
}

.pips-quick-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-top: 3px;
}

.pip-btn {
  padding: 3px 0;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  color: var(--text-tertiary);
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all var(--transition-fast);
}

.pip-btn:hover {
  color: #FFFFFF;
  background-color: var(--bg-hover);
  border-color: var(--border-medium);
}

/* Telemetry Summary Strip */
.boleta-telemetry-summary {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  background-color: rgba(14, 19, 34, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  text-align: center;
}

@media (max-width: 580px) {
  .boleta-telemetry-summary {
    grid-template-columns: repeat(2, 1fr);
  }
}

.summary-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.summary-col .s-label {
  font-size: 9.5px;
  color: var(--text-tertiary);
  font-weight: 600;
  text-transform: uppercase;
}

.summary-col .s-val {
  font-size: 12px;
  font-weight: 800;
  color: #FFFFFF;
}

.text-accent {
  color: #818CF8 !important;
}

/* Action Buttons MT5 */
.mt5-order-action-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 4px;
}

.btn-mt5-market-sell {
  height: 50px;
  background: linear-gradient(180deg, #DC2626 0%, #B91C1C 100%);
  border: 1px solid rgba(248, 113, 113, 0.4);
  border-radius: var(--radius-sm);
  color: #FFFFFF;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
  transition: all var(--transition-fast);
}

.btn-mt5-market-sell:hover {
  background: linear-gradient(180deg, #EF4444 0%, #DC2626 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.5);
}

.btn-mt5-market-buy {
  height: 50px;
  background: linear-gradient(180deg, #2563EB 0%, #1D4ED8 100%);
  border: 1px solid rgba(147, 197, 253, 0.4);
  border-radius: var(--radius-sm);
  color: #FFFFFF;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
  transition: all var(--transition-fast);
}

.btn-mt5-market-buy:hover {
  background: linear-gradient(180deg, #3B82F6 0%, #2563EB 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.5);
}

.btn-inner-row {
  display: flex;
  align-items: center;
  gap: 5px;
}

.btn-inner-row .action-icon {
  font-size: 11px;
}

.btn-inner-row .action-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.btn-action-price {
  font-size: 14.5px;
  font-weight: 800;
}

/* ==========================================================================
   INSTITUTIONAL VIEWS STYLING SYSTEM (BBLN PRO DARK LUXURY)
   ========================================================================== */

/* Universal View Content Wrapper */
.view-content-wrapper,
.wallet-view-content,
.contracts-view-content,
.transactions-view-content,
.ai-view-content,
.support-view-content {
  flex: 1;
  padding: 24px 30px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
}

/* Standard Dark Luxury Panel */
.panel-container {
  background: linear-gradient(180deg, #131826 0%, #0F1422 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
}

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

.panel-title {
  font-size: 15px;
  font-weight: 800;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.2px;
}

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

/* Data Table Styling */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.data-table th {
  padding: 10px 14px;
  color: var(--text-tertiary);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background-color: rgba(255, 255, 255, 0.02);
  text-align: left;
}

.data-table th.text-right {
  text-align: right;
}

.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  vertical-align: middle;
}

.data-table tbody tr {
  transition: background-color var(--transition-fast);
}

.data-table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.035);
}

/* Table Action Buttons */
.btn-table-action {
  height: 28px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #A5B4FC;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all var(--transition-fast);
}

.btn-table-action:hover {
  background: var(--accent-purple);
  color: #FFFFFF;
  border-color: var(--accent-purple);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

/* ==========================================================================
   VIEW 2: DASHBOARD (Executive Telemetry & Macro Economic Radar)
   ========================================================================== */
.dash-middle-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
}

.equity-canvas-wrapper {
  width: 100%;
  height: 240px;
  position: relative;
  margin-top: 8px;
}

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

.quick-market-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quick-market-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.quick-market-item:hover {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.25);
  transform: translateX(3px);
}

/* Radar Macroeconômico & Notícias do Dia */
.radar-tabs-nav {
  display: flex;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 3px;
  gap: 2px;
}

.radar-tab-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 4px;
  border: none;
  background: transparent;
  color: var(--text-tertiary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.radar-tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.radar-tab-btn.active {
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
}

/* News Grid & Cards */
.dash-news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 12px;
}

.dash-news-card {
  background: rgba(22, 27, 38, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.dash-news-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--card-border-color, #6366F1);
  opacity: 0.8;
}

.dash-news-card:hover {
  border-color: rgba(99, 102, 241, 0.35);
  background: rgba(28, 35, 48, 0.85);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.dash-news-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
}

.dash-news-tag {
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 3px;
  letter-spacing: 0.4px;
}

.dash-news-source {
  color: var(--text-tertiary);
  font-size: 11px;
  font-weight: 500;
}

.dash-news-title {
  color: #F3F4F6;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dash-news-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 2px;
}

.dash-news-time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: monospace;
}

.dash-news-link {
  color: #818CF8;
  font-weight: 600;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

/* Calendar Subfilter Bar */
.calendar-subfilter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.calendar-pills-group {
  display: flex;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 2px;
  gap: 2px;
}

.calendar-pill-btn {
  padding: 4px 10px;
  border-radius: 4px;
  border: none;
  background: transparent;
  color: var(--text-tertiary);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.calendar-pill-btn:hover {
  color: var(--text-primary);
}

.calendar-pill-btn.active {
  background: rgba(99, 102, 241, 0.25);
  color: #A5B4FC;
}

.economic-calendar-table {
  width: 100%;
  border-collapse: collapse;
}

.economic-calendar-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 12px;
}

.impact-badge {
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 3px;
  letter-spacing: 0.4px;
}

.impact-badge.high {
  background: rgba(239, 68, 68, 0.18);
  color: #F87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.impact-badge.medium {
  background: rgba(245, 158, 11, 0.18);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

/* Shortcuts Toolbar */
.dash-shortcuts-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 14px;
  background: rgba(17, 22, 37, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
}

.shortcut-pill-btn {
  height: 32px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.shortcut-pill-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.2);
}

.shortcut-pill-btn.primary {
  background: rgba(99, 102, 241, 0.18);
  border-color: rgba(99, 102, 241, 0.4);
  color: #A5B4FC;
}

/* ==========================================================================
   VIEW 3: WALLET & CUSTODY (Gestão de Carteira & Margens)
   ========================================================================== */
.wallet-balance-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 28px;
  background: linear-gradient(135deg, rgba(19, 24, 38, 0.95) 0%, rgba(13, 17, 29, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}

.wallet-balance-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, #F0B90B 0%, #0ECB81 100%);
}

.balance-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-tertiary);
  letter-spacing: 0.8px;
}

.balance-huge {
  font-size: 34px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.6px;
  margin: 4px 0 12px 0;
}

.balance-split {
  display: flex;
  gap: 24px;
}

.balance-split-item {
  display: flex;
  flex-direction: column;
}

.balance-split-label {
  font-size: 10.5px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.balance-split-val {
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
}

.wallet-actions {
  display: flex;
  gap: 12px;
}

.btn-primary-action {
  height: 42px;
  padding: 0 20px;
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  border: 1px solid rgba(52, 211, 153, 0.35);
  border-radius: var(--radius-md);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  transition: all var(--transition-fast);
}

.btn-primary-action:hover {
  background: linear-gradient(135deg, #34D399 0%, #10B981 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.5);
}

.btn-secondary-action {
  height: 42px;
  padding: 0 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.btn-secondary-action:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

/* Wallet Grid Columns */
.wallet-grid-cols {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 20px;
}

.allocation-chart-wrapper {
  width: 170px;
  height: 170px;
  flex-shrink: 0;
  position: relative;
}

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

.allocation-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
  font-size: 12px;
}

.legend-color {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}

/* ==========================================================================
   VIEW 4: CONTRACTS (Especificações Institucionais de Derivativos)
   ========================================================================== */
.contracts-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.contracts-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  width: 320px;
}

.contracts-search-box input {
  background: none;
  border: none;
  outline: none;
  color: #FFFFFF;
  font-size: 12px;
  width: 100%;
}

.contracts-search-box input::placeholder {
  color: var(--text-tertiary);
}

.contracts-categories {
  display: flex;
  gap: 6px;
}

.contracts-cat-pill {
  height: 32px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.contracts-cat-pill:hover,
.contracts-cat-pill.active {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.45);
  color: #A5B4FC;
}

/* ==========================================================================
   VIEW 5: TRANSACTIONS (Auditoria & Extrato Contábil MT5)
   ========================================================================== */
.transactions-audit-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 18px;
}

.audit-card {
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.audit-card-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-tertiary);
  letter-spacing: 0.5px;
}

.audit-card-val {
  font-size: 18px;
  font-weight: 800;
  color: #FFFFFF;
}

.btn-export-csv {
  height: 34px;
  padding: 0 16px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-sm);
  color: #10B981;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-export-csv:hover {
  background: #10B981;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.status-pill {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
}

.status-pill.success {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-pill.pending {
  background: rgba(245, 158, 11, 0.15);
  color: #F59E0B;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* ==========================================================================
   VIEW 6: TRADER AI (Núcleo de Inteligência Artificial & Agentes Autônomos)
   ========================================================================== */
.ai-view-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ai-header-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 28px;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.95) 0%, rgba(13, 17, 28, 0.98) 100%);
  border: 1px solid rgba(14, 203, 129, 0.2);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.ai-banner-title {
  font-size: 19px;
  font-weight: 800;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Strip de Métricas Globais das IAs */
.ai-fund-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.ai-fund-card {
  background: linear-gradient(180deg, #131826 0%, #0E121E 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.ai-fund-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(14, 203, 129, 0.6), transparent);
}

.ai-fund-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ai-fund-val {
  font-size: 24px;
  font-weight: 800;
  color: #FFFFFF;
}

.ai-fund-sub {
  font-size: 11px;
  color: var(--text-secondary);
}

/* Grid Superior: Núcleo Neural (Esquerda) + Terminal HFT (Direita) */
.neural-telemetry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.neural-canvas-wrapper {
  position: relative;
  width: 100%;
  height: 260px;
  background: radial-gradient(circle at center, rgba(14, 203, 129, 0.05) 0%, rgba(11, 15, 25, 0.95) 75%);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

#neuralSynapseCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.neural-telemetry-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  font-size: 11px;
}

/* Terminal HFT Stream of Consciousness */
.hft-terminal-box {
  background: #080B12;
  border: 1px solid rgba(14, 203, 129, 0.25);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  height: 310px;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.hft-terminal-header {
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  font-weight: 700;
  color: #FFFFFF;
}

.hft-terminal-feed {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 11px;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #94A3B8;
  scroll-behavior: smooth;
}

.hft-log-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  word-break: break-word;
}

.hft-time {
  color: #64748B;
  flex-shrink: 0;
}

.hft-badge {
  font-size: 9.5px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 3px;
  flex-shrink: 0;
  letter-spacing: 0.3px;
}

.hft-badge.scan { background: rgba(99, 102, 241, 0.2); color: #818CF8; border: 1px solid rgba(99, 102, 241, 0.3); }
.hft-badge.arb { background: rgba(240, 185, 11, 0.15); color: #F0B90B; border: 1px solid rgba(240, 185, 11, 0.3); }
.hft-badge.order { background: rgba(0, 180, 216, 0.2); color: #38BDF8; border: 1px solid rgba(0, 180, 216, 0.3); }
.hft-badge.gain { background: rgba(14, 203, 129, 0.2); color: #10B981; border: 1px solid rgba(14, 203, 129, 0.4); }
.hft-badge.hedge { background: rgba(168, 85, 247, 0.2); color: #C084FC; border: 1px solid rgba(168, 85, 247, 0.3); }

/* Seção de Cards dos Agentes Ativos */
.ai-agents-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

.ai-agents-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.ai-agent-card {
  background: linear-gradient(180deg, #131826 0%, #0F1321 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
  transition: all var(--transition-fast);
}

.ai-agent-card:hover {
  border-color: rgba(14, 203, 129, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

.agent-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.agent-avatar-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.agent-avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0ECB81 0%, #00B4D8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  color: #000;
  box-shadow: 0 0 16px rgba(14, 203, 129, 0.4);
}

.agent-avatar.purple {
  background: linear-gradient(135deg, #8B5CF6 0%, #EC4899 100%);
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.4);
}

.agent-avatar.gold {
  background: linear-gradient(135deg, #F0B90B 0%, #F59E0B 100%);
  box-shadow: 0 0 16px rgba(240, 185, 11, 0.4);
}

.agent-name {
  font-size: 15px;
  font-weight: 800;
  color: #FFFFFF;
}

.agent-arch-tag {
  font-size: 10px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.agent-status-pulse {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: rgba(14, 203, 129, 0.15);
  color: #10B981;
  border: 1px solid rgba(14, 203, 129, 0.3);
}

.agent-status-pulse .pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
  animation: pulseNeon 1.5s infinite;
}

@keyframes pulseNeon {
  0% { transform: scale(0.9); opacity: 0.7; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.agent-assets-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.agent-asset-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 2px 7px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 700;
  color: #E2E8F0;
}

/* Barra de Progresso do Ciclo da IA */
.agent-cycle-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.agent-cycle-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
}

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

.agent-progress-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #0ECB81 0%, #00B4D8 100%);
  transition: width 0.4s ease-in-out;
}

.agent-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
}

.agent-stat-item {
  display: flex;
  flex-direction: column;
}

.agent-stat-label {
  font-size: 9.5px;
  color: var(--text-tertiary);
  text-transform: uppercase;
}

.agent-stat-val {
  font-size: 13px;
  font-weight: 800;
  color: #FFFFFF;
}

.agent-actions-row {
  display: flex;
  gap: 8px;
}

.btn-trigger-cycle {
  flex: 1;
  height: 32px;
  background: rgba(14, 203, 129, 0.15);
  border: 1px solid rgba(14, 203, 129, 0.35);
  color: #10B981;
  font-size: 11px;
  font-weight: 800;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.btn-trigger-cycle:hover {
  background: #10B981;
  color: #000000;
}

.btn-pause-agent {
  height: 32px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-pause-agent:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: #EF4444;
}

/* Modal Criar Agente de IA */
.modal-ai-dialog {
  max-width: 620px;
  width: 95%;
  background: #111625;
  border: 1px solid rgba(14, 203, 129, 0.3);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.arch-cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.arch-choice-card {
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all var(--transition-fast);
}

.arch-choice-card.active, .arch-choice-card:hover {
  border-color: #10B981;
  background: rgba(14, 203, 129, 0.08);
}

.asset-selection-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  max-height: 160px;
  overflow-y: auto;
  padding: 6px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.asset-select-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
}

.asset-select-chip.selected {
  border-color: #10B981;
  background: rgba(14, 203, 129, 0.15);
  color: #FFFFFF;
}

/* ==========================================================================
   VIEW 7: SUPPORT & TCC GLOSSARY (Microestrutura & Defesa de TCC)

/* ==========================================================================
   VIEW 7: SUPPORT & TCC GLOSSARY (Microestrutura & Defesa de TCC)
   ========================================================================== */
.tcc-playbook-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 16px 0;
}

.playbook-step-card {
  padding: 16px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  display: flex;
  gap: 14px;
}

.playbook-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: #A5B4FC;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.playbook-body h4 {
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 4px;
}

.playbook-body p {
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.faq-accordion-item {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-accordion-item:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.faq-question {
  padding: 14px 18px;
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-answer {
  display: none;
  padding: 0 18px 16px 18px;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding-top: 12px;
}

.faq-accordion-item.open .faq-answer {
  display: block;
}

.faq-accordion-item.open .faq-question span:last-child {
  transform: rotate(180deg);
}

.keyboard-shortcuts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.shortcut-key-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
}

.kbd-badge {
  font-family: var(--font-family-mono);
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  padding: 2px 7px;
  color: #FFFFFF;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   CRYPTO WALLET MODALS (ON-CHAIN DEPOSIT & WITHDRAWAL)
   ========================================================================== */
.modal-crypto-dialog {
  width: 540px;
  max-width: 95vw;
  background: rgba(18, 22, 32, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  padding: 20px 24px;
  transform: translateY(-16px) scale(0.98);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.crypto-modal-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 14px;
}

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

.crypto-field-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.crypto-asset-selector {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.crypto-asset-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.crypto-asset-pill:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.2);
}

.crypto-asset-pill.active {
  background: rgba(99, 102, 241, 0.2);
  border-color: #818CF8;
  color: #FFFFFF;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.3);
}

.crypto-network-selector {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
}

.crypto-network-pill {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: all 0.18s ease;
}

.crypto-network-pill:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
}

.crypto-network-pill.active {
  background: rgba(16, 185, 129, 0.12);
  border-color: #10B981;
}

.crypto-network-pill-title {
  font-size: 12px;
  font-weight: 700;
  color: #FFFFFF;
}

.crypto-network-pill-meta {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text-tertiary);
  font-family: monospace;
}

.crypto-address-box {
  display: flex;
  gap: 14px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  padding: 12px 14px;
}

.crypto-qr-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.crypto-qr-code {
  width: 96px;
  height: 96px;
  background: #FFFFFF;
  border-radius: 6px;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.crypto-address-details {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  min-width: 0;
  gap: 8px;
}

.crypto-address-display {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 6px 10px;
}

.crypto-address-display span {
  font-size: 11.5px;
  color: #FFFFFF;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.btn-copy-address {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: #A5B4FC;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.btn-copy-address:hover {
  background: #6366F1;
  color: #FFFFFF;
}

.crypto-network-warning {
  font-size: 10.5px;
  line-height: 1.4;
  color: #FBBF24;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 5px;
  padding: 6px 8px;
}

.crypto-conversion-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.crypto-conversion-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.pulse-dot-green {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
  animation: pulseGreen 1.5s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.7; }
}

/* Withdrawal Breakdown Card */
.crypto-breakdown-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-secondary);
}

.breakdown-row.total {
  color: #FFFFFF;
  padding-top: 4px;
}

.breakdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 2px 0;
}

.badge-mini-network {
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(99, 102, 241, 0.2);
  color: #A5B4FC;
}

.percent-pill-btn {
  flex: 1;
  padding: 5px 0;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.percent-pill-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}

.percent-pill-btn.highlight {
  border-color: rgba(99, 102, 241, 0.4);
  color: #A5B4FC;
}

.percent-pill-btn.active {
  background: rgba(16, 185, 129, 0.18) !important;
  border-color: #10B981 !important;
  color: #10B981 !important;
  font-weight: 700;
}

.percent-pill-btn.active-gold {
  background: rgba(245, 158, 11, 0.18) !important;
  border-color: #F59E0B !important;
  color: #FBBF24 !important;
  font-weight: 700;
}

