:root {
  --color-text: #e6e8f0;
  --color-primary: #034078;
  --color-secondary: #01c38d;
  --color-background: #0a0e17;
  --color-card-bg: rgba(16, 24, 38, 0.95);
  --color-card-bg-rgb: 16, 24, 38;
  --color-danger: #ff4757;
  --color-success: #01c38d;
  --color-warning: #ffba08;
  --color-info: #3498db;
  --color-primary-rgb: 3, 64, 120;
  --color-secondary-rgb: 1, 195, 141;
  --color-text-rgb: 230, 232, 240;
  --color-background-rgb: 10, 14, 23;
  --gradient-primary: linear-gradient(45deg, var(--color-primary), var(--color-secondary));
  --gradient-header: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-button: 0 4px 15px rgba(1, 195, 141, 0.4);
  --border-radius: 12px;
  --transition-speed: 0.3s;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-md: 1rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.5rem;
  --font-size-xxl: 2rem;
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
}

/* Reset e estilos base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-regular);
  line-height: 1.5;
  color: var(--color-text);
  background-color: var(--color-background);
  transition: background-color var(--transition-speed), color var(--transition-speed);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Animações */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes glow {
  0% {
    box-shadow: 0 0 5px rgba(var(--color-primary-rgb), 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(var(--color-primary-rgb), 0.8);
  }
  100% {
    box-shadow: 0 0 5px rgba(var(--color-primary-rgb), 0.5);
  }
}

/* Containers e layout */
.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.main-content {
  flex: 1;
  padding: 1rem;
  position: relative;
  z-index: 1;
}

.full-width {
  width: 100%;
}

/* Background e efeitos */
.background-effects {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle at 10% 10%, rgba(var(--color-primary-rgb), 0.1), transparent 40%),
              radial-gradient(circle at 90% 90%, rgba(var(--color-secondary-rgb), 0.1), transparent 40%);
}

