:root {
    --cor-principal: #34d459; /* Fallback */
}

body {
    background:  #111;
    font-family: 'Poppins', sans-serif;
    color: #fff;
    margin: 0;
    padding: 0;
}

html, body, * {
    font-family: 'Poppins', sans-serif !important;
}


/* ===== ESTRUTURA PRINCIPAL ===== */
.main-header {
    background: #111;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 999;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1242px;
    margin: 0 auto;
    padding: 0 5%;
    position: relative;
    height: 40px;
}

/* ===== LOGO ===== */
.header-logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    height: 100%;
}

.header-logo img {
    height: 100%;
    width: auto;
    max-height: 30px;
    display: block;
}

/* ===== MENU CENTRAL ===== */
.header-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    height: 100%;
}

.header-menu {
    display: flex;
    gap: 30px;
    align-items: center;
    height: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.menu-link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.menu-link:hover {
    color: var(--cor-principal);
}

.menu-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--cor-principal);
    transition: width 0.3s ease;
}

.menu-link:hover::after {
    width: 100%;
}

/* ===== BOTÕES DE AUTENTICAÇÃO ===== */
.header-auth {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    height: 100%;
}

.auth-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
    height: 100%;
}

.auth-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    height: 100%;
    box-sizing: border-box;
}

.login-btn {
    background: transparent;
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
}

.login-btn:hover {
    background: rgba(255,255,255,0.1);
}

.register-btn {
    background-color: #3deb64;
    color: #000;
    font-weight: bold;
}

.register-btn:hover {
    background-color: #34d459;
    transform: translateY(-2px);
}

.btn-icon {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    stroke: white;
}

/* ===== HEADER MOBILE ===== */
@media (max-width: 768px) {
    .main-header {
        padding: 8px 10px;
        height: 50px;
    }
    
    .header-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 100%;
    }
    
    .header-logo img {
        height: 22px;
        width: auto;
        max-width: none;
    }
    
    .header-nav {
        display: none;
    }
    
    .header-auth {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    /* BOTÕES COM ALTURAS IGUAIS */
    .auth-buttons {
        height: 34px; /* Altura fixa para ambos */
    }
    
    .login-btn {
        padding: 0;
        width: 34px;
        height: 34px;
        min-width: 34px;
        background: transparent;
        border: 1px solid rgba(255,255,255,0.2);
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .login-btn span {
        display: none;
    }
    
    .register-btn {
        padding: 0 12px;
        height: 34px;
        line-height: 34px; /* Centraliza verticalmente */
        background-color: #3deb64;
        color: #000;
        font-weight: bold;
        font-size: 0.75rem;
        border-radius: 17px; /* Metade da altura */
        white-space: nowrap;
    }
    
    .btn-icon {
        width: 16px;
        height: 16px;
        margin: 0;
        stroke: white;
    }
}

/* ====== BANNER CARROSSEL ====== */
.banner {
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
}

.carousel-container {
    position: relative;
    max-width: 1500px;
    margin-top:50px;
    overflow: hidden;
    border-radius: 12px;
}

.carousel-wrapper {
    display: flex;
    transition: transform 0.6s ease-in-out;
    width: 100%;
}

.carousel-slide {
    min-width: 100%;
    box-sizing: border-box;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    max-height: 700px;
    object-fit: contain;
}

/* ====== CONTROLES (SETAS) ====== */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    border: 2px solid #016d31;
    height: 50px;
    width: 50px;
    color: white;
    font-size: 22px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-control:hover {
    background-color: #3deb64;
    border-color: #28a745;
}

.carousel-control.prev {
    left: 25px;
}

.carousel-control.next {
    right: 25px;
}

/* ====== DOTS ====== */
.carousel-dots {
    text-align: center;
    position: absolute;
    bottom: 20px;
    width: 100%;
}

.carousel-dots button {
    height: 12px;
    width: 12px;
    margin: 0 5px;
    border: none;
    border-radius: 50%;
    aspect-ratio: 1/1;
    background-color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: background 0.3s ease;
}

.carousel-dots button.active {
    background-color: var(--cor-principal, #3deb64);
}

/* ====== AJUSTES PARA MOBILE ====== */
@media (max-width: 768px) {
    .carousel-slide img {
        max-height: 400px;
    }

    .carousel-control {
        height: 35px;
        width: 35px;
        font-size: 18px;
    }

    .carousel-control.prev {
        left: 15px;
    }

    .carousel-control.next {
        right: 15px;
    }

    .carousel-dots button {
        height: 10px;
        width: 10px;
    }
}

/* ====== ÚLTIMOS GANHADORES ====== */
.winners-section {
    padding: 0 5%;
}

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

.winners-header h2 {
    font-size: 24px;
    color: #fff;
    font-weight: 600;
}

.winners-header .total-premios {
    font-size: 16px;
    color: #aaa;
    text-align: right;
}

.winners-header .total-premios strong {
    display: block;
    font-size: 20px;
    color: #3deb64;
}

/* ====== Container fixo ====== */
.winners-carousel-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
}

#winnersCarousel  {
        display: flex;
        gap: 15px;
        will-change: transform; /* Melhor performance */
    }
    

