:root {
  /* VOLTAR para as cores vibrantes originais do dashboard */
  --primary: #00ff88;
  --primary-dark: #00cc6a;
  --bg: #0a0a0a;              /* Fundo quase preto */
  --card: #1a1a1a;            /* Cards escuros */
  --text: #ffffff;
  --text-muted: #aaaaaa;
  --error: #ff4d4d;
  
  /* Gradientes neon (mantenha esses!) */
  --accent-gradient: linear-gradient(135deg, #00ff88, #00ccff);
  --card-gradient: linear-gradient(145deg, #1a1a2a, #0d0d1a);
}

:root[data-theme="light"] {
    --bg: #f5f5f5;
    --card: #ffffff;
    --text: #333333;
    --text-muted: #666666;
    --primary: #00a55a;
    --primary-dark: #008548;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Arial, sans-serif;
}

body {
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    padding: 10px; /* Reduzido de 20px */
    width: 100%;
    overflow-x: hidden; /* Impede scroll horizontal */
}

.card, header, section, footer, .metrics-grid, .chart-container {
    box-sizing: border-box;
}

.card {
    background: var(--card);
    transition: transform 0.3s, box-shadow 0.3s;
    border-radius: 12px;
    padding: 15px; /* Reduzido para mobile */
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 255, 136, 0.1);
    width: 100%; /* Garante que ocupa toda a largura */
}

/* Header ajustado para mobile */
header {
    display: flex;
    max-width: 100%;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0; /* Reduzido para mobile */
    border-bottom: 1px solid rgba(0, 255, 136, 0.1);
    margin-bottom: 20px;
    width: 100%;
}

/* Media query específica para mobile */
@media (max-width: 768px) {
    body {
        padding: 10px 5px; /* Menos padding nas laterais */
    }
    
    .card {
        padding: 12px;
        margin-bottom: 12px;
        border-radius: 10px;
    }
    
    header {
        padding: 8px 0;
        margin-bottom: 15px;
    }
    
    /* Garantir que todos os elementos internos não ultrapassem a largura */
    .metrics-grid, .chart-container, .portfolio-content {
        width: 100%;
        max-width: 100%;
    }
}

/* Correção adicional para elementos que podem estar causando overflow */
section, footer, .app-header {
    max-width: 100%;
    overflow: hidden;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 255, 136, 0.1);
    margin-bottom: 30px;
}

header * {
    max-width: 100%;
    box-sizing: border-box;
}

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

.logo-track {
    color: #ffffff;
    font-weight: 600;
}

.logo-crypto {
  background: linear-gradient(135deg, #00ff88 0%, #00ccff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; /* linha importante */
  background-clip: text;
  color: transparent; /* fallback */
  font-weight: 700;
}

[data-theme="light"] .logo-track {
    color: var(--text);
}

[data-theme="light"] .logo-crypto {
    color: var(--primary-dark);
}
a
.card {
    background: var(--card);
    transition: transform 0.3s, box-shadow 0.3s;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 255, 136, 0.1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 255, 136, 0.2);
}

.price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 10px 0;
  background: linear-gradient(135deg, var(--primary) 0%, #00cc77 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-top: 15px;
}

/* Estilos para links */
a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Remove sublinhado específico para links da Binance */
a[href*="binance.com"] {
    text-decoration: none !important;
}

a[href*="binance.com"]:hover {
    text-decoration: underline !important;
}

.chart-container {
    height: 200px !important;
    background: rgba(0, 0, 0, 0.1);
    padding: 10px !important;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.metric-card {
    background: rgba(0, 255, 136, 0.05);
    border-radius: 8px;
    padding: 15px;
    border-left: 3px solid var(--primary);
}

.tab-buttons {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.tab-btn {
    background: rgba(0, 255, 136, 0.1);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    color: var(--primary);
    transition: all 0.3s;
}

.tab-btn.active {
    background: var(--primary);
    color: #000;
}

.tab-content {
    display: none;
}

.glossario-grid,
.tutoriais-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.termo-card,
.tutorial-card {
    background: rgba(0, 255, 136, 0.05);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid rgba(0, 255, 136, 0.2);
    transition: transform 0.3s;
}

.termo-card:hover,
.tutorial-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.termo-card h3 {
    color: var(--primary);
    margin-bottom: 10px;
}

.termo-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.search-box {
    position: relative;
    margin-bottom: 20px;
}

.search-box i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
}

.tutorial-card {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.tutorial-card h3 {
    margin-bottom: 10px;
    color: var(--primary);
}

.tutorial-card .dificuldade {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 255, 136, 0.2);
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.tutorial-card .tempo {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 10px;
}

.tutorial-card .tempo i {
    margin-right: 5px;
}

.form-input {
    width: 100%;
    padding: 10px;
    margin: 8px 0;
    border: 1px solid #00ff88;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    color: white;
}

.btn {
    background: var(--primary);
    color: #000;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s;
}

.btn:hover {
    transform: scale(1.03);
}

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

    .price {
        font-size: 2rem;
    }
}

#fear-greed {
    background: linear-gradient(90deg, #ff0000 0%, #ffcc00 50%, #00ff88 100%);
    height: 20px;
    border-radius: 10px;
    margin: 15px 0;
    position: relative;
}

#fear-greed-indicator {
    position: absolute;
    top: -5px;
    width: 20px;
    height: 30px;
    background: white;
    border-radius: 5px;
    transform: translateX(-10px);
    transition: left 0.5s ease;
}

#risk-result {
    background: rgba(0, 255, 136, 0.1);
    padding: 15px;
    border-radius: 10px;
    border-left: 3px solid #00ff88;
    display: none;
    animation: fadeIn 0.5s;
    margin-top: 15px;
    transition: all 0.3s ease;
}

#risk-value {
    line-height: 1.6;
    margin-bottom: 10px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

nav {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

nav a {
    color: var(--primary);
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 8px;
    background: rgba(0, 255, 136, 0.1);
    transition: all 0.3s;
}

nav a:hover {
    background: rgba(0, 255, 136, 0.2);
}

#aiChatContainer {
    position: fixed;
    bottom: 90px;
    right: 30px;
    width: 350px;
    max-height: 400px;
    background: #1a1a2e;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
    display: none;
    z-index: 1000;
    overflow: hidden;
    border: 1px solid rgba(0, 255, 136, 0.3);
}

#chatToggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #00ff88;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    transition: all 0.3s;
}

.market-indices-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .market-indices-grid {
        grid-template-columns: 1fr 1fr;
    }

    body {
        padding: 10px;
    }

    table {
        font-size: 12px;
        display: block;
        overflow-x: auto;
    }
}

.index-card {
    position: relative;
    min-height: 200px;
}

.simplified-chart {
    height: 120px;
    background: #f5f5f5;
    border-radius: 8px;
    margin: 10px 0;
    position: relative;
    overflow: hidden;
}

.chart-bar {
    height: 100%;
    background: linear-gradient(90deg, #00FF88, #7cf059);
    width: 0;
    transition: width 1s ease;
}

.season-status {
    margin-top: 15px;
    text-align: center;
}

.status-indicator {
    width: 100%;
    height: 10px;
    background: #e0e0e0;
    border-radius: 5px;
    margin-bottom: 8px;
    position: relative;
}

.status-indicator::after {
    content: '';
    position: absolute;
    left: 75%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #333;
}

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

.chart-error {
    color: #e74c3c;
    text-align: center;
    padding: 5px;
    font-size: 0.8rem;
}

.update-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid var(--text-muted);
}

.refresh-btn {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: 0.8rem;
}

.portfolio-chart canvas {
    width: 100% !important;
    height: 300px !important;
}

.portfolio-table {
    margin-top: 20px;
    overflow-x: auto;
}

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

.portfolio-table th,
.portfolio-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 255, 136, 0.1);
}

.portfolio-table th {
    color: var(--primary);
}

.portfolio-confirmation {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #000;
    padding: 10px 20px;
    border-radius: 50px;
    z-index: 1000;
    animation: slideUp 0.5s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(100%);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.updating {
    animation: pulseUpdate 0.5s ease;
}

@keyframes pulseUpdate {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(0, 255, 136, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 255, 136, 0);
    }
}

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

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#alertsContainer {
    max-height: 300px;
    overflow-y: auto;
}

.alert-item {
    background: rgba(0, 255, 136, 0.05);
    border-left: 3px solid var(--primary);
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
}

#calcResult {
    display: none;
    margin-top: 15px;
    padding: 10px;
    background: rgba(0, 255, 136, 0.1);
    border-radius: 8px;
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .card {
        padding: 15px;
    }

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

    .chart-container {
        height: 200px;
        padding: 10px;
    }

    nav {
        flex-direction: column;
        gap: 8px;
    }

    nav a {
        width: 100%;
        text-align: center;
        padding: 10px;
    }

    #aiChatContainer {
        width: 90%;
        right: 5%;
        bottom: 80px;
    }
}