/* Header */
.main-header {
  padding: 1rem;
  background-color: rgba(var(--color-background-rgb), 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(var(--color-primary-rgb), 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.centered-logo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  background: var(--gradient-header);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 1px;
}

.header-info {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.user-info, .market-status, .market-timer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.status-indicator {
  color: var(--color-success);
  font-size: 0.7rem;
}

/* Cards e widgets */
.widget {
  background-color: var(--color-card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  margin-bottom: 1.5rem;
  overflow: hidden;
  border: 1px solid rgba(var(--color-primary-rgb), 0.2);
  animation: fadeIn 0.5s ease-out;
}

.widget-header {
  padding: 1rem;
  border-bottom: 1px solid rgba(var(--color-text-rgb), 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.widget-header h2 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text);
}

.widget-content {
  padding: 1rem;
}

.refresh-button {
  cursor: pointer;
  color: rgba(var(--color-text-rgb), 0.7);
  transition: color var(--transition-speed);
}

.refresh-button:hover {
  color: var(--color-primary);
}

/* Dashboard grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

/* Estatísticas */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  padding: 1rem;
}

.stat-card {
  background-color: rgba(var(--color-card-bg-rgb), 0.5);
  border-radius: var(--border-radius);
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform var(--transition-speed);
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
}

.stat-info h3 {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(var(--color-text-rgb), 0.8);
  margin-bottom: 0.3rem;
}

.stat-value {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stat-value .number {
  font-size: 1.1rem;
  font-weight: 700;
}

.trend {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.8rem;
}

.trend.up {
  color: var(--color-success);
}

.trend.down {
  color: var(--color-danger);
}

.trend.neutral {
  color: var(--color-text);
}

.trend.active {
  color: var(--color-success);
}

/* Gráfico */
.chart-widget {
  grid-column: span 2;
}

.chart-container {
  width: 100%;
  height: 400px;
  position: relative;
}

.chart-controls {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding: 0 1rem;
}

.asset-selector, .timeframe-selector {
  display: flex;
  gap: 0.5rem;
}

.form-control {
  background-color: rgba(var(--color-background-rgb), 0.5);
  border: 1px solid rgba(var(--color-primary-rgb), 0.3);
  color: var(--color-text);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  font-family: var(--font-family);
}

.timeframe-btn {
  background-color: rgba(var(--color-background-rgb), 0.5);
  border: 1px solid rgba(var(--color-primary-rgb), 0.3);
  color: var(--color-text);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all var(--transition-speed);
}

.timeframe-btn:hover {
  background-color: rgba(var(--color-primary-rgb), 0.2);
}

.timeframe-btn.active {
  background-color: var(--color-primary);
  color: white;
}

/* Botões de ação */
.action-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.btn {
  padding: 0.8rem 2rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-speed);
  border: none;
  font-family: var(--font-family);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary {
  background-color: var(--color-primary);
  color: white;
  box-shadow: var(--shadow-button);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(var(--color-primary-rgb), 0.6);
}

.btn-success {
  background-color: var(--color-success);
  color: white;
}

.btn-danger {
  background-color: var(--color-danger);
  color: white;
}

.btn-buy {
  background-color: var(--color-success);
  color: white;
  flex: 1;
  font-size: 1.1rem;
}

.btn-sell {
  background-color: var(--color-danger);
  color: white;
  flex: 1;
  font-size: 1.1rem;
}

/* Tabelas */
.table-container {
  overflow-x: auto;
}

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

th, td {
  padding: 0.8rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(var(--color-text-rgb), 0.1);
}

th {
  font-weight: 600;
  color: rgba(var(--color-text-rgb), 0.8);
  background-color: rgba(var(--color-background-rgb), 0.5);
}

tr:hover {
  background-color: rgba(var(--color-primary-rgb), 0.1);
}

/* Notificações e modais */
.signal-notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: var(--color-card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  padding: 1rem;
  width: 300px;
  z-index: 1000;
  border-left: 4px solid var(--color-primary);
  animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.notification-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.notification-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
}

.notification-title {
  font-weight: 600;
  font-size: 1.1rem;
}

.notification-content {
  margin-bottom: 0.8rem;
}

.notification-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s;
}

.modal-content {
  background-color: var(--color-card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: scaleIn 0.3s;
}

@keyframes scaleIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--color-text);
  font-size: 1.2rem;
  cursor: pointer;
  transition: color var(--transition-speed);
}

.close-modal:hover {
  color: var(--color-primary);
}

/* Efeitos visuais */
.glow-effect {
  animation: glow 2s infinite;
}

.premium-badge {
  position: relative;
  display: inline-block;
  background: var(--gradient-primary);
  color: white;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.8rem;
  overflow: hidden;
}

.badge-glow {
  position: absolute;
  top: 0;
  left: -50%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: badgeGlow 2s infinite;
}

@keyframes badgeGlow {
  0% {
    left: -50%;
  }
  100% {
    left: 150%;
  }
}

/* Estilos específicos para opções binárias */
.expiration-timer {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin: 1rem 0;
  color: var(--color-primary);
}

.probability-meter {
  height: 8px;
  background-color: rgba(var(--color-text-rgb), 0.2);
  border-radius: 4px;
  margin: 0.5rem 0;
  overflow: hidden;
}

.probability-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 4px;
  transition: width 0.5s ease-out;
}

.probability-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary);
}

.signal-direction {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  margin-right: 0.5rem;
}

.signal-direction.call {
  background-color: rgba(var(--color-success-rgb), 0.2);
  color: var(--color-success);
  border: 1px solid var(--color-success);
}

.signal-direction.put {
  background-color: rgba(var(--color-danger-rgb), 0.2);
  color: var(--color-danger);
  border: 1px solid var(--color-danger);
}

/* Efeitos de confete para sinais bem-sucedidos */
.confetti-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: var(--color-primary);
  opacity: 0.8;
  animation: confettiFall linear forwards;
}

@keyframes confettiFall {
  0% {
    transform: translateY(-100px) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(calc(100vh + 100px)) rotate(360deg);
    opacity: 0;
  }
}

/* =========================================
   GLASS NAVBAR PREMIUM (NEON & STICKY)
========================================= */
:root {
    --navbar-height: 85px;
    --neon-green: #00ff73;
    --glass-bg: rgba(18, 18, 24, 0.75);
}