/* Cards */
.winner-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #181818;
    padding: 10px 15px;
    border-radius: 12px;
    min-width: 240px;
    height: 65px;
    border: 1px solid rgba(0, 255, 0, 0.1);
    white-space: nowrap;
}

.winner-card img {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
}

.winner-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column; /* apenas para o nome e tempo */
    justify-content: center;
    align-items: flex-start; /* Mantém alinhado à esquerda */
    color: #ccc;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.winner-info strong {
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px; /* Pequeno espaço entre nome e tempo */
}

.winner-info span {
    font-size: 12px;
    color: #999;
    font-weight: 400;
    line-height: 1.2;
}

/* Força layout horizontal no desktop */
@media (min-width: 769px) {
    .winners-carousel {
        display: flex;
        gap: 15px;
        will-change: transform; /* Melhor performance */
    }
    

    .winner-card {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        white-space: nowrap;
    }

    .winner-info {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
}


.winner-prize {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    white-space: nowrap;
}

.winner-prize span:first-child {
    color: #3deb64;
    font-weight: bold;
    font-size: 16px;
}

.winner-prize .tag {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    color: #000000;
    margin-top: 5px;
    font-weight: 700;
    text-transform: uppercase;
}

.winner-prize .tag.PIX {
    background: #3deb64;
}

.winner-prize .tag.PRÊMIO {
    background: #ff9800;
}

/* Gradientes laterais */
.fade-left, .fade-right {
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.fade-left {
    left: 0;
    background: linear-gradient(to right, #111 0%, rgba(17, 17, 17, 0) 100%);
}

.fade-right {
    right: 0;
    background: linear-gradient(to left, #111 0%, rgba(17, 17, 17, 0) 100%);
}

/* Mobile */
@media (max-width: 768px) {
    .winner-card {
        min-width: 180px;
        padding: 8px 12px;
    }

    .winners-header h2 {
        font-size: 20px;
    }

    .winners-header .total-premios strong {
        font-size: 18px;
    }

    .fade-left, .fade-right {
        width: 60px;
    }
}


/* Seção Raspadinhas */
.raspadinhas-section {
    padding: 20px 5%;
}

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

.section-header h2 {
    color: #3deb64;
    font-size: 2rem;
    margin: 0;
}

.title-gif {
    height: 30px;
    width: auto;
}

.raspadinhas-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.raspadinha-card {
    background: #222;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(40, 167, 69, 0.2);
    transition: all 0.3s ease;
}

.raspadinha-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px 5px rgba(61, 235, 100, 0.2);
    border-color: #1c7b30;
    transition: all 0.6s ease;
}

.raspadinha-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.raspadinha-content {
    padding: 15px;
}

.raspadinha-content h3 {
    color: #3deb64;
    margin: 0 0 5px 0;
    font-size: 1.3rem;
}

.raspadinha-description {
    color: #aaa;
    margin: 0 0 15px 0;
    font-size: 0.9rem;
    min-height: 40px;
}

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

.raspadinha-price {
    color: #3deb64;
    font-weight: bold;
    font-size: 1.3rem;
}

.raspadinha-button {
    background: #3deb64;
    color: rgb(0, 0, 0);
    padding: 8px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
}

.raspadinha-button:hover {
    background: #3deb64;
    transform: translateY(-4px);
    color:#111;
    box-shadow: 0 0 20px 5px rgba(61, 235, 100, 0.2);
    border-color: #1c7b30;
    transition: all 0.4s ease;
}

@media (max-width: 768px) {
    .raspadinhas-container {
        grid-template-columns: 1fr;
    }
    
    .raspadinha-image {
        height: 140px;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .title-gif {
        height: 25px;
    }
}

/* ====== FOOTER ====== */
.main-footer {
    background: #171717;
    color: #ccc;
    padding: 30px 20px;
    font-size: 14px;
    margin-top: 50px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo img {
    height: 30px;
    margin-bottom: 10px;
}

.footer-info {
    margin-top: 10px;
    font-size: 12px;
    color: #aaa;
    max-width: 300px;
}

.footer-links {
    display: flex;
    gap: 40px;
}

.footer-column h4 {
    color: #3deb64;
    margin-bottom: 10px;
}

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

.footer-column ul li {
    margin-bottom: 5px;
}

.footer-column ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: var(--cor-principal);
}

@media (max-width: 768px) {
    .header-container {
        align-items: flex-start;
    }

    .menu {
        margin-top: 10px;
    }

    /* Força os elementos do winners-track a ficarem lado a lado */
#winnersCarousel {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.winners-track {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px; /* espaço entre os cards */
    white-space: nowrap;
    will-change: transform;
}

.winners-track .winner-card {
    flex: 0 0 auto; /* Garante que os cards não quebrem linha */
}


    .footer-container {
        flex-direction: column;
        gap: 20px;
    }
}


@media (max-width: 768px) {
    .winners-carousel-wrapper {
        overflow: hidden;
        white-space: nowrap;
    }

    #winnersCarousel {
        display: inline-flex;
        gap: 15px;
        min-width: max-content;
        transform: translateX(0);
    }

    .winner-card {
        flex: 0 0 auto;
    }
}


@media (max-width: 768px) {
    .winners-carousel-wrapper {
        overflow: hidden;
        white-space: nowrap;
    }

    #winnersCarousel {
        display: inline-flex;
        gap: 15px;
        min-width: max-content;
    }

    .winner-card {
        flex: 0 0 auto;
    }
}








.raspadinhas-intro {
    text-align: center;
    padding: 40px 20px;
}

.raspadinhas-intro h1 {
    font-size: 2.2rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 10px;
}

.raspadinhas-intro p {
    font-size: 1rem;
    color: #bbb;
    margin-bottom: 25px;
}

.raspadinhas-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 25px;
    color: #3deb64;
    font-size: 1.1rem;
}

