/* 
 * styles.css (Versão Unificada)
 * Sistema: k0k4 k0iN v1.1
 * Autor: Lucieliton Mundim
 * Data: Abril/2025
 *
 * Arquivo CSS unificado e otimizado que integra todos os ajustes anteriormente
 * separados em múltiplos arquivos, garantindo consistência visual e responsividade.
 */

/*=====================================
  VARIÁVEIS GLOBAIS (Paleta, Fontes, etc.)
=====================================*/
:root {
    /* Cores principais */
    --primary-color: #FFD700;        /* Dourado principal */
    --secondary-color: #E0B800;      /* Dourado secundário */
    --accent-color: #03A9F4;         /* Azul para destaques */
    --error-color: #F44336;          /* Vermelho para erros/alertas */
    --success-color: #4CAF50;        /* Verde para sucesso */
    
    /* Texto */
    --text-color: #FFFFFF;           /* Texto branco principal */
    --text-color-light: #EEEEEE;     /* Texto claro secundário */
    --text-secondary: #ccc;          /* Texto secundário */
    
    /* Fundos */
    --background-verydark: #0D0D0D;  /* Fundo preto muito escuro */
    --background-dark: #1A1A1A;      /* Fundo escuro para elementos */
    --background-medium: #262626;    /* Fundo médio para cards */
    --background-light: #333333;     /* Fundo claro (mais escuro que branco) */
    
    /* Tipografia */
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-size-base: 1.1rem;        /* Tamanho base de texto */
    --font-size-small: 0.9rem;       /* Texto pequeno */
    --font-size-large: 1.6rem;       /* Texto grande */
    --font-size-xl: 1.5rem;          /* Tamanho extra grande */
    --font-size-2xl: 1.75rem;        /* Tamanho duplo extra grande */
    --font-size-title: 2rem;         /* Título de seção */
    --font-size-header: 3.2rem;      /* Cabeçalho principal */
    
    /* Bordas e Sombras */
    --border-radius: 15px;           /* Borda arredondada grande */
    --border-radius-sm: 8px;         /* Borda arredondada pequena */
    --radius-sm: var(--border-radius-sm);  /* Alias para consistência */
    --radius-lg: var(--border-radius);     /* Alias para consistência */
    --box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);  /* Sombra padrão */
    --box-shadow-hover: 0 5px 15px rgba(255, 215, 0, 0.4);  /* Sombra ao passar mouse */
    --box-shadow-base: 0 2px 5px rgba(0, 0, 0, 0.5);  /* Sombra base */
    --box-shadow-strong: 0 5px 15px rgba(255, 215, 0, 0.4);  /* Sombra forte */
    --input-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6);  /* Sombra para inputs */
    
    /* Transições e Animações */
    --transition-duration: 0.4s;     /* Duração padrão de transição */
    --transition-ease: cubic-bezier(0.68, -0.55, 0.27, 1.55);  /* Curva de easing */
    --transition-normal: 0.3s ease;  /* Transição simples */
    
    /* Gradientes */
    --gradient-primary: linear-gradient(145deg, var(--primary-color), var(--secondary-color));
    --gradient-button: linear-gradient(to right, #f0c27b, #4b134f);
    
    /* Outros */
    --neutral-color: #aaa;           /* Cor neutra para elementos secundários */
  }
  
  /*=====================================
    RESET CSS
  =====================================*/
  *, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
  }
  
  /*=====================================
    ESTILOS GERAIS
  =====================================*/
  body {
    background: var(--background-verydark);
    color: var(--text-color-light);
    font-family: var(--font-family);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg fill='%23262626' fill-opacity='0.4'%3E%3Cpath d='M0 0h20v20H0V0zm20 20h20v20H20V20z'/%3E%3C/g%3E%3C/svg%3E");
  }
  
  a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color var(--transition-duration) var(--transition-ease);
  }
  
  a:hover {
    color: var(--primary-color);
    text-decoration: underline;
  }
  
  main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
  }
  
  /*=====================================
    CABEÇALHO (Header)
  =====================================*/
  .main-header {
    background: linear-gradient(to bottom, rgba(38, 38, 38, 0.95), rgba(18, 18, 18, 0.95));
    color: var(--primary-color);
    text-align: center;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 100;
    padding: 1.5rem 0 0 0;
  }
  
  #logo-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 2rem;
    box-sizing: border-box;
    padding-bottom: 1rem;
    position: relative;
  }
  
  /* Container centralizado para logo e título */
  .logo-center-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    text-align: center;
    position: relative;
  }
  
  .logo {
    width: 180px;
    height: auto;
    animation: float 4s ease-in-out infinite;
    filter: drop-shadow(0 0 0.75rem rgba(255, 215, 0, 0.7));
    margin: 0 auto 10px;
    display: block;
  }
  
  .spinner {
    width: 180px;
    height: auto;
    display: none;
    margin: 0;
  }
  
  .logo.analyzing {
    display: none;
  }
  
  .analyzing #loading-spinner {
    display: block;
  }
  
  .main-header h1 {
    font-size: var(--font-size-header);
    margin: 0.7rem 0 0 0;
    letter-spacing: 2px;
    background: linear-gradient(to right, #f0e68c, #ffd700, #daa520);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    width: 100%;
    text-align: center;
  }
  
  /* VERSÃO - CORRIGIDA: posicionada corretamente */
  .version-indicator {
    position: absolute;
    top: auto;
    right: 0;
    bottom: -10px;
    background-color: rgba(13, 13, 13, 0.85);
    padding: 2px 8px;
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.5);
    color: var(--primary-color);
    font-size: 0.8rem;
    z-index: 10;
    transition: all 0.3s var(--transition-ease);
    opacity: 0.9;
  }
  
  .version-indicator:hover {
    opacity: 1;
    transform: scale(1.1);
    background: rgba(13, 13, 13, 0.95);
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
  }
  
  /* Exchange Radios */
  .exchange-radios {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .exchange-radios label {
    display: flex;
    align-items: center;
    padding: 0.6rem;
    padding-bottom: 1.8rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-duration) var(--transition-ease);
    background: none;
    border: none;
    position: relative;
  }
  
  .exchange-radios label:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 6px rgba(255, 215, 0, 0.5);
  }
  
  .exchange-radios img {
    width: 60px;
    height: 60px;
    transition: transform var(--transition-duration) var(--transition-ease);
    margin: 0;
  }
  
  .exchange-radios input[type="radio"]:checked + label {
    box-shadow: 0 0 5px var(--primary-color), inset 0 0 5px rgba(255, 215, 0, 0.8);
  }
  
  .exchange-radios input[type="radio"]:checked + label img {
    transform: scale(1.2);
  }
  
  .exchange-radios input[type="radio"] {
    display: none;
  }
  
  .exchange-indicator {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--background-dark);
    transition: all 0.3s ease;
  }
  
  .exchange-radios input[type="radio"]:checked + label .exchange-indicator {
    background-color: var(--success-color);
    box-shadow: 0 0 5px var(--success-color);
  }
  
  /* User Info */
  .user-info {
    position: absolute;
    top: 10px;
    right: 20px;
    display: flex;
    align-items: center;
    z-index: 100;
  }
  
  .user-details {
    display: flex;
    flex-direction: row; /* Alterado de column para row */
    align-items: center; /* Alterado de flex-end para center */
    background-color: rgba(0, 0, 0, 0.6);
    padding: 8px 15px;
    border-radius: 8px;
    border: 1px solid #FFD700;
  }
  
  .user-name {
    color: #FFD700;
    font-weight: bold;
    margin-right: 10px; /* Alterado de margin-bottom e adicionado espaçamento à direita */
  }
  
  .logout-btn {
    color: #fff;
    text-decoration: none;
    font-size: 0.9em;
    background-color: rgba(255, 215, 0, 0.2);
    padding: 3px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
  }
  
  .logout-btn:hover {
    background-color: rgba(255, 215, 0, 0.4);
    color: #FFD700;
  }
  
  /*=====================================
    SEÇÕES PRINCIPAIS
  =====================================*/
  .filter-section, 
  .strategy-section, 
  .results-section, 
  .specific-analysis-section,
  .bot-section,
  .enhanced-analysis-section {
    background: var(--background-medium);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin: 0 auto 2rem;
    width: 90%;
    max-width: 1000px;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 215, 0, 0.3);
  }
  
  .filter-section:hover, 
  .strategy-section:hover, 
  .results-section:hover, 
  .specific-analysis-section:hover,
  .bot-section:hover,
  .enhanced-analysis-section:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
  }
  
  .filter-section h2, 
  .strategy-section h2, 
  .results-section h2, 
  .specific-analysis-section h2,
  .bot-section h2,
  .enhanced-analysis-section h2 {
    color: var(--primary-color);
    font-size: var(--font-size-title);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    text-align: center !important; /* Reforçado com !important */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    white-space: nowrap; /* Impede quebra de linha */
    overflow: visible;
    display: block; /* Garantir que seja um bloco */
    width: 100%; /* Garantir que ocupe toda a largura disponível */
  }
  
  /*=====================================
    CONTROLES (Filtros, Estratégia)
  =====================================*/
  .filter-controls, 
  .strategy-controls, 
  .specific-analysis-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
    margin-bottom: 1.5rem;
  }
  
  /* Garantir que o campo Intraday tenha largura adequada */
  .filter-controls select:nth-of-type(3),
  #intraday-interval-select {
    width: 100%;
    grid-column: 1 / span 2; /* Ocupa duas colunas */
    justify-self: stretch;
  }
  
  .filter-controls select, 
  .filter-controls input, 
  .strategy-controls select, 
  .specific-analysis-controls select, 
  .specific-analysis-controls input, 
  .filter-input {
    width: 100%;
    padding: 0.8rem;
    font-size: var(--font-size-base);
    border: 2px solid var(--secondary-color);
    border-radius: var(--border-radius-sm);
    background-color: var(--background-dark);
    color: var(--primary-color);
    box-shadow: var(--input-shadow);
    transition: all var(--transition-duration) var(--transition-ease);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    box-sizing: border-box;
  }
  
  .filter-controls select, 
  .strategy-controls select, 
  .specific-analysis-controls select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z' fill='%23FFD700'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
  }
  
  .filter-controls select:hover, 
  .filter-controls input:hover, 
  .strategy-controls select:hover, 
  .specific-analysis-controls select:hover, 
  .specific-analysis-controls input:hover, 
  .filter-input:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
  }
  
  .filter-controls input[type="number"]::-webkit-inner-spin-button, 
  .filter-controls input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
  }
  
  /* Estratégia */
  .strategy-selection {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  
  /*=====================================
    BOTÕES
  =====================================*/
  .strategy-btn, 
  .action-btn, 
  .feedback-btn, 
  .analyze-btn, 
  .info-btn {
    background: var(--gradient-primary);
    color: var(--background-verydark);
    border: none;
    border-radius: var(--border-radius-sm);
    padding: 0.8rem 1.8rem;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s var(--transition-ease), box-shadow 0.3s var(--transition-ease);
    box-shadow: var(--box-shadow-base);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    min-height: 44px; /* Para melhor toque em mobile */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 0.5rem;
  }
  
  .strategy-btn:hover, 
  .action-btn:hover, 
  .feedback-btn:hover, 
  .analyze-btn:hover, 
  .info-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--box-shadow-strong);
  }
  
  .strategy-btn.stop {
    background: linear-gradient(145deg, #ff4d4d, #cc0000);
  }
  
  .feedback-btn.liked {
    background: var(--success-color);
  }
  
  .feedback-btn.disliked {
    background: var(--error-color);
    color: white;
  }
  
  .feedback-btn {
    font-size: 1rem;
    padding: 0.6rem 1.2rem;
    margin-left: 0.5rem;
  }
  
  .info-btn {
    background: linear-gradient(145deg, #03a9f4, #0288d1);
    color: white;
    padding: 0.6rem;
    line-height: 0;
    margin-left: 0.5rem;
    width: auto;
    min-height: auto;
  }
  
  .info-btn img {
    height: 1.2em;
    width: auto;
    vertical-align: middle;
  }
  
  /* Botão Buscar Oportunidades */
  #top-8-btn {
    width: 100%;
    max-width: 300px;
    margin: 1rem auto;
    display: block;
  }
  
  /*=====================================
    DYNAMIC TARGETS SECTION
  =====================================*/
  .dynamic-targets-section {
    background: var(--background-dark);
    padding: 1rem;
    border-radius: var(--border-radius-sm);
    margin-top: 1rem;
    border: 1px solid var(--secondary-color);
  }
  
  .dynamic-targets-section h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    text-align: center;
  }
  
  .dynamic-targets-section .input-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    gap: 0.5rem;
  }
  
  .dynamic-targets-section label {
    color: var(--text-color-light);
    font-size: 0.9rem;
    flex-basis: 40%;
    text-align: right;
  }
  
  .dynamic-targets-section input[type="number"] {
    flex-basis: 55%;
    padding: 0.5rem;
    font-size: 0.9rem;
    border: 1px solid var(--secondary-color);
    background: var(--background-medium);
    color: var(--primary-color);
    border-radius: 4px;
    text-align: center;
  }
  
  .dynamic-targets-section input[type="number"]::-webkit-inner-spin-button, 
  .dynamic-targets-section input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
  }
  
  .dynamic-targets-section #apply-dynamic-targets {
    width: auto;
    padding: 0.6rem 1.5rem;
    margin-top: 1rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
  
  /*=====================================
    GRID DE RESULTADOS (TOP 8)
  =====================================*/
  .results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    width: 100%;
  }
  
  .result-card {
    background: var(--background-medium);
    border: 2px solid var(--secondary-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-base);
    padding: 1.5rem;
    text-align: left;
    transition: transform var(--transition-duration) var(--transition-ease);
    display: flex;
    flex-direction: column;
  }
  
  .result-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
    border-color: var(--primary-color);
  }
  
  .pair-symbol {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    cursor: pointer;
  }
  
  .pair-symbol strong::before {
    content: attr(data-base);
    font-weight: bold;
  }
  
  .pair-symbol strong:hover::after {
    opacity: 1;
  }
  
  .pair-symbol strong::after {
    content: '🔗';
    font-size: 0.8em;
    margin-left: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .pair-details {
    list-style: none;
    padding-left: 0;
  }
  
  .pair-details li {
    padding: 0.4rem 0;
    border-bottom: 1px dotted var(--secondary-color);
    color: var(--text-color-light);
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .pair-details li strong {
    color: var(--primary-color);
    margin-right: 0.5rem;
    font-weight: bold;
    font-size: 1.2rem;
  }
  
  .result-card .entry {
    color: var(--accent-color);
    font-weight: bold;
  }
  
  .result-card .target1, 
  .result-card .target2 {
    color: var(--success-color);
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.2s ease;
  }
  
  .result-card .target1:hover, 
  .result-card .target2:hover {
    color: var(--secondary-color);
    transform: scale(1.05);
  }
  
  .result-card .stop-loss {
    color: var(--error-color);
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.2s ease;
  }
  
  .result-card .stop-loss:hover {
    color: #e53935;
    transform: scale(1.05);
  }
  
  .result-card .profit-green {
    color: var(--success-color);
    font-weight: bold;
  }
  
  .result-card .risk, 
  .result-card .trend {
    color: var(--primary-color);
    font-weight: bold;
  }
  
  .result-card .risk.alto {
    color: var(--error-color);
  }
  
  .result-card .risk.moderado {
    color: var(--secondary-color);
  }
  
  .result-card .risk.baixo {
    color: var(--success-color);
  }
  
  .result-card .patterns {
    color: var(--accent-color);
    font-weight: bold;
  }
  
  /*=====================================
    ANÁLISE ESPECÍFICA
  =====================================*/
  .specific-analysis-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 2rem auto;
    padding: 1.5rem;
    text-align: center;
  }
  
  .chart-container {
    width: 100%;
    max-width: 800px;
    height: 400px;
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    background: var(--background-dark);
  }
  
  .analysis-section {
    background-color: var(--background-medium);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--box-shadow);
  }
  
  .analysis-section h4 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    text-align: center;
    text-transform: uppercase;
  }
  
  .analysis-section p, 
  .analysis-section li {
    color: var(--text-color-light);
    margin: 0.5rem 0;
    line-height: 1.5;
    display: flex;
    justify-content: space-between;
  }
  
  .analysis-section strong {
    color: var(--primary-color);
    font-weight: bold;
  }
  
  .analysis-section ul {
    list-style: none;
    padding-left: 0;
  }
  
  .analysis-section li {
    padding: 0.3rem 0;
    border-bottom: 1px dotted var(--secondary-color);
  }
  
  /*=====================================
    LOG CONTAINER & TOAST
  =====================================*/
  #log-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 600px;
    z-index: 1000;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .log-message {
    background: rgba(0, 0, 0, 0.8);
    color: var(--primary-color);
    padding: 0.7rem 1.4rem;
    border-radius: var(--border-radius-sm);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    font-size: 1rem;
    text-align: center;
    animation: fadeInLog 0.4s ease-in, fadeOutLog 0.4s 3.8s ease-out forwards;
    opacity: 0;
    word-break: break-word;
    text-shadow: 1px 1px 2px black;
  }
  
  .toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background-color: var(--success-color);
    color: var(--background-verydark);
    padding: 10px 20px;
    border-radius: var(--border-radius-sm);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
  
  .toast-show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  
  /*=====================================
    MODAL (AI Trader, Coin Info)
  =====================================*/
  .bot-modal, 
  .coin-info-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 2rem;
    animation: fadeInModal 0.3s ease;
  }
  
  .bot-card, 
  .coin-info-content {
    background: var(--background-dark);
    border-radius: var(--radius-lg);
    padding: 2rem;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    animation: slideInModal 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--primary-color);
    position: relative;
    color: var(--text-color);
  }
  
  .bot-header, 
  .coin-info-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--secondary-color);
  }
  
  .bot-title, 
  .coin-info-title {
    color: var(--primary-color);
    font-size: var(--font-size-2xl);
    margin: 0;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
  }
  
  .bot-close, 
  .coin-info-close {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s ease;
    position: absolute;
    top: 15px;
    right: 20px;
  }
  
  .bot-close:hover, 
  .coin-info-close:hover {
    color: var(--primary-color);
    transform: scale(1.1);
  }
  
  .bot-input-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
  }
  
  .bot-input {
    flex: 1;
    padding: 0.8rem;
    background: var(--background-dark);
    border: 2px solid var(--secondary-color);
    border-radius: var(--radius-sm);
    color: var(--text-color);
    font-size: var(--font-size-base);
  }
  
  .bot-button {
    padding: 0.8rem 1.5rem;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-sm);
    color: var(--background-verydark);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .bot-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
  }
  
  .bot-button.stop {
    background: linear-gradient(145deg, #ff4d4d, #cc0000);
  }
  
  .bot-status-section {
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin-bottom: 2rem;
  }
  
  .status-header {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  
  .status-spinner {
    width: 32px;
    height: 32px;
  }
  
  .bot-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
  }
  
  .bot-stat-card {
    background: var(--background-dark);
    padding: 1rem;
    border-radius: var(--radius-sm);
    text-align: center;
  }
  
  .bot-stat-value {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: bold;
  }
  
  .bot-stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
  }
  
  .bot-trades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .bot-trades-section {
    background: var(--background-dark);
    padding: 1rem;
    border-radius: var(--radius-sm);
  }
  
  .bot-trades-title {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-align: center;
  }
  
  .bot-trade-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .bot-trade-profit {
    color: var(--success-color);
  }
  
  .bot-trade-profit.negative {
    color: var(--error-color);
  }
  
  /* Coin Info Modal Específicos */
  .coin-info-header-flex {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
  }
  
  .coin-icon-container {
    margin-right: 15px;
  }
  
  .coin-large-icon {
    border-radius: 50%;
    background-color: #333;
    width: 50px;
    height: 50px;
  }
  
  .coin-info-tabs {
    margin-bottom: 20px;
  }
  
  .tab-buttons {
    display: flex;
    border-bottom: 1px solid #444;
    margin-bottom: 15px;
    overflow-x: auto;
  }
  
  .tab-button {
    background: none;
    border: none;
    padding: 10px 15px;
    margin-right: 5px;
    cursor: pointer;
    color: #aaa;
    font-size: 14px;
    position: relative;
  }
  
  .tab-button.active {
    color: #FFD700;
  }
  
  .tab-button.active:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #FFD700;
  }
  
  .tab-content {
    display: none;
    animation: fadeInTab 0.3s ease-in;
  }
  
  .tab-content.active {
    display: block;
  }
  
  .external-links {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #444;
  }
  
  .link-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
  }
  
  .external-link {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #333;
    color: #fff;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    transition: background 0.2s;
  }
  
  .external-link:hover {
    background: #444;
  }
  
  .market-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  
  .market-stats > div {
    background: #333;
    padding: 10px;
    border-radius: 4px;
  }
  
  .social-links-container h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
  }
  
  .social-links-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
  }
  
  .social-link {
    background: #333;
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s;
  }
  
  .social-link:hover {
    background: #444;
  }
  
  .social-link i {
    margin-right: 5px;
  }
  
  .logo-container {
    text-align: center;
  }
  
  .coin-logo {
    max-width: 80px;
    height: auto;
    margin: 10px 0;
  }
  
  .project-description h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
  }
  
  .project-description p {
    margin-bottom: 8px;
  }
  
  .community-info h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
  }
  
  .community-info ul {
    list-style: disc;
    margin-left: 20px;
  }
  
  .community-info li {
    margin-bottom: 5px;
  }
  
  .community-info a {
    color: var(--accent-color);
  }
  
  /*=====================================
    PROGRESS OVERLAY
  =====================================*/
  .progress-overlay {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 8px;
    padding: 1rem;
    min-width: 300px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--primary-color);
    color: var(--text-color-light);
    font-size: 0.9rem;
  }
  
  .progress-bar {
    height: 4px;
    background: var(--background-dark);
    border-radius: 2px;
    overflow: hidden;
    margin: 0.5rem 0;
  }
  
  .progress-fill {
    height: 100%;
    background: var(--primary-color);
    transition: width 0.3s ease-out;
  }
  
  /*=====================================
    FOOTER
  =====================================*/
  .footer {
    color: var(--neutral-color);
    text-align: center;
    padding: 1rem 0;
    font-size: 0.9rem;
    margin-top: auto;
    border-top: 1px solid var(--secondary-color);
    width: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    margin-top: 1rem;
    border-top: 1px solid rgba(255, 215, 0, 0.3);
  }
  
  /*=====================================
    SUPORTE PARA MOBILE
  =====================================*/
  /* Container para ícones em mobile */
  .mobile-exchange-icons {
    display: none; /* Por padrão, escondido em desktop */
  }
  
  /*=====================================
    RESPONSIVIDADE
  =====================================*/
  @media (max-width: 768px) {
    /* HEADER mobile */
    .main-header {
      flex-direction: column;
      position: relative;
      padding-top: 50px;
    }
    
    .user-info {
      top: 5px;
      right: 10px;
    }
    
    .user-details {
      padding: 5px 10px;
    }
    
    /* Logo e estrutura */
    #logo-container {
      flex-direction: column;
      padding: 1rem 0;
      align-items: center;
    }
    
    /* Centralizar logo e título */
    .logo-center-container {
      display: flex;
      flex-direction: column;
      align-items: center;
      width: 100%;
      margin-bottom: 15px;
    }
    
    .logo {
      margin: 0 auto;
    }
    
    .main-header h1 {
      font-size: 2rem;
      margin-top: 0.5rem;
    }
    
    /* Seções mobile */
    .filter-section, 
    .strategy-section, 
    .results-section, 
    .specific-analysis-section,
    .bot-section,
    .enhanced-analysis-section {
      padding: 1.5rem;
      margin-bottom: 1.5rem;
    }
    
    /* Garantir layouts adequados para mobile */
    .filter-controls {
      display: flex;
      flex-direction: column;
      width: 100%;
    }
    
    .filter-controls select,
    #intraday-interval-select {
      width: 100%;
    }
    
    .strategy-section h2 {
      font-size: 1.2rem;
    }
    
    .strategy-controls {
      flex-direction: column;
      align-items: stretch;
    }
    
    .specific-analysis-controls {
      flex-direction: column;
      align-items: stretch;
    }
    
    /* Grid em uma coluna para telas menores */
    .results-grid {
      grid-template-columns: 1fr;
    }
    
    /* Esconder os containers originais de exchange */
    .exchange-radios {
      display: none !important;
    }
    
    /* Mostrar ícones mobile alternativos */
    .mobile-exchange-icons {
      display: flex;
      justify-content: center;
      gap: 30px;
      margin: 10px auto;
      width: 100%;
    }
    
    .mobile-exchange-icons img {
      width: 40px;
      height: 40px;
      cursor: pointer;
      border-radius: 50%;
      padding: 5px;
      background-color: rgba(0, 0, 0, 0.3);
    }
    
    .mobile-exchange-icons .active {
      box-shadow: 0 0 8px var(--primary-color);
      background-color: rgba(0, 0, 0, 0.6);
    }
    
    /* Ajustes modais */
    .bot-card, 
    .coin-info-content {
      padding: 1rem;
      width: 95%;
    }
    
    .bot-input-group {
      flex-direction: column;
    }
    
    .bot-stats-grid {
      grid-template-columns: repeat(2, 1fr);
    }
    
    .bot-trades-grid {
      grid-template-columns: 1fr;
    }
    
    .tab-buttons {
      justify-content: flex-start;
    }
    
    /* VERSÃO - Posição corrigida no mobile */
    .version-indicator {
      top: auto;
      right: 10px;
      bottom: -10px;
    }
  }
  
  @media (max-width: 480px) {
    /* Elementos ainda menores em telas muito pequenas */
    .main-header h1 {
      font-size: 1.8rem;
    }
    
    #logo-container {
      padding: 1rem 0.5rem;
    }
    
    .bot-stats-grid {
      grid-template-columns: 1fr;
    }
    
    .bot-title, 
    .coin-info-title {
      font-size: 1.5rem;
    }
    
    .market-stats {
      grid-template-columns: 1fr;
    }
  }
  
  /*=====================================
    ANIMAÇÕES
  =====================================*/
  @keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  @keyframes fadeInLog {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  @keyframes fadeOutLog {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(10px); }
  }
  
  @keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  
  @keyframes slideInModal {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  @keyframes fadeInTab {
    from { opacity: 0; }
    to { opacity: 1; }
  }