* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    background: #020d2d;
    min-height: 100vh;
    color: #fff;
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}

.is-hidden {
    display: none !important;
}

.mobile-topbar-shell {
    position: sticky;
    top: 0;
    z-index: 40;
    width: 100%;
    background: linear-gradient(90deg, #090b14 0%, #090e23 50%, #0b0f26 100%);
    border-bottom: 1px solid rgba(217, 70, 239, 0.4);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
    padding-top: env(safe-area-inset-top);
}

.mobile-topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 8px 10px;
}

.mobile-topbar-brand {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    flex: 1 1 auto;
}

.mobile-topbar-brand a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.mobile-topbar-logo {
    height: 38px;
    width: auto;
    flex-shrink: 0;
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.4));
}

.mobile-topbar-balance {
    display: flex;
    align-items: stretch;
    gap: 0;
    border: 1px solid rgba(132, 204, 22, 0.75);
    border-radius: 10px;
    overflow: visible;
    box-shadow: 0 0 12px rgba(132, 204, 22, 0.2);
    flex: 0 0 auto;
}

.mobile-topbar-balance-main {
    background: linear-gradient(180deg, rgba(10, 12, 19, 0.96), rgba(10, 12, 19, 0.9));
    padding: 5px 8px 4px;
    min-width: 106px;
    border-radius: 10px 0 0 10px;
    position: relative;
}

.mobile-topbar-balance-label {
    display: block;
    color: #facc15;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.06em;
    line-height: 1;
    text-transform: uppercase;
}

.mobile-topbar-balance-value {
    display: block;
    margin-top: 3px;
    color: #f8fafc;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.mobile-topbar-balance-row {
    margin-top: 3px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.mobile-topbar-wallet-wrap {
    position: relative;
    flex: 0 0 auto;
    z-index: 80;
}

.mobile-topbar-wallet-switch {
    width: 16px;
    height: 16px;
    border-radius: 5px;
    border: 1px solid rgba(250, 204, 21, 0.65);
    background: rgba(8, 12, 24, 0.92);
    color: #facc15;
    font-size: 9px;
    font-weight: 900;
    line-height: 1;
    display: grid;
    place-items: center;
    padding: 0;
    cursor: pointer;
}

.mobile-wallet-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    z-index: 9999;
    min-width: 116px;
    display: flex;
    flex-direction: column;
    background: #1e3a8a;
    border: 1px solid #facc15;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.mobile-wallet-menu button {
    border: 0;
    background: transparent;
    color: #fde68a;
    text-align: left;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.mobile-wallet-menu button + button {
    border-top: 1px solid rgba(250, 204, 21, 0.35);
}

.mobile-wallet-menu button:hover {
    background: #facc15;
    color: #0f172a;
}

.mobile-topbar-balance-add {
    border: 0;
    border-left: 1px solid rgba(132, 204, 22, 0.6);
    background: linear-gradient(180deg, #65a30d, #15803d);
    color: #fff;
    font-size: 26px;
    font-weight: 900;
    line-height: 1;
    width: 36px;
    display: grid;
    place-items: center;
    cursor: pointer;
    border-radius: 0 10px 10px 0;
}

.mobile-topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.mobile-topbar-gift {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(234, 179, 8, 0.75);
    background: linear-gradient(180deg, rgba(12, 14, 24, 0.95), rgba(12, 14, 24, 0.88));
    display: grid;
    place-items: center;
    box-shadow: 0 0 10px rgba(234, 179, 8, 0.2);
    cursor: pointer;
    padding: 0;
}

.mobile-topbar-gift img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.mobile-topbar-gift-badge {
    position: absolute;
    top: -7px;
    right: -5px;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.6);
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    display: grid;
    place-items: center;
}

.mobile-topbar-auth-btn {
    min-height: 34px;
    border-radius: 8px;
    padding: 0 12px;
    min-width: 82px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    border: 1px solid rgba(250, 204, 21, 0.65);
    background: linear-gradient(180deg, rgba(20, 22, 31, 0.95), rgba(20, 22, 31, 0.88));
    color: #fde68a;
    cursor: pointer;
}

.mobile-topbar-auth-btn.register {
    border-color: rgba(74, 222, 128, 0.75);
    color: #dcfce7;
    background: linear-gradient(180deg, #166534, #15803d);
}

.mobile-topbar-menu-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: linear-gradient(180deg, rgba(20, 22, 31, 0.96), rgba(20, 22, 31, 0.88));
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 16px;
    cursor: pointer;
    padding: 0;
}

@media (max-width: 420px) {
    .mobile-topbar {
        gap: 8px;
        padding: 8px 7px;
    }

    .mobile-topbar-actions {
        gap: 6px;
    }

    .mobile-topbar-auth-btn {
        min-width: 68px;
        padding: 0 8px;
        font-size: 11px;
    }

    .mobile-topbar-logo {
        height: 34px;
    }
}

.pagina-promocoes {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(14px, 3vw, 28px);
    padding-left: max(clamp(14px, 3vw, 28px), env(safe-area-inset-left));
    padding-right: max(clamp(14px, 3vw, 28px), env(safe-area-inset-right));
    padding-bottom: max(clamp(14px, 3vw, 28px), env(safe-area-inset-bottom));
}

.topo-nav {
    margin-bottom: clamp(12px, 2vw, 20px);
}

.topo-nav a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffb400;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.topo-valores {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: clamp(18px, 3vw, 28px);
    flex-wrap: wrap;
    gap: 12px 20px;
}

.topo-valores h2 {
    font-size: clamp(16px, 2.8vw, 28px);
    font-weight: 700;
    line-height: 1.25;
}

.topo-valores span {
    color: #ffb400;
}

.conteudo-promocoes {
    display: flex;
    gap: clamp(14px, 2.5vw, 24px);
    align-items: flex-start;
}

.menu-lateral {
    width: clamp(150px, 22vw, 230px);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: clamp(12px, 2vw, 18px);
}

.gift-box {
    width: 100%;
    aspect-ratio: 1 / 1;
    max-height: 220px;
    background: linear-gradient(180deg, #16356f 0%, #12275c 100%);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    padding: 12px;
}

.gift-box img {
    width: 78%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35));
}