.raspadinhas-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.raspadinhas-filters .filter {
    padding: 8px 16px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 20px;
    cursor: pointer;
    color: #fff;
    font-size: 0.9rem;
    transition: 0.3s;
}

.raspadinhas-filters .filter.active,
.raspadinhas-filters .filter:hover {
    background: #3deb64;
    color: #000;
}









/* ======================
   HEADER - USUÁRIO LOGADO
   ====================== */

.header-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* SALDO */
.user-balance {
    display: flex;
    align-items: center;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #3deb64;
    transition: 0.3s;
}
.user-balance i {
    margin-right: 5px;
    font-size: 1rem;
}

/* BOTÃO DEPOSITAR */
.btn-deposit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #3deb64;
    color: #000;
    font-weight: 600;
    padding: 6px 18px;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.3s;
}
.btn-deposit:hover {
    background-color: #34d459;
}

/* DROPDOWN DO USUÁRIO */
.user-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #000;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 14px;
    border-radius: 8px;
    color: #fff;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s;
}
.user-dropdown i {
    font-size: 1rem;
}

/* MENU DO DROPDOWN */
.user-dropdown-menu {
    display: none;
    position: absolute;
    top: 110%;
    right: 0;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    overflow: hidden;
    min-width: 180px;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* LINKS DO MENU */
.user-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    color: #ddd;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
}
.user-dropdown-menu a:hover {
    background: #222;
    color: #fff;
}
.user-dropdown-menu a i {
    font-size: 1rem;
}

/* SEPARADOR */
.user-dropdown-menu hr {
    border: 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin: 5px 0;
}

/* SAIR */
.user-dropdown-menu a.logout {
    color: #e63946;
}
.user-dropdown-menu a.logout:hover {
    background: #300;
    color: #ff6b6b;
}

/* ATIVAR DROPDOWN */
.user-dropdown.active .user-dropdown-menu {
    display: block;
}

/* MOBILE */
@media (max-width: 768px) {
    .header-user {
        gap: 8px;
    }
    .user-balance, .btn-deposit, .user-dropdown {
        font-size: 0.85rem;
        padding: 5px 12px;
    }
}

