/* ==========================================
   1. CONFIGURAÇÕES GERAIS E CORES
   ========================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #ff4c00;
    --secondary: #00f2ff;
    --yellow: #ffcc00;
    --success: #00ff88;
    --glass: rgba(10, 10, 10, 0.9);
    --ml-yellow: #fff159;
}

body { 
    font-family: 'Kanit', sans-serif; 
    background: #000; 
    color: #fff; 
    overflow-x: hidden; 
    line-height: 1.4;
}

/* FUNDO DINÂMICO */
.game-wallpaper {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -2;
    background-size: cover; background-position: center; background-repeat: no-repeat;
    filter: saturate(1.7) brightness(0.5);
    transition: background-image 2s ease-in-out;
}
.color-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.2); z-index: -1; }

/* ==========================================
   2. HEADER E PLACARES
   ========================================== */
header { 
    background: rgba(0,0,0,0.95); 
    border-bottom: 3px solid var(--primary); 
    position: sticky; top: 0; z-index: 1000; 
}

.football-ticker { 
    background: #000; 
    border-bottom: 1px solid var(--secondary); 
    overflow: hidden; white-space: nowrap; 
    padding: 10px 0; 
    display: flex;
}

.header-animacao, .footer-ticker-wrapper { display: inline-block; white-space: nowrap; }
.header-animacao { animation: rolarTopo 120s linear infinite; }
.footer-ticker-wrapper { animation: rolarRodape 150s linear infinite; }

.header-animacao:hover, 
.footer-ticker-wrapper:hover {
    animation-play-state: paused !important;
    cursor: pointer;
}

@keyframes rolarTopo { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes rolarRodape { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.ticker-item-style, .footer-game-item {
    display: inline-block; color: #fff !important; font-weight: bold;
    text-transform: uppercase; padding: 0 40px; font-size: 14px;
    text-shadow: 2px 2px 4px #000;
}

/* FORÇAR ALINHAMENTO DO HEADER */
.container-header {
    width: 100%;
    margin: 0 auto;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 15px 20px;
    flex-wrap: nowrap !important;
}

.logo {
    flex-shrink: 0;
    font-family: 'Black Ops One', cursive;
    font-size: 28px;
    margin-right: 20px;
}

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

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 13px;
    white-space: nowrap;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: flex !important;
    align-items: center !important;
    gap: 5px;
}

nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-direction: row;
}

nav a:hover {
    border-color: var(--primary);
    background: rgba(255, 76, 0, 0.1);
    color: var(--primary) !important;
    box-shadow: 0 0 10px rgba(255, 76, 0, 0.2);
    transform: translateY(-2px);
}

.btn-account {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
    white-space: nowrap;
}

.btn-account:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    transform: translateY(-2px);
}

/* ==========================================
   3. LAYOUT PRINCIPAL (3 COLUNAS)
   ========================================== */
.main-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr 280px; 
    gap: 30px;
    max-width: 98%;
    margin: 30px auto;
    padding: 0 20px;
    align-items: start;
}

.sidebar-promo {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Reduzido de 20px para 15px */
}

.side-title { 
    font-family: 'Black Ops One'; 
    text-align: center; 
    color: var(--yellow); 
    font-size: 1rem; 
    margin-bottom: 5px;
}

/* ==========================================
   CARDS MERCADO LIVRE - OTIMIZADOS
   ========================================== */
.glass-mini-card {
    background: var(--glass); 
    border: 2px solid var(--ml-yellow);
    border-radius: 12px; 
    padding: 12px; /* Reduzido de 20px para 12px */
    text-align: center; 
    transition: 0.3s;
    max-width: 280px;
    position: relative;
}

.glass-mini-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 241, 89, 0.4);
    border-color: #fff;
}

.glass-mini-card img { 
    width: 100%; 
    height: 110px; /* Aumentado de 80px para 110px */
    object-fit: contain; 
    margin: 8px 0; /* Reduzido de 10px */
}

.glass-mini-card h4 {
    font-size: 13px; /* Reduzido de 14px */
    margin: 6px 0; /* Reduzido de 10px */
    color: #fff;
    font-weight: 700;
    min-height: 32px; /* Para manter altura consistente */
    display: flex;
    align-items: center;
    justify-content: center;
}

.s-price {
    font-size: 18px; /* Reduzido de 20px */
    font-weight: 900;
    color: var(--ml-yellow);
    margin: 6px 0; /* Reduzido de 10px */
}

/* BADGE MERCADO LIVRE */
.badge-store {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    z-index: 10;
}

.badge-store.ml { 
    background: var(--ml-yellow); 
    color: #000; 
}

/* BOTÕES MERCADO LIVRE */
.btn-side-buy {
    display: block;
    width: 100%;
    padding: 10px; /* Reduzido de 12px */
    border-radius: 8px;
    text-decoration: none;
    font-weight: 900;
    font-size: 11px; /* Reduzido de 12px */
    text-transform: uppercase;
    text-align: center;
    transition: 0.3s;
    margin-top: 8px;
}

