:root {

    --bg: #0b0f19;

    --surface: #151d30;

    --surface-hover: #1c2740;

    --border: #23314d;

    --accent: #10b981;

    --accent-glow: rgba(16, 185, 129, 0.15);

    --blue: #3b82f6;

    --warning: #f59e0b;

    --text: #f8fafc;

    --text-muted: #94a3b8;

    --font-main: 'Plus Jakarta Sans', sans-serif;

    --font-mono: 'JetBrains Mono', monospace;

}



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



body {

    font-family: var(--font-main);

    background-color: var(--bg);

    color: var(--text);

    min-height: 100vh;

    display: flex;

    flex-direction: column;

    overflow-x: hidden;

    -webkit-font-smoothing: antialiased;

}



/* Top Navigation */

header {

    background: rgba(15, 23, 42, 0.85);

    backdrop-filter: blur(16px);

    border-bottom: 1px solid var(--border);

    position: sticky;

    top: 0;

    z-index: 100;

}

.nav-wrapper {

    max-width: 1400px;

    margin: 0 auto;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 1rem 1.5rem;

}

.brand {

    display: flex;

    align-items: center;

    gap: 10px;

    font-weight: 800;

    font-size: 1.3rem;

    color: var(--text);

    text-decoration: none;

}

.brand-badge {

    background: var(--accent-glow);

    color: var(--accent);

    border: 1px solid rgba(16, 185, 129, 0.3);

    font-size: 0.7rem;

    padding: 2px 8px;

    border-radius: 20px;

    text-transform: uppercase;

    font-weight: 700;

}

nav { display: flex; gap: 8px; }

nav a {

    color: var(--text-muted);

    text-decoration: none;

    padding: 8px 16px;

    border-radius: 10px;

    font-weight: 600;

    font-size: 0.9rem;

    transition: all 0.2s ease;

}

nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }

nav a.active { color: var(--accent); background: var(--accent-glow); border: 1px solid rgba(16, 185, 129, 0.2); }



/* Country Selector Pills */

.country-bar {

    display: flex;

    justify-content: center;

    gap: 10px;

    margin: 1.5rem 0 0.5rem 0;

    flex-wrap: wrap;

}

.country-pill {

    background: var(--surface);

    border: 1px solid var(--border);

    color: var(--text-muted);

    padding: 10px 20px;

    border-radius: 50px;

    font-weight: 700;

    font-size: 0.85rem;

    cursor: pointer;

    transition: all 0.2s ease;

    display: flex;

    align-items: center;

    gap: 8px;

}

.country-pill:hover { border-color: var(--blue); color: var(--text); }

.country-pill.active {

    background: rgba(59, 130, 246, 0.15);

    border-color: var(--blue);

    color: var(--text);

    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);

}



/* Layout Grid */

.dashboard-grid {

    max-width: 1400px;

    margin: 1.5rem auto;

    padding: 0 1.5rem;

    display: grid;

    grid-template-columns: 280px 1fr 280px;

    gap: 1.5rem;

    flex: 1;

    width: 100%;

}



@media (max-width: 1200px) {

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

    .ad-slot-side { display: none !important; }

}



/* Cards & Components */

.card {

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 20px;

    padding: 2rem;

    margin-bottom: 1.5rem;

    position: relative;

    box-shadow: 0 10px 30px rgba(0,0,0,0.2);

}



.counter-hero {

    text-align: center;

    padding: 3rem 2rem;

    background: linear-gradient(180deg, rgba(21, 29, 48, 0.8) 0%, rgba(11, 15, 25, 0.9) 100%);

}



.live-tag {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    background: rgba(245, 158, 11, 0.1);

    color: var(--warning);

    border: 1px solid rgba(245, 158, 11, 0.3);

    font-family: var(--font-mono);

    font-size: 0.8rem;

    padding: 4px 14px;

    border-radius: 30px;

    margin-bottom: 1rem;

}

.pulse-dot {

    width: 8px; height: 8px;

    background: var(--warning);

    border-radius: 50%;

    animation: pulse 1.5s infinite;

}

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