@media (max-width: 480px) {
    .price {
        font-size: 1.8rem;
    }

    .form-input {
        padding: 8px;
    }

    .dificuldade,
    .tempo {
        display: none;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

header,
section,
footer {
    animation: fadeIn 0.6s ease-out forwards;
}

section:nth-child(1) {
    animation-delay: 0.2s;
}

section:nth-child(2) {
    animation-delay: 0.4s;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-up {
    opacity: 0;
}

.slide-up.animated {
    animation: slideUp 0.3s ease-out forwards;
}

.back-to-top {
    position: fixed;
    bottom: 30%;
    right: 25px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--bg);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
}

.back-to-top:hover {
    transform: translateY(-5px);
    background: var(--primary-dark);
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        margin-top: 30px;
        border-left: none;
        border-top: 1px solid #00FF88;
    }
}

.header-tools {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    margin-top: 10px;
}

.theme-btn {
    background: rgba(0, 255, 136, 0.2);
    background-color: var(--primary);
    color: #000;
    border: 1px solid var(--primary);
    padding: 8px 15px;
    border-radius: 8%;
    width: 38px;
    height: 38px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    gap: 6px;
}

.theme-btn i {
    margin-right: 6px;
}

.theme-btn:hover {
    background: rgba(0, 255, 136, 0.3)
}

.mode-box {
    background-color: var(--primary);
    color: #000;
    padding: 10px 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.platform-card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 15px;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.platform-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.platform-card.binance {
    border-top: 3px solid #f0b90b;
}

.platform-card.bybit {
    border-top: 3px solid #2b71ff;
}

.platform-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.platform-name {
    font-weight: bold;
    color: var(--text);
    font-size: 1rem;
}

.platform-badge {
    background: var(--primary);
    color: #000;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: bold;
    margin-left: auto;
}

.platform-detail {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 8px 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.platform-cta {
    color: var(--primary);
    font-weight: bold;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mode-toggle-container {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 255, 136, 0.1);
    padding: 8px 15px;
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.mode-text {
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.switch .slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.switch input:checked+.slider {
    background-color: var(--primary);
}

.switch input:checked+.slider:before {
    transform: translateX(26px);
}

@media (max-width: 768px) {
    .header-right {
        gap: 10px;
    }

    .mode-toggle-container {
        padding: 6px 12px;
    }

    .mode-text {
        font-size: 12px;
    }

    .switch {
        width: 45px;
        height: 22px;
    }

    .switch .slider:before {
        height: 16px;
        width: 16px;
    }
}

@media (max-width: 480px) {
    .header-right {
        flex-direction: column;
        gap: 8px;
        align-items: flex-end;
    }

    .mode-text {
        display: none;
    }

    .mode-toggle-container {
        padding: 5px 10px;
    }
}

.quiz-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(10px);
}

.quiz-container {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 20px;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    border: 2px solid #00ff88;
    box-shadow: 0 0 50px rgba(0, 255, 136, 0.3);
    animation: modalSlideIn 0.6s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.quiz-header {
    text-align: center;
    margin-bottom: 30px;
}

.quiz-header h2 {
    color: #00ff88;
    font-size: 28px;
    margin-bottom: 10px;
}

.quiz-header p {
    color: #ccc;
    margin-bottom: 20px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #333;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ff88, #39ff14);
    width: 33%;
    transition: width 0.5s ease;
    border-radius: 3px;
}

.question {
    display: none;
    animation: questionFadeIn 0.5s ease;
}

.question.active {
    display: block;
}

@keyframes questionFadeIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.question h3 {
    color: #fff;
    font-size: 20px;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 600;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.option-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    padding: 20px;
    border-radius: 15px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
}

.option-btn:hover {
    background: rgba(0, 255, 136, 0.2);
    border-color: #00ff88;
    transform: translateY(-2px);
}

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

.emoji {
    font-size: 24px;
    flex-shrink: 0;
}

.quiz-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.nav-btn {
    background: rgba(0, 255, 136, 0.2);
    border: 2px solid #00ff88;
    color: #00ff88;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.nav-btn:hover:not(:disabled) {
    background: #00ff88;
    color: #000;
    transform: translateY(-2px);
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.question-counter {
    color: #00ff88;
    font-weight: 600;
}

.quiz-result {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(15px);
}

.result-container {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 25px;
    padding: 40px;
    text-align: center;
    border: 3px solid #00ff88;
    box-shadow: 0 0 60px rgba(0, 255, 136, 0.4);
    animation: resultScaleIn 0.8s ease-out;
}

@keyframes resultScaleIn {
    from {
        opacity: 0;
        transform: scale(0.8) rotate(-5deg);
    }

    to {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}

.result-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-20px);
    }

    60% {
        transform: translateY(-10px);
    }
}

.result-desc {
    color: #ccc;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.profile-name {
    display: inline-block;
    background: linear-gradient(90deg, #00ff88, #39ff14);
    color: #000;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 800;
    font-size: 18px;
    margin: 15px 0;
    animation: glow 2s infinite;
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
    }

    50% {
        box-shadow: 0 0 30px rgba(0, 255, 136, 0.8);
    }
}

.cta-btn {
    background: linear-gradient(90deg, #00ff88, #39ff14);
    color: #000;
    border: none;
    padding: 18px 35px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    margin: 20px 0;
    transition: all 0.3s ease;
    box-shadow: 0 5px 25px rgba(0, 255, 136, 0.3);
}

.cta-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 255, 136, 0.5);
}

.text-btn {
    background: none;
    border: none;
    color: #00ff88;
    cursor: pointer;
    font-size: 14px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.text-btn:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .quiz-container {
        width: 95%;
        padding: 20px;
    }

    .option-btn {
        padding: 15px;
        font-size: 14px;
    }

    .result-icon {
        font-size: 60px;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

.option-btn.correct {
    animation: pulse 0.5s ease;
    background: rgba(0, 255, 136, 0.3) !important;
    border-color: #00ff88 !important;
}

.option-btn.incorrect {
    animation: shake 0.5s ease;
    background: rgba(255, 77, 77, 0.3) !important;
    border-color: #ff4d4d !important;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #00ff88;
    opacity: 0.8;
    animation: confettiFall 2s ease-in-out;
}

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

    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: var(--card);
    border-bottom: 1px solid rgba(0, 255, 136, 0.1);
}

.logo {
    font-size: 1.6rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    color: var(--primary);
}

.header-controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

.theme-btn {
    background: rgba(0, 255, 136, 0.2);
    color: var(--text);
    border: 1px solid var(--primary);
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
}

.theme-btn:hover {
    background: rgba(0, 255, 136, 0.3);
}

.mode-box {
    background: rgba(0, 255, 136, 0.2);
    color: var(--text);
    border: 1px solid var(--primary);
    padding: 8px 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: white;
    transition: .4s;
    border-radius: 50%;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

input:checked+.slider {
    background: var(--primary);
}

input:checked+.slider:before {
    transform: translateX(26px);
}

@media (max-width: 600px) {
    .header-controls {
        flex-direction: column;
        align-items: flex-end;
        gap: 10px;
    }
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--primary);
}

input:checked+.slider:before {
    transform: translateX(36px);
}

.trader-mode .advanced-tool {
    display: block;
}

.exchange-widget {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    overflow: hidden;
    margin-top: 10px;
    border: 1px solid rgba(0, 255, 136, 0.1);
}

.binance-redirect {
    text-align: center;
    margin-top: 15px;
}

.binance-btn {
    display: inline-block;
    background: linear-gradient(90deg, #f0b90b, #fcd535);
    color: #000;
    text-decoration: none;
    font-weight: bold;
    padding: 12px 25px;
    border-radius: 8px;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(240, 185, 11, 0.3);
}

.binance-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(240, 185, 11, 0.4);
}

.binance-btn-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.binance-btn img {
    border-radius: 50%;
}

.binance-stats {
    margin-top: 8px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.mobile-nav {
    box-sizing: border-box;
    width: 100%;
    padding: 0 10px;
}

.nav-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    gap: 5px;
    width: 100%;
    overflow: hidden;
}

.nav-item {
    flex: 1;
    min-width: 0;
    padding: 12px 5px;
    background: rgba(0, 255, 136, 0.1);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    word-break: break-word;
}

.nav-item span {
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-item.active {
    background: rgba(0, 255, 136, 0.2);
    border: 1px solid var(--primary);
}

.binance-cta {
    text-align: center;
    padding: 10px;
}

.binance-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(90deg, #f0b90b, #f8d33a);
    color: #000;
    text-decoration: none;
    font-weight: bold;
    padding: 12px 20px;
    border-radius: 10px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(240, 185, 11, 0.3);
    border: none;
    cursor: pointer;
}

.binance-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(240, 185, 11, 0.4);
}

.btn-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    flex-grow: 1;
}

.btn-title {
    font-size: 1rem;
    font-weight: 800;
}

.btn-subtitle {
    font-size: 0.75rem;
    font-weight: normal;
    opacity: 0.9;
}

.user-count {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.user-count i {
    color: var(--primary);
}

@media (max-width: 480px) {
    .mode-toggle-container::before {
        content: '🎓';
        font-size: 16px;
    }

    .mode-text {
        display: none;
    }

    .mode-toggle-container:hover::after {
        content: 'Modo Iniciante/Avançado';
        position: absolute;
        bottom: -30px;
        right: 0;
        background: var(--card);
        padding: 5px 10px;
        border-radius: 5px;
        font-size: 12px;
        white-space: nowrap;
        z-index: 1000;
        border: 1px solid var(--primary);
    }
}

footer {
    background: var(--card);
    padding: 30px 0 15px;
    margin-top: 40px;
    border-top: 1px solid rgba(0, 255, 136, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto 20px;
    padding: 0 20px;
}

.footer-section h4 {
    color: var(--primary);
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section li {
    margin-bottom: 8px;
}

.footer-section a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 255, 136, 0.1);
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .app-header nav.main-nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(78vw, 320px);
        background: var(--card);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding: 80px 20px 20px;
        transform: translateX(100%);
        transition: transform .3s ease;
        z-index: 2000;
        box-shadow: -6px 0 20px rgba(0, 0, 0, .4);
    }

    .app-header nav.main-nav.active {
        transform: translateX(0);
    }

    .app-header nav.main-nav ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 18px;
    }

    .app-header nav.main-nav a {
        text-decoration: none;
        font-size: 1.2rem;
        color: var(--text);
        padding: 10px 15px;
        border-radius: 8px;
        transition: background .3s, color .3s;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .app-header nav.main-nav a:hover {
        background: var(--primary);
        color: #fff;
    }
}

/* Menu Hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1000;
}

.menu-bar {
    width: 100%;
    height: 3px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Navegação principal - CORRIGIDO */
.main-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

.main-nav a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  transition: color .2s ease;
}

.main-nav a:hover {
  color: var(--brand-1);
}


.main-nav.active {
    right: 0;
}

.nav-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 255, 136, 0.1);
}

.nav-header h3 {
    color: var(--primary);
    margin: 0;
}

.close-menu {
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.3s;
}

.close-menu:hover {
    transform: rotate(90deg);
}

.nav-controls {
    padding: 20px;
    border-bottom: 1px solid rgba(0, 255, 136, 0.1);
}

.nav-control-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.nav-control-item:last-child {
    margin-bottom: 0;
}

.nav-control-item i {
    margin-right: 12px;
    color: var(--primary);
    width: 20px;
    text-align: center;
}

.nav-control-item span {
    flex: 1;
    font-weight: 500;
}

.theme-btn-nav {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--primary);
    width: 40px;
    height: 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.theme-btn-nav:hover {
    background: rgba(0, 255, 136, 0.2);
}

.theme-btn-nav i {
    margin-right: 0;
    font-size: 12px;
    transition: transform 0.3s;
}

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

.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.nav-links li {
    border-bottom: 1px solid rgba(0, 255, 136, 0.05);
}

.nav-links a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s;
}

.nav-links a:hover {
    background: rgba(0, 255, 136, 0.1);
    padding-left: 25px;
}

.nav-links i {
    margin-right: 12px;
    color: var(--primary);
    width: 20px;
    text-align: center;
}

.nav-footer {
    padding: 15px 20px;
    text-align: center;
    border-top: 1px solid rgba(0, 255, 136, 0.1);
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Overlay para quando o menu estiver aberto */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

/* Responsividade */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
}

/* Animações para o menu */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.nav-links li {
    animation: slideIn 0.3s ease forwards;
    opacity: 0;
}

.nav-links li:nth-child(1) { animation-delay: 0.1s; }
.nav-links li:nth-child(2) { animation-delay: 0.15s; }
.nav-links li:nth-child(3) { animation-delay: 0.2s; }
.nav-links li:nth-child(4) { animation-delay: 0.25s; }
.nav-links li:nth-child(5) { animation-delay: 0.3s; }
.nav-links li:nth-child(6) { animation-delay: 0.35s; }

/* Switch no menu */
.nav-controls .switch {
    width: 50px;
    height: 24px;
}

.nav-controls .slider:before {
    height: 16px;
    width: 16px;
}

.nav-controls input:checked + .slider:before {
    transform: translateX(26px);
}

/* Estilos para o menu de navegação */
.nav-controls {
  padding: 20px;
  border-bottom: 1px solid rgba(0, 255, 136, 0.1);
}

.nav-control-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.nav-control-item:last-child {
  margin-bottom: 0;
}

.nav-control-item i {
  margin-right: 12px;
  color: var(--primary);
  width: 20px;
  text-align: center;
}

.nav-control-item span {
  flex: 1;
  font-weight: 500;
}

.theme-btn-nav {
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid var(--primary);
  width: 40px;
  height: 24px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}

.theme-btn-nav:hover {
  background: rgba(0, 255, 136, 0.2);
}

.theme-btn-nav i {
  margin-right: 0;
  font-size: 12px;
  transition: transform 0.3s;
}

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

.nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
}

.nav-links li {
  border-bottom: 1px solid rgba(0, 255, 136, 0.05);
}

.nav-links a {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  color: var(--text);
  text-decoration: none;
  transition: all 0.3s;
}

.nav-links a:hover {
  background: rgba(0, 255, 136, 0.1);
  padding-left: 25px;
}

.nav-links i {
  margin-right: 12px;
  color: var(--primary);
  width: 20px;
  text-align: center;
}