.ml-btn { 
    background: var(--ml-yellow); 
    color: #000; 
    border: 2px solid var(--ml-yellow);
}

.ml-btn:hover {
    background: #fff;
    border-color: #fff;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 241, 89, 0.5);
}

/* CARD QR CODE (WHATSAPP) - OTIMIZADO */
.qr-card {
    border-color: #25d366 !important;
}

.qr-card h4 {
    font-size: 12px !important;
    margin-bottom: 8px !important;
}

.qr-code-img {
    width: 100%;
    max-width: 150px;
    height: auto !important;
    border-radius: 10px;
    margin: 8px auto !important;
    display: block;
}

.title-glow {
    text-align: center;
    width: 100%;
    margin: 40px auto 20px auto;
    display: block;
}

/* ==========================================
   4. GRIDS CENTRALIZADOS
   ========================================== */
.main-content { 
    background: rgba(0,0,0,0.2); 
    border-radius: 30px; 
    padding: 20px; 
    text-align: center; 
}

.ff-grid, .money-grid, .ent-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); 
    gap: 20px; 
    margin-top: 30px;
    justify-content: center; 
}

.card-ff-neon, .money-card, .ent-card {
    background: rgba(0,0,0,0.85); 
    border: 2px solid var(--secondary); 
    border-radius: 20px; 
    padding: 25px 15px; 
    width: 100%;
    position: relative;
}

.card-ff-neon:hover, .money-card:hover, .ent-card:hover { 
    border-color: var(--primary); 
    box-shadow: 0 0 30px var(--primary); 
    transform: scale(1.02); 
}

.ent-card, .money-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 320px;
}

.ent-card h3 {
    margin-bottom: 5px;
}

.ent-card p, .money-card p {
    flex-grow: 1;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #ccc;
}

.money-card img {
    height: 150px;
    width: 100%;
    object-fit: contain;
    margin: 10px 0;
}

.price-main { 
    font-size: 2.2rem; 
    font-weight: 900; 
    margin: 15px 0; 
    display: block; 
}

/* BOTÕES GLOBAIS */
.btn-main-buy, .btn-money, .btn-ent, .btn-copy { 
    width: 100%; 
    border: none; 
    padding: 14px; 
    border-radius: 10px; 
    font-weight: 900; 
    background: linear-gradient(to right, var(--primary), var(--yellow));
    color: #000; 
    cursor: pointer; 
    text-transform: uppercase;
}

.btn-close {
    display: block;
    width: 100%;
    background: #ff4757;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-weight: 900;
    font-size: 14px;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 20px;
    transition: 0.3s ease;
    text-align: center;
}

.btn-close:hover {
    background: #ff6b81;
    transform: scale(1.02);
}

/* ==========================================
   5. FORMULÁRIOS
   ========================================== */
.input-form { 
    width: 100%; 
    padding: 15px; 
    margin-bottom: 15px; 
    background: #000; 
    border: 1px solid #333; 
    color: #fff; 
    border-radius: 10px; 
    font-size: 16px; 
}

.input-form:focus { 
    border-color: var(--secondary); 
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.2); 
    outline: none; 
}

.password-container { 
    position: relative; 
    width: 100%; 
    display: flex; 
    align-items: center; 
}

.toggle-password {
    position: absolute; 
    right: 15px; 
    top: 50%; 
    transform: translateY(-50%); 
    cursor: pointer; 
    font-size: 20px;
    color: #ffffff;
    filter: brightness(0) invert(1);
    z-index: 999;
}

/* ==========================================
   6. SEÇÃO OFERTAS ELITE
   ========================================== */
.money-section {
    margin: 50px auto;
    max-width: 1400px;
    padding: 30px 20px;
}

.money-card h3 {
    font-size: 16px;
    margin: 10px 0;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.money-price {
    font-size: 24px;
    font-weight: 900;
    color: var(--ml-yellow);
}

/* TAGS */
.hot-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff4757;
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 900;
    z-index: 10;
}

.cash-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--success);
    color: #000;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 900;
    z-index: 10;
}

.pop-tag {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 900;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(255, 76, 0, 0.5);
}

.auto-tag {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--success);
    color: #000;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 9px;
    font-weight: 900;
}

