
/* Layout referência — homepage visitante */
body.home-ref {
    background: #000 !important;
    padding-bottom: 72px;
}

body.home-ref .bonus-cadastro,
body.home-ref .top-bar,
body.home-ref .ganhos-container,
body.home-ref .botao-esporte {
    display: none !important;
}

/* Slider com moldura (igual referência) */
.ref-slider-card {
    margin: 10px;
    border: none;
    border-bottom: 1px solid #1a1a1a;
    border-radius: 0;
    overflow: hidden;
    background: #000;
}

body.home-ref .slider-wrapper {
    margin: 0;
    padding: 0;
}

body.home-ref .slider-container {
    border-radius: 0;
    aspect-ratio: 504 / 101;
    background: #000;
}

body.home-ref .slide img {
    object-fit: cover !important;
    object-position: center;
    border-radius: 0 !important;
    background: #000;
}

body.home-ref .ref-slider-dots {
    display: none !important;
}

/* Header */
.ref-header {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    padding: 8px 12px;
    background: #000;
    position: sticky;
    top: 0;
    z-index: 900;
}

.ref-menu-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: #288a00;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ref-logo {
    text-align: center;
}

.ref-logo img {
    height: 36px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.ref-header-spacer {
    width: 40px;
}

/* Ticker de avisos */
.ref-ticker {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 10px;
    padding: 6px 12px;
    background: #000;
    border: 1px solid #1a301a;
    border-radius: 8px;
    overflow: hidden;
    min-height: 34px;
}

.ref-ticker > i.fa-volume-up {
    color: #39ff14;
    font-size: 13px;
    flex-shrink: 0;
}

.ref-ticker-track {
    flex: 1;
    overflow: hidden;
    min-width: 0;
}

.ref-ticker-inner {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    animation: ref-ticker-scroll 24s linear infinite;
}

.ref-ticker-inner span {
    display: inline-block;
    padding-right: 48px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

@keyframes ref-ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ref-ticker-mail {
    position: relative;
    background: transparent;
    border: none;
    color: #39ff14;
    font-size: 17px;
    cursor: pointer;
    padding: 0 4px 0 2px;
    flex-shrink: 0;
    line-height: 1;
}

.ref-ticker-mail i {
    display: block;
}

.ref-ticker-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff0000;
    color: #fff;
    font-size: 8px;
    font-weight: 700;
    min-width: 13px;
    height: 13px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0 2px;
}

/* Botões LOGIN / REGISTER — largura total */
.ref-auth-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 0;
    height: 48px;
}

.ref-auth-login,
.ref-auth-register {
    border: none;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 1px;
    cursor: pointer;
    color: #fff;
    text-transform: uppercase;
}

.ref-auth-login {
    background: linear-gradient(180deg, #007bff 0%, #0072ff 100%);
    clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%);
}

.ref-auth-register {
    background: linear-gradient(180deg, #288a00 0%, #288a00 55%, #217000 100%);
    color: #fff;
    clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%);
    margin-left: -8px;
}

/* Jackpot */
.ref-jackpot {
    position: relative;
    margin: 10px 8px 0;
    border-radius: 8px;
    overflow: hidden;
}

.ref-jackpot img {
    width: 100%;
    height: auto;
    display: block;
}

.ref-jackpot-value {
    position: absolute;
    left: 50%;
    bottom: 45%;
    transform: translateX(-50%);
    color: #fff;
    font-size: clamp(13px, 4.2vw, 20px);
    font-weight: 800;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 6px rgba(0,0,0,.9);
    white-space: nowrap;
}

/* Categorias */
.ref-categories-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 1px 12px 0;
    padding: 4px 10px;
    background: #000;
}

.ref-cat-nav {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    padding: 0;
    border: none;
    background: transparent;
    color: #39ff14;
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.ref-categories {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.ref-categories::-webkit-scrollbar { display: none; }

.ref-cat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 5px 4px 6px;
    background: #050505;
    border: 1px solid #288a00;
    border-radius: 8px;
    cursor: pointer;
    transition: background .2s, box-shadow .2s;
}

.ref-cat img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 50%;
}

.ref-cat span {
    font-size: 10px;
    font-weight: 700;
    color: #39ff14;
    text-transform: capitalize;
    letter-spacing: 0.2px;
    line-height: 1.1;
}