.nav-footer {
  padding: 15px 20px;
  text-align: center;
  border-top: 1px solid rgba(0, 255, 136, 0.1);
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Overlay para quando o menu estiver aberto */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

/* Switch no menu */
.nav-controls .switch {
  width: 50px;
  height: 24px;
}

.nav-controls .slider:before {
  height: 16px;
  width: 16px;
}

.nav-controls input:checked + .slider:before {
  transform: translateX(26px);
}

.exchanges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.exchange-card {
  background: var(--card);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid rgba(0, 255, 136, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.exchange-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 255, 136, 0.2);
}

.exchange-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.exchange-header img {
  margin-right: 12px;
}

.exchange-header h3 {
  flex: 1;
  margin: 0;
}

.rating {
  background: rgba(0, 255, 136, 0.1);
  color: var(--primary);
  padding: 4px 8px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
}

.exchange-details {
  margin-bottom: 15px;
}

.exchange-details p {
  margin: 8px 0;
  display: flex;
  align-items: center;
  font-size: 0.9rem;
}

.exchange-details i {
  margin-right: 8px;
  color: var(--primary);
  width: 16px;
}

.exchange-link {
  display: inline-flex;
  align-items: center;
  color: var(--primary);
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s;
}

.exchange-link:hover {
  transform: translateX(5px);
}

.fee-comparison {
  overflow-x: auto;
  margin-bottom: 25px;
}

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

.fee-comparison th, .fee-comparison td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid rgba(0, 255, 136, 0.1);
}

.fee-comparison th {
  color: var(--primary);
}

.fee-calculator {
  border-top: 1px solid rgba(0, 255, 136, 0.1);
  padding-top: 20px;
}

.calc-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 15px;
}

   /* Estilos específicos para o header simplificado */
    .app-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 15px 0;
      margin-bottom: 20px;
      border-bottom: 1px solid rgba(0, 255, 136, 0.1);
    }
    
    .logo {
      font-size: 1.8rem;
      font-weight: 700;
      display: flex;
      align-items: center;
      gap: 0px;
    }
    
    .logo-track {
      color: var(--text);
    }
    
    .logo-crypto {
      color: var(--primary);
    }
    
    .header-controls {
      display: flex;
      gap: 12px;
      align-items: center;
    }
    
    .control-btn {
      background: rgba(0, 255, 136, 0.1);
      border: 1px solid var(--primary);
      color: var(--text);
      width: 44px;
      height: 44px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all 0.3s;
    }
    
    .control-btn:hover {
      background: rgba(0, 255, 136, 0.2);
      transform: scale(1.05);
    }
    
    .control-btn.active {
      background: var(--primary);
      color: #000;
    }
    
    .control-btn i {
      font-size: 1.2rem;
    }
    
    /* Tooltips para os botões */
    .control-btn::after {
      content: attr(data-tooltip);
      position: absolute;
      bottom: -40px;
      left: 50%;
      transform: translateX(-50%);
      background: var(--card);
      color: var(--text);
      padding: 6px 12px;
      border-radius: 6px;
      font-size: 0.8rem;
      white-space: nowrap;
      opacity: 0;
      visibility: hidden;
      transition: all 0.3s;
      border: 1px solid var(--primary);
      z-index: 1000;
    }
    
    .control-btn:hover::after {
      opacity: 1;
      visibility: visible;
      bottom: -35px;
    }
    
    @media (max-width: 480px) {
      .logo {
        font-size: 1.5rem;
      }
      
      .control-btn {
        width: 40px;
        height: 40px;
      }
    }

    /* Remover outline azul dos botões */
button:focus {
  outline: none !important;
  box-shadow: none !important;
}

/* Animação de rotação e escala suave nos ícones */
.control-btn i {
  transition: transform 0.3s ease, color 0.3s ease;
}

.control-btn:hover i {
  transform: rotate(20deg) scale(1.2);
  color: var(--primary-dark);
}

.control-btn:active i {
  transform: rotate(-15deg) scale(0.9);
}

@keyframes bounce {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.3); }
  60%  { transform: scale(0.9); }
  100% { transform: scale(1); }
}

.icon-bounce {
  animation: bounce 0.4s ease;
}

 /* Estilos específicos para o header profissional */
    .professional-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 15px 5%;
      background: rgba(10, 10, 10, 0.95);
      backdrop-filter: blur(10px);
      border-bottom: 1px solid rgba(0, 255, 136, 0.15);
      position: sticky;
      top: 0;
      z-index: 1000;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    }
    
    .header-logo {
      display: flex;
      align-items: center;
      gap: 10px;
    }
    
    .logo-icon {
      font-size: 24px;
      color: #00ff88;
    }
    
    .logo-text {
      font-size: 1.5rem;
      font-weight: 700;
    }
    
    .logo-track {
      color: #ffffff;
    }
    
    .logo-crypto {
      color: #00ff88;
    }
    
    .header-actions {
      display: flex;
      align-items: center;
      gap: 15px;
    }
    
    .action-btn {
      background: rgba(0, 255, 136, 0.1);
      border: 1px solid rgba(0, 255, 136, 0.3);
      color: #ffffff;
      width: 42px;
      height: 42px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all 0.3s ease;
      position: relative;
    }
    
    .action-btn:hover {
      background: rgba(0, 255, 136, 0.2);
      transform: translateY(-2px);
      box-shadow: 0 5px 15px rgba(0, 255, 136, 0.2);
    }
    
    .action-btn.active {
      background: #00ff88;
      color: #000000;
    }
    
    .action-btn i {
      font-size: 1.1rem;
    }
    
    .tooltip {
      position: absolute;
      bottom: -35px;
      left: 50%;
      transform: translateX(-50%);
      background: #1a1a1a;
      color: #ffffff;
      padding: 5px 10px;
      border-radius: 4px;
      font-size: 0.75rem;
      white-space: nowrap;
      opacity: 0;
      visibility: hidden;
      transition: all 0.3s ease;
      border: 1px solid rgba(0, 255, 136, 0.3);
    }
    
    .action-btn:hover .tooltip {
      opacity: 1;
      visibility: visible;
      bottom: -30px;
    }
    
    @media (max-width: 768px) {
      .professional-header {
        padding: 12px 5%;
      }
      
      .logo-text {
        font-size: 1.3rem;
      }
      
      .action-btn {
        width: 38px;
        height: 38px;
      }
    }

    /* Adicionar no final do arquivo */

/* Estilos para header ocultável */
#pageHeader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--card);
  transition: transform 0.3s ease-in-out;
  transform: translateY(0);
}

#pageHeader.hidden {
  transform: translateY(-100%);
}

/* Ajuste de espaçamento para compensar header fixo */
body {
  padding-top: 80px;
}

/* Garantir que o header use variáveis de tema */
.professional-header {
  background: var(--card) !important;
}

/* Ajuste para modo responsivo */
@media (max-width: 768px) {
  #pageHeader {
    padding: 10px 5%;
  }
  
  body {
    padding-top: 70px;
  }
}
    
/* Footer Styles */
footer {
  background: var(--card);
  padding: 40px 0 20px;
  margin-top: 50px;
  border-top: 2px solid rgba(0, 255, 136, 0.1);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-section {
  padding: 20px;
}

.footer-section h4 {
  color: var(--primary);
  margin-bottom: 15px;
  font-size: 1.2rem;
}

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

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section ul li a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding: 20px;
  margin-top: 30px;
  border-top: 1px solid rgba(0, 255, 136, 0.1);
  color: var(--text-muted);
}

/* Social Links */
.social-links {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(0, 255, 136, 0.1);
  border-radius: 50%;
  color: var(--primary);
  text-decoration: none;
  transition: all 0.3s;
}

.social-link:hover {
  background: var(--primary);
  color: #000;
  transform: translateY(-3px);
}

/* PIX Code */
.pix-code {
  background: rgba(0, 255, 136, 0.1);
  padding: 10px;
  border-radius: 8px;
  border-left: 3px solid var(--primary);
  font-family: 'Courier New', monospace;
  word-break: break-all;
}

/* Form no Footer */
.footer-section form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-section .form-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 255, 136, 0.2);
}

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

/* Responsivo */
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .footer-section {
    padding: 15px;
  }
}

/* Estilos para notícias */
.news-item {
  transition: transform 0.3s ease;
}

.news-item:hover {
  transform: translateX(5px);
}

.news-item h3 a:hover {
  text-decoration: underline;
}

#news-container {
  max-height: 500px;
  overflow-y: auto;
}

/* Scrollbar personalizada */
#news-container::-webkit-scrollbar {
  width: 6px;
}

#news-container::-webkit-scrollbar-track {
  background: rgba(0, 255, 136, 0.1);
  border-radius: 3px;
}

#news-container::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 3px;
}

/* Estilos para a calculadora de taxas */
.fee-calculator {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 255, 136, 0.2);
}

.calc-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 15px;
}

.calc-controls > div {
  display: flex;
  flex-direction: column;
}

.calc-controls label {
  margin-bottom: 5px;
  font-weight: 600;
  color: var(--text);
}

#feeResult {
  animation: fadeIn 0.5s ease;
}

#feeTotal {
  line-height: 1.6;
}

#feeTotal strong {
  color: var(--primary);
}

/* Responsividade */
@media (max-width: 768px) {
  .calc-controls {
    grid-template-columns: 1fr;
  }
  
  .fee-comparison {
    overflow-x: auto;
  }
  
  .fee-comparison table {
    font-size: 0.8rem;
  }
}

/* Portfolio Styles Modernizados */
.portfolio-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 25px;
  flex-wrap: wrap;
  gap: 20px;
}

.portfolio-stats {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.stat-card {
  background: rgba(0, 255, 136, 0.1);
  padding: 15px 20px;
  border-radius: 12px;
  border-left: 4px solid var(--primary);
  min-width: 140px;
  text-align: center;
}

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

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

#portfolioProfit {
  color: var(--primary);
}

#portfolioChange.negative {
  color: var(--error);
}

.portfolio-controls {
  display: flex;
  gap: 12px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--primary);
  color: #000;
}

.btn-secondary {
  background: rgba(0, 255, 136, 0.2);
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.portfolio-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 20px;
}

.portfolio-chart-section {
  background: rgba(0, 255, 136, 0.05);
  border-radius: 15px;
  padding: 20px;
  border: 1px solid rgba(0, 255, 136, 0.1);
}

.chart-container {
  position: relative;
  height: 250px;
  margin-bottom: 20px;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(0, 255, 136, 0.1);
  border-radius: 20px;
  font-size: 0.8rem;
}

.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.portfolio-table-section {
  background: rgba(0, 255, 136, 0.05);
  border-radius: 15px;
  padding: 20px;
  border: 1px solid rgba(0, 255, 136, 0.1);
  overflow: hidden;
}

.table-responsive {
  overflow-x: auto;
  max-height: 400px;
  overflow-y: auto;
}

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

.portfolio-table th {
  background: rgba(0, 255, 136, 0.1);
  padding: 15px 12px;
  text-align: left;
  font-weight: 600;
  color: var(--primary);
  position: sticky;
  top: 0;
  z-index: 10;
}

.portfolio-table td {
  padding: 12px;
  border-bottom: 1px solid rgba(0, 255, 136, 0.1);
}

.portfolio-table tr:hover {
  background: rgba(0, 255, 136, 0.03);
}

.portfolio-table .positive {
  color: var(--primary);
  font-weight: 600;
}

.portfolio-table .negative {
  color: var(--error);
  font-weight: 600;
}

.asset-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.asset-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 255, 136, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.portfolio-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

.portfolio-empty h3 {
  margin-bottom: 10px;
  color: var(--text);
}

.portfolio-empty p {
  margin-bottom: 20px;
}

/* Ações na tabela */
.action-buttons {
  display: flex;
  gap: 8px;
}

