/* Reset & Global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #f3f4f6; /* Fundo cinza claro */
    color: #333;
}

/* Header Navbar */
.top-nav {
    background-color: #fff;
    height: 60px;
    position: relative;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.garena-logo {
    display: flex;
    align-items: center;
}

.garena-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.garena-img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.logo-text-mobile {
    display: none;
    color: #e41e26;
    font-size: 0.6rem;
    font-weight: 400;
}

.brand-garena {
    color: #e41e26;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: -0.5px;
}

.divider {
    height: 16px;
    width: 1px;
    background-color: #ddd;
}

.site-title {
    color: #555;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.2;
}

.mobile-break {
    display: none;
}

/* Backgrounds atrás dos elementos (Fundo escuro e faixa) */
.hero-bg {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    height: 250px;
    background-color: #1b1b1b;
    z-index: 1;
}

.yellow-band {
    position: absolute;
    top: 310px;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(90deg, #f5f5f5 40%, #ffe4b5 50%, #f5f5f5 60%);
    z-index: 1;
}

/* Layout Principal */
.main-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 10;
}

/* Banner Carousel */
.banner-section {
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

.banner-track {
    position: relative;
    width: 100%;
    height: 220px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.banner-card {
    border-radius: 12px;
    overflow: hidden;
    position: absolute;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.5s ease-in-out;
}

.pos-center {
    width: 60%;
    height: 100%;
    z-index: 3;
    left: 50%;
    transform: translateX(-50%);
    opacity: 1;
}

.pos-left {
    width: 50%;
    height: 85%;
    z-index: 1;
    left: 20%;
    transform: translateX(-50%);
    opacity: 0.5;
    cursor: pointer;
}

.pos-right {
    width: 50%;
    height: 85%;
    z-index: 1;
    left: 80%;
    transform: translateX(-50%);
    opacity: 0.5;
    cursor: pointer;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover { background: rgba(0,0,0,0.8); }
.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    position: relative;
    z-index: 10;
}

.dot {
    width: 8px;
    height: 8px;
    background: #666;
    border-radius: 50%;
}

.dot.active {
    background: #fff;
    width: 10px;
    height: 10px;
}

/* Content Wrapper */
.content-wrapper {
    background: transparent;
}

/* Seleção de Jogos */
.game-selection {
    margin-bottom: 25px;
}

.section-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #222;
}

.game-grid {
    display: flex;
    gap: 30px;
}

.game-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    width: 85px;
}

.game-icon {
    width: 85px;
    height: 85px;
    border-radius: 20px;
    background-color: transparent;
    position: relative;
    border: 4px solid transparent;
    transition: all 0.2s;
}

.game-icon img {
    border-radius: 16px;
}

.ff-icon { background: linear-gradient(45deg, #1e3c72, #2a5298); }
.df-icon { background: linear-gradient(45deg, #4b6cb7, #182848); }
.haikyu-icon { background: linear-gradient(45deg, #f2994a, #f2c94c); }

.check-badge {
    display: none;
    position: absolute;
    top: -4px;
    left: -4px;
    width: 32px;
    height: 32px;
    background: #e41e26;
    border-top-left-radius: 20px;
    clip-path: polygon(0 0, 100% 0, 0 100%);
    z-index: 10;
}

.check-badge::after {
    content: '';
    position: absolute;
    top: 9px;
    left: 7px;
    width: 8px;
    height: 4px;
    border-left: 3px solid white;
    border-bottom: 3px solid white;
    transform: rotate(-45deg);
}

.game-card.active .game-icon { border-color: #e41e26; }
.game-card.active .check-badge { display: block; }
.game-card.active .game-name { color: #e41e26; font-weight: 800; }
.game-name { font-size: 0.85rem; text-align: center; color: #555; }

/* Banner Promo (Free Fire) */
.promo-banner {
    position: relative;
    border-radius: 8px;
    height: 120px;
    margin-bottom: 25px;
    overflow: hidden;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.promo-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
}

.promo-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 15px;
}

.promo-icon {
    width: 45px;
    height: 45px;
    background: #fff;
    color: #d32f2f;
    font-weight: 900;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.promo-info h2 { font-size: 1.4rem; font-style: italic; font-weight: 800; margin-bottom: 5px; }

.secure-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(0,0,0,0.5);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
}

/* Item Grátis */
.free-item-card {
    background: #e8e8e8;
    border-radius: 8px;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.free-item-info h3 { font-size: 1rem; margin-bottom: 4px; }
.free-item-info p { font-size: 0.8rem; color: #666; margin-bottom: 12px; }
.btn-resgatar { background: #d32f2f; color: #fff; border: none; padding: 6px 25px; border-radius: 4px; font-weight: 700; cursor: pointer; }

.free-item-image { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.item-placeholder { width: 50px; height: 50px; background: #333; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: #fff;}
.free-item-image span { font-size: 0.7rem; color: #555; }

/* Eventos Especiais */
.event-banner {
    position: relative;
    border-radius: 8px;
    height: 80px;
    margin-bottom: 25px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.event-bg {
    position: absolute; top:0; left:0; right:0; bottom:0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" opacity="0.1"><circle cx="50" cy="50" r="40" fill="%23fff"/></svg>') #111;
}

.event-content { position: relative; z-index: 1; color: #ffeb3b; font-style: italic; font-weight: 900; font-size: 1.5rem; text-shadow: 2px 2px #000; }

/* Steps */
.step-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.step-number { background: #d32f2f; color: #fff; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; border-radius: 4px; font-weight: bold; font-size: 0.85rem; }
.step-header h2 { font-size: 1.1rem; color: #222; }

/* Login Box */
.login-box { background: #fff; border: 1px solid #eaeaea; padding: 20px; border-radius: 8px; margin-bottom: 30px; }
.login-box label { display: flex; align-items: center; gap: 5px; font-size: 0.85rem; color: #333; margin-bottom: 10px; font-weight: 500;}
.help-icon { border: 1px solid #888; color: #888; border-radius: 50%; font-size: 0.6rem; width: 14px; height: 14px; display: inline-flex; align-items: center; justify-content: center;}

.input-group { display: flex; gap: 10px; margin-bottom: 20px; }
.input-group input { flex: 1; padding: 12px; border: 1px solid #ccc; border-radius: 4px; outline: none; }
.btn-login { background: #d32f2f; color: #fff; border: none; padding: 0 30px; border-radius: 4px; font-weight: bold; cursor: pointer; }

.social-login { display: flex; align-items: center; gap: 15px; }
.social-login span { font-size: 0.8rem; color: #666; }
.social-icons { display: flex; gap: 10px; }
.social-btn { width: 30px; height: 30px; border-radius: 50%; border: none; color: #fff; font-weight: bold; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.social-btn.fb { background: #1877f2; }
.social-btn.google { background: #fff; color: #333; border: 1px solid #ccc; }
.social-btn.x { background: #000; }
.social-btn.vk { background: #0077ff; }

/* Recarga */
.tabs { display: flex; gap: 10px; margin-bottom: 25px; }
.tab { padding: 5px 16px; border: 1px solid #ddd; background: #fff; border-radius: 30px; cursor: pointer; font-size: 0.85rem; color: #555; font-weight: 500; box-sizing: border-box; }
.tab.active { border: 2px solid #e41e26; color: #e41e26; padding: 4px 15px; font-weight: 600; }

.diamonds-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 15px; margin-bottom: 25px;}
.diamond-card { background: #fff; border: 1px solid #ddd; border-radius: 8px; padding: 20px 0; text-align: center; font-weight: 600; font-size: 1.1rem; color: #333; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; }
.diamond-card:hover { border-color: #00bcd4; background: #f0f8ff; }
.diamond-card.active { border-color: #e41e26; background: #fff0f0; }
@media (max-width: 800px) {
    .diamonds-grid { grid-template-columns: repeat(3, 1fr); }
}

.divider-line { height: 1px; background: #ddd; margin: 20px 0; }
.subsection-header { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.subsection-title { font-size: 1rem; color: #666; font-weight: 600; white-space: nowrap;}
.subsection-header .line { flex: 1; height: 1px; background: #eaeaea; }

/* Ofertas Especiais */
.offers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 15px; margin-bottom: 30px;}
.offer-card { display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; }
.offer-bg { width: 100%; height: 75px; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.offer-card span { font-size: 0.75rem; text-align: center; color: #444; font-weight: 500;}

.special-offers-container { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin-bottom: 30px; }
@media (min-width: 600px) {
    .special-offers-container { grid-template-columns: repeat(4, 1fr); }
}
.special-offer { border: 1px solid #ddd; border-radius: 6px; padding: 8px; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; box-sizing: border-box; }
.special-offer.active { border: 1px solid #d32f2f; box-shadow: 0 0 5px rgba(211,47,47,0.3); }
.special-offer img { width: 100%; height: auto; border-radius: 4px; object-fit: contain; }
.special-offer-text { font-size: 0.85rem; color: #333; display: flex; align-items: center; justify-content: center; gap: 5px; text-align: center; line-height: 1.2; width: 100%; }
.info-icon { color: #d32f2f; border: 1px solid #d32f2f; border-radius: 50%; font-size: 10px; width: 14px; height: 14px; display: inline-flex; align-items: center; justify-content: center; line-height: 1; flex-shrink: 0;}

.payment-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
@media (max-width: 800px) {
    .payment-grid { grid-template-columns: 1fr; }
}
.payment-card { background: #fff; border: 1px solid #ddd; border-radius: 4px; padding: 25px 20px; position: relative; cursor: pointer; display: flex; align-items: center; gap: 20px; font-weight: 700; font-size: 0.95rem; color: #222;}
.payment-card.active { border-color: #e41e26; background: #fff0f0; }
.promo-badges { position: absolute; top: -1px; right: 5px; display: flex; gap: 2px;}
.badge-red { background: #e41e26; color: #fff; font-size: 9px; padding: 2px 6px; border-radius: 0 0 4px 4px; font-weight: bold; }
.badge-black { background: #000; color: #ffe600; font-size: 9px; padding: 2px 6px; border-radius: 0 0 4px 4px; font-weight: bold; }
.p-icon { width: 40px; display: flex; justify-content: center;}

/* Pagamento */
.payment-section { margin-bottom: 40px; }


@media (max-width: 600px) {
    .hero-bg {
        height: 150px;
    }
    
    .yellow-band {
        top: 210px;
        height: 40px;
    }

    .banner-section {
        margin-top: -20px;
        margin-left: -20px;
        margin-right: -20px;
        margin-bottom: 20px;
        border-radius: 0;
    }

    .banner-track {
        height: 150px;
    }
    
    .banner-card {
        border-radius: 0;
    }
    
    .pos-center {
        width: 100%;
        height: 100%;
    }

    .pos-left {
        width: 100%;
        height: 100%;
        left: -100%;
        opacity: 0;
        pointer-events: none;
    }

    .pos-right {
        width: 100%;
        height: 100%;
        left: 200%;
        opacity: 0;
        pointer-events: none;
    }

    .carousel-btn {
        display: none;
    }

    .carousel-dots {
        position: absolute;
        bottom: 8px;
        left: 0;
        right: 0;
        margin-top: 0;
    }
    
    .dot { width: 6px; height: 6px; }
    .dot.active { width: 8px; height: 8px; background: #e41e26; }
    
    .garena-logo {
        flex-direction: column;
        gap: 0;
        align-items: center;
        justify-content: center;
    }
    
    .garena-img {
        width: 30px;
        height: 30px;
    }

    .logo-text-mobile {
        display: block;
    }

    .logo-desktop {
        display: none;
    }
    
    .mobile-break {
        display: block;
    }
    
    .logo-link { gap: 8px; }
    .site-title { font-size: 0.85rem; }
}

/* Estilos Premium para o Perfil de Jogador Logado */
.player-profile-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fcfcfc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.player-profile-card:hover {
    border-color: #d32f2f;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.08);
}

.player-avatar-large {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #ffe3e3, #ffd1d1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1.5px solid #d32f2f;
}

.player-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.player-nickname {
    font-size: 1.15rem;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 6px 0;
    letter-spacing: -0.2px;
}

.player-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    font-size: 0.85rem;
    color: #4b5563;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.meta-item strong {
    color: #374151;
    margin-right: 4px;
}

.btn-change-account {
    background: transparent;
    border: 1.5px solid #d32f2f;
    color: #d32f2f;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 6px;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-change-account:hover {
    background: #d32f2f;
    color: #fff;
}

/* Toast/Alert customizado */
.search-error-msg {
    color: #d32f2f;
    background-color: #fef2f2;
    border: 1px solid #fee2e2;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
    .player-profile-card {
        flex-direction: column;
        text-align: center;
        padding: 20px 15px;
        gap: 15px;
    }
    
    .player-meta {
        justify-content: center;
        gap: 8px;
    }
    
    .btn-change-account {
        width: 100%;
        padding: 10px;
    }
}