.ref-cat.active {
    background: #0a1405;
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.15);
}

/* Filtros */
.ref-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 10px 0;
    padding: 7px 12px;
    background: #000;
    border: 1px solid #288a00;
    border-radius: 10px;
    overflow-x: auto;
    scrollbar-width: none;
}

.ref-filters::-webkit-scrollbar { display: none; }

.ref-filter {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 14px;
    border-radius: 50px;
    border: 1px solid #288a00;
    background: #050505;
    color: #39ff14;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s;
}

.ref-filter.active {
    background: rgba(40, 138, 0, 0.12);
    color: #39ff14;
}

.ref-filter-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    line-height: 1;
}

.ref-filter-ico-fire {
    font-size: 12px;
}

.ref-filter-ico-green {
    color: #39ff14;
    font-size: 11px;
}

.ref-filter-search {
    margin-left: auto;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #288a00;
    background: transparent;
    color: #39ff14;
    font-size: 14px;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Busca expansível */
body.home-ref .busca-container {
    margin: 8px 10px 0;
    max-width: none;
    display: none;
}

body.home-ref .busca-container.ref-busca-open {
    display: block;
}

body.home-ref .busca-input {
    background: #0a0a0a;
    border: 1px solid #333;
    border-radius: 10px;
    height: 42px;
}

/* Jogos — grade 4 colunas (layout original), só imagem */
body.home-ref .home-ref-games {
    margin-top: 6px;
    padding: 0 10px;
}

body.home-ref .home-ref-games .lista-jogos {
    background: transparent;
    max-width: none;
    padding: 0 0 0 5px;
    margin-top: 0;
}

body.home-ref .home-ref-games .titulo-lista-jogos {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: bold;
    margin: 16px 0 8px;
    color: #fff;
}

body.home-ref .home-ref-games .jogos-container {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    overflow: visible;
    flex-wrap: unset;
    padding: 0;
    width: 100%;
}

body.home-ref .home-ref-games .jogo-card {
    background-color: #1E1E1E;
    border-radius: 10px;
    min-width: 0 !important;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    flex-shrink: unset;
    overflow: hidden;
    position: relative;
    transform: none !important;
    border: none;
    cursor: pointer;
}

body.home-ref .home-ref-games .jogo-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: top center;
    display: block;
    transform: scale(0.94);
    transform-origin: center;
    border-radius: 10px;
    background-color: #1E1E1E;
    z-index: 0;
}

body.home-ref .home-ref-games .jogo-info,
body.home-ref .home-ref-games .jogo-overlay {
    display: none !important;
}

body.home-ref .ref-game-section:not(.active) {
    display: none;
}

body.home-ref .aovivo-resultados {
    background: #121212;
    margin: 16px 10px 0;
    padding: 16px 12px;
    max-width: none;
}

body.home-ref .footer {
    display: block;
    background: #121212;
}

body.home-ref .footer-line {
    display: block;
}

body.home-ref .layout-footer {
    background: #050505;
    border-top: 1px solid #151515;
}

body.home-ref .layout-footer-item.active {
    color: #288a00;
}

body.home-ref .layout-footer-item.active .layout-footer-icon {
    background: #288a00;
    color: #000;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    box-shadow: 0 0 12px rgba(40, 138, 0, 0.5);
}

/* Menu lateral rápido */
.ref-side-menu {
    padding: 8px 0;
}

.ref-side-menu a,
.ref-side-menu button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 14px 16px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
    border-bottom: 1px solid #2a2a2a;
}

.ref-side-menu i {
    color: #288a00;
    width: 20px;
    text-align: center;
}

@media (min-width: 769px) {
    body.home-ref .ref-header,
    body.home-ref .ref-auth-split,
    body.home-ref .ref-jackpot,
    body.home-ref .home-ref-games,
    body.home-ref .aovivo-resultados,
    body.home-ref .footer {
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
    }

    body.home-ref .ref-categories-bar {
        max-width: 520px;
        margin: 1px auto 0;
    }

    body.home-ref .ref-filters {
        max-width: 520px;
        margin: 10px auto 0;
    }

    body.home-ref .ref-ticker {
        max-width: 520px;
        margin: 8px auto;
    }

    body.home-ref .ref-slider-card {
        max-width: 520px;
        margin: 8px auto 0;
        border: 1px solid #288a00;
        border-radius: 10px;
    }
}