.action-btn {
  padding: 6px 10px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-edit {
  background: rgba(0, 255, 136, 0.2);
  color: var(--primary);
}

.btn-delete {
  background: rgba(255, 77, 77, 0.2);
  color: var(--error);
}

.action-btn:hover {
  transform: scale(1.05);
}

/* Responsividade */
@media (max-width: 1024px) {
  .portfolio-content {
    grid-template-columns: 1fr;
  }
  
  .portfolio-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .portfolio-stats {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .portfolio-stats {
    flex-direction: column;
    align-items: center;
  }
  
  .stat-card {
    min-width: 200px;
  }
  
  .portfolio-controls {
    justify-content: center;
  }
  
  .portfolio-table {
    font-size: 0.8rem;
  }
  
  .portfolio-table th,
  .portfolio-table td {
    padding: 8px 6px;
  }
}

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

.portfolio-table tr {
  animation: fadeInUp 0.3s ease;
}

.portfolio-table tr:nth-child(1) { animation-delay: 0.1s; }
.portfolio-table tr:nth-child(2) { animation-delay: 0.2s; }
.portfolio-table tr:nth-child(3) { animation-delay: 0.3s; }

/* Gráfico de Preços - Estilos Modernos */
#price-chart {
  position: relative;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.chart-controls {
  display: flex;
  gap: 10px;
  align-items: center;
}

.crypto-select {
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.3);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  min-width: 150px;
}

.crypto-select:focus {
  outline: none;
  border-color: var(--primary);
}

.btn-icon {
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.3);
  color: var(--primary);
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-icon:hover {
  background: rgba(0, 255, 136, 0.2);
  transform: rotate(180deg);
}

.chart-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
  padding: 15px;
  background: rgba(0, 255, 136, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(0, 255, 136, 0.1);
}

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

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

.stat-value {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

#priceChange.positive {
  color: var(--primary);
}

#priceChange.negative {
  color: var(--error);
}

.chart-container {
  position: relative;
  height: 300px;
  margin: 20px 0;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 15px;
}

.chart-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid rgba(0, 255, 136, 0.1);
}

.time-filters {
  display: flex;
  gap: 8px;
}

.time-btn {
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.3);
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s;
}

.time-btn:hover,
.time-btn.active {
  background: var(--primary);
  color: #000;
  border-color: var(--primary);
}

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

/* Tooltip personalizado */
.chart-tooltip {
  background: var(--card) !important;
  border: 1px solid rgba(0, 255, 136, 0.3) !important;
  border-radius: 8px !important;
  padding: 10px !important;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3) !important;
}

.chart-tooltip .label {
  color: var(--text-muted) !important;
  font-size: 0.8rem !important;
}

.chart-tooltip .value {
  color: var(--primary) !important;
  font-weight: 700 !important;
}

/* Loading animation */
.chart-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--primary);
}

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

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

/* Responsividade */
@media (max-width: 768px) {
  .chart-header {
    flex-direction: column;
    align-items: stretch;
  }
  
  .chart-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .chart-footer {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  
  .time-filters {
    justify-content: center;
  }
  
  .chart-container {
    height: 250px;
  }
}

@media (max-width: 480px) {
  .chart-stats {
    grid-template-columns: 1fr;
  }
  
  .chart-controls {
    justify-content: center;
  }
  
  .crypto-select {
    min-width: 120px;
  }
}

/* Índices de Mercado - Estilos Modernos */
.indices-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  flex-wrap: wrap;
  gap: 15px;
}

.btn-refresh {
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.3);
  color: var(--primary);
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-refresh:hover {
  background: rgba(0, 255, 136, 0.2);
  transform: rotate(180deg);
}

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

.market-indices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 25px;
}

.index-card {
  background: rgba(0, 255, 136, 0.05);
  border: 1px solid rgba(0, 255, 136, 0.1);
  border-radius: 16px;
  padding: 20px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.index-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 255, 136, 0.1);
}

.index-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.index-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.index-title i {
  font-size: 1.5rem;
  color: var(--primary);
  width: 30px;
  text-align: center;
}

.index-title h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text);
}

.current-value {
  text-align: right;
}

.current-value .value {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
}

.current-value .trend {
  display: block;
  font-size: 0.8rem;
  margin-top: 2px;
}

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

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

/* Progress Bar Styles */
.chart-progress {
  margin: 15px 0;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #00ff88, #00cc6a);
  border-radius: 4px;
  transition: width 1s ease;
  width: 0%;
}

.chart-markers {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Season Meter */
.season-meter {
  margin: 20px 0;
}

.meter-scale {
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, #2ecc71, #e0e0e0);
  border-radius: 3px;
  margin-bottom: 8px;
  position: relative;
}

.meter-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 3px;
  width: 0%;
  transition: width 1s ease;
}

.meter-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Fear & Greed Meter */
.fear-greed-meter {
  margin: 20px 0;
}

.meter-scale-fg {
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, #ff0000, #ffcc00, #00ff88);
  border-radius: 3px;
  margin-bottom: 8px;
  position: relative;
}

.meter-fill-fg {
  height: 100%;
  width: 4px;
  background: white;
  border-radius: 2px;
  position: absolute;
  top: 0;
  transition: left 1s ease;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.fg-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Analysis Sections */
.index-analysis,
.season-status,
.fear-greed-analysis,
.market-cap-stats {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(0, 255, 136, 0.1);
}

.analysis-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.analysis-item .label {
  color: var(--text-muted);
}

.analysis-item .value {
  color: var(--text);
  font-weight: 600;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.status-badge.altcoin-season {
  background: rgba(46, 204, 113, 0.2);
  color: #2ecc71;
}

.status-badge.bitcoin-dominant {
  background: rgba(0, 255, 136, 0.2);
  color: var(--primary);
}

.season-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.stat {
  text-align: center;
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

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

.stat strong {
  display: block;
  font-size: 1.1rem;
  color: var(--text);
}

/* Market Cap Stats */
.market-cap-stats {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cap-stat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.stat-icon {
  width: 30px;
  height: 30px;
  background: rgba(0, 255, 136, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--primary);
}

.stat-info {
  flex: 1;
}

.stat-info span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.stat-info strong {
  display: block;
  font-size: 1rem;
  color: var(--text);
}

.market-cap-change {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-top: 10px;
}

/* Footer */
.indices-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 255, 136, 0.1);
  color: var(--text-muted);
  font-size: 0.8rem;
}

.update-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.data-source {
  opacity: 0.7;
}

/* Responsividade */
@media (max-width: 768px) {
  .market-indices-grid {
    grid-template-columns: 1fr;
  }
  
  .index-header {
    flex-direction: column;
    gap: 10px;
  }
  
  .current-value {
    text-align: left;
  }
  
  .season-stats {
    grid-template-columns: 1fr;
  }
  
  .indices-footer {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .index-card {
    padding: 15px;
  }
  
  .current-value .value {
    font-size: 1.2rem;
  }
}

/* Alertas de Preço - Estilos Modernos */
.alerts-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  position: relative;
}

.alerts-badge {
  background: var(--primary);
  color: #000;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  min-width: 25px;
  text-align: center;
}

.alerts-controls {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.alerts-filters {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.alerts-container {
  max-height: 400px;
  overflow-y: auto;
  margin-bottom: 20px;
}

.alerts-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

.alerts-empty h3 {
  margin-bottom: 10px;
  color: var(--text);
}

.alerts-empty p {
  margin-bottom: 20px;
}

.alert-item {
  background: rgba(0, 255, 136, 0.05);
  border: 1px solid rgba(0, 255, 136, 0.1);
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 12px;
  transition: all 0.3s;
  position: relative;
}

.alert-item:hover {
  background: rgba(0, 255, 136, 0.08);
  border-color: rgba(0, 255, 136, 0.3);
  transform: translateX(5px);
}

.alert-item.triggered {
  background: rgba(255, 77, 77, 0.05);
  border-color: rgba(255, 77, 77, 0.2);
  animation: pulseAlert 2s infinite;
}

@keyframes pulseAlert {
  0% { box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.2); }
  70% { box-shadow: 0 0 0 10px rgba(255, 77, 77, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 77, 77, 0); }
}

.alert-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.alert-crypto {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.alert-crypto-icon {
  width: 24px;
  height: 24px;
  background: rgba(0, 255, 136, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
}

.alert-status {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
}

.status-active {
  background: rgba(0, 255, 136, 0.2);
  color: var(--primary);
}

.status-triggered {
  background: rgba(255, 77, 77, 0.2);
  color: var(--error);
}

.alert-details {
  margin-bottom: 12px;
}

.alert-condition {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}

.condition-icon {
  width: 20px;
  text-align: center;
}

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

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

.alert-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.alert-btn {
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.3s;
}

.btn-edit {
  background: rgba(0, 255, 136, 0.2);
  color: var(--primary);
}

.btn-delete {
  background: rgba(255, 77, 77, 0.2);
  color: var(--error);
}

.btn-snooze {
  background: rgba(255, 193, 7, 0.2);
  color: #ffc107;
}

.alert-btn:hover {
  transform: scale(1.05);
}

.alert-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(0, 255, 136, 0.1);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.alert-timestamp {
  display: flex;
  align-items: center;
  gap: 5px;
}

.alerts-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid rgba(0, 255, 136, 0.1);
}

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

/* Notificação customizada */
.notification-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--card);
  border: 2px solid var(--primary);
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 5px 25px rgba(0, 255, 136, 0.3);
  z-index: 10000;
  max-width: 350px;
  animation: slideInRight 0.3s ease;
}

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

.notification-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.notification-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--primary);
}

.notification-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.2rem;
}

.notification-body {
  margin-bottom: 10px;
}

.notification-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin: 5px 0;
}

.notification-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Responsividade */
@media (max-width: 768px) {
  .alerts-filters {
    grid-template-columns: 1fr;
  }
  
  .alerts-controls {
    flex-direction: column;
  }
  
  .alert-header {
    flex-direction: column;
    gap: 8px;
  }
  
  .alert-actions {
    justify-content: flex-start;
  }
  
  .alerts-footer {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  
  .notification-toast {
    left: 20px;
    right: 20px;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .alert-item {
    padding: 12px;
  }
  
  .alert-actions {
    flex-wrap: wrap;
  }
  
  .alert-btn {
    flex: 1;
    min-width: 60px;
  }
}

/* Calculadora de Trade - Estilos Modernos */
.calculator-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

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

.calculator-tabs {
  display: flex;
  background: rgba(0, 255, 136, 0.05);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 20px;
}

.calc-tab {
  flex: 1;
  padding: 10px 15px;
  border: none;
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s;
}

.calc-tab.active {
  background: var(--primary);
  color: #000;
}

.calc-tab:hover:not(.active) {
  background: rgba(0, 255, 136, 0.1);
  color: var(--text);
}

.calculator-content {
  margin-bottom: 20px;
}

.calc-tab-content {
  display: none;
}

.calc-tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.calc-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.calc-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text);
  font-size: 0.9rem;
}

.calc-label i {
  width: 16px;
  text-align: center;
}

.calc-select,
.calc-input {
  padding: 12px 15px;
  border: 2px solid rgba(0, 255, 136, 0.2);
  border-radius: 8px;
  background: rgba(0, 255, 136, 0.05);
  color: var(--text);
  font-size: 1rem;
  transition: all 0.3s;
}

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

.calc-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.calc-btn-small {
  padding: 8px 12px;
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.3);
  border-radius: 6px;
  color: var(--primary);
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.3s;
}

.calc-btn-small:hover {
  background: rgba(0, 255, 136, 0.2);
}

