
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Cores Principais */
    --primary-color: #00ff88;
    --primary-dark: #00cc6a;
    --secondary-color: #0066ff;
    --accent-color: #ff6b35;
    
    /* Backgrounds */
    --background-dark: #0a0a0a;
    --background-card: #1a1a1a;
    --background-hover: #2a2a2a;
    
    /* Textos */
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #666666;
    
    /* Bordas e Sombras */
    --border-color: #333333;
    --shadow-primary: 0 10px 30px rgba(0, 255, 136, 0.3);
    --shadow-secondary: 0 10px 30px rgba(0, 102, 255, 0.3);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
    
    /* Estados */
    --success-color: #00ff88;
    --error-color: #ff4444;
    --warning-color: #ffaa00;
    
    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
    --gradient-secondary: linear-gradient(135deg, #0066ff 0%, #0044cc 100%);
    --gradient-accent: linear-gradient(135deg, #ff6b35 0%, #ff4500 100%);
    
    /* Layout */
    --shadow-primary: 0 10px 30px rgba(0, 255, 136, 0.3);
    --shadow-secondary: 0 10px 30px rgba(0, 102, 255, 0.3);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--background-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.1);
}

.logo svg {
    filter: drop-shadow(0 0 8px rgba(0, 255, 136, 0.3));
}

/* Header Logo */
.header-logo {
    height: 1.5em; /* Alinha ao tamanho da fonte do texto */
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(0, 255, 136, 0.3));
    transition: var(--transition);
}

.header-logo:hover {
    filter: drop-shadow(0 0 12px rgba(0, 255, 136, 0.5));
}


.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    gap: 1rem;
}

.btn-login, .btn-register, .btn-dashboard, .btn-logout {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-login {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-login:hover {
    background: var(--background-hover);
    color: var(--text-primary);
}

.btn-register, .btn-dashboard {
    background: var(--gradient-primary);
    color: var(--background-dark);
}

.btn-register:hover, .btn-dashboard:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}
.btn-logout {
    background: transparent;
    color: var(--error-color);
    border: 1px solid var(--error-color);
}

.btn-logout:hover {
    background: var(--error-color);
    color: var(--text-primary);
}

/* User Menu Container for Header */
.user-menu-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-dropdown {
    position: relative;
    display: inline-block;
}

/* Control Button (used in header) */
.control-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: var(--background-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.control-btn:hover {
    background: var(--background-hover);
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.05);
}

/* Responsive for Dashboard Button */
@media (max-width: 450px) {
    .btn-dashboard {
        padding: 0.5rem;
        min-width: 40px;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        position: relative;
    }
    
    .btn-dashboard span,
    .btn-dashboard .fas {
        display: none;
    }
    
    .btn-dashboard::before {
        content: '\f3fd'; /* fa-tachometer-alt */
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 1rem;
    }
    
    .btn-dashboard::after {
        content: 'Dashboard';
        position: absolute;
        bottom: -30px;
        left: 50%;
        transform: translateX(-50%);
        background: var(--background-card);
        color: var(--text-primary);
        padding: 0.25rem 0.5rem;
        border-radius: 4px;
        font-size: 0.7rem;
        white-space: nowrap;
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        z-index: 1000;
        border: 1px solid var(--border-color);
    }
    
    .btn-dashboard:hover::after {
        opacity: 1;
        visibility: visible;
    }
}

.trading-card {
    background: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.trading-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.card-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--success-color);
    font-size: 0.8rem;
    font-weight: 600;
}

.pulse {
    width: 8px;
    height: 8px;
    background: var(--success-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
    100% { opacity: 1; transform: scale(1); }
}

.signal-preview {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.asset-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

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

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

.signal-direction {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.9rem;
}

.signal-direction.call {
    background: rgba(0, 255, 136, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.signal-direction.put {
    background: rgba(255, 68, 68, 0.1);
    color: var(--error-color);
    border: 1px solid rgba(255, 68, 68, 0.3);
}

/* Signals Section */
.signals-section {
    padding: 6rem 0;
    background: var(--background-dark);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.ai-demo-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1) 0%, rgba(0, 102, 255, 0.1) 100%);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.1);
}

.ai-demo-notice::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.1), transparent);
    animation: noticeScan 3s ease-in-out infinite;
}

@keyframes noticeScan {
    0% { left: -100%; }
    100% { left: 100%; }
}

.ai-demo-notice i {
    font-size: 1.2rem;
    color: var(--primary-color);
    animation: robotPulse 2s ease-in-out infinite;
}

@keyframes robotPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.signals-generator {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.generator-controls {
    background: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-card);
}

.control-group {
    margin-bottom: 2rem;
}

.control-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

/* =========================================================
   BROKER BUTTONS - LAYOUT E CORES
   ========================================================= */

/* Layout dos botões lado a lado - SEMPRE */
.broker-buttons, .broker-selector {
    display: flex !important;
    flex-direction: row !important;
    gap: 1rem;
    width: 100%;
}

.broker-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 60px;
}

/* Logo dos brokers - ocupando todo o espaço */
.broker-btn img {
    width: 100%;
    height: auto;
    max-width: 80px;
    max-height: 50px;
    object-fit: contain;
}

/* Botão Binomo - Cor #FEE430 */
.binomo-btn {
    background: #FEE430;
    color: #000;
    border: 2px solid transparent;
}

.binomo-btn:hover {
    background: #FDD835;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(254, 228, 48, 0.3);
}

.binomo-btn.active {
    background: #FDD835;
    border-color: #FCC500;
    box-shadow: 0 0 20px rgba(254, 228, 48, 0.4);
}

/* Botão Stockity - Cor #272E3A */
.stockity-btn {
    background: #272E3A;
    color: #fff;
    border: 2px solid transparent;
}

.stockity-btn:hover {
    background: #003947;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(39, 46, 58, 0.3);
}

.stockity-btn.active {
    background: #1F252E;
    border-color: #151B23;
    box-shadow: 0 0 20px rgba(39, 46, 58, 0.4);
}