/* EFEITOS ESPECÍFICOS PARA CADA MARCA */
.roblox-card { border-color: #ffffff !important; }
.roblox-card:hover { box-shadow: 0 0 30px rgba(255, 255, 255, 0.4); }

/* ==========================================
   7. RESPONSIVIDADE MOBILE ULTRA COMPACTA
   ========================================== */
@media (max-width: 1100px) {
    
    /* ESTRUTURA 3 COLUNAS OTIMIZADA */
    .main-wrapper { 
        display: grid !important;
        grid-template-columns: 85px 1fr 85px !important; 
        gap: 5px !important;
        padding: 10px 3px !important;
        width: 100% !important;
    }

    /* COLUNA CENTRAL */
    .main-content { 
        grid-column: 2 / 3 !important;
        padding: 5px !important;
    }

    /* ANÚNCIOS LATERAIS MERCADO LIVRE */
    .sidebar-promo { 
        display: flex !important;
        flex-direction: column !important;
        gap: 5px !important;
    }

    .side-title {
        font-size: 8px !important;
        margin-bottom: 3px !important;
    }

    .glass-mini-card {
        padding: 5px 3px !important;
        border-radius: 6px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        border-width: 1px !important;
    }

    .glass-mini-card img {
        height: 40px !important;
        max-width: 100% !important;
        object-fit: contain !important;
        margin: 3px 0 !important;
    }

    .glass-mini-card h4 {
        font-size: 7.5px !important;
        margin: 2px 0 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        min-height: 16px !important;
        line-height: 1.2 !important;
    }

    .glass-mini-card p.s-price {
        font-size: 9px !important;
        font-weight: bold !important;
        margin: 2px 0 !important;
    }

    .glass-mini-card a.btn-side-buy {
        font-size: 7px !important;
        padding: 4px 2px !important;
        margin-top: 3px !important;
    }

    .badge-store {
        font-size: 6px !important;
        padding: 2px 4px !important;
        top: 3px !important;
        left: 3px !important;
    }

    /* QR CODE WHATSAPP */
    .qr-card h4 {
        font-size: 7px !important;
        margin: 2px 0 !important;
    }

    .qr-code-img {
        max-width: 60px !important;
        margin: 3px auto !important;
    }

    /* GRADE CENTRAL (2x2) */
    .ff-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 6px !important;
    }

    .card-ff-neon {
        padding: 10px 5px !important;
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
    }

    .card-ff-neon img {
        height: 35px !important;
        margin-bottom: 5px !important;
    }

    .card-ff-neon h3 {
        font-size: 9px !important;
        line-height: 1.1 !important;
        min-height: 20px !important;
    }

    .price-main {
        font-size: 1rem !important;
        margin: 4px 0 !important;
    }

    .btn-main-buy {
        padding: 8px 0 !important;
        font-size: 9px !important;
        border-radius: 4px !important;
    }

    .pop-tag {
        font-size: 7px !important;
        top: -10px !important;
        padding: 2px 8px !important;
    }

    .auto-tag {
        font-size: 6px !important;
        padding: 2px 6px !important;
    }

    /* OFERTAS ELITE */
    .money-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }

    .money-card img {
        height: 80px !important;
    }

    .money-card h3 {
        font-size: 11px !important;
        min-height: 30px !important;
    }

    .money-price {
        font-size: 14px !important;
    }

    .btn-money {
        font-size: 9px !important;
        padding: 8px !important;
    }

    .hot-tag, .cash-tag {
        font-size: 7px !important;
        padding: 3px 8px !important;
    }

    /* MENU */
    nav {
        gap: 3px !important;
    }
    nav a, .btn-account {
        font-size: 7.5px !important;
        padding: 5px 3px !important;
    }
}

/* Para telas muito pequenas */
@media (max-width: 360px) {
    .main-wrapper {
        grid-template-columns: 75px 1fr 75px !important;
    }
    .logo { font-size: 18px !important; }
}

/* ==========================================
   8. FOOTER E MODAIS
   ========================================== */
footer { 
    background: #000; 
    padding: 40px 15px; 
    border-top: 3px solid var(--primary); 
    text-align: center; 
}

.mini-ticker { 
    background: #111; 
    padding: 15px 0; 
    overflow: hidden; 
    border-radius: 10px; 
    margin-bottom: 20px; 
    display: flex; 
}

.pix-modal { 
    display: none; 
    position: fixed; 
    z-index: 10001; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0.95); 
}

.pix-modal-content { 
    background: #111; 
    margin: 10% auto; 
    padding: 35px; 
    border: 2px solid var(--primary); 
    border-radius: 20px; 
    box-shadow: 0 0 40px rgba(255, 76, 0, 0.4); 
    width: 90%; 
    max-width: 450px; 
    text-align: center; 
}

#pixCodeDisplay {
    width: 100%;
    height: 70px;
    background: #000;
    color: #00f2ff;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 10px;
    margin: 15px 0;
    font-size: 11px;
    resize: none;
    word-break: break-all;
    outline: none;
    font-family: monospace;
}

.btn-copy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: linear-gradient(to right, #ff4c00, #ffcc00);
    color: #000;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-weight: 900;
    font-size: 14px;
    text-transform: uppercase;
    cursor: pointer;
    margin-bottom: 10px;
}

.btn-whatsapp-send {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: #25d366;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-weight: 900;
    font-size: 14px;
    text-transform: uppercase;
    cursor: pointer;
    margin-bottom: 10px;
}