.calc-risk-reward {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.risk-meter {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.risk-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s ease;
}

.risk-good { background: linear-gradient(90deg, #00ff88, #00cc6a); }
.risk-medium { background: linear-gradient(90deg, #ffc107, #ff9800); }
.risk-high { background: linear-gradient(90deg, #ff4d4d, #cc0000); }

.calculator-actions-main {
  display: flex;
  gap: 12px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.calc-btn-main {
  flex: 1;
  padding: 15px 25px;
  font-size: 1.1rem;
  font-weight: 600;
}

/* Resultados */
.calculator-results {
  background: rgba(0, 255, 136, 0.05);
  border: 1px solid rgba(0, 255, 136, 0.1);
  border-radius: 16px;
  padding: 20px;
  display: none;
}

.calculator-results.show {
  display: block;
  animation: slideInUp 0.5s ease;
}

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

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(0, 255, 136, 0.1);
}

.results-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
}

.badge-profit { background: rgba(0, 255, 136, 0.2); color: var(--primary); }
.badge-loss { background: rgba(255, 77, 77, 0.2); color: var(--error); }
.badge-neutral { background: rgba(255, 193, 7, 0.2); color: #ffc107; }

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.result-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(0, 255, 136, 0.1);
}

.result-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.result-info {
  flex: 1;
}

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

.result-value {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}

.value-profit { color: var(--primary); }
.value-loss { color: var(--error); }

.results-details {
  margin-bottom: 20px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 255, 136, 0.05);
}

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

.results-analysis {
  padding: 15px;
  background: rgba(0, 255, 136, 0.1);
  border-radius: 12px;
  border-left: 4px solid var(--primary);
}

.results-analysis h4 {
  margin-bottom: 10px;
  color: var(--text);
}

.results-analysis p {
  color: var(--text);
  line-height: 1.5;
  margin: 0;
}

/* Responsividade */
@media (max-width: 768px) {
  .calc-grid {
    grid-template-columns: 1fr;
  }
  
  .results-grid {
    grid-template-columns: 1fr;
  }
  
  .calculator-actions-main {
    flex-direction: column;
  }
  
  .calc-btn-main {
    width: 100%;
  }
  
  .result-card {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .calculator-tabs {
    flex-direction: column;
  }
  
  .calc-tab {
    padding: 12px;
  }
  
  .results-header {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

/* Gerenciador de Risco - Estilos Modernos */
.risk-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.risk-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-conservador { background: rgba(0, 255, 136, 0.2); color: var(--primary); }
.badge-moderado { background: rgba(255, 193, 7, 0.2); color: #ffc107; }
.badge-arrojado { background: rgba(255, 152, 0, 0.2); color: #ff9800; }
.badge-agressivo { background: rgba(255, 77, 77, 0.2); color: var(--error); }

.risk-controls {
  margin-bottom: 20px;
}

.risk-tabs {
  display: flex;
  background: rgba(0, 255, 136, 0.05);
  border-radius: 12px;
  padding: 4px;
}

.risk-tab {
  flex: 1;
  padding: 10px 15px;
  border: none;
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s;
  font-size: 0.9rem;
}

.risk-tab.active {
  background: var(--primary);
  color: #000;
}

.risk-tab:hover:not(.active) {
  background: rgba(0, 255, 136, 0.1);
  color: var(--text);
}

.risk-content {
  margin-bottom: 20px;
}

.risk-tab-content {
  display: none;
}

.risk-tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.risk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 15px;
}

.risk-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.risk-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text);
  font-size: 0.9rem;
}

.risk-label i {
  width: 16px;
  text-align: center;
}

.risk-input,
.risk-select {
  padding: 12px 15px;
  border: 2px solid rgba(0, 255, 136, 0.2);
  border-radius: 8px;
  background: rgba(0, 255, 136, 0.05);
  color: var(--text);
  font-size: 1rem;
  transition: all 0.3s;
}

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

.risk-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.risk-slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  -webkit-appearance: none;
}

.risk-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: 2px solid #000;
}

.risk-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: 2px solid #000;
}

.slider-values {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 5px;
}

.slider-values span:nth-child(2) {
  color: var(--primary);
  font-weight: 700;
}

.risk-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.risk-btn-main {
  flex: 1;
  padding: 15px 25px;
  font-size: 1.1rem;
  font-weight: 600;
}

/* Resultados */
.risk-results {
  background: rgba(0, 255, 136, 0.05);
  border: 1px solid rgba(0, 255, 136, 0.1);
  border-radius: 16px;
  padding: 20px;
  display: none;
}

.risk-results.show {
  display: block;
  animation: slideInUp 0.5s ease;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(0, 255, 136, 0.1);
}

.risk-score {
  padding: 8px 16px;
  background: rgba(0, 255, 136, 0.2);
  border-radius: 20px;
  font-weight: 700;
  color: var(--primary);
}

.risk-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.metric-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(0, 255, 136, 0.1);
}

.metric-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.metric-info {
  flex: 1;
}

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

.metric-value {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.risk-analysis {
  margin-bottom: 20px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
}

.risk-analysis h4 {
  margin-bottom: 15px;
  color: var(--text);
}

.recommendation-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.recommendation-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  background: rgba(0, 255, 136, 0.05);
  border-radius: 8px;
  border-left: 3px solid var(--primary);
}

.recommendation-item i {
  margin-top: 2px;
}

.risk-breakdown {
  margin-bottom: 20px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
}

.risk-breakdown h4 {
  margin-bottom: 15px;
  color: var(--text);
}

.breakdown-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.breakdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 255, 136, 0.05);
}

.breakdown-item:last-child {
  border-bottom: none;
}

.breakdown-item span:first-child {
  color: var(--text-muted);
}

.breakdown-item span:last-child {
  font-weight: 600;
  color: var(--text);
}

.risk-protection {
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border-left: 4px solid var(--primary);
}

.risk-protection h4 {
  margin-bottom: 10px;
  color: var(--text);
}

/* Responsividade */
@media (max-width: 768px) {
  .risk-grid {
    grid-template-columns: 1fr;
  }
  
  .risk-metrics {
    grid-template-columns: 1fr;
  }
  
  .breakdown-grid {
    grid-template-columns: 1fr;
  }
  
  .risk-actions {
    flex-direction: column;
  }
  
  .risk-btn-main {
    width: 100%;
  }
  
  .results-header {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .risk-tabs {
    flex-direction: column;
  }
  
  .risk-tab {
    padding: 12px;
  }
  
  .metric-card {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}

/* Corrigir botões que vazam para fora da tela */
#modeToggle,
#themeToggle {
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* Garantir que os botões no header não ultrapassem */
.header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap; /* força quebra em telas pequenas */
    justify-content: flex-end;
}

/* Corrigir botão do chat IA */
#chatToggle {
    right: 20px;  /* menos afastado da borda */
    bottom: 20px;
    max-width: calc(100% - 40px); /* evita passar da tela */
    overflow: hidden;
}

@media (max-width: 480px) {
    #chatToggle {
        right: 10px;
        bottom: 10px;
        width: 50px;
        height: 50px;
    }

    .header-actions {
        justify-content: center; /* centraliza os botões no mobile */
    }
}



/* ======================================================
   HOTFIX - Mobile overflow (buttons leaking on small phones)
   Place at the very end of styles.css so it overrides earlier rules
   Tested idea: allow wrapping, let text shrink, cap tooltips, and shrink buttons a bit on tiny widths
   ====================================================== */

html, body {
  max-width: 100%;
  overflow-x: hidden; /* kill horizontal scroll if anything slips */
}

/* Header rows can wrap on small screens */
.professional-header,
.app-header,
header {
  display: flex;
  flex-wrap: wrap;
}

/* Let the logo/text side shrink instead of forcing overflow */
.header-logo,
.logo,
.logo-text {
  min-width: 0;      /* critical for flex children to shrink */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Make action areas wrap when needed */
.header-actions,
.header-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

/* Tooltips should not push layout horizontally */
.control-btn,
.action-btn {
  position: relative; /* contain pseudo tooltip */
}

.control-btn::after,
.tooltip {
  max-width: calc(100vw - 40px);
  white-space: normal;        /* allow wrapping */
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* Extra safety for common fixed-size round buttons */
@media (max-width: 420px) {
  .professional-header,
  .app-header,
  header {
    padding-left: 10px;
    padding-right: 10px;
  }

  .action-btn,
  .control-btn,
  .btn-icon {
    width: 36px !important;
    height: 36px !important;
  }

  .header-actions,
  .header-controls {
    gap: 8px;
    justify-content: center; /* stack/center if needed */
  }
}

/* Generic safety: images and SVG never exceed viewport */
img, svg, canvas, video {
  max-width: 100%;
  height: auto;
}

/* Make flex children allowed to shrink */
.header-actions > *,
.header-controls > * {
  min-width: 0;
  max-width: 100%;
}

/* Exemplo de melhoria para tabelas */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

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

[data-theme="light"] .metric-card {
  border-left: 3px solid var(--primary-dark);
}

/* Menu Mobile */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1000;
}

/* Mostrar o botão de menu em todas as resoluções */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1000;
}

/* Esconder a navegação principal apenas em mobile */
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  
  .header-right {
    display: none;
  }
}

/* Manter o estilo das barras do menu */
.menu-bar {
  width: 100%;
  height: 3px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-bar {
  width: 100%;
  height: 3px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100vh;
  background: var(--card);
  z-index: 999;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.mobile-nav.active {
  right: 0;
}

.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

.nav-header {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(0, 255, 136, 0.1);
}

.nav-header h3 {
  color: var(--primary);
  margin: 0;
}

.close-menu {
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform 0.3s;
}

.close-menu:hover {
  transform: rotate(90deg);
}

.nav-controls {
  padding: 20px;
  border-bottom: 1px solid rgba(0, 255, 136, 0.1);
}

.nav-control-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.nav-control-item:last-child {
  margin-bottom: 0;
}

.nav-control-item i {
  margin-right: 12px;
  color: var(--primary);
  width: 20px;
  text-align: center;
}

.nav-control-item span {
  flex: 1;
  font-weight: 500;
}

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

.nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
}

.nav-links li {
  border-bottom: 1px solid rgba(0, 255, 136, 0.05);
}

.nav-links a {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  color: var(--text);
  text-decoration: none;
  transition: all 0.3s;
}

.nav-links a:hover {
  background: rgba(0, 255, 136, 0.1);
  padding-left: 25px;
}

.nav-links i {
  margin-right: 12px;
  color: var(--primary);
  width: 20px;
  text-align: center;
}

.nav-footer {
  padding: 15px 20px;
  text-align: center;
  border-top: 1px solid rgba(0, 255, 136, 0.1);
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Esconder navegação principal em mobile */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  
  .main-nav {
    display: none;
  }
  
  .header-right {
    display: none;
  }
}

/* Correções para tema claro */
[data-theme="light"] .metric-card {
  background: rgba(0, 165, 90, 0.05);
  border-left: 3px solid var(--primary);
}

[data-theme="light"] .user-count,
[data-theme="light"] .user-count i {
  color: var(--text) !important;
}

[data-theme="light"] .card {
  border: 1px solid rgba(0, 165, 90, 0.2);
}

[data-theme="light"] .platform-card {
  border-top: 3px solid rgba(0, 165, 90, 0.3);
}

[data-theme="light"] .platform-card.binance {
  border-top: 3px solid #f0b90b;
}

[data-theme="light"] .platform-card.bybit {
  border-top: 3px solid #2b71ff;
}

[data-theme="light"] .exchange-card {
  border: 1px solid rgba(0, 165, 90, 0.2);
}

[data-theme="light"] .tab-btn {
  background: rgba(0, 165, 90, 0.1);
  color: var(--primary-dark);
}

[data-theme="light"] .tab-btn.active {
  background: var(--primary);
  color: #fff;
}

[data-theme="light"] .termo-card,
[data-theme="light"] .tutorial-card {
  border: 1px solid rgba(0, 165, 90, 0.2);
}

[data-theme="light"] .search-box i {
  color: var(--primary-dark);
}

/* Garantir que textos sejam visíveis no tema claro */
[data-theme="light"] .text-muted {
  color: #666 !important;
}

[data-theme="light"] .stat-label,
[data-theme="light"] .chart-update,
[data-theme="light"] .alerts-info,
[data-theme="light"] .update-info {
  color: #666;
}

/* Chat IA melhorado */
#aiChatContainer {
  position: fixed;
  bottom: 90px;
  right: 30px;
  width: 380px;
  height: 500px;
  background: var(--card);
  border-radius: 15px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
  display: none;
  z-index: 1000;
  overflow: hidden;
  border: 1px solid rgba(0, 255, 136, 0.3);
  flex-direction: column;
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background: rgba(0, 255, 136, 0.1);
  border-bottom: 1px solid rgba(0, 255, 136, 0.2);
}