/* Responsividade - sempre lado a lado */
@media (max-width: 768px) {
    .broker-buttons, .broker-selector {
        display: flex !important;
        flex-direction: row !important;
        gap: 0.5rem;
    }
    
    .broker-btn {
        padding: 0.75rem;
        min-height: 50px;
    }
    

}

@media (max-width: 480px) {
    .broker-buttons, .broker-selector {
        display: flex !important;
        flex-direction: row !important;
        gap: 0.3rem;
    }
    
    .broker-btn {
        padding: 0.6rem;
        min-height: 45px;
    }
    
    .broker-btn img {
        max-width: 65px;
    }
}

.auto-analysis-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1) 0%, rgba(0, 102, 255, 0.1) 100%);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.6;
}

.auto-analysis-info i {
    font-size: 1.5rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.auto-analysis-info span {
    font-weight: 500;
}

.generate-btn {
    width: 100%;
    padding: 1.25rem;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--border-radius);
    color: var(--background-dark);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

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

.generate-btn:active {
    transform: translateY(0);
}

.btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.generate-btn:hover .btn-glow {
    left: 100%;
}

.signal-result {
    background: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-card);
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-placeholder {
    text-align: center;
    color: var(--text-muted);
}

.result-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.signal-display {
    width: 100%;
    text-align: center;
}

.signal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.signal-asset {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

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

.signal-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.signal-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.signal-direction-large {
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.signal-direction-large.call {
    background: rgba(0, 255, 136, 0.1);
    color: var(--success-color);
    border: 2px solid var(--success-color);
}

.signal-direction-large.put {
    background: rgba(255, 68, 68, 0.1);
    color: var(--error-color);
    border: 2px solid var(--error-color);
}

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

.detail-item {
    background: var(--background-hover);
    padding: 1rem;
    border-radius: var(--border-radius);
    text-align: center;
}

.detail-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.detail-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Statistics Section */
.stats-section {
    padding: 6rem 0;
    background: var(--background-card);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.stat-card {
    background: var(--background-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

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

.stat-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: var(--background-dark);
}

.stat-content h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.stat-trend {
    font-size: 0.9rem;
    font-weight: 600;
}

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

.stat-trend.negative {
    color: var(--error-color);
}

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

.recent-signals {
    background: var(--background-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
}

.recent-signals h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.signals-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.signal-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--background-hover);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.signal-item:hover {
    background: var(--background-card);
}

.signal-item-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.signal-item-asset {
    font-weight: 600;
    color: var(--text-primary);
}

.signal-item-direction {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.signal-item-direction.call {
    background: rgba(0, 255, 136, 0.1);
    color: var(--success-color);
}

.signal-item-direction.put {
    background: rgba(255, 68, 68, 0.1);
    color: var(--error-color);
}

.signal-item-time {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.signal-item-result {
    font-weight: 600;
}

.signal-item-result.win {
    color: var(--success-color);
}

.signal-item-result.loss {
    color: var(--error-color);
}

/* About Section */
.about-section {
    padding: 6rem 0;
    background: var(--background-dark);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.features {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.feature i {
    font-size: 2rem;
    color: var(--primary-color);
}

.feature span {
    font-weight: 600;
    color: var(--text-primary);
}

.trading-dashboard {
    background: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-card);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    background: var(--background-card);
    margin: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
    width: 100%;
    padding: 0.8rem 2rem;
}

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

.dashboard-header h4 {
    font-size: 1.2rem;
    font-weight: 600;
}

.status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status.online {
    background: rgba(0, 255, 136, 0.1);
    color: var(--success-color);
}

/* Profit Chart Styles */
.profit-chart {
    background: var(--background-hover);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.profit-chart::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.chart-header h6 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.chart-period {
    font-size: 0.8rem;
    color: var(--text-muted);
    background: var(--background-card);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.chart-container {
    position: relative;
    height: 180px;
    margin-bottom: 1rem;
}

.chart-bars {
    display: flex;
    align-items: end;
    justify-content: space-between;
    height: 100%;
    padding: 0 0.5rem;
    position: relative;
}

.bar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    position: relative;
}

.bar {
    width: 20px;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 4px 4px 0 0;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 255, 136, 0.3);
}

.bar:hover {
    transform: scaleY(1.1);
    box-shadow: 0 4px 12px rgba(0, 255, 136, 0.5);
}

.bar::before {
    content: attr(data-value);
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--background-card);
    color: var(--text-primary);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    border: 1px solid var(--border-color);
    z-index: 10;
}

.bar:hover::before {
    opacity: 1;
}

.bar-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
}

.chart-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.line-point {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--accent-color);
    border-radius: 50%;
    border: 2px solid var(--background-dark);
    box-shadow: 0 0 8px rgba(255, 107, 53, 0.6);
    animation: pointPulse 2s ease-in-out infinite;
}

.line-point::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    background: rgba(255, 107, 53, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pointRipple 2s ease-in-out infinite;
}

@keyframes pointPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

@keyframes pointRipple {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
}

.chart-stats {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.chart-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.chart-stat .stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.chart-stat .stat-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--success-color);
}

.chart-stat .stat-value.positive {
    color: var(--success-color);
}

/* Responsive Chart */
@media (max-width: 768px) {
    .chart-container {
        height: 150px;
    }
    
    .bar {
        width: 16px;
    }
    
    .chart-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .chart-stat {
        flex-direction: row;
        justify-content: space-between;
    }
}

.dashboard-stats {
    display: flex;
    justify-content: space-between;
}

.mini-stat {
    text-align: center;
}

.mini-stat span:first-child {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

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

.mini-stat .value.positive {
    color: var(--success-color);
}

/* Victory Signals Styles */
.victory-signals {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.victory-signals h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.victory-signals h5::before {
    content: '🏆';
    font-size: 1.2rem;
}

.victory-signals .signals-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 200px;
    overflow-y: auto;
}

.victory-signals .signal-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: rgba(0, 255, 136, 0.05);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.victory-signals .signal-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--success-color);
}

.victory-signals .signal-item:hover {
    background: rgba(0, 255, 136, 0.1);
    border-color: rgba(0, 255, 136, 0.4);
    transform: translateX(2px);
}

.victory-signals .signal-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.victory-signals .signal-asset {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.victory-signals .signal-direction {
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.victory-signals .signal-direction.call {
    background: rgba(0, 255, 136, 0.2);
    color: var(--success-color);
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.victory-signals .signal-direction.put {
    background: rgba(255, 68, 68, 0.2);
    color: var(--error-color);
    border: 1px solid rgba(255, 68, 68, 0.3);
}

.victory-signals .signal-details {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.victory-signals .signal-timeframe {
    font-size: 0.8rem;
    color: var(--text-muted);
    background: var(--background-hover);
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    font-weight: 500;
}

.victory-signals .signal-result.win {
    color: var(--success-color);
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.victory-signals .signal-result.win::before {
    content: '✓';
    font-size: 0.8rem;
    background: var(--success-color);
    color: white;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Scrollbar personalizada para a lista de sinais */
.victory-signals .signals-list::-webkit-scrollbar {
    width: 4px;
}

.victory-signals .signals-list::-webkit-scrollbar-track {
    background: var(--background-hover);
    border-radius: 2px;
}

.victory-signals .signals-list::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 2px;
}

.victory-signals .signals-list::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}
/* Dashboard Specific Styles */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.dashboard-card {
    background: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.dashboard-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--background-hover);
}

.dashboard-card .card-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.view-all {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.view-all:hover {
    text-decoration: underline;
}

.card-content {
    padding: 2rem;
}

.signal-controls {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.chart-card {
    grid-column: span 2;
}

.chart-controls {
    display: flex;
    gap: 0.5rem;
}

.chart-btn {
    padding: 0.5rem 1rem;
    background: var(--background-hover);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.chart-btn.active {
    background: var(--primary-color);
    color: var(--background-dark);
    border-color: var(--primary-color);
}

.chart-btn:hover:not(.active) {
    background: var(--background-hover);
    border-color: var(--primary-color);
    color: var(--text-primary);
}

.market-overview {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.market-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--background-hover);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.market-item:hover {
    background: var(--background-card);
}

.market-asset {
    font-weight: 600;
    color: var(--text-primary);
}

.market-price {
    font-weight: 700;
    color: var(--text-primary);
}

.market-change {
    font-weight: 600;
    font-size: 0.9rem;
}

.market-change.positive {
    color: var(--success-color);
}

.market-change.negative {
    color: var(--error-color);
}

.signal-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.signal-asset {
    font-weight: 600;
    color: var(--text-primary);
}

.signal-direction {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.signal-direction.call {
    background: rgba(0, 255, 136, 0.1);
    color: var(--success-color);
}

.signal-direction.put {
    background: rgba(255, 68, 68, 0.1);
    color: var(--error-color);
}

.signal-time {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.signal-result.win {
    color: var(--success-color);
    font-weight: 600;
}

.signal-result.loss {
    color: var(--error-color);
    font-weight: 600;
}

/* Footer */
.footer {
    background: var(--background-card);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr; /* Logo + 3 grupos de links */
    gap: 2rem;
    margin-bottom: 1rem;
}

.footer-brand .brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-links {
    display: contents; /* Remove o container grid, permite que os filhos sejam distribuídos no grid pai */
}

.link-group h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.link-group a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.link-group a:hover {
    color: var(--primary-color);
}


.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    color: var(--text-muted);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--background-hover);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    color: var(--background-dark);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {

    .signals-generator {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr; /* 2x2 no mobile */
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .nav {
        padding: 1rem;
    }
    
    .nav-links {
        display: none;
    }
    

    
    .broker-selector {
        flex-direction: row; /* Mantém lado a lado sempre */
    }
    
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-links {
        display: contents; /* Mantém o display contents para distribuir nos filhos */
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {

    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .signal-main {
        flex-direction: column;
        gap: 1rem;
    }
    
    .signal-details {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out;
}

.animate-fadeInLeft {
    animation: fadeInLeft 0.6s ease-out;
}

.animate-fadeInRight {
    animation: fadeInRight 0.6s ease-out;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success Animation */
@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.success-animation {
    animation: successPulse 0.6s ease-in-out;
}

/* Error Animation */
@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.error-animation {
    animation: errorShake 0.5s ease-in-out;
}

/* Signal Actions */
.signal-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: nowrap;
}

.copy-signal-btn, .broker-access-btn {
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--background-hover);
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.copy-signal-btn:hover {
    background: var(--primary-color);
    color: var(--background-dark);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.broker-access-btn {
    background: var(--gradient-secondary);
    color: var(--text-primary);
    border-color: var(--secondary-color);
}

.broker-access-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-secondary);
}

@media (max-width: 480px) {
    .signal-actions {
        flex-direction: row !important;
        align-items: center;
    }
    
    .copy-signal-btn, .broker-access-btn {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
}

/* AI Modal */
.ai-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 255, 136, 0.1) 0%, rgba(0, 0, 0, 0.98) 70%);
    backdrop-filter: blur(20px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.ai-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(0, 255, 136, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 102, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(255, 107, 53, 0.05) 0%, transparent 50%);
    animation: backgroundPulse 4s ease-in-out infinite;
}

.ai-modal.show {
    display: flex;
    opacity: 1;
    animation: modalEntrance 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalEntrance {
    0% {
        opacity: 0;
        transform: scale(0.8) rotateY(15deg);
        filter: blur(10px);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05) rotateY(0deg);
        filter: blur(2px);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotateY(0deg);
        filter: blur(0px);
    }
}

@keyframes backgroundPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

.ai-modal-content {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(0, 255, 136, 0.4);
    border-radius: 25px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(0, 255, 136, 0.3);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    animation: contentFloat 6s ease-in-out infinite;
}

.ai-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.ai-close-btn:hover {
    background: rgba(255, 107, 53, 0.2);
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
}

.ai-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--primary-color) 0%, 
        var(--secondary-color) 50%, 
        var(--primary-color) 100%);
    background-size: 200% 100%;
    animation: gradientFlow 3s linear infinite;
}

@keyframes contentFloat {
    0%, 100% {
        transform: translateY(0px) rotateX(0deg);
    }
    50% {
        transform: translateY(-10px) rotateX(2deg);
    }
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

@keyframes borderGlow {
    0%, 100% {
        background-position: 0% 50%;
        opacity: 0.6;
    }
    50% {
        background-position: 100% 50%;
        opacity: 0.8;
    }
}

/* Floating Particles */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.6;
    animation: particleFloat 8s linear infinite;
}

.particle:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 12s;
}

.particle:nth-child(2) {
    left: 20%;
    animation-delay: 1s;
    animation-duration: 10s;
}

.particle:nth-child(3) {
    left: 30%;
    animation-delay: 2s;
    animation-duration: 14s;
}

.particle:nth-child(4) {
    left: 40%;
    animation-delay: 3s;
    animation-duration: 11s;
}

.particle:nth-child(5) {
    left: 60%;
    animation-delay: 4s;
    animation-duration: 13s;
}

.particle:nth-child(6) {
    left: 70%;
    animation-delay: 5s;
    animation-duration: 9s;
}

.particle:nth-child(7) {
    left: 80%;
    animation-delay: 6s;
    animation-duration: 15s;
}

.particle:nth-child(8) {
    left: 90%;
    animation-delay: 7s;
    animation-duration: 8s;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
        transform: translateY(90vh) scale(1);
    }
    90% {
        opacity: 0.6;
        transform: translateY(10vh) scale(1);
    }
    100% {
        transform: translateY(-10vh) scale(0);
        opacity: 0;
    }
}

/* Energy Waves */
.energy-waves {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.wave {
    position: absolute;
    border: 2px solid rgba(0, 255, 136, 0.3);
    border-radius: 50%;
    animation: waveExpand 4s ease-out infinite;
}

.wave-1 {
    top: 20%;
    left: 20%;
    width: 100px;
    height: 100px;
    animation-delay: 0s;
}

.wave-2 {
    top: 60%;
    right: 20%;
    width: 80px;
    height: 80px;
    animation-delay: 1.5s;
}

.wave-3 {
    bottom: 20%;
    left: 50%;
    width: 120px;
    height: 120px;
    animation-delay: 3s;
}

@keyframes waveExpand {
    0% {
        transform: scale(0);
        opacity: 0.8;
    }
    50% {
        opacity: 0.4;
    }
    100% {
        transform: scale(3);
        opacity: 0;
    }
}

/* Data Stream */
.data-stream {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
    overflow: hidden;
}

.data-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--primary-color) 20%, 
        var(--secondary-color) 50%, 
        var(--primary-color) 80%, 
        transparent 100%);
    animation: dataFlow 3s linear infinite;
    opacity: 0.6;
}

.data-line:nth-child(1) {
    top: 20%;
    width: 200px;
    animation-delay: 0s;
    animation-duration: 4s;
}

.data-line:nth-child(2) {
    top: 40%;
    width: 150px;
    animation-delay: 1s;
    animation-duration: 3.5s;
}

.data-line:nth-child(3) {
    top: 60%;
    width: 180px;
    animation-delay: 2s;
    animation-duration: 4.5s;
}

.data-line:nth-child(4) {
    top: 80%;
    width: 120px;
    animation-delay: 3s;
    animation-duration: 3s;
}

@keyframes dataFlow {
    0% {
        left: -200px;
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        left: 100vw;
        opacity: 0;
    }
}

/* Screen Shake Effect */
@keyframes screenShake {
    0%, 100% {
        transform: translateX(0);
    }
    10% {
        transform: translateX(-2px);
    }
    20% {
        transform: translateX(2px);
    }
    30% {
        transform: translateX(-1px);
    }
    40% {
        transform: translateX(1px);
    }
    50% {
        transform: translateX(-1px);
    }
    60% {
        transform: translateX(1px);
    }
    70% {
        transform: translateX(-0.5px);
    }
    80% {
        transform: translateX(0.5px);
    }
    90% {
        transform: translateX(-0.5px);
    }
}

/* Explosion Effect */
.explosion-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    pointer-events: none;
}

.explosion-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: explosion 2s ease-out forwards;
}

.explosion-particle:nth-child(1) {
    animation-delay: 0s;
    background: var(--primary-color);
}

.explosion-particle:nth-child(2) {
    animation-delay: 0.1s;
    background: var(--secondary-color);
}

.explosion-particle:nth-child(3) {
    animation-delay: 0.2s;
    background: var(--accent-color);
}

.explosion-particle:nth-child(4) {
    animation-delay: 0.3s;
    background: var(--primary-color);
}

.explosion-particle:nth-child(5) {
    animation-delay: 0.4s;
    background: var(--secondary-color);
}

.explosion-particle:nth-child(6) {
    animation-delay: 0.5s;
    background: var(--accent-color);
}

.explosion-particle:nth-child(7) {
    animation-delay: 0.6s;
    background: var(--primary-color);
}

.explosion-particle:nth-child(8) {
    animation-delay: 0.7s;
    background: var(--secondary-color);
}

@keyframes explosion {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        transform: translate(
            calc(var(--random-x, 0) * 200px), 
            calc(var(--random-y, 0) * 200px)
        ) scale(0);
        opacity: 0;
    }
}

.explosion-particle:nth-child(1) { --random-x: 0.7; --random-y: -0.3; }
.explosion-particle:nth-child(2) { --random-x: -0.5; --random-y: 0.8; }
.explosion-particle:nth-child(3) { --random-x: 0.9; --random-y: 0.4; }
.explosion-particle:nth-child(4) { --random-x: -0.8; --random-y: -0.6; }
.explosion-particle:nth-child(5) { --random-x: 0.2; --random-y: 0.9; }
.explosion-particle:nth-child(6) { --random-x: -0.3; --random-y: 0.1; }
.explosion-particle:nth-child(7) { --random-x: 0.6; --random-y: -0.8; }
.explosion-particle:nth-child(8) { --random-x: -0.1; --random-y: -0.4; }

.ai-header {
    text-align: center;
    margin-bottom: 2rem;
}

.ai-logo {
    margin-bottom: 1rem;
    position: relative;
    animation: logoPower 3s ease-in-out infinite;
}

.ai-logo svg {
    filter: drop-shadow(0 0 30px rgba(0, 255, 136, 0.8));
    animation: logoRotate 8s linear infinite;
}

.ai-logo::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    border: 2px solid rgba(0, 255, 136, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: logoRing 2s linear infinite;
}

.ai-logo::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    border: 1px solid rgba(0, 102, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: logoRing 3s linear infinite reverse;
}

@keyframes logoPower {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 20px rgba(0, 255, 136, 0.5));
    }
    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 40px rgba(0, 255, 136, 1));
    }
}