.glass-navbar {
    position: fixed; 
    top: 0;
    /* Correção do Alinhamento (Preso nos dois lados) */
    left: calc(var(--sidebar-width, 85px) + 40px);
    right: 20px; 
    width: auto; 
    height: 75px;
    background: var(--glass-bg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 2px solid rgba(0, 255, 115, 0.2);
    border-radius: 0 0 24px 24px; /* Pontas arredondadas (Ilha flutuante) */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), inset 0 -1px 0 rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 25px;
    z-index: 900;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.3, 1);
}

/* Navbar recolhida ao descer a página */
.glass-navbar.scrolled {
    height: 70px;
    background: rgba(15, 15, 20, 0.95);
    border-bottom: 2px solid rgba(0, 255, 115, 0.4);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.8), 0 0 25px rgba(0, 255, 115, 0.15);
}

/* --- ESQUERDA: LOGO E TÍTULOS --- */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand-logo-neon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 8px rgba(0, 255, 115, 0.4));
}

.neon-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.brand-titles {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.title-row h2 {
    margin: 0;
    font-size: 1.15rem;
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.badge-pro {
    background: linear-gradient(90deg, var(--neon-green), #00cc5c);
    color: #000;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 800;
    letter-spacing: 1px;
    box-shadow: 0 0 10px rgba(0, 255, 115, 0.4);
}

.brand-subtitle {
    font-size: 0.7rem;
    color: #a0a0ab;
    margin-top: 2px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* --- CENTRO: EMBLEMAS TÉCNICOS --- */
.nav-center { display: flex; align-items: center; justify-content: center; }
.tech-badges-container { display: flex; gap: 12px; }

.tech-badge {
    background: rgba(0, 255, 115, 0.05);
    border: 1px solid rgba(0, 255, 115, 0.2);
    color: var(--neon-green);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 0 10px rgba(0, 255, 115, 0.05);
    transition: all 0.3s ease;
}

.tech-badge:hover {
    border-color: var(--neon-green);
    box-shadow: 0 0 15px rgba(0, 255, 115, 0.2);
    transform: translateY(-2px);
}

/* --- DIREITA: USUÁRIO E ÍCONES --- */
.nav-user-section { display: flex; align-items: center; gap: 20px; }
.nav-actions { display: flex; gap: 8px; }

.icon-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #a0a0ab;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.9rem;
}

.icon-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--neon-green);
    transform: translateY(-2px);
}

.notification-btn[data-badge]::after {
    content: attr(data-badge);
    position: absolute;
    top: -4px; 
    right: -4px;
    background: #ff3366; color: white;
    font-size: 0.65rem; font-weight: bold;
    width: 16px; 
    height: 16px;
    font-size: 0.6rem;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid #121218;
}

.nav-item.active::before {
    width: 3px; /* Linha mais fina */
    left: 0;
    top: 20%;
    height: 60%;
    box-shadow: 0 0 10px var(--neon-green);
}

.nav-divider { width: 1px; height: 30px; background: rgba(255, 255, 255, 0.1); margin: 0 10px;}

/* --- MENU DROPDOWN DO USUÁRIO --- */
.profile-wrapper {
    position: relative;
}

.user-profile-btn {
    display: flex; align-items: center; gap: 12px;
    cursor: pointer; padding: 6px 12px; border-radius: 12px;
    transition: background 0.3s;
}

.user-profile-btn:hover { background: rgba(255, 255, 255, 0.05); }

.user-text { 
    display: flex; 
    flex-direction: column; 
    text-align: right; 
    max-width: 140px;
    margin-right: 5px;
}
.greeting { 
    font-size: 0.75rem; 
    color: #a0a0ab; 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; /* Adiciona ... se o texto for muito longo */
}
.email { 
    font-size: 0.85rem; 
    color: #fff; 
    font-weight: 600; 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; /* Adiciona ... no email longo */
}

.avatar-neon-ring {
    width: 35px; 
    height: 35px; 
    border-radius: 50%;
    border-width: 1.5px;
    background: #2a2a35; 
    border: 2px solid var(--neon-green);
    display: flex; 
    align-items: center; 
    justify-content: center;
    position: relative; 
    box-shadow: 0 0 15px rgba(0, 255, 115, 0.3);
}
.avatar-neon-ring i { 
  color: var(--neon-green); 
font-size: 1rem;
}

.status-online {
    position: absolute; bottom: -2px; right: -2px;
    width: 10px; height: 10px; background: var(--neon-green);
    border: 2px solid #121218; border-radius: 50%;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: #e0e0e0;
    text-decoration: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    background: transparent;
    width: 100%;
    cursor: pointer;
    text-align: left;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.dropdown-item i { font-size: 1.1rem; color: #a0a0ab; transition: color 0.2s; }
.dropdown-item:hover i { color: var(--neon-green); }

.dropdown-divider {
    height: 1px; background: rgba(255, 255, 255, 0.1);
    margin: 8px 0;
}

.dashboard-content-spacer { height: calc(var(--navbar-height) + 30px); width: 100%; }

/* =========================================
   1. BOTÃO DE LOGOUT NA NAVBAR (VERMELHO PADRÃO)
========================================= */
.logout-btn-top {
    color: #ff4d6d !important; /* Vermelho/rosa vivo por padrão */
    background: rgba(255, 51, 102, 0.08) !important; /* Fundo levemente avermelhado */
    border-color: rgba(255, 51, 102, 0.2) !important;
}

.logout-btn-top i {
    filter: drop-shadow(0 0 5px rgba(255, 51, 102, 0.3));
}

.logout-btn-top:hover {
    color: #ffffff !important;
    background: #ff3366 !important;
    border-color: #ff3366 !important;
    box-shadow: 0 0 15px rgba(255, 51, 102, 0.5) !important;
    transform: translateY(-2px);
}

/* =========================================
   2. MODAL DE CONFIRMAÇÃO (CAIXA DE LOGOUT PREMIUM)
========================================= */
.custom-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999;
    opacity: 0; visibility: hidden;
    transition: all 0.3s ease;
}

.custom-modal-overlay.active {
    opacity: 1; visibility: visible;
}

.custom-modal-box {
    background: #181c28;
    border: 1px solid rgba(255, 51, 102, 0.3);
    border-radius: 24px;
    padding: 30px;
    text-align: center;
    max-width: 360px; width: 90%;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.3, 1);
}

.custom-modal-overlay.active .custom-modal-box {
    transform: translateY(0) scale(1);
}

.modal-icon-warning {
    width: 65px; height: 65px;
    background: rgba(255, 51, 102, 0.1);
    border: 2px solid rgba(255, 51, 102, 0.2);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px auto;
    color: #ff3366; font-size: 26px;
    box-shadow: 0 0 20px rgba(255, 51, 102, 0.2);
}

.custom-modal-box h3 { color: #fff; margin-bottom: 12px; font-size: 1.4rem; font-weight: 700; }
.custom-modal-box p { color: #a0a0ab; font-size: 0.95rem; margin-bottom: 25px; line-height: 1.5; }

.custom-modal-actions { display: flex; gap: 15px; justify-content: center; }

.btn-modal-cancel {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #e0e0e0; font-weight: 600;
    padding: 12px; border-radius: 12px; cursor: pointer; transition: 0.3s; width: 50%;
}

.btn-modal-cancel:hover { background: rgba(255,255,255,0.1); color: #fff; }

.btn-modal-confirm {
    background: linear-gradient(135deg, #ff3366, #ff0040);
    border: none; color: #fff; font-weight: 700;
    padding: 12px; border-radius: 12px; cursor: pointer; transition: 0.3s; width: 50%;
    box-shadow: 0 5px 15px rgba(255, 51, 102, 0.3);
}

.btn-modal-confirm:hover {
    box-shadow: 0 8px 25px rgba(255, 51, 102, 0.5);
    transform: translateY(-2px);
}

/* =========================================
   CARD RADAR - AUTO TRADE (VERSÃO OURO PREMIUM)
========================================= */

/* Container Principal com Estilo Gold Absoluto */
.ai-market-banner.gold-premium {
    width: 100%;
    position: relative;
    overflow: visible !important;
    /* Fundo escuro com um reflexo dourado forte e elegante vindo da direita */
    background: linear-gradient(90deg, rgba(18, 18, 24, 0.95) 0%, rgba(35, 28, 10, 0.8) 50%, rgba(255, 183, 0, 0.15) 100%);
    border: 1px solid rgba(255, 183, 0, 0.4); 
    border-radius: 16px;
    padding: 16px 24px;
    padding-top: 25px; /* Espaço para a tag superior */
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    /* Brilho dourado emanando do card */
    box-shadow: 0 10px 30px rgba(255, 183, 0, 0.12), inset 0 0 20px rgba(255, 183, 0, 0.05);
    backdrop-filter: blur(12px);
}

/* Tag DESTACADO superior (Agora é Sólida e Brilhante) */
.gold-premium .novedad-tag {
    position: absolute;
    top: -12px; 
    left: 24px;
    font-size: 0.7rem;
    font-weight: 900;
    color: #121218; /* Texto escuro para contrastar com o fundo dourado */
    background: linear-gradient(90deg, #ffb700, #ff8c00);
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 4px 14px; 
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(255, 183, 0, 0.5); /* Brilho projetado */
    z-index: 10; 
    border: 1px solid #fff3cc;
}

/* Efeito de Brilho (Ouro Passando pelo card) */
.shimmer-effect {
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 183, 0, 0) 30%,
        rgba(255, 183, 0, 0.15) 45%,
        rgba(255, 230, 150, 0.4) 50%,
        rgba(255, 183, 0, 0.15) 55%,
        transparent 70%
    );
    animation: goldSweep 3.5s infinite ease-in-out;
    pointer-events: none;
    z-index: 1;
    border-radius: 16px;
    overflow: hidden;
}

@keyframes goldSweep {
    0% { left: -150%; }
    20% { left: 150%; } 
    100% { left: 150%; } 
}

/* --- Status ao Vivo da IA --- */
.ai-live-status {
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 2;
}

.live-indicator {
    position: relative;
    width: 12px;
    height: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Transformando o Radar (bolinha piscante) em Ouro */
.gold-premium .pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #ffb700;
    border-radius: 50%;
    box-shadow: 0 0 10px #ffb700;
    z-index: 2;
}

.gold-premium .pulse-ring {
    position: absolute;
    width: 24px;
    height: 24px;
    background-color: rgba(255, 183, 0, 0.5);
    border-radius: 50%;
    animation: radarPulse 2s infinite cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

@keyframes radarPulse {
    0% { transform: scale(0.5); opacity: 1; }
    100% { transform: scale(2.5); opacity: 0; }
}

.ai-text-container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.ai-label {
    color: #a0a0ab;
    font-weight: 500;
}

/* Destacando o nome do ativo em Dourado */
.gold-premium .ai-asset {
    font-weight: 800;
    background: rgba(255, 183, 0, 0.15);
    border: 1px solid rgba(255, 183, 0, 0.5);
    color: #ffb700;
    padding: 3px 10px;
    border-radius: 6px;
    text-shadow: 0 0 10px rgba(255, 183, 0, 0.4);
    letter-spacing: 0.5px;
}

.ai-trend {
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
}

.ai-trend.up { color: #00ff73; text-shadow: 0 0 10px rgba(0, 255, 115, 0.3); }
.ai-trend.down { color: #ff3366; text-shadow: 0 0 10px rgba(255, 51, 102, 0.3); }

/* --- Estatísticas Rápidas --- */
.ai-quick-stats {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 20px;
    border-radius: 30px;
    border: 1px solid rgba(255, 183, 0, 0.15); /* Borda sutil dourada no stats */
    z-index: 2;
}

.mini-stat {
    font-size: 0.9rem;
    color: #a0a0ab;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mini-stat-divider {
    width: 1px;
    height: 15px;
    background: rgba(255, 255, 255, 0.2);
}

.text-white { color: #fff; }

/* Força a cor dourada em cima da classe text-neon-green que está no seu HTML */
.gold-premium .text-neon-green { 
    color: #ffb700 !important; 
    text-shadow: 0 0 10px rgba(255, 183, 0, 0.4);
}

/* --- Botão Auto Trade --- */
.auto-trade-actions {
    z-index: 2;
}