.chat-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-title h3 {
  margin: 0;
  color: var(--text);
  font-size: 1.1rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #00ff88;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

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

.chat-actions {
  display: flex;
  gap: 10px;
}

.chat-actions button {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  transition: color 0.3s;
}

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

#chatContent {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.message {
  display: flex;
  gap: 10px;
  max-width: 100%;
}

.bot-message {
  align-self: flex-start;
}

.user-message {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.message-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 255, 136, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.user-message .message-avatar {
  background: rgba(41, 128, 185, 0.2);
}

.message-content {
  background: rgba(0, 255, 136, 0.1);
  padding: 12px 15px;
  border-radius: 18px;
  max-width: 75%;
}

.user-message .message-content {
  background: rgba(41, 128, 185, 0.1);
}

.message-content p {
  margin: 0 0 10px 0;
  line-height: 1.4;
}

.message-time {
  font-size: 0.7rem;
  color: var(--text-muted);
  display: block;
  text-align: right;
}

.quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.quick-reply {
  background: rgba(0, 255, 136, 0.2);
  border: 1px solid rgba(0, 255, 136, 0.3);
  border-radius: 15px;
  padding: 6px 12px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s;
  color: var(--text);
}

.quick-reply:hover {
  background: rgba(0, 255, 136, 0.3);
}

.chat-input-container {
  display: flex;
  align-items: center;
  padding: 15px;
  border-top: 1px solid rgba(0, 255, 136, 0.1);
  gap: 10px;
}

.chat-input-container button {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
  transition: color 0.3s;
}

.chat-input-container button:hover {
  color: var(--primary);
}

#userInput {
  flex: 1;
  padding: 12px 15px;
  border: 1px solid rgba(0, 255, 136, 0.3);
  border-radius: 20px;
  background: rgba(0, 255, 136, 0.05);
  color: var(--text);
}

#userInput:focus {
  outline: none;
  border-color: var(--primary);
}

.chat-options-menu {
  position: absolute;
  bottom: 70px;
  left: 15px;
  right: 15px;
  background: var(--card);
  border: 1px solid rgba(0, 255, 136, 0.2);
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
  display: none;
  z-index: 1001;
  max-height: 300px;
  overflow-y: auto;
}

.chat-options-menu .option-group {
  margin-bottom: 15px;
}

.chat-options-menu .option-group:last-child {
  margin-bottom: 0;
}

.chat-options-menu .option-group h4 {
  margin: 0 0 10px 0;
  color: var(--primary);
  font-size: 0.9rem;
}

.chat-options-menu .option-group button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 8px 10px;
  color: var(--text);
  cursor: pointer;
  border-radius: 5px;
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.chat-options-menu .option-group button:hover {
  background: rgba(0, 255, 136, 0.1);
}

/* Tema claro para o chat */
[data-theme="light"] #aiChatContainer {
  border: 1px solid rgba(0, 165, 90, 0.3);
}

[data-theme="light"] .chat-header {
  background: rgba(0, 165, 90, 0.1);
  border-bottom: 1px solid rgba(0, 165, 90, 0.2);
}

[data-theme="light"] .message-content {
  background: rgba(0, 165, 90, 0.1);
}

[data-theme="light"] .user-message .message-content {
  background: rgba(41, 128, 185, 0.1);
}

[data-theme="light"] .quick-reply {
  background: rgba(0, 165, 90, 0.2);
  border: 1px solid rgba(0, 165, 90, 0.3);
}

[data-theme="light"] #userInput {
  border: 1px solid rgba(0, 165, 90, 0.3);
  background: rgba(0, 165, 90, 0.05);
}

[data-theme="light"] .chat-options-menu {
  border: 1px solid rgba(0, 165, 90, 0.2);
}

/* Controles do Header */
.header-controls {
  display: flex;
  gap: 10px;
  margin-left: auto;
  align-items: center;
}

.btn-icon {
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.3);
  border-radius: 8px;
  padding: 10px;
  color: var(--primary);
  cursor: pointer;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-icon:hover {
  background: rgba(0, 255, 136, 0.2);
  transform: translateY(-2px);
}

/* Modo avançado */
.advanced-mode {
  display: none;
}

[data-mode="advanced"] .advanced-mode {
  display: block;
}

/* Botão voltar ao topo */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--primary);
  color: #1a1a2e;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.visible {
  opacity: 1;
}

.back-to-top:hover {
  transform: translateY(-3px);
}

/* Animações */
.icon-bounce {
  animation: bounce 0.5s ease;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
  40% {transform: translateY(-5px);}
  60% {transform: translateY(-2px);}
}

/* Menu Mobile melhorado */
.mobile-nav.active {
  transform: translateX(0);
}

.nav-overlay.active {
  display: block;
}

/* linhas/colunas que separam bloquinhos */
.metric-card { border-left: 3px solid rgba(0,255,136,.35); }

[data-theme="light"] .metric-card {
  border-left: 3px solid rgba(0,165,90,.55); /* mais visível no claro */
}

/* textos que sumiam porque estavam #fff fixo */
.text, .kpi, .muted { color: var(--text); }


.fg-bar {
  position: relative;
  height: 6px;
  background: #444;
  border-radius: 3px;
}
.fg-point {
  position: absolute;
  top: -5px;
  width: 16px;
  height: 16px;
  background: #00ff88;
  border-radius: 50%;
}

/* Correção do botão voltar ao topo */
.back-to-top {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--bg-primary);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(0, 255, 136, 0.3);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.back-to-top.show {
    opacity: 1;
}

/* Ocultar botão do chat IA na página inicial */
#chatToggle {
    display: none;
}

/* Manter apenas no menu mobile */
.mobile-nav #chatToggle {
    display: flex;
}

/* Estilos para o botão voltar ao topo */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: all 0.3s ease;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* Estilos para alertas */
.alert-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    border-left: 4px solid var(--primary);
    border-radius: 4px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 1001;
    max-width: 350px;
    animation: slideInRight 0.3s ease;
}

.toast-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.toast-header i {
    color: var(--primary);
    margin-right: 8px;
}

.toast-header strong {
    flex-grow: 1;
}

.toast-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #999;
}

.toast-close:hover {
    color: #333;
}

/* Estilos para itens de alerta */
.alert-item {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    border-left: 4px solid var(--primary);
}

.alert-item.triggered {
    border-left-color: var(--accent);
}

.alert-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.alert-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.alert-status.active {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}

.alert-status.inactive {
    background: rgba(158, 158, 158, 0.2);
    color: #9E9E9E;
}

.alert-status.triggered {
    background: rgba(255, 152, 0, 0.2);
    color: #FF9800;
}

.alert-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

/* Estilos para glossário */
.glossary-item {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.glossary-item h4 {
    margin: 0 0 8px 0;
    color: var(--primary);
}

/* Estilos para tutoriais */
.tutorial-item {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.tutorial-item h4 {
    margin: 0 0 10px 0;
    color: var(--primary);
}

/* Estilos para calculadora */
.calc-tab-content, .risk-tab-content {
    display: none;
}

.calc-tab-content.active, .risk-tab-content.active {
    display: block;
}

.calc-result, .risk-result {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    display: none;
}

.value-profit {
    color: #4CAF50;
    font-weight: bold;
}

.value-loss {
    color: #F44336;
    font-weight: bold;
}

.badge-profit, .badge-loss {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.badge-profit {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}

.badge-loss {
    background: rgba(244, 67, 54, 0.2);
    color: #F44336;
}

/* Estilos para gerenciador de risco */
.risk-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.risk-low {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}

.risk-moderate {
    background: rgba(255, 152, 0, 0.2);
    color: #FF9800;
}

.risk-high {
    background: rgba(255, 87, 34, 0.2);
    color: #FF5722;
}

.risk-very-high {
    background: rgba(244, 67, 54, 0.2);
    color: #F44336;
}

.recommendation-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.recommendation-item i {
    color: #4CAF50;
    margin-right: 10px;
}

/* Estilos para botão copiar PIX */
.btn-copy.copied {
    background: #4CAF50;
}

/* Animações */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Estilos para o botão voltar ao topo */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: all 0.3s ease;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* Estilos para alertas */
.alert-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    border-left: 4px solid var(--primary);
    border-radius: 4px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 1001;
    max-width: 350px;
    animation: slideInRight 0.3s ease;
}

.toast-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.toast-header i {
    color: var(--primary);
    margin-right: 8px;
}

.toast-header strong {
    flex-grow: 1;
}

.toast-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #999;
}

.toast-close:hover {
    color: #333;
}

/* Estilos para itens de alerta */
.alert-item {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    border-left: 4px solid var(--primary);
}

.alert-item.triggered {
    border-left-color: var(--accent);
}

.alert-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.alert-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.alert-status.active {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}

.alert-status.inactive {
    background: rgba(158, 158, 158, 0.2);
    color: #9E9E9E;
}

.alert-status.triggered {
    background: rgba(255, 152, 0, 0.2);
    color: #FF9800;
}

.alert-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

/* Estilos para glossário */
.glossary-item {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.glossary-item h4 {
    margin: 0 0 8px 0;
    color: var(--primary);
}

/* Estilos para tutoriais */
.tutorial-item {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.tutorial-item h4 {
    margin: 0 0 10px 0;
    color: var(--primary);
}

/* Estilos para abas */
.tab-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 10px 20px;
    background: var(--card-bg);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.tab-content {
    display: none;
}

/* Animações */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Cores para valores positivos e negativos */
.positive {
    color: #00ff88 !important; /* Verde neon */
}

.negative {
    color: #ff3333 !important; /* Vermelho */
}

/* Estilo específico para a variação */
#variation {
    font-size: 1rem;
    margin: 8px 0;
    font-weight: 500;
}

/* Estilo para o preço principal */
.price {
    font-size: 2.2rem;
    font-weight: bold;
    margin: 10px 0;
    color: var(--text-primary);
}

/* Estilo para as métricas */
.metric-card h3 {
    font-size: 1.3rem;
    margin: 8px 0;
}

.metric-card p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.9rem;
}


.positive {
    color: #00ff88 !important;
}

.negative {
    color: #ff3333 !important;
}

.variation-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.9em;
}

.variation-badge.positive {
    background: rgba(0, 255, 136, 0.15);
}

.variation-badge.negative {
    background: rgba(255, 51, 51, 0.15);
}

/* Quando o menu está aberto, transformar as barras em X */
.menu-toggle.active .menu-bar:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}

.menu-toggle.active .menu-bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .menu-bar:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
}

/* Garantir que o botão de fechar do menu fique acima de tudo */
.close-menu {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1002;
}

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

.section-title {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(0, 255, 136, 0.2);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.full-width-card {
  grid-column: 1 / -1;
}

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

@media (max-width: 1100px) {
  .two-column-card {
    grid-column: 1 / -1;
  }
}

.tools-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.tool-tab {
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  border-radius: 8px;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.tool-tab:hover {
  background: rgba(255, 255, 255, 0.1);
}

.tool-tab.active {
  background: var(--primary);
  color: #1a1a2e;
  font-weight: 600;
}

.tool-content {
  margin-top: 20px;
}

.tool-panel {
  display: none;
}

.tool-panel.active {
  display: block;
}

.partner-section {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.05) 0%, rgba(0, 153, 255, 0.05) 100%);
  border: 1px solid rgba(0, 255, 136, 0.1);
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.partner-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  padding: 15px;
  transition: var(--transition);
  border: 1px solid rgba(0, 255, 136, 0.1);
}