.main-number {

    font-family: var(--font-mono);

    font-size: clamp(2.2rem, 5vw, 4.2rem);

    font-weight: 800;

    color: var(--accent);

    text-shadow: 0 0 30px var(--accent-glow);

    letter-spacing: -1px;

    margin: 10px 0;

}



/* Grid de Equivalências */

.eq-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));

    gap: 1rem;

    margin-top: 2rem;

}

.eq-card {

    background: rgba(11, 15, 25, 0.6);

    border: 1px solid var(--border);

    padding: 1.2rem;

    border-radius: 14px;

    text-align: center;

    transition: transform 0.2s, border-color 0.2s;

}

.eq-card:hover { transform: translateY(-3px); border-color: var(--accent); }

.eq-icon { font-size: 2rem; margin-bottom: 6px; display: block; }

.eq-value { font-family: var(--font-mono); font-size: 1.3rem; font-weight: 800; color: var(--text); }

.eq-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; font-weight: 700; margin-top: 4px; }



/* Buttons & Actions */

.btn-primary {

    background: linear-gradient(135deg, var(--blue) 0%, #2563eb 100%);

    color: white;

    border: none;

    padding: 14px 28px;

    border-radius: 12px;

    font-weight: 700;

    font-size: 0.95rem;

    cursor: pointer;

    transition: all 0.2s ease;

    display: inline-flex;

    align-items: center;

    gap: 8px;

    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);

}

.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.1); }



.btn-secondary {

    background: var(--surface-hover);

    color: var(--text);

    border: 1px solid var(--border);

    padding: 14px 28px;

    border-radius: 12px;

    font-weight: 700;

    font-size: 0.95rem;

    cursor: pointer;

    text-decoration: none;

    display: inline-flex;

    align-items: center;

    gap: 8px;

}

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



/* Custom AdSense Containers */

.ad-slot-side {

    background: rgba(21, 29, 48, 0.2);

    border: 1px dashed var(--border);

    border-radius: 16px;

    min-height: 600px;

    padding: 10px;

}

.ad-slot-banner {

    background: rgba(21, 29, 48, 0.2);

    border: 1px dashed var(--border);

    border-radius: 12px;

    margin-bottom: 1.5rem;

    padding: 10px;

    text-align: center;

}



/* Progress Bars for Categories */

.prog-item { margin-bottom: 1.2rem; }

.prog-header { display: flex; justify-content: space-between; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }

.prog-bg { background: #0b0f19; height: 10px; border-radius: 20px; overflow: hidden; border: 1px solid var(--border); }

.prog-fill { height: 100%; background: var(--accent); border-radius: 20px; transition: width 0.5s ease; }



input:focus {

    border-color: var(--blue) !important;

    box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);

}