@keyframes logoRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes logoRing {
    0% {
        transform: translate(-50%, -50%) rotate(0deg) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg) scale(1.2);
        opacity: 0;
    }
}

.ai-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.ai-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}

.status-text {
    font-size: 0.9rem;
}

.thinking-dots {
    display: flex;
    gap: 0.25rem;
}

.thinking-dots span {
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: thinking 1.4s infinite ease-in-out;
}

.thinking-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.thinking-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes thinking {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.ai-analysis {
    margin-bottom: 2rem;
}

.analysis-message {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 255, 136, 0.5);
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(15px);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(0, 255, 136, 0.2);
}

.analysis-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(0, 255, 136, 0.1), 
        transparent);
    animation: messageScan 2s ease-in-out infinite;
}

@keyframes messageScan {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.message-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.message-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--background-dark);
    font-size: 1.4rem;
    flex-shrink: 0;
    position: relative;
    animation: iconPulse 2s ease-in-out infinite;
    box-shadow: 
        0 0 20px rgba(0, 255, 136, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.message-icon::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, 
        var(--primary-color), 
        var(--secondary-color), 
        var(--accent-color));
    border-radius: 50%;
    z-index: -1;
    animation: iconGlow 3s linear infinite;
    opacity: 0.7;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 
            0 0 20px rgba(0, 255, 136, 0.5),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 
            0 0 30px rgba(0, 255, 136, 0.8),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
}

