:root {
    /* Cores Primárias Premium - Tema Dark Exclusivo */
    --bg-color: #0b0f19;
    --surface-color: rgba(30, 41, 59, 0.4);
    --surface-hover: rgba(30, 41, 59, 0.6);
    
    /* Cores mais claras para garantir constraste (Acessibilidade WCAG AA) */
    --color-primary: #a78bfa; 
    --color-primary-hover: #c4b5fd;
    --color-secondary: #22d3ee;
    
    --text-color: #ffffff;
    --text-muted: #cbd5e1;
    
    --color-positive: #34d399;
    --color-negative: #fb7185;
    --color-price: #fcd34d;

    --border-color: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(255, 255, 255, 0.2);
    
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --shadow-glow: 0 0 15px rgba(139, 92, 246, 0.3);
    
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Outfit', system-ui, sans-serif;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    position: relative;
    overflow-x: hidden;
}

/* Efeito Glow no fundo (Orbs) */
body::before, body::after {
    content: '';
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(150px);
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
}

body::before {
    background: var(--color-secondary);
    top: -100px;
    left: -200px;
}

body::after {
    background: var(--color-primary);
    top: 20%;
    right: -200px;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

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

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

/* Glassmorphism Panel */
.glass-panel {
    background: var(--surface-color);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow-glass);
}

/* Cabeçalho */
.site-header {
    background: rgba(11, 15, 25, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--text-color);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
}

.logo-text {
    color: var(--text-color);
}

.logo .highlight {
    color: var(--color-primary);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-color);
}

.nav-links i {
    font-size: 1.1rem;
    opacity: 0.8;
}

/* Botão Menu Mobile */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 101;
}

.mobile-menu-btn span {
    width: 100%;
    height: 2px;
    background: var(--text-color);
    transition: all 0.3s;
}

/* Trending Coins Section */
.trending-section {
    padding: 3rem 0;
}

.trending-panel {
    padding: 2.5rem;
    text-align: center;
}

.trending-panel h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    font-family: var(--font-display);
}

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

.trending-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: left;
    transition: transform 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
}

.trending-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-highlight);
}

.tc-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.tc-header img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

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

.tc-price {
    font-size: 1.8rem;
    font-weight: 700;
    font-family: var(--font-display);
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.tc-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.tc-meta .label {
    color: var(--text-muted);
}

.positive { color: var(--color-positive); }
.negative { color: var(--color-negative); }

.view-more-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
    color: #fff;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.view-more-btn:hover {
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
    color: #fff;
}

/* Market Table */
.market-table-section {
    padding: 2rem 0 4rem;
}

.table-header-info {
    margin-bottom: 1.5rem;
}

.table-header-info h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.table-header-info p {
    color: var(--text-muted);
}

.table-panel {
    padding: 1rem;
}

.table-responsive {
    overflow-x: auto;
}

.market-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.market-table th {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 600;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    letter-spacing: 0.5px;
}

.market-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    vertical-align: middle;
    font-size: 0.95rem;
}

.market-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.coin-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.coin-cell img {
    border-radius: 50%;
    object-fit: contain;
}

.coin-cell a {
    color: var(--text-color);
    font-weight: 600;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.coin-cell span {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 400;
}

/* Sparklines (CSS Mocks for layout matching) */
.sparkline-mock {
    width: 60px;
    height: 20px;
    display: inline-block;
    background-size: 100% 100%;
    background-repeat: no-repeat;
}
.spark-up {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 30'%3E%3Cpath d='M0,30 L20,20 L40,25 L60,10 L80,15 L100,0' fill='none' stroke='%2310b981' stroke-width='2'/%3E%3C/svg%3E");
}
.spark-down {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 30'%3E%3Cpath d='M0,0 L20,10 L40,5 L60,20 L80,15 L100,30' fill='none' stroke='%23f43f5e' stroke-width='2'/%3E%3C/svg%3E");
}
.td-spark {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Coin Page Hero */
.coin-page {
    padding: 3rem 0;
}

.coin-hero {
    text-align: center;
    margin-bottom: 2rem;
}

.coin-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.coin-title img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.coin-price-huge {
    font-size: 3.5rem;
    font-weight: 800;
    font-family: var(--font-display);
    color: var(--color-price);
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.coin-change-large {
    font-size: 1.25rem;
    font-weight: 600;
}

/* Coin Analysis Box */
.coin-analysis-box {
    padding: 2rem;
    margin: 2rem auto 3rem;
    max-width: 900px;
    border: 1px solid var(--color-primary);
    box-shadow: inset 0 0 20px rgba(139, 92, 246, 0.1), 0 0 15px rgba(139, 92, 246, 0.2);
    text-align: left;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Chart Container */
.chart-container {
    height: 500px;
    margin-bottom: 3rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--color-secondary);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.2);
}

/* Coin Stats */
.stats-header {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

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

.stat-card {
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(251,191,36,0.2) 0%, transparent 70%);
}

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

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-display);
}

/* Rodapé */
.site-footer {
    background: rgba(11, 15, 25, 0.95);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand .footer-desc {
    color: var(--text-muted);
    margin-top: 1rem;
    max-width: 300px;
}

.footer-links h3 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-muted);
}

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

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.disclaimer {
    margin-top: 1rem;
    font-size: 0.8rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-muted);
}

/* ============================================
   BANNERS OKX AFILIADO
============================================ */

/* --- Strip Banner (Full width) --- */
.okx-banner-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    text-decoration: none;
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    padding: 1.25rem 2rem;
    margin: 2rem 0;
    color: #f8fafc;
    transition: all 0.2s;
    flex-wrap: wrap;
}
.okx-banner-strip:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: var(--color-primary);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.2);
}
.okx-banner-strip-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}
.okx-banner-strip i {
    color: #fbbf24;
    font-size: 1.5rem;
}
.okx-strip-btn {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
    color: #fff;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    white-space: nowrap;
}

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

    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: rgba(11, 15, 25, 0.98);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        flex-direction: column;
        gap: 0;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 1.2rem 1.5rem;
        border-bottom: 1px solid var(--border-color);
    }

    .hide-mobile {
        display: none;
    }

    .site-header {
        background-color: rgba(11, 15, 25, 1);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .glass-panel {
        background-color: rgba(30, 41, 59, 1);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .trending-panel {
        padding: 1.5rem;
    }
    
    .trending-panel h1 {
        font-size: 1.8rem;
    }
    
    .coin-title {
        font-size: 1.5rem;
        flex-wrap: wrap;
    }
    
    .coin-price-huge {
        font-size: 2.5rem;
    }
    
    .chart-container {
        height: 350px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