footer {

    border-top: 1px solid var(--border);

    padding: 2rem;

    text-align: center;

    color: var(--text-muted);

    font-size: 0.85rem;

    margin-top: auto;

}
/* Ajuste cirúrgico para celulares */
@media screen and (max-width: 768px) {
    /* Força o grid principal a virar uma coluna única no mobile */
    .dashboard-grid {
        grid-template-columns: 1fr !important;
        padding: 0 10px;
    }

    /* Esconde as colunas de anúncios laterais para não espremer o conteúdo */
    .ad-slot-side {
        display: none !important;
    }

    /* Reduz o tamanho do número principal para caber perfeitamente na tela do celular */
    .main-number {
        font-size: 2.2rem !important;
        word-break: break-all;
    }

    /* Organiza as equivalências (carros, casas, etc.) em 2 colunas simétricas */
    .eq-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
/* Correção cirúrgica do cabeçalho e menu no mobile */
@media screen and (max-width: 768px) {
    /* Centraliza e organiza o topo do site */
    .nav-wrapper {
        flex-direction: column;
        gap: 12px;
        padding: 12px 15px;
        align-items: center;
        text-align: center;
    }

    /* Organiza os links de navegação (Contatore, Analisi, etc.) lado a lado sem quebrar */
    nav {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 6px;
        width: 100%;
    }

    nav a {
        font-size: 0.82rem;
        padding: 6px 12px;
    }

    /* Transforma a barra de países em uma linha com rolagem horizontal suave */
    .country-bar {
        display: flex;
        justify-content: flex-start;
        overflow-x: auto;
        white-space: nowrap;
        padding: 5px 15px;
        margin: 10px 0 5px 0;
        gap: 8px;
        -webkit-overflow-scrolling: touch;
        width: 100%;
    }

    /* Esconde a barra de rolagem visualmente para ficar limpo */
    .country-bar::-webkit-scrollbar {
        display: none;
    }

    .country-pill {
        padding: 6px 14px;
        font-size: 0.78rem;
        flex-shrink: 0;
    }
}
/* Alinhamento perfeito das bandeiras em imagem nas pílulas */
.country-pill img {
    border-radius: 2px;
    object-fit: cover;
    display: inline-block;
    vertical-align: middle;
}
/* Centralização geral do site no PC */
.dashboard-grid {
    max-width: 1400px;
    margin: 0 auto;
    justify-content: center;
}

header {
    width: 100%;
}

.nav-wrapper {
    max-width: 1400px;
    margin: 0 auto;
}
/* Centralização global do conteúdo no PC para todas as páginas */
@media screen and (min-width: 769px) {
    .dashboard-grid {
        max-width: 1400px;
        margin: 0 auto;
        justify-content: center;
    }

    main {
        max-width: 100%;
        margin: 0 auto;
    }

    .card {
        margin-left: auto;
        margin-right: auto;
    }
}
/* =================================================   
   ANIMAÇÕES: DINHEIRO VOANDO E MÃO ROUBANDO   
   ================================================ */

/* Container global do dinheiro voando ao fundo */
#money-rain-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: -1; /* Fica atrás de todo o conteúdo */
}

.flying-bill {
    position: absolute;
    bottom: -50px;
    font-size: 24px;
    opacity: 0.25;
    animation: flyAway linear infinite;
}

@keyframes flyAway {
    0% {
        transform: translateY(0) rotate(0deg) scale(0.8);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-110vh) rotate(360deg) scale(1.2);
        opacity: 0;
    }
}

/* Animação da mão roubando o maço de dinheiro ao clicar nos botões */
@keyframes stealEffect {
    0% {
        transform: translate(-50%, 100px) scale(0.5);
        opacity: 0;
    }
    40% {
        transform: translate(-50%, -20px) scale(1.1);
        opacity: 1;
    }
    70% {
        transform: translate(-50%, -10px) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -120px) scale(0.8);
        opacity: 0;
    }
}

.stealing-hand-popup {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 4rem;
    z-index: 9999;
    pointer-events: none;
    animation: stealEffect 0.8s ease-in-out forwards;
}

/* ==========================================================================
   Ajustes Responsivos para Mobile (Telas menores que 992px)
   ========================================================================== */

/* 1. Esconder os anúncios laterais no Mobile (evita estourar a tela e bloquear cliques) */
@media (max-width: 992px) {
    .ad-slot-side {
        display: none !important;
    }

    /* Transformar o grid em fluxo único vertical */
    .dashboard-grid {
        display: block !important;
        width: 100% !important;
        padding: 0 12px !important;
        box-sizing: border-box;
    }

    /* Ajustar o container principal */
    main {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* 2. Fonte fluida para o contador gigante não quebrar a largura */
    .main-number {
        font-size: clamp(2.2rem, 8vw, 4rem) !important;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    /* 3. Ajuste no Header e Navegação para Mobile */
    .nav-wrapper {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    nav a {
        padding: 6px 10px;
        font-size: 0.85rem;
    }

    /* 4. Barra de países com rolagem horizontal no mobile */
    .country-bar {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        padding: 8px 12px;
        -webkit-overflow-scrolling: touch;
    }

    .country-pill {
        flex: 0 0 auto;
    }
}