@keyframes iconGlow {
    0% {
        transform: rotate(0deg);
        opacity: 0.7;
    }
    100% {
        transform: rotate(360deg);
        opacity: 0.3;
    }
}

.message-text h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.message-text p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, 
        rgba(0, 0, 0, 0.8) 0%, 
        rgba(42, 42, 42, 0.8) 50%, 
        rgba(0, 0, 0, 0.8) 100%);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.1) 50%, 
        transparent 100%);
    animation: progressShine 2s ease-in-out infinite;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, 
        var(--primary-color) 0%, 
        var(--secondary-color) 25%, 
        var(--accent-color) 50%, 
        var(--secondary-color) 75%, 
        var(--primary-color) 100%);
    background-size: 200% 100%;
    border-radius: 3px;
    width: 0%;
    animation: progress 7s linear, progressGradient 2s linear infinite;
    position: relative;
    box-shadow: 
        0 0 10px rgba(0, 255, 136, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 100%);
    animation: progressFlow 1s linear infinite;
}

@keyframes progressShine {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.8;
    }
}

@keyframes progressGradient {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

@keyframes progressFlow {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes progress {
    0% { width: 0%; }
    100% { width: 100%; }
}

.ai-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(0, 255, 136, 0.1), 
        transparent);
    transition: left 0.5s ease;
}