.menu-btn {
    min-height: clamp(56px, 8vw, 78px);
    border: none;
    border-radius: 18px;
    background: #12275c;
    color: #fff;
    font-size: clamp(16px, 2.4vw, 24px);
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.menu-btn:hover {
    filter: brightness(1.08);
}

.menu-btn.active {
    background: linear-gradient(180deg, #ffc72b 0%, #d99600 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(255, 183, 0, 0.35);
}

.lista-promocoes {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: clamp(14px, 2.5vw, 22px);
}

.card-promocao {
    background: linear-gradient(180deg, #0d2357 0%, #091b44 100%);
    border-radius: clamp(18px, 3vw, 28px);
    padding: clamp(16px, 2.8vw, 26px);
    display: flex;
    align-items: center;
    gap: clamp(12px, 2vw, 22px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-promocao:active {
    transform: scale(0.985);
}

.icone-trofeu {
    flex-shrink: 0;
    width: clamp(88px, 14vw, 132px);
    font-size: clamp(52px, 9vw, 80px);
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icone-trofeu img {
    width: 100%;
    height: auto;
    max-height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
}

.info-promocao {
    flex: 1;
    min-width: 0;
}

.linha-topo {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: clamp(12px, 2vw, 18px);
}

.linha-topo h3 {
    font-size: clamp(18px, 3.2vw, 34px);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 6px;
    word-break: break-word;
}

.linha-topo h3 span {
    color: #ffb400;
    font-weight: 800;
}

.linha-topo p {
    font-size: clamp(13px, 2.2vw, 22px);
    opacity: 0.92;
    line-height: 1.25;
}

.premio {
    flex-shrink: 0;
    font-size: clamp(28px, 5vw, 56px);
    color: #ffb400;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1;
}

.premio-coin {
    width: clamp(28px, 4.5vw, 42px);
    height: clamp(28px, 4.5vw, 42px);
    object-fit: contain;
}

.barra-linha {
    display: flex;
    align-items: center;
    gap: clamp(10px, 2vw, 18px);
}

.barra-bg {
    flex: 1;
    min-width: 0;
    height: clamp(40px, 6vw, 54px);
    background: #1b3575;
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.barra-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffcf3a 0%, #ff9800 100%);
    border-radius: 999px;
    transition: width 0.35s ease;
}

.progresso-texto {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(13px, 2.2vw, 22px);
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
    pointer-events: none;
    white-space: nowrap;
    padding: 0 8px;
}

.percentual {
    flex-shrink: 0;
    font-size: clamp(14px, 2.4vw, 24px);
    font-weight: 900;
    color: #ffb400;
    min-width: 2.5em;
    text-align: right;
}

.seta {
    flex-shrink: 0;
    font-size: clamp(36px, 6vw, 64px);
    color: #fff;
    opacity: 0.85;
    line-height: 1;
    padding-left: 4px;
}

.tag-faceis {
    margin-top: 4px;
    font-size: clamp(10px, 1.8vw, 13px);
    color: #93c5fd;
    font-weight: 700;
}

.card-promocao-empty {
    justify-content: center;
    text-align: center;
    opacity: 0.85;
}

.card-promocao-empty p {
    margin: 0;
    font-size: clamp(14px, 2.4vw, 18px);
}

.rodape-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: clamp(8px, 2vw, 16px);
    font-size: clamp(12px, 2vw, 18px);
    opacity: 0.82;
    line-height: 1.35;
    text-align: center;
}

.rodape-info i {
    font-size: 1.1em;
    opacity: 0.9;
}

@media (max-width: 900px) {
    .pagina-promocoes {
        padding: 14px 12px 20px;
        padding-left: max(12px, env(safe-area-inset-left));
        padding-right: max(12px, env(safe-area-inset-right));
        padding-bottom: max(20px, env(safe-area-inset-bottom));
    }

    .topo-valores {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        margin-bottom: 16px;
    }

    .topo-valores h2 {
        font-size: 15px;
        background: rgba(18, 39, 92, 0.75);
        border: 1px solid rgba(255, 180, 0, 0.15);
        border-radius: 14px;
        padding: 12px 14px;
    }

    .conteudo-promocoes {
        flex-direction: column;
        gap: 16px;
    }

    .menu-lateral {
        width: 100%;
        flex-direction: row;
        align-items: stretch;
        gap: 8px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 2px;
    }

    .menu-lateral::-webkit-scrollbar {
        display: none;
    }

    .gift-box {
        width: clamp(100px, 24vw, 130px);
        min-width: 100px;
        max-height: 130px;
        flex-shrink: 0;
        border-radius: 16px;
    }

    .menu-btn {
        min-width: clamp(110px, 28vw, 150px);
        flex-shrink: 0;
        min-height: 52px;
        font-size: 15px;
        border-radius: 14px;
    }

    .linha-topo {
        flex-wrap: wrap;
        gap: 10px;
    }

    .premio {
        margin-left: auto;
    }
}

@media (max-width: 640px) {
    .topo-nav a {
        min-height: 44px;
        font-size: 15px;
    }

    .topo-valores h2 {
        font-size: 14px;
        line-height: 1.35;
        padding: 11px 12px;
    }

    .menu-lateral {
        position: sticky;
        top: 56px;
        z-index: 10;
        background: linear-gradient(180deg, #020d2d 75%, rgba(2, 13, 45, 0));
        padding: 8px 0 10px;
        margin: -4px 0 4px;
    }

    .gift-box {
        display: none;
    }

    .menu-btn {
        flex: 1;
        min-width: 0;
        min-height: 46px;
        font-size: 13px;
        border-radius: 12px;
        padding: 8px 6px;
    }

    .lista-promocoes {
        gap: 12px;
    }

    .card-promocao {
        display: grid;
        grid-template-columns: 72px minmax(0, 1fr);
        grid-template-rows: auto auto;
        align-items: start;
        gap: 12px 14px;
        padding: 14px;
        border-radius: 18px;
    }

    .icone-trofeu {
        grid-column: 1;
        grid-row: 1;
        width: 72px;
        font-size: 52px;
        align-self: start;
        margin-top: 4px;
    }

    .info-promocao {
        grid-column: 2;
        grid-row: 1;
        width: 100%;
    }

    .seta {
        display: none;
    }

    .linha-topo {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        margin-bottom: 12px;
    }

    .linha-topo h3 {
        font-size: 16px;
        line-height: 1.25;
    }

    .linha-topo h3 span {
        display: block;
        margin-top: 4px;
        font-size: 14px;
    }

    .linha-topo p {
        font-size: 13px;
        line-height: 1.35;
    }

    .premio {
        align-self: flex-start;
        margin-left: 0;
        font-size: 24px;
        padding: 6px 10px;
        background: rgba(255, 180, 0, 0.1);
        border: 1px solid rgba(255, 180, 0, 0.25);
        border-radius: 12px;
    }

    .premio-coin {
        width: 24px;
        height: 24px;
    }

    .barra-linha {
        gap: 8px;
    }

    .barra-bg {
        height: 38px;
    }

    .progresso-texto {
        font-size: 11px;
        white-space: normal;
        text-align: center;
        line-height: 1.15;
        padding: 0 6px;
    }

    .percentual {
        font-size: 14px;
        min-width: 2.4em;
    }

    .tag-faceis {
        display: inline-block;
        margin-top: 6px;
        padding: 4px 8px;
        background: rgba(147, 197, 253, 0.12);
        border-radius: 999px;
    }

    .rodape-info {
        font-size: 12px;
        padding: 0 4px;
    }
}

@media (max-width: 380px) {
    .pagina-promocoes {
        padding: 10px 10px 18px;
    }

    .card-promocao {
        grid-template-columns: 60px minmax(0, 1fr);
        gap: 10px 12px;
        padding: 12px;
    }

    .icone-trofeu {
        width: 60px;
        font-size: 44px;
    }

    .linha-topo h3 {
        font-size: 15px;
    }

    .linha-topo h3 span {
        font-size: 13px;
    }

    .premio {
        font-size: 22px;
    }

    .barra-bg {
        height: 34px;
    }

    .progresso-texto {
        font-size: 10px;
    }

    .percentual {
        font-size: 13px;
    }

    .menu-btn {
        font-size: 12px;
        min-height: 44px;
    }
}