.partner-card:hover {
  background: rgba(0, 255, 136, 0.05);
  transform: translateY(-3px);
}

.partner-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.partner-name {
  font-weight: 600;
  color: var(--text);
}

.partner-rating {
  color: var(--warning);
  font-size: 0.9rem;
}

.partner-details {
  margin-bottom: 15px;
}

.partner-details p {
  margin: 5px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.partner-link {
  display: block;
  text-align: center;
  background: var(--primary);
  color: #1a1a2e;
  padding: 8px 15px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.partner-link:hover {
  background: #00e679;
}

.hidden-in-beginner {
  display: block;
}

[data-mode="beginner"] .hidden-in-beginner {
  display: none;
}

@media (max-width: 768px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }
  
  .tools-tabs {
    overflow-x: auto;
    padding-bottom: 10px;
  }
  
  .tool-tab {
    white-space: nowrap;
  }
}

/* Estilos para a seção de parceiros */
.featured-partner {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.08) 0%, rgba(0, 153, 255, 0.08) 100%);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid rgba(0, 255, 136, 0.15);
  margin-bottom: 30px;
}

.featured-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  position: relative;
}

.featured-info {
  flex: 1;
}

.featured-info h3 {
  margin: 0 0 5px 0;
  color: var(--text);
}

.featured-badge {
  background: var(--primary);
  color: #1a1a2e;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.featured-details {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: end;
}

.featured-benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.benefit {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

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

.featured-cta {
  background: var(--primary);
  color: #1a1a2e;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: var(--transition);
  font-weight: 600;
}

.featured-cta:hover {
  background: #00e679;
  transform: translateY(-2px);
}

.cta-text {
  font-size: 1rem;
}

.cta-subtext {
  font-size: 0.8rem;
  opacity: 0.8;
}

.user-count {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 10px 0 0 0;
}

/* Tabela de comparação */
.table-responsive {
  overflow-x: auto;
  margin: 20px 0;
}

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

.fee-comparison th {
  background: rgba(255, 255, 255, 0.05);
  padding: 12px 15px;
  text-align: left;
  font-weight: 600;
  color: var(--text);
}

.fee-comparison td {
  padding: 12px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.exchange-table-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rating {
  color: var(--warning);
  font-weight: 600;
}

.table-link {
  background: rgba(0, 255, 136, 0.1);
  color: var(--primary);
  padding: 6px 12px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.85rem;
  transition: var(--transition);
}

.table-link:hover {
  background: rgba(0, 255, 136, 0.2);
}

/* Responsividade */
@media (max-width: 768px) {
  .featured-details {
    grid-template-columns: 1fr;
  }
  
  .featured-benefits {
    grid-template-columns: 1fr;
  }
  
  .featured-cta {
    margin-top: 15px;
  }
}

/* Estilo para as notícias */
.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.news-item {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.news-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  border-color: var(--primary);
}

.news-item h3 {
  margin: 0 0 0.8rem 0;
  font-size: 1.1rem;
  color: var(--text-primary);
  line-height: 1.4;
}

.news-item p {
  margin: 0 0 1rem 0;
  color: var(--text-secondary);
  line-height: 1.5;
  flex-grow: 1;
}

.news-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 0.8rem;
  margin-top: auto;
}

.news-footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

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

.news-footer a::after {
  content: "→";
  transition: transform 0.3s ease;
}

.news-footer a:hover::after {
  transform: translateX(3px);
}

/* Layout responsivo para notícias */
@media (min-width: 768px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .two-column-card .news-grid {
    grid-template-columns: 1fr;
  }
}

/* Estilo para os tutoriais */
.tutorials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  margin-top: 1rem;
}

.tutorial-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.tutorial-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  border-color: var(--primary);
}

.tutorial-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tutorial-header h4 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text-primary);
  flex: 1;
  min-width: 200px;
}

.tutorial-meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.difficulty-badge {
  padding: 0.3rem 0.6rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.difficulty-badge.iniciante {
  background: rgba(0, 255, 136, 0.15);
  color: #00ff88;
}

.difficulty-badge.intermediário {
  background: rgba(255, 193, 7, 0.15);
  color: #ffc107;
}

.difficulty-badge.avançado {
  background: rgba(255, 51, 51, 0.15);
  color: #ff3333;
}

.duration {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.duration::before {
  content: "⏱";
}

.tutorial-card p {
  margin: 0 0 1.5rem 0;
  color: var(--text-secondary);
  line-height: 1.6;
}

.tutorial-btn {
  width: 100%;
  justify-content: center;
}

/* Layout responsivo para tutoriais */
@media (min-width: 768px) {
  .tutorials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ESTILOS PARA A SEÇÃO DE NOTÍCIAS */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
  margin-top: 15px;
}

.news-item {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0, 255, 136, 0.1);
  animation: fadeInUp 0.5s ease forwards;
  opacity: 0;
}

.news-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 255, 136, 0.15);
  border-color: rgba(0, 255, 136, 0.3);
}

.news-image {
  height: 160px;
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-item:hover .news-image img {
  transform: scale(1.05);
}

.news-content {
  padding: 20px;
}

.news-content h3 {
  color: var(--text-primary);
  font-size: 1.1rem;
  margin-bottom: 10px;
  line-height: 1.4;
}

.news-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 15px;
}

.news-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
  font-size: 0.8rem;
}

.news-source {
  color: var(--primary);
  font-weight: 600;
  background: rgba(0, 255, 136, 0.1);
  padding: 4px 8px;
  border-radius: 4px;
}

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

.news-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.news-link:hover {
  color: #00cc77;
}

/* Animações para as notícias */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsividade */
@media (max-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
  
  .news-item {
    margin-bottom: 15px;
  }
}

/* Estilos para o Chat IA */
#aiChatContainer {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 350px;
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(0, 255, 136, 0.2);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s ease;
}

#aiChatContainer.active {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}

.chat-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #00ff88, #00ccff);
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 5px 15px rgba(0, 255, 136, 0.3);
  transition: all 0.3s ease;
}

.chat-toggle.active {
  transform: rotate(360deg);
  background: linear-gradient(135deg, #ff3333, #ff9966);
}

.chat-notification {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 20px;
  height: 20px;
  background: #ff3333;
  border-radius: 50%;
  color: white;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-message {
  margin-bottom: 15px;
  display: flex;
}

.chat-message.user {
  justify-content: flex-end;
}

.chat-message.assistant {
  justify-content: flex-start;
}

.message-content {
  max-width: 80%;
  padding: 10px 15px;
  border-radius: 18px;
}

.user .message-content {
  background: rgba(0, 255, 136, 0.2);
  border-bottom-right-radius: 5px;
}

.assistant .message-content {
  background: rgba(41, 128, 185, 0.2);
  border-bottom-left-radius: 5px;
}

.message-text {
  margin: 0;
  color: var(--text-primary);
}

.message-time {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 5px;
  text-align: right;
}

/* Para mobile */
@media (max-width: 768px) {
  #aiChatContainer {
    width: 90%;
    right: 5%;
    bottom: 80px;
  }
  
  .chat-toggle {
    bottom: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
  }
}

/* Garantir que o header tenha espaçamento */
.app-header, 
header, 
.professional-header {
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box !important;
}

/* Espaçamento específico para os elementos internos */
.header-logo,
.header-actions {
    padding: 0 10px;
}

.news-loading, .news-empty {
  text-align: center;
  padding: 2rem;
  color: var(--text-secondary);
}

.news-loading i, .news-empty i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.news-loading, .news-empty, .news-error {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--text-secondary);
}

.news-loading i, .news-empty i, .news-error i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.news-error {
  color: #ff6b6b;
}

.news-error i {
  color: #ff6b6b;
}

/* Estilos do Fear & Greed Index */
.fear-greed-card {
  background: var(--card-bg);
  border-radius: 15px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
}

.fear-greed-value {
  text-align: center;
  margin-bottom: 1.5rem;
}

#fear-greed-indicator {
  font-size: 2.5rem;
  font-weight: bold;
  display: block;
  margin-bottom: 0.5rem;
  padding: 0.5rem;
  border-radius: 10px;
}

#fear-greed-text {
  font-size: 1.2rem;
  color: var(--text-secondary);
}