.stat-item:hover::before {
    left: 100%;
}

.stat-item:hover {
    border-color: rgba(0, 255, 136, 0.5);
    box-shadow: 0 5px 20px rgba(0, 255, 136, 0.2);
    transform: translateY(-2px);
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.stat-value {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
    animation: statPulse 2s ease-in-out infinite;
}

@keyframes statPulse {
    0%, 100% {
        text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
        transform: scale(1);
    }
    50% {
        text-shadow: 0 0 20px rgba(0, 255, 136, 0.8);
        transform: scale(1.05);
    }
}

/* Smooth message transitions */
.message-icon {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.message-text h4 {
    transition: all 0.3s ease;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.message-text p {
    transition: all 0.3s ease;
}

/* Enhanced message effects */
.analysis-message:hover {
    border-color: rgba(0, 255, 136, 0.7);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(0, 255, 136, 0.3);
    transform: translateY(-2px);
}

.message-icon:hover {
    box-shadow: 
        0 0 25px rgba(0, 255, 136, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

/* Responsive AI Modal */
@media (max-width: 768px) {
    .ai-modal-content {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .ai-stats {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .message-content {
        flex-direction: column;
        text-align: center;
    }
    
    .message-icon {
        align-self: center;
    }
}

@media (max-width: 480px) {
    .ai-modal-content {
        padding: 1rem;
    }
    
    .ai-header h3 {
        font-size: 1.3rem;
    }
    
    .analysis-message {
        padding: 1rem;
    }
}



.brand-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.brand-link:hover {
    transform: scale(1.05);
}


.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

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


/* Sidebar Styles */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 250px;
    height: 100vh;
    background: var(--background-card);
    border-right: 1px solid var(--border-color);
    z-index: 999;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    transition: var(--transition);
}

.sidebar-header {
    padding: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    aspect-ratio: 1 / 1;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--background-dark);
}

.user-details h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.user-role {
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 500;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
}

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}



.nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    background: var(--background-hover);
    color: var(--text-primary);
}

.nav-link.active {
    background: rgba(0, 255, 136, 0.1);
    color: var(--primary-color);
    border-right: 3px solid var(--primary-color);
}

.nav-link i {
    width: 20px;
    text-align: center;
}

.sidebar-footer {
    padding: 0.2rem 1.5rem;
    border-top: 1px solid var(--border-color);
}

.premium-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--gradient-primary);
    color: var(--background-dark);
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    color: var(--error-color);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
    width: 100%;
}

.logout-btn:hover {
    background: rgba(255, 68, 68, 0.1);
}



/* Main Content */
.main-content {
    margin-top: 80px; /* Altura do header */
}

/* Dashboard Layout */
.dashboard-layout {
    display: flex;
    min-height: calc(100vh - 80px);
}

.dashboard-main {
    flex: 1;
    margin-left: 250px; /* Largura da sidebar */
    background: var(--background-dark);
}

/* Footer spacing to match sidebar in dashboard */
.dashboard-page .footer {
    margin-left: 250px; /* Match the dashboard-main margin */
    width: calc(100% - 250px); /* Adjust width to account for margin */
}



.dashboard-header h1 {
    font-size: 2rem;
    font-weight: 700;
}

.dashboard-actions {
    display: flex;
    gap: 1rem;
}

.btn-primary {
    padding: 0.75rem 1.5rem;
    background: var(--gradient-primary);
    color: var(--background-dark);
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

/* Auth Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: radial-gradient(ellipse at center, rgba(0, 255, 136, 0.1) 0%, transparent 70%);
}

.auth-card {
    background: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(20px);
    width: 100%;
    max-width: 450px;
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    margin-bottom: 1rem;
}

.auth-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

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

.input-group i:not(.password-toggle i) {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
    z-index: 1;
}

.input-group input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: var(--background-hover);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1);
}

.password-toggle {
    position: absolute;
    right: 0.5rem; /* Mais para dentro para ficar dentro do input */
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    z-index: 10;
    padding: 0.25rem; /* Padding menor */
    border-radius: 50%;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem; /* Tamanho menor */
    height: 1.5rem; /* Tamanho menor */
    min-width: 1.5rem;
    min-height: 1.5rem;
}

.password-toggle:hover {
    background: var(--background-hover);
    color: var(--text-primary);
}

/* Garantir que o ícone dentro do password-toggle tenha posicionamento correto */
.password-toggle i {
    position: static !important; /* Resetar posicionamento absoluto */
    left: auto !important; /* Remover left */
    color: inherit; /* Usar cor do pai */
    font-size: 0.875rem;
    width: 0.875rem;
    height: 0.875rem;
    display: flex !important;
    align-items: center;
    justify-content: center;
    opacity: 1 !important;
    visibility: visible !important;
}


/* Forçar remoção de ícones duplicados do navegador */
input[type="password"] {
    -webkit-text-security: disc;
    -moz-text-security: disc;
}

/* Esconder COMPLETAMENTE o ícone nativo do navegador */
input[type="password"]::-webkit-credentials-auto-fill-button {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    pointer-events: none !important;
}

/* Esconder ícone de senha do Edge/IE */
input[type="password"]::-ms-reveal {
    display: none !important;
}

/* Esconder ícone de senha do Firefox */
input[type="password"]::-moz-text-security-disc {
    display: none !important;
}

/* Garantir que nenhum pseudo-elemento apareça */
input[type="password"]::after,
input[type="password"]::before {
    display: none !important;
}

/* Forçar remoção de qualquer ícone nativo */
input[type="password"] {
    background-image: none !important;
    background-repeat: no-repeat !important;
    background-position: right center !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

/* Garantir que o input mantenha o mesmo tamanho independente do tipo */
input[type="password"],
input[type="text"] {
    width: 100% !important;
    min-width: 100% !important;
    box-sizing: border-box !important;
    padding-right: 2.5rem !important; /* Espaço para o botão de senha */
    overflow: hidden !important; /* Evitar que elementos saiam do input */
}
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0.5rem 0;
}

/* Sistema de Cadastro em 2 Etapas */
.registration-step {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.registration-step.active {
    display: block;
}

.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    padding: 1rem 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.step-number {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    transition: var(--transition);
    background: var(--background-hover);
    color: var(--text-muted);
    border: 2px solid var(--border-color);
}

.step.active .step-number {
    background: var(--primary-color);
    color: var(--background-primary);
    border-color: var(--primary-color);
}

.step.completed .step-number {
    background: var(--success-color);
    color: white;
    border-color: var(--success-color);
}

.step-title {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
}

.step.active .step-title {
    color: var(--text-primary);
    font-weight: 600;
}

.step-line {
    width: 4rem;
    height: 2px;
    background: var(--border-color);
    margin: 0 1rem;
    margin-top: -1.25rem;
    transition: var(--transition);
}

.step-line.completed {
    background: var(--success-color);
}

/* Cards informativos */
.verification-info,
.verification-success {
    margin-bottom: 2rem;
}

.info-card,
.success-card {
    background: var(--background-hover);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
}

.info-card {
    border-left: 4px solid var(--primary-color);
}

.success-card {
    border-left: 4px solid var(--success-color);
}

.info-card i,
.success-card i {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.info-card i {
    color: var(--primary-color);
}

.success-card i {
    color: var(--success-color);
}

.info-card h3,
.success-card h3 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
    font-size: 1.125rem;
}

.info-card p,
.success-card p {
    margin: 0 0 1rem 0;
    color: var(--text-muted);
}

.info-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.info-card li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
    color: var(--text-muted);
}

.info-card li i {
    color: var(--success-color);
    font-size: 0.875rem;
    margin: 0;
}

/* Form help text */
.form-help {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Botão com loading */
.btn-loading {
    display: none;
    align-items: center;
    gap: 0.5rem;
}

.btn-loading i {
    animation: spin 1s linear infinite;
}

/* Form actions */
.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-secondary {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    padding: 0.875rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    flex: 1;
    justify-content: center;
}

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

/* Alertas customizados */
.alert {
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: slideIn 0.3s ease-out;
}

.alert-success {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: var(--success-color);
}

.alert-error {
    background: rgba(255, 59, 48, 0.1);
    border: 1px solid rgba(255, 59, 48, 0.3);
    color: #ff3b30;
}

.alert-info {
    background: rgba(0, 122, 255, 0.1);
    border: 1px solid rgba(0, 122, 255, 0.3);
    color: #007aff;
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    position: relative;
    transition: var(--transition);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--background-dark);
    font-size: 12px;
    font-weight: bold;
}

.forgot-password, .terms-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.forgot-password:hover, .terms-link:hover {
    text-decoration: underline;
}

.btn-auth {
    width: 100%;
    padding: 1rem;
    background: var(--gradient-primary);
    color: var(--background-dark);
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

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

.btn-auth:active {
    transform: translateY(0);
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.auth-footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.auth-footer a:hover {
    text-decoration: underline;
}

.alert {
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    font-weight: 500;
}

.alert-success {
    background: rgba(0, 255, 136, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.alert-error {
    background: rgba(255, 68, 68, 0.1);
    color: var(--error-color);
    border: 1px solid rgba(255, 68, 68, 0.3);
}

.alert-info {
    background: rgba(0, 102, 255, 0.1);
    color: var(--secondary-color);
    border: 1px solid rgba(0, 102, 255, 0.3);
}

/* =========================================================
   MENU MOBILE FIXO INFERIOR
   ========================================================= */

.mobile-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 12, 16, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: none;
    z-index: 1000;
    padding: 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.mobile-menu-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
    padding: 0.5rem 0;
}

.mobile-menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #a0a0a0;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 8px;
    min-width: 60px;
    position: relative;
}

.mobile-menu-item.active {
    color: var(--primary-color);
}

.mobile-menu-item.lives-active {
    color: var(--primary-color);
}

.mobile-menu-item .menu-icon {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    transition: all 0.3s ease;
}

.mobile-menu-item.lives-active .menu-icon {
    background: var(--primary-color);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.mobile-menu-item .menu-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
}

.mobile-menu-item:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.mobile-menu-item.lives-active:hover {
    color: var(--primary-color);
}

/* Indicador ativo */
.mobile-menu-item.active::after,
.mobile-menu-item.lives-active::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
}

.mobile-menu-item.lives-active::after {
    background: var(--primary-color);
}

/* Garantir que Lives sempre tenha destaque */
.mobile-menu-item[title="Lives"] {
    color: var(--primary-color) !important;
}

.mobile-menu-item[title="Lives"] .menu-icon {
    background: var(--primary-color) !important;
    color: white !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.9rem !important;
}

.mobile-menu-item[title="Lives"]::after {
    content: '' !important;
    position: absolute !important;
    bottom: -0.5rem !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 30px !important;
    height: 2px !important;
    background: var(--primary-color) !important;
    border-radius: 2px !important;
}

/* Mostrar menu mobile apenas em dispositivos móveis */
@media (max-width: 768px) {
    .mobile-menu {
        display: block;
    }
    
    /* Adicionar padding-bottom ao body para não sobrepor o menu */
    body {
        padding-bottom: 80px;
    }
    
    /* Ocultar sidebar no mobile */
    .sidebar {
        display: none !important;
    }
    
    /* Ajustar conteúdo principal no mobile */
    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
    }
}

/* =========================================================
   CLASSES DE CORES UTILITÁRIAS
   ========================================================= */

.color-primary {
    color: var(--primary-color) !important;
}

.color-success {
    color: var(--success-color) !important;
}

.color-warning {
    color: var(--warning-color) !important;
}

.color-danger {
    color: var(--error-color) !important;
}

/* Estilos adicionais do styles.css que não estavam no static/css/styles.css */

/* Signal Generation Effects */
.signal-result.generating {
    animation: signalPulse 0.5s ease-in-out infinite alternate;
}

@keyframes signalPulse {
    0% {
        box-shadow: var(--shadow-card);
    }
    100% {
        box-shadow: 
            var(--shadow-card),
            0 0 30px rgba(0, 255, 136, 0.3);
    }
}

.signal-result.success {
    animation: signalSuccess 0.6s ease-out;
}

@keyframes signalSuccess {
    0% {
        transform: scale(1);
        box-shadow: var(--shadow-card);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 
            var(--shadow-card),
            0 0 40px rgba(0, 255, 136, 0.5);
    }
    100% {
        transform: scale(1);
        box-shadow: var(--shadow-card);
    }
}

/* Broker Selection Effects */
.broker-btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.broker-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.broker-btn:hover::before {
    left: 100%;
}

.broker-btn.active {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.3);
}