.fear-greed-scale {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.fear-greed-scale span {
  font-size: 0.9rem;
  color: var(--text-secondary);
  flex: 1;
  text-align: center;
}

.scale-bar {
  flex: 2;
  height: 8px;
  background: var(--bg-secondary);
  border-radius: 4px;
  margin: 0 0.5rem;
  position: relative;
}

.scale-fill {
  height: 100%;
  border-radius: 4px;
  width: 0%;
  transition: width 0.5s ease;
}

.fear-greed-update {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Cores do Fear & Greed */
.extreme-fear { color: #ff6b6b; background: rgba(255, 107, 107, 0.1); }
.fear { color: #ff9e6b; background: rgba(255, 158, 107, 0.1); }
.neutral { color: #ffd166; background: rgba(255, 209, 102, 0.1); }
.greed { color: #06d6a0; background: rgba(6, 214, 160, 0.1); }
.extreme-greed { color: #00ff88; background: rgba(0, 255, 136, 0.1); }

/* Fear & Greed Meter */
.fear-greed-meter {
  margin: 1rem 0;
}

.meter-scale-fg {
  width: 100%;
  height: 8px;
  background: var(--bg-secondary);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.meter-fill-fg {
  height: 100%;
  width: 0%;
  transition: width 0.5s ease;
  border-radius: 4px;
}

.fg-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.fg-status {
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

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

/* Forçar layout em coluna no desktop para essas seções */
#market-overview .cards-grid,
#education-news .cards-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Os cards ocupam sempre toda a largura */
#market-overview .cards-grid .card,
#education-news .cards-grid .card {
    width: 100%;
}

/* Botão Chat IA Fixo */
.chat-toggle-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00ff88, #00ccff);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s ease;
}

.chat-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 255, 136, 0.5);
}

.chat-toggle-btn.active {
    background: linear-gradient(135deg, #ff3333, #ff6b6b);
}

/* Container do Chat IA */
.ai-chat-container {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    height: 500px;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    z-index: 999;
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    transition: all 0.3s ease;
    visibility: hidden;
}

.ai-chat-container.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    visibility: visible;
}

.chat-header {
    padding: 15px;
    background: linear-gradient(135deg, #00ff88, #00ccff);
    color: white;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    margin: 0;
    font-size: 16px;
}

.chat-close-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 18px;
}

.chat-content {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-input-container {
    padding: 15px;
    display: flex;
    gap: 10px;
    border-top: 1px solid var(--border-color);
}

.chat-input-container input {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.chat-input-container button {
    padding: 10px 15px;
    border: none;
    border-radius: 20px;
    background: linear-gradient(135deg, #00ff88, #00ccff);
    color: white;
    cursor: pointer;
}

/* Mensagens do chat */
.chat-message {
    display: flex;
    margin-bottom: 15px;
}

.chat-message.user {
    justify-content: flex-end;
}

.chat-message.assistant {
    justify-content: flex-start;
}

.message-content {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 18px;
}

.chat-message.user .message-content {
    background: linear-gradient(135deg, #00ccff, #00ff88);
    color: white;
    border-bottom-right-radius: 5px;
}

.chat-message.assistant .message-content {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-bottom-left-radius: 5px;
}

.message-time {
    font-size: 10px;
    opacity: 0.7;
    margin-top: 5px;
    text-align: right;
}

/* Estilos para o botão do chat IA */
.chat-toggle-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: all 0.3s ease;
}

.chat-toggle-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Container do chat */
.ai-chat-container {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 350px;
  height: 450px;
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.ai-chat-container.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.chat-header {
  padding: 15px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-close-btn {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 18px;
}

.chat-content {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  background: var(--bg-color);
}

.chat-input-container {
  display: flex;
  padding: 15px;
  border-top: 1px solid var(--border-color);
  background: var(--card-bg);
}

.chat-input-container input {
  flex: 1;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  margin-right: 10px;
  background: var(--bg-color);
  color: var(--text-color);
}

.chat-input-container button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  border: none;
  cursor: pointer;
}

/* Mensagens do chat */
.chat-message {
  margin-bottom: 15px;
  padding: 10px 15px;
  border-radius: 18px;
  max-width: 80%;
  word-wrap: break-word;
}

.chat-message.user {
  background: var(--primary);
  color: white;
  margin-left: auto;
  border-bottom-right-radius: 5px;
}

.chat-message.bot {
  background: var(--card-bg);
  color: var(--text-color);
  margin-right: auto;
  border-bottom-left-radius: 5px;
  border: 1px solid var(--border-color);
}

.chat-timestamp {
  font-size: 10px;
  opacity: 0.7;
  margin-top: 5px;
  display: block;
}

/* CORREÇÃO DO CHAT IA - DEVE SER A ÚLTIMA REGRA DO ARQUIVO */
#chatToggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #00ff88;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.7);
    display: flex !important; /* Força a exibição */
    justify-content: center;
    align-items: center;
    z-index: 1001;
    transition: all 0.3s;
    color: #000;
    font-size: 24px;
}

#aiChatContainer {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    height: 400px;
    background: #1a1a2e;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
    z-index: 1000;
    overflow: hidden;
    border: 1px solid rgba(0, 255, 136, 0.3);
    display: flex;
    flex-direction: column;
}

/* Remove regras que escondem o botão */
#chatToggle {
    display: flex !important;
}

/* Garante que o botão seja visível em todas as páginas */
body #chatToggle {
    display: flex !important;
}

/* Responsividade */
@media (max-width: 768px) {
    #aiChatContainer {
        width: 90%;
        right: 5%;
        bottom: 80px;
        height: 350px;
    }
    
    #chatToggle {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
}

.ai-chat-container {
    transform: translateY(100px) scale(0.9);
    opacity: 0;
    visibility: hidden;
}

.ai-chat-container.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
}

#chatToggle {
  display: block !important;
  z-index: 9999 !important;
}

/* ===== SISTEMA DE TIPOGRAFIA ===== */
:root {
  /* Font weights */
  --font-light: 300;
  --font-regular: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;

  /* Font sizes - escala modular (1.25) */
  --text-xs: 0.75rem;    /* 12px */
  --text-sm: 0.875rem;   /* 14px */
  --text-base: 1rem;     /* 16px */
  --text-lg: 1.125rem;   /* 18px */
  --text-xl: 1.25rem;    /* 20px */
  --text-2xl: 1.5rem;    /* 24px */
  --text-3xl: 1.875rem;  /* 30px */
  --text-4xl: 2.25rem;   /* 36px */
  --text-5xl: 3rem;      /* 48px */
  
  /* Line heights */
  --leading-tight: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.75;
}

/* ===== APPLICAÇÃO NO SEU ESTILO EXISTENTE ===== */

/* Títulos principais */
.hero-title {
  font-size: var(--text-5xl);
  font-weight: var(--font-extrabold);
  line-height: var(--leading-tight);
}

.section-title {
  font-size: var(--text-4xl);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  margin-bottom: 1rem;
}

/* Títulos de cards */
.card h2, .card h3 {
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  line-height: var(--leading-tight);
  margin-bottom: 0.75rem;
}

/* Texto corporal */
body {
  font-size: var(--text-base);
  font-weight: var(--font-regular);
  line-height: var(--leading-normal);
}

p {
  margin-bottom: 1rem;
  line-height: var(--leading-normal);
}

/* Textos pequenos e labels */
.metric-label, .stat-label, .caption {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--text-secondary);
}

/* Textos de interface (botões, inputs) */
.btn, .form-input, .nav-link {
  font-size: var(--text-base);
  font-weight: var(--font-medium);
}

/* Ajustes específicos para melhor hierarquia */
.price {
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
}

#variation {
  font-size: var(--text-lg);
  font-weight: var(--font-medium);
}

.metric-card h3 {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
}

/* Garantir consistência em todo o site */
h1 { font-size: var(--text-4xl); font-weight: var(--font-extrabold); }
h2 { font-size: var(--text-3xl); font-weight: var(--font-bold); }
h3 { font-size: var(--text-2xl); font-weight: var(--font-semibold); }
h4 { font-size: var(--text-xl); font-weight: var(--font-semibold); }
h5 { font-size: var(--text-lg); font-weight: var(--font-medium); }
h6 { font-size: var(--text-base); font-weight: var(--font-medium); }

/* Responsividade para mobile */
@media (max-width: 768px) {
  :root {
    --text-5xl: 2.5rem;
    --text-4xl: 2rem;
    --text-3xl: 1.625rem;
    --text-2xl: 1.375rem;
  }
  
  .hero-title {
    font-size: var(--text-4xl);
  }
}

/* Otimizações de renderização */
.chart-container {
    will-change: transform;
    contain: content;
    backface-visibility: hidden;
}

/* Loading states otimizados */
.skeleton-loading {
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.1) 25%, 
        rgba(255, 255, 255, 0.2) 50%, 
        rgba(255, 255, 255, 0.1) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

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

/* Transições otimizadas */
.optimized-transition {
    transform: translateZ(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.on-chain-section {
    padding: 60px 0;
    background: linear-gradient(135deg, rgba(0, 20, 40, 0.8) 0%, rgba(0, 40, 80, 0.6) 100%);
}

.on-chain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.on-chain-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 16px;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.metric-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.live-badge {
    background: var(--primary);
    color: #000;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
    animation: pulse 2s infinite;
}

.metric-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-primary);
    margin: 10px 0;
}

.metric-trend {
    color: var(--success);
    font-weight: 600;
}

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

.metric-analysis {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.metric-analysis p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

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

.transparency-badges {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  background: rgba(0, 255, 136, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(0, 255, 136, 0.2);
  min-width: 180px;
}

.badge-icon {
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
}

.badge-text {
  display: flex;
  flex-direction: column;
}

.badge-text strong {
  font-size: 0.9rem;
  color: var(--text-primary);
}

.badge-text span {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Status indicators */
#latency::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  margin-right: 5px;
  animation: pulse 2s infinite;
}

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

/* ===== MICROINTERAÇÕES ===== */
.card {
  transition: all 0.3s ease;
  transform-origin: center;
}

.card:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn {
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
}

.btn:focus:not(:active)::after {
  animation: ripple 1s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 1;
  }
  20% {
    transform: scale(25, 25);
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scale(40, 40);
  }
}

/* Feedback visual para inputs */
.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1);
  transform: translateY(-1px);
}

/* Loading states elegantes */
.loading-skeleton {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.1) 25%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0.1) 75%
  );
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

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

/* Animações suaves para dados */
.data-update {
  transition: all 0.5s ease;
}

.data-update.highlight {
  animation: highlight 1s ease;
}

@keyframes highlight {
  0% { background-color: rgba(0, 255, 136, 0.2); }
  100% { background-color: transparent; }
}

/* Tooltips elegantes */
.tooltip {
  position: relative;
}

.tooltip::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  border-radius: 4px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}

.tooltip:hover::before {
  opacity: 1;
  visibility: visible;
  bottom: calc(100% + 10px);
}

/* ===== CORREÇÃO BOTÕES FLUTUANTES ===== */

/* Botão Voltar ao Topo - Ajustar posição */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: #000;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    z-index: 998; /* Abaixo do chat */
    box-shadow: 0 4px 12px rgba(0, 255, 136, 0.3);
    transition: all 0.3s ease;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 255, 136, 0.4);
}

/* Botão Chat IA - Ajustar posição */
#chatToggle {
    position: fixed;
    bottom: 90px; /* Acima do botão voltar ao topo */
    right: 30px;
    width: 60px;
    height: 60px;
     background: #00ff88;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    z-index: 999; /* Acima do botão voltar */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

#chatToggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Container do Chat - Ajustar posição */
#aiChatContainer {
    position: fixed;
    bottom: 160px; /* Acima do botão chat */
    right: 30px;
    width: 350px;
    height: 400px;
    z-index: 1000; /* Acima de tudo */
    /* ... restante do seu estilo ... */
}

/* Responsividade para mobile */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    
    #chatToggle {
        bottom: 75px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    #aiChatContainer {
        bottom: 135px;
         background: #1a1a2e;
        right: 20px;
        width: calc(100% - 40px);
        max-width: 350px;
    }
}

/* Para telas muito pequenas */
@media (max-width: 480px) {
    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
    
    #chatToggle {
       background: #1a1a2e;
        bottom: 65px;
        right: 15px;
        width: 45px;
        height: 45px;
    }
    
    #aiChatContainer {
       background: #1a1a2e;
        bottom: 120px;
        right: 15px;
        width: calc(100% - 30px);
    }
}

/* RESET COMPLETO DAS BORDAS E PREENCHIMENTO */
body {
    padding: 0 !important;
    margin: 0 !important;
    overflow-x: hidden !important;
    width: 100vw !important;
}

/* CONTAINER PRINCIPAL */
.dashboard-container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* HEADER - PREENCHER LATERAL COMPLETO */
header, .app-header, .professional-header {
    width: 100% !important;
    padding: 15px 20px !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-sizing: border-box !important;
}

/* SEÇÕES - PREENCHER LATERAL COMPLETO */
section {
    width: 100% !important;
    padding: 20px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* CARDS - PREENCHER LATERAL COMPLETO */
.card {
    width: 100% !important;
    border-radius: 12px !important;
    margin-bottom: 20px;
    box-sizing: border-box !important;
    background: var(--card) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* FOOTER - PREENCHER LATERAL COMPLETO */
footer {
    width: 100% !important;
    padding: 30px 20px !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-sizing: border-box !important;
    background: var(--card) !important;
}

/* BOTÕES FLUTUANTES POSICIONADOS CORRETAMENTE */
#chatToggle {
    right: 30px !important;
    bottom: 30px !important;
    z-index: 10000 !important;
}

.back-to-top {
    right: 30px !important;
    bottom: 100px !important;
    z-index: 10000 !important;
}

/* REMOVER QUALQUER MARGEM NEGATIVA OU OVERFLOW */
* {
    box-sizing: border-box !important;
}

/* GARANTIR QUE TUDO FIQUE DENTRO DA VIEWPORT */
body, html {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
}

/* AJUSTE PARA MOBILE */
@media (max-width: 768px) {
    header, .app-header, .professional-header {
        padding: 12px 15px !important;
    }
    
    section {
        padding: 15px !important;
    }
    
    .card {
        border-radius: 10px !important;
    }
    
    footer {
        padding: 25px 15px !important;
    }
    
    #chatToggle {
        right: 20px !important;
        bottom: 20px !important;
        width: 50px !important;
        height: 50px !important;
    }
    
    .back-to-top {
        right: 20px !important;
        bottom: 80px !important;
        width: 45px !important;
        height: 45px !important;
    }
}

/* REMOVER EFEITOS DE BORDA EXTERNOS */
.card::before,
.card::after,
section::before,
section::after {
    display: none !important;
}

/* GARANTIR QUE AS SEÇÕES NÃO TENHAM OVERFLOW */
section, .card, header, footer {
    overflow: visible !important;
}

/* REMOVER MARGENS NEGATIVAS ESPECÍFICAS */
section {
    margin-top: 0 !important;
    transform: none !important;
}

/* FORÇAR POSICIONAMENTO CORRETO */
.market-data-section,
#price-chart,
.price-section {
    margin-top: 0 !important;
    padding-top: 25px !important;
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
}

section:first-of-type {
    margin-top: 70px !important;
}