.broker-btn.active::after {
    content: '✓';
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--primary-color);
    color: var(--background-dark);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}



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

.dashboard-title h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.dashboard-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

.dashboard-actions {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.5rem;
    background: var(--background-hover);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    aspect-ratio: 1 / 1;
    align-items: center;
    justify-content: center;
    color: var(--background-dark);
    font-size: 1.2rem;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.user-role {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.dashboard-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.control-btn {
    width: 40px;
    height: 40px;
    background: var(--background-hover);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    text-decoration: none;
}

.control-btn:hover {
    background: var(--primary-color);
    color: var(--background-dark);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.logout-btn:hover {
    background: var(--error-color);
    color: var(--text-primary);
    border-color: var(--error-color);
}


/* Logo Link */
.logo-link {
    text-decoration: none;
    color: inherit;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo i {
    font-size: 1.8rem;
}

/* User Dropdown */
.user-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
    min-width: 200px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.dropdown-header .user-avatar {
    width: 32px;
    height: 32px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    aspect-ratio: 1 / 1;
    align-items: center;
    justify-content: center;
    color: var(--background-dark);
    font-size: 0.9rem;
}

.dropdown-header .user-details {
    display: flex;
    flex-direction: column;
}

.dropdown-header .user-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.dropdown-header .user-role {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.5rem 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background: var(--background-hover);
    color: var(--primary-color);
}

.dropdown-item i {
    width: 16px;
    text-align: center;
}

/* Dashboard Content */
.dashboard-content {
    padding:  2rem 2rem;
    width: 100%;
}

/* Sidebar Toggle States */
.sidebar.sidebar-open {
    transform: translateX(0);
}

.dashboard-main.sidebar-open {
    margin-left: 250px;
}

/* Mobile Sidebar */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 250px;
        z-index: 1000;
        transition: transform 0.3s ease;
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    
    /* Disable body scroll when sidebar is open */
    body.sidebar-open {
        overflow: hidden;
    }
    
    /* Sidebar close button */
    .sidebar-close {
        display: flex;
        position: absolute;
        top: 1rem;
        right: 1rem;
        background: var(--background-hover);
        border: 1px solid var(--border-color);
        border-radius: var(--border-radius);
        color: var(--text-secondary);
        width: 40px;
        height: 40px;
        cursor: pointer;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
        z-index: 1001;
    }
    
    .sidebar-close:hover {
        background: var(--error-color);
        color: var(--text-primary);
        border-color: var(--error-color);
    }
}

/* Hide sidebar close button on desktop */
.sidebar-close {
    display: none;
}

/* Hide mobile title on desktop */
.mobile-dashboard-title {
    display: none;
}

/* Mobile Sidebar */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 250px;
        z-index: 1000;
        transition: transform 0.3s ease;
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    
    /* Disable body scroll when sidebar is open */
    body.sidebar-open {
        overflow: hidden;
    }
    
    /* Sidebar close button */
    .sidebar-close {
        display: flex;
        position: absolute;
        top: 1rem;
        right: 1rem;
        background: var(--background-hover);
        border: 1px solid var(--border-color);
        border-radius: var(--border-radius);
        color: var(--text-secondary);
        width: 40px;
        height: 40px;
        cursor: pointer;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
        z-index: 1001;
    }
    
    .sidebar-close:hover {
        background: var(--error-color);
        color: var(--text-primary);
        border-color: var(--error-color);
    }
    
    /* Sidebar overlay */
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .sidebar-overlay.show {
        opacity: 1;
        visibility: visible;
    }
    
    .dashboard-main {
        margin-left: 0;
    }
    
    .dashboard-main.sidebar-open {
        margin-left: 0;
    }
    
    /* Reset footer spacing on mobile */
    .dashboard-page .footer {
        margin-left: 0;
        width: 100%;
    }
    

    
    .dashboard-header-content {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .dashboard-title {
        display: none; /* Remove title from header on mobile */
    }
    
    .dashboard-actions {
        order: 1;
        width: 100%;
        justify-content: space-between;
    }
    
    .dashboard-content {
        padding: 0 1rem 2rem;
    }
    
    
    /* Show logo on mobile */
    .logo {
        display: flex;
    }
    
    /* Mobile dashboard title */
    .mobile-dashboard-title {
        display: block;
        background: var(--background-card);
        padding: 1rem;
        text-align: center;
        border-bottom: 1px solid var(--border-color);
    }
    
    .mobile-dashboard-title h1 {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--text-primary);
        margin-bottom: 0.5rem;
    }
    
    .mobile-dashboard-title p {
        color: var(--text-secondary);
        font-size: 0.9rem;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        z-index: 1000;
        transition: transform 0.3s ease;
    }
    
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    
    /* Sidebar overlay for tablet/desktop */
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }
    
    .sidebar-overlay.show {
        opacity: 1;
        visibility: visible;
    }
    
    /* Disable body scroll when sidebar is open */
    body.sidebar-open {
        overflow: hidden;
    }
    
    .dashboard-main {
        margin-left: 0;
    }
    
    /* Reset footer spacing when sidebar is hidden */
    .dashboard-page .footer {
        margin-left: 0;
        width: 100%;
    }
    
    
    /* Show logo on smaller screens */
    .logo {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr; /* 2x2 no tablet */
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .nav {
        padding: 1rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .footer-links {
        display: contents; /* Mantém o display contents para distribuir nos filhos */
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    /* Mobile alignment for footer columns */
    .footer .footer-content .link-group-right {
        text-align: right !important;
    }
    
    .footer .footer-content .link-group-left {
        text-align: left !important;
    }
    
    /* Alternative approach - direct targeting */
    .link-group-right h4,
    .link-group-right a {
        text-align: right !important;
    }
    
    .link-group-left h4,
    .link-group-left a {
        text-align: left !important;
    }
    
    /* Mobile alignment for footer columns */
    .link-group-right {
        text-align: right !important;
    }
    
    .link-group-left {
        text-align: left !important;
    }
}

/* Table Styles */
.table-responsive {
    overflow-x: auto;
    border-radius: var(--border-radius);
}

.table {
    width: 100%;
    margin-bottom: 0;
    background: transparent;
    border-collapse: separate;
    border-spacing: 0;
}

.table-dark {
    color: var(--text-primary);
    background-color: transparent;
}

.table-dark th,
.table-dark td {
    border-color: var(--border-color);
    padding: 1rem 0.75rem;
    vertical-align: middle;
}

.table-dark thead th {
    background: linear-gradient(135deg, var(--background-card), var(--background-dark));
    border-bottom: 2px solid var(--primary-color);
    color: var(--text-primary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.table-dark tbody tr {
    transition: var(--transition);
}

.table-dark tbody tr:hover {
    background: rgba(0, 255, 136, 0.05);
    transform: translateY(-1px);
}

.table-dark tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.table-dark tbody tr:nth-child(odd) {
    background: transparent;
}

.table-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.table-info {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Badge Styles */
.badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.375rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bg-success {
    background-color: var(--success-color) !important;
    color: white !important;
}

.bg-danger {
    background-color: var(--error-color) !important;
    color: white !important;
}

.bg-warning {
    background-color: var(--warning-color) !important;
    color: white !important;
}

.text-success {
    color: var(--success-color) !important;
    font-weight: 600;
}

.text-danger {
    color: var(--error-color) !important;
    font-weight: 600;
}

/* Status indicators */
.status-win {
    color: var(--success-color);
    font-weight: bold;
}

.status-loss {
    color: var(--error-color);
    font-weight: bold;
}

.profit {
    color: var(--success-color);
    font-weight: bold;
}

.loss {
    color: var(--error-color);
    font-weight: bold;
}