:root {
   /* Compatibilidade SonhoDigital (NovoLayout) */
   --sonhodigital-bg: #f4f6f9; /* Fundo cinza claro igual ao print */
   --sonhodigital-bgColor: #000000;
   --sonhodigital-bgLink: #000000;
   --sonhodigital-bgLinkHover: #00C851;
   --sonhodigital-rgba: 0, 0, 0;
   --sonhodigital-rgbaInvert: 0, 0, 0;
   --sonhodigital-formBg: #ffffff;
   --sonhodigital-formBgHover: #f8f9fa;
   --sonhodigital-formBgHoverColor: #000000;
   --sonhodigital-formBorder: #dee2e6;
   --sonhodigital-formColor: #495057;
   --sonhodigital-cardBg: #ffffff;
   --sonhodigital-cardColor: #000000;
   --sonhodigital-cardLink: #000000;
   --sonhodigital-modalBg: #ffffff;
   --sonhodigital-modalBorder: #dee2e6;
   --sonhodigital-modalColor: #000000;
   --sonhodigital-primaria: #000000;
   --sonhodigital-primariaColor: #ffffff;
   --sonhodigital-primariaHover: #111111;
   --sonhodigital-primariaLink: #00C851;
   --sonhodigital-primariaLinkHover: #00e65c;
   --sonhodigital-primariaDarken: #000000;
   --sonhodigital-primariaDarkenColor: #ffffff;
   --sonhodigital-secundaria: #333333;
}

/* Body Background */
body, html {
    background-color: #f4f6f9 !important; /* Light background */
    color: #212529 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
}

img, .img-fluid, video {
    display: block;
    max-width: 100% !important;
    height: auto !important;
}

.container, .container-600, .app-main {
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.sorteio-header .SorteioTpl_imagemContainer__2-pl4 img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

@media (max-width: 480px) {
    .container-600 {
        max-width: 600px !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
        box-sizing: border-box !important;
    }
    body.is-raffle .container.app-main {
        max-width: 600px !important;
        width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        box-sizing: border-box !important;
    }
    .btn, .promo-item .btn, .app-card .btn {
        width: 100% !important;
    }
}

@media (min-width: 768px) {
    .container-600, body.is-raffle .container.app-main {
        max-width: 600px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* Ensure no top spacing on main containers */
.app-main, 
.container, 
.container-fluid {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.bg-success {
    background-color: transparent !important; /* Remove fundo verde */
}

.text-white {
    color: #fff !important;
}

/* Override Bootstrap bg-success for specific elements that should remain green (like buttons) */
.btn-success, .badge.bg-success {
    background-color: #00C851 !important;
    color: #fff !important;
}

.app-card.bg-success {
    background-color: transparent !important; /* Fundo transparente */
    border: none !important;
    color: #000 !important; /* Texto preto */
}

/* Fix for Green Background on Main Image Container */
.app-main, 
.SorteioTpl_sorteioTpl__2s2Wu, 
.SorteioTpl_destaque__3vnWR,
.SorteioTpl_imagemContainer__2-pl4 {
    background-color: transparent !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Home: padroniza foto das campanhas */
:root{
    --home-card-img-height: 290px;
}
@media (min-width: 768px) {
    :root{
        --home-card-img-height: 360px;
    }
}

body.home {
    --home-card-img-height: 290px;
}
@media (min-width: 768px) {
    body.home {
        --home-card-img-height: 360px;
    }
}

/* Garante altura da imagem quando o card está em modo destaque (independente da classe no body) */
.SorteioTpl_sorteioTpl__2s2Wu.SorteioTpl_destaque__3vnWR .SorteioTpl_imagemContainer__2-pl4 {
    height: 290px !important;
}
@media (min-width: 768px) {
    .SorteioTpl_sorteioTpl__2s2Wu.SorteioTpl_destaque__3vnWR .SorteioTpl_imagemContainer__2-pl4 {
        height: 360px !important;
    }
}

body.home .SorteioTpl_sorteioTpl__2s2Wu:not(.sorteio-header) {
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 0 !important;
}
body.home .SorteioTpl_sorteioTpl__2s2Wu:not(.sorteio-header) .SorteioTpl_imagemContainer__2-pl4 {
    position: relative !important;
    width: 100% !important;
    height: var(--home-card-img-height) !important;
    overflow: hidden !important;
    border-top-left-radius: 10px !important;
    border-top-right-radius: 10px !important;
    margin-right: 0 !important;
}
body.home .SorteioTpl_sorteioTpl__2s2Wu:not(.sorteio-header) .SorteioTpl_imagemContainer__2-pl4 img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    border-top-left-radius: 10px !important;
    border-top-right-radius: 10px !important;
}
/* Remove qualquer arte ou pseudo-elemento que cause sobreposição no canto direito */
body.home .SorteioTpl_sorteioTpl__2s2Wu .SorteioTpl_imagemContainer__2-pl4:before,
body.home .SorteioTpl_sorteioTpl__2s2Wu .SorteioTpl_imagemContainer__2-pl4:after {
    display: none !important;
    content: none !important;
}
/* Garante que o card da Home recorte corretamente os filhos */
body.home .SorteioTpl_sorteioTpl__2s2Wu {
    border-radius: 10px !important;
    overflow: hidden !important;
    position: relative !important;
}
body.home .SorteioTpl_sorteioTpl__2s2Wu:not(.sorteio-header) .SorteioTpl_info__t1BZr {
    position: static !important;
    width: 100% !important;
    background: #ffffff !important;
    color: #000 !important;
    padding: 10px 12px !important;
    border-radius: 0 0 10px 10px !important;
    border: 1px solid #dee2e6 !important;
    border-top: none !important;
    min-height: 40px !important;
    display: block !important;
    box-sizing: border-box !important;
    margin-top: 0 !important;
}
body.home .SorteioTpl_sorteioTpl__2s2Wu:not(.sorteio-header) .SorteioTpl_info__t1BZr .badge {
    position: absolute !important;
    left: 12px !important;
    top: calc(var(--home-card-img-height) - 34px) !important;
    z-index: 5 !important;
}
body.home .SorteioTpl_sorteioTpl__2s2Wu:not(.sorteio-header) .SorteioTpl_title__3RLtu {
    margin: 0 !important;
    font-size: clamp(15px, 4.2vw, 19px) !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    color: #000 !important;
}
body.home .SorteioTpl_sorteioTpl__2s2Wu:not(.sorteio-header) .SorteioTpl_descricao__1b7iL {
    margin: 4px 0 0 0 !important;
    font-size: 11px !important;
    color: #6c757d !important;
}
body.home .SorteioTpl_sorteioTpl__2s2Wu:not(.sorteio-header) .SorteioTpl_descricao__1b7iL.SorteioTpl_descricaoCta__2bYwK {
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.2px !important;
    text-transform: uppercase !important;
    color: #198754 !important;
}
@media (min-width: 768px) {
    body.home .SorteioTpl_sorteioTpl__2s2Wu:not(.sorteio-header) .SorteioTpl_imagemContainer__2-pl4 {
        height: var(--home-card-img-height) !important;
    }
}

body.home .SorteioTpl_destaque__3vnWR .carousel-item {
    height: var(--home-card-img-height) !important;
}
@media (min-width: 768px) {
    body.home .SorteioTpl_destaque__3vnWR .carousel-item {
        height: var(--home-card-img-height) !important;
    }
}
/* Override: Home cards title bar below image (ensure it wins) */
body.home .container.app-main .SorteioTpl_sorteioTpl__2s2Wu:not(.sorteio-header) .SorteioTpl_info__t1BZr {
    position: static !important;
    width: 100% !important;
    background: #ffffff !important;
    color: #000 !important;
    padding: 10px 12px !important;
    border-radius: 0 0 10px 10px !important;
    border: 1px solid #dee2e6 !important;
    border-top: none !important;
    min-height: 40px !important;
    display: block !important;
    box-sizing: border-box !important;
    margin-top: 0 !important;
    pointer-events: auto !important;
    z-index: 1 !important;
}
body.home .container.app-main .SorteioTpl_sorteioTpl__2s2Wu:not(.sorteio-header) .SorteioTpl_title__3RLtu {
    margin: 0 !important;
    font-size: clamp(15px, 4.2vw, 19px) !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    color: #000 !important;
}
.container.app-main .SorteioTpl_sorteioTpl__2s2Wu:not(.sorteio-header) .SorteioTpl_descricao__1b7iL {
    margin: 4px 0 0 0 !important;
    font-size: 11px !important;
    color: #6c757d !important;
}

body.home .SorteioTpl_sorteioTpl__2s2Wu + .SorteioTpl_info__t1BZr {
    position: static !important;
    width: 100% !important;
    background: #ffffff !important;
    color: #000 !important;
    padding: 10px 12px !important;
    border-radius: 0 0 10px 10px !important;
    border: 1px solid #dee2e6 !important;
    border-top: none !important;
    min-height: 40px !important;
    display: block !important;
    box-sizing: border-box !important;
    margin-top: 0 !important;
    pointer-events: auto !important;
    z-index: 1 !important;
}
body.home .SorteioTpl_sorteioTpl__2s2Wu + .SorteioTpl_info__t1BZr .SorteioTpl_title__3RLtu {
    margin: 0 !important;
    font-size: clamp(15px, 4.2vw, 19px) !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    color: #000 !important;
}
body.home .SorteioTpl_sorteioTpl__2s2Wu + .SorteioTpl_info__t1BZr .SorteioTpl_descricao__1b7iL {
    margin: 4px 0 0 0 !important;
    font-size: 11px !important;
    color: #6c757d !important;
}

/* =========================================
   XandGrau Style Overrides (Exact Replica)
   ========================================= */

/* Promo Boxes (Buy 30, 50, 100...) */
.promo-item {
    background-color: #212529 !important; /* Dark background */
    border: 1px solid #212529 !important;
    border-radius: 10px !important;
    padding: 10px !important;
    color: #fff !important;
    min-height: 110px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
}

.promo-item div:first-child {
    font-size: 14px !important;
    font-weight: bold !important;
    color: #fff !important;
}

.promo-item div:nth-child(2) {
    font-size: 11px !important;
    color: #ccc !important;
}

.promo-item .btn {
    background-color: #00C851 !important;
    border-color: #00C851 !important;
    font-size: 10px !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    border-radius: 4px !important;
    margin-top: 5px !important;
}

/* Quantity Selector Grid (+30, +50...) */
.vendasExpressNumsSelect .item {
    background-color: #000000 !important;
    border: none !important;
    border-radius: 10px !important;
    color: #ffffff !important;
    padding: 15px 5px !important;
    min-height: 85px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    transition: transform 0.2s;
}

/* Ensure the selector works with the new grid structure */
.vendasExpressNumsSelect-grid .item {
    background-color: #000000 !important;
    border: none !important;
    border-radius: 10px !important;
    color: #ffffff !important;
    padding: 15px 5px !important;
    min-height: 85px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    transition: transform 0.2s;
    width: 100% !important; /* Ensure it fills the grid cell */
}

.vendasExpressNumsSelect .item:active,
.vendasExpressNumsSelect-grid .item:active {
    transform: scale(0.95);
}

.vendasExpressNumsSelect .item h3,
.vendasExpressNumsSelect-grid .item h3 {
    font-size: 24px !important;
    font-weight: 800 !important;
    margin: 0 !important;
    color: #ffffff !important;
}

.vendasExpressNumsSelect .item p,
.vendasExpressNumsSelect-grid .item p {
    font-size: 10px !important;
    text-transform: uppercase !important;
    margin: 0 !important;
    color: #cccccc !important;
}

/* "Mais Popular" Item (Green) */
.vendasExpressNumsSelect .item.mais-popular,
.vendasExpressNumsSelect-grid .item.mais-popular {
    background-color: #00C851 !important;
    border: none !important;
    position: relative !important;
    overflow: visible !important;
}

.vendasExpressNumsSelect .item.mais-popular span,
.vendasExpressNumsSelect-grid .item.mais-popular span {
    background-color: #007E33 !important; /* Darker green badge */
    color: #fff !important;
    font-size: 9px !important;
    padding: 2px 8px !important;
    border-radius: 10px !important;
    position: absolute !important;
    top: -10px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    white-space: nowrap !important;
    font-weight: bold !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Manual Input Section */
.vendasExpressNums {
    background-color: transparent !important;
    margin-top: 15px !important;
}

.vendasExpressNums .rounded-pill {
    background-color: #fff !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 8px !important; /* Not fully pill, slightly rounded */
    height: 50px !important;
    display: flex !important;
    align-items: center !important;
}

.vendasExpressNums .removeNumero,
.vendasExpressNums .addNumero {
    width: 40px !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 20px !important;
    color: #6c757d !important;
    cursor: pointer !important;
}

.vendasExpressNums input.qty {
    font-size: 20px !important;
    font-weight: bold !important;
    color: #212529 !important;
}

/* Participar Button (Adjustments) */
#add_to_cart, .btn-success.w-100 {
    background-color: #00C851 !important;
    border-color: #00C851 !important;
    box-shadow: 0 4px 6px rgba(0,200,81,0.3);
}

.vendasExpressNums button.btn-success .row {
    flex-wrap: nowrap !important;
}

.vendasExpressNums button.btn-success .row > * {
    width: auto !important;
}

.vendasExpressNums button.btn-success .col {
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

/* Description Button Hover */
.app-descricao-completa-titulo:hover {
    color: #0d6efd !important; /* Blue color on hover */
}

.app-descricao-completa-titulo:hover i {
    color: #0d6efd !important; /* Blue icon on hover */
}


/* Badges (Promoção, etc) */
.badge.bg-dark {
    background-color: #000 !important;
    border: 1px solid #333;
}

/* Cotas Premiadas (Winning Titles) */
.app-card.bg-success .card-body {
    padding: 0;
}
.app-card.bg-success h5 {
    color: #000 !important;
    font-weight: bold;
}
.app-card.bg-success .text-white-50 {
    color: #666 !important;
}
.app-card.bg-success i {
    color: #00C851 !important; /* Green check icon */
}

/* Typography Fixes */
.text-dark {
    color: #212529 !important;
}
.text-muted {
    color: #6c757d !important;
}

/* Modal Light Theme */
.modal-content {
    background-color: #fff !important;
    color: #212529 !important;
}
.modal {
    z-index: 2000 !important;
}
.modal-backdrop {
    z-index: 1990 !important;
}
.modal,
.modal * {
    pointer-events: auto !important;
}
.modal-header {
    border-bottom: 1px solid #dee2e6;
}
.modal-footer {
    border-top: 1px solid #dee2e6;
}

#buscarComprasOverlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0,0,0,0.6) !important;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 16px;
    padding-top: 110px;
    box-sizing: border-box;
}
#buscarComprasOverlay.is-open {
    display: flex;
}
.buscarComprasDialog {
    width: 100%;
    max-width: 380px;
    background: #fff;
    color: #212529;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    overflow: hidden;
}
.buscarComprasHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid #dee2e6;
}
.buscarComprasTitle {
    font-weight: 700;
    font-size: 16px;
}
.buscarComprasClose {
    appearance: none;
    border: 0;
    background: transparent;
    font-size: 22px;
    line-height: 1;
    padding: 4px 6px;
    cursor: pointer;
    color: #212529;
}
.buscarComprasBody {
    padding: 14px;
}

@media (max-width: 480px) {
    #buscarComprasOverlay {
        padding-top: 90px;
    }
    .buscarComprasDialog {
        max-width: 420px;
    }
}

.myNumbersEmpty {
    max-width: 520px;
    margin: 18px auto 0 auto;
    text-align: center;
}
.myNumbersEmpty .alert {
    text-align: left;
}

.myNumbersHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.myNumbersHeader h1 {
    font-size: 18px;
    margin: 0;
    line-height: 1.2;
}
.myNumbersActions .btn {
    width: auto !important;
}
.form-control {
    background-color: #fff !important;
    border: 1px solid #ced4da !important;
    color: #212529 !important;
}
.form-control:focus {
    background-color: #fff !important;
    border-color: #86b7fe !important;
    color: #212529 !important;
}

/* Pink Gradient Badge */
.bg-gradient-pink {
    background: linear-gradient(90deg, #ec008c, #fc6767) !important;
    border: none;
    color: #fff !important;
}

/* Mobile Menu Fix */
#mobileMenu .modal-content {
    background-color: #000 !important; /* Dark background */
    color: #fff !important;
}

#mobileMenu .nav-vertical li a {
    color: #fff !important; /* White text */
    padding: 15px;
    display: block;
    border-bottom: 1px solid #333; /* Darker border */
}

#mobileMenu .nav-vertical li a:hover {
    background-color: #111;
}

#mobileMenu .nav-vertical li a i {
    margin-right: 10px;
    color: #fff !important; /* White icons */
}

#mobileMenu .card-usuario {
    background-color: #1a1a1a; /* Darker card */
    border: 1px solid #333;
    padding: 15px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#mobileMenu .card-usuario h3 {
    color: #fff !important;
    margin: 0;
    font-size: 16px;
}

#mobileMenu .app-header-mobile--show {
    background-color: #000 !important;
    border-bottom: 1px solid #333;
}

#mobileMenu .btn-close {
    filter: invert(1); /* Invert close button to be white */
}

#mobileMenu .app-header-mobile button {
    color: #fff !important;
}

/* Promo Scroll Horizontal */
.promo-scroll-container {
    display: flex !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch;
    gap: 10px;
    padding-bottom: 10px; /* Space for scrollbar if any */
    scrollbar-width: none; /* Firefox */
}

.promo-scroll-container::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.promo-scroll-item {
    flex: 0 0 auto !important;
    width: 140px !important; /* Fixed width for items */
}

@media (max-width: 360px) {
    .promo-scroll-item {
        width: 125px !important;
    }
    body.is-raffle .vendasExpressNums {
        flex-direction: column !important;
        gap: 10px !important;
    }
    body.is-raffle .vendasExpressNums > div {
        width: 100% !important;
    }
    body.is-raffle .vendasExpressNums .bg-white.rounded-pill {
        margin-right: 0 !important;
        width: 100% !important;
    }
}

/* Quantity Selector Grid */
.vendasExpressNumsSelect-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
    width: 100% !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    margin: 0 auto !important;
}

.vendasExpressNumsSelect-grid > div {
    width: 100% !important;
}

/* Mobile: ajustar dimensões e espaçamento do grid de seleção de números */
@media (max-width: 767.98px) {
    .vendasExpressNumsSelect-grid {
        width: min(366px, calc(100% - 24px)) !important;
        max-width: 366px !important;
        height: 168px !important;
        gap: 8px !important;
        justify-content: center !important;
        align-content: center !important;
        box-sizing: border-box !important;
        margin-left: auto !important;
        margin-right: auto !important;
        align-self: center !important;
    }
    .vendasExpressNumsSelect-grid > div {
        height: 80px !important;
    }
}

/* Fix Main Image Height */
body.is-raffle .sorteio-header .SorteioTpl_imagemContainer__2-pl4 {
    height: 290px !important;
    position: relative !important;
    overflow: hidden !important;
    border-radius: 10px 10px 0 0 !important;
    background-color: transparent !important;
    width: 100% !important;
}

body.is-raffle .sorteio-header .SorteioTpl_imagemContainer__2-pl4 .carousel,
body.is-raffle .sorteio-header .SorteioTpl_imagemContainer__2-pl4 .carousel-inner,
body.is-raffle .sorteio-header .SorteioTpl_imagemContainer__2-pl4 .carousel-item {
    height: 100% !important;
}

body.is-raffle .sorteio-header .SorteioTpl_imagemContainer__2-pl4 .carousel-item img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

body.is-raffle .sorteio-header .SorteioTpl_imagemContainer__2-pl4 img.SorteioTpl_imagem__2GXxI {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    position: absolute !important;
    inset: 0 !important;
}

/* Force container width to match reference (600px) */
body.is-raffle .sorteio-header .SorteioTpl_destaque__3vnWR {
    width: 100% !important;
    margin: 0 auto !important; /* Center it */
    border-radius: 10px !important; /* Arredondamento geral do card */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important; /* Sombra suave */
    overflow: hidden !important; /* Garante que filhos respeitem o arredondamento */
    border: none !important;
    background-color: #fff !important;
    display: block !important;
}

/* Info container styling */
body.home .SorteioTpl_info__t1BZr {
    padding: 15px !important;
    background-color: #fff !important;
    border-radius: 0 0 10px 10px !important;
}

.sorteio-header .SorteioTpl_destaque__3vnWR {
    position: relative !important;
}

.sorteio-header .SorteioTpl_info__t1BZr {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 40px !important;
    margin: 0 !important;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0)) !important;
    border-radius: 0 !important;
    padding: 18px 16px 22px !important; /* aumenta a base (rodapé) */
    min-height: 90px !important;       /* estende a altura do bloco de textos */
    box-sizing: border-box !important;
    z-index: 10 !important;
    pointer-events: none !important;
}

/* Gradiente adicional sobre a imagem para cobrir a área até a barra "Meus títulos" */
.sorteio-header .SorteioTpl_imagemContainer__2-pl4 {
    position: relative !important;
}
.sorteio-header .SorteioTpl_imagemContainer__2-pl4::after {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    height: 110px !important;
    background: linear-gradient(to top, rgba(0,0,0,0.92), rgba(0,0,0,0)) !important;
    pointer-events: none !important;
    z-index: 5 !important;
}

.sorteio-header .SorteioTpl_title__3RLtu,
.sorteio-header .SorteioTpl_descricao__1b7iL {
    color: #fff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65) !important;
    display: block !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: initial !important;
    white-space: normal !important;
    overflow: visible !important;
}

.sorteio-header .SorteioTpl_title__3RLtu {
    font-size: clamp(15px, 4.8vw, 19px) !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    margin: 0 0 2px 0 !important;
}

.sorteio-header .SorteioTpl_descricao__1b7iL {
    text-transform: uppercase !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    margin: 0 !important;
    opacity: 0.95 !important;
}

.sorteio-header .SorteioTpl_descricao__1b7iL {
    font-size: 12px !important;
    line-height: 1.15 !important;
    opacity: 0.9 !important;
}

@media (max-width: 480px) {
    .sorteio-header .SorteioTpl_destaque__3vnWR { width: 100% !important; }
}

/* Fix layout gap for absolute header */
.app-main {
    /* padding-top: 0 !important; */
    /* margin-top: 0 !important; */
    padding-left: 12px !important;
    padding-right: 12px !important;
    padding-left: clamp(12px, 4vw, 16px) !important;
    padding-right: clamp(12px, 4vw, 16px) !important;
    padding-left: calc(clamp(12px, 4vw, 16px) + env(safe-area-inset-left)) !important;
    padding-right: calc(clamp(12px, 4vw, 16px) + env(safe-area-inset-right)) !important;
    width: 100% !important;
    position: relative !important;
    z-index: 1 !important;
    box-sizing: border-box !important;
}

@media (max-width: 767.98px) {
    body.is-raffle .container.app-main {
        padding-left: 0 !important;
        padding-right: 0 !important;
        max-width: 600px !important;
        width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

body.is-raffle #area-compra {
    max-width: 600px !important;
    margin: 0 auto !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    padding-left: clamp(12px, 4vw, 16px) !important;
    padding-right: clamp(12px, 4vw, 16px) !important;
    padding-left: calc(clamp(12px, 4vw, 16px) + env(safe-area-inset-left)) !important;
    padding-right: calc(clamp(12px, 4vw, 16px) + env(safe-area-inset-right)) !important;
}

@media (min-width: 768px) {
    body.is-raffle .container.app-main {
        padding-left: 0 !important;
        padding-right: 0 !important;
        max-width: 600px !important;
    }

    body.is-raffle .sorteio-header .SorteioTpl_imagemContainer__2-pl4 {
        height: 290px !important; /* Desktop 600x290 */
    }

    body.is-raffle .sorteio-header .SorteioTpl_info__t1BZr {
        position: absolute !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 40px !important;
        margin: 0 !important;
        padding: 20px 18px 26px !important; /* desktop: rodapé ainda mais alto */
        background: linear-gradient(to top, rgba(0,0,0,0.92), rgba(0,0,0,0)) !important;
        border-radius: 0 !important;
        pointer-events: none !important;
        z-index: 10 !important;
    }
    .sorteio-header .SorteioTpl_imagemContainer__2-pl4::after {
        height: 130px !important;
    }

    /* Força título e descrição a não serem truncados */
    body.is-raffle .sorteio-header .SorteioTpl_title__3RLtu,
    body.is-raffle .sorteio-header .SorteioTpl_descricao__1b7iL {
        color: #fff !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65) !important;
        display: block !important;
        -webkit-line-clamp: unset !important;
        -webkit-box-orient: initial !important;
        white-space: normal !important;
        overflow: visible !important;
    }
}

body.is-raffle .Header_appHeader__3lDdI.before-scrolling ~ .app-main {
    padding-top: 0 !important;
    margin-top: -40px !important;
}

/* Raffle: colar imagem no topo e remover barra preta */
body.is-raffle .black-bar {
    display: none !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}
body.is-raffle .app-main {
    margin-top: -40px !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    background: transparent !important;
}

/* Specific Fix for Home/Campaign Page */
body.home .app-main, 
.app-main:first-of-type { 
    /* padding-top: 0 !important; */
    /* margin-top: 0 !important; */
}

/* Force Header Absolute and Transparent */
.Header_appHeader__3lDdI {
    position: absolute !important;
    top: 0 !important;
    z-index: 1800 !important;
    width: 100% !important;
    background-color: transparent !important;
    background: transparent !important;
    height: auto !important;
    box-shadow: none !important;
    pointer-events: auto !important;
}
.Header_appHeader__3lDdI * {
    pointer-events: auto !important;
}

body:not(.is-raffle) .Header_appHeader__3lDdI {
    position: fixed !important;
}
body:not(.is-raffle) .black-bar {
    margin-top: 70px;
}

.Header_appHeaderContainer__MSPJv {
    background-color: transparent !important;
    background: transparent !important;
    width: 100%;
    display: flex;
    justify-content: center;
    box-shadow: none !important;
}

/* Inner content constraint */
.Header_appHeaderContainer__MSPJv .container-600 {
    width: 100%;
    max-width: 600px !important;
    margin: 0 auto;
}

/* Header Black on Scroll */
.Header_appHeader__3lDdI.menu-opened {
    position: fixed !important;
    top: 0;
    width: 100% !important;
    background-color: #000 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    padding-bottom: 5px;
}

.Header_appHeader__3lDdI.menu-opened .Header_appHeaderContainer__MSPJv {
    background-color: #000 !important;
}

/* Sub-header Navigation (Campanhas / Meus Títulos) */
.bg-black {
    background-color: #000 !important;
}

.header-fixed-black {
    /* Rules for the top header are already defined, these are specific to the sub-nav if needed */
}

/* Ensure the sub-nav spans full width but content is centered if desired, 
   or just full width background. 
   Since it's inside .container.app-main which is max-600px on desktop, 
   we need to break it out if we want full width background */

@media (min-width: 768px) {
    /* To make the sub-nav background full width, we might need to adjust the HTML structure 
       or use pseudo-elements. For now, let's keep it within the container as requested 
       or apply a trick */
       
    /* This makes the sub-nav container itself full width if placed outside app-main, 
       but here it is inside. Let's styling the container app-main for home differently? 
       No, that affects everything. 
       
       Let's style the specific d-flex container */
}
.Header_appHeader__3lDdI.header-fixed-black {
    background-color: #000 !important;
    position: sticky !important;
    top: 0 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5) !important;
}

.black-bar {
    pointer-events: none !important;
}

.Header_appHeaderContainer__MSPJv.header-fixed-black {
    background-color: #000 !important;
}

/* Ensure no gap on top when header is fixed */
.header-fixed-black + script + .black-bar {
    /* Allow black-bar to exist as intended */
}

/* Allow app-main to use its own margins (defined in novolayout.css) */
/*
.header-fixed-black + script + .black-bar + .app-main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
*/

/* Suporte Icon Fix */
.text-yellow {
    color: #ffc107 !important; /* Yellow text for Suporte */
}
.font-xss {
    font-size: 0.75rem !important; /* Small font size */
}
.opacity-50 {
    opacity: 0.5 !important;
}
.txtSuporte {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.2;
}

/* Botões com gradiente (replica visual "bg-gradient-dark") */
.btn-success,
.btn-primary,
.btn-dark {
    position: relative !important;
    overflow: hidden;
    color: #fff !important;
}
.btn-success::before,
.btn-primary::before,
.btn-dark::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(90deg, rgba(0,0,0,0.20) 0%, rgba(0,0,0,0.00) 50%, rgba(0,0,0,0.20) 100%) !important;
    pointer-events: none !important;
    z-index: 0 !important;
}
.btn-success > *,
.btn-primary > *,
.btn-dark > * {
    position: relative;
    z-index: 1;
}
.btn-success:hover::before,
.btn-primary:hover::before,
.btn-dark:hover::before {
    background: linear-gradient(90deg, rgba(0,0,0,0.28) 0%, rgba(0,0,0,0.06) 50%, rgba(0,0,0,0.28) 100%) !important;
}

/* Winning Titles Section */
.winning-titles-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 8px;
}

.winning-titles-header h5 {
    font-weight: bold;
    color: #212529;
    margin-bottom: 0;
}

.winning-total-badge{
    border: none;
    outline: none;
    height: 36px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    margin-left: auto;
    box-shadow: 0 4px 6px rgba(50,50,93,.11), 0 1px 3px rgba(0,0,0,.08);
}

.bg-gradient-blue {
    background: #5e72e4 !important; /* Blue color matching the reference */
    background: linear-gradient(87deg, #5e72e4 0, #825ee4 100%) !important;
    box-shadow: 0 4px 6px rgba(50,50,93,.11), 0 1px 3px rgba(0,0,0,.08);
}

.winning-filters .btn {
    border-radius: 6px;
    font-weight: bold;
    text-transform: none;
    font-size: 13px;
    padding: 8px 0;
    color: #fff !important;
}

.winning-filters .btn-available {
    background-color: #00bfa5 !important; /* Teal */
    border-color: #00bfa5 !important;
}

.winning-filters .btn-drawn {
    background-color: #dc3545 !important; /* Red */
    border-color: #dc3545 !important;
    opacity: 0.8;
}

.winning-item {
    background-color: #fff;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.winning-item.is-sold{
    background-color: #000;
}

.winning-item.is-sold .prize-name,
.winning-item.is-sold .status{
    color: #fff;
}

.winning-item.is-sold .ticket-number{
    background-color: #111;
    border: 1px solid rgba(255,255,255,0.18);
}

.winning-item .winner-name{
    font-weight: 700;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
    display: inline-block;
    vertical-align: bottom;
}

.winning-item .trophy{
    color: #f6c343;
    margin-left: 6px;
}

.winning-item .ticket-number {
    background-color: #6c757d;
    color: #fff;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.winning-item .ticket-number i {
    margin-right: 4px;
}

.winning-item .prize-name {
    font-size: 12px;
    font-weight: bold;
    color: #333;
    text-transform: uppercase;
    flex: 1;
    text-align: center;
    margin: 0 5px;
}

.winning-item .status {
    font-size: 12px;
    color: #333;
}

.btn-load-more {
    background-color: #000 !important;
    color: #fff !important;
    border-radius: 20px !important;
    font-size: 14px;
    font-weight: bold;
    padding: 8px 0;
}

.order-view .order-campaign-card{
    border-radius: 10px;
    overflow: hidden;
}
.order-view .order-campaign-body{
    padding: 10px;
    gap: 10px;
    align-items: center;
}
.order-view .order-campaign-image{
    width: 88px;
    height: 64px;
    flex: 0 0 88px;
    border-radius: 10px;
    overflow: hidden;
    background: #f1f1f1;
}
.order-view .order-campaign-image img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.order-view .order-campaign-text{
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.order-view .order-campaign-title{
    font-weight: 800;
    font-size: 14px;
    line-height: 1.1;
    color: #212529;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.order-view .order-campaign-subtitle{
    font-size: 11px;
    line-height: 1.1;
    color: #6c757d;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}
.order-view .order-campaign-text .badge{
    align-self: flex-start;
    margin-top: 6px;
}

@media (min-width: 768px) {
    .order-view .order-campaign-image{
        width: 110px;
        height: 80px;
        flex-basis: 110px;
    }
}

@media (max-width: 360px) {
    .order-view .order-campaign-image{
        width: 77px;
        height: 56px;
        flex-basis: 77px;
    }
}

.order-view .SorteioTpl_imagemContainer__2-pl4{
    width: 88px !important;
    height: 64px !important;
    flex: 0 0 88px !important;
}
.order-view .SorteioTpl_imagem__2GXxI{
    width: 88px !important;
    height: 64px !important;
    object-fit: cover !important;
}
@media (min-width: 768px) {
    .order-view .SorteioTpl_imagemContainer__2-pl4{
        width: 110px !important;
        height: 80px !important;
        flex-basis: 110px !important;
    }
    .order-view .SorteioTpl_imagem__2GXxI{
        width: 110px !important;
        height: 80px !important;
    }
}
@media (max-width: 360px) {
    .order-view .SorteioTpl_imagemContainer__2-pl4{
        width: 77px !important;
        height: 56px !important;
        flex-basis: 77px !important;
    }
    .order-view .SorteioTpl_imagem__2GXxI{
        width: 77px !important;
        height: 56px !important;
    }
}

/* =========================================
   RESPONSIVE & DESKTOP FIXES
   ========================================= */

/* Mobile First: Default is 100% width (already set above) */
.Header_appHeader__3lDdI {
    left: 0 !important;
    transform: none !important;
}

/* Desktop: Allow header to be full width */
@media (min-width: 768px) {
    .container.app-main,
    .app-main, 
    .SorteioTpl_imagemContainer__2-pl4, 
    .SorteioTpl_sorteioTpl__2s2Wu {
        max-width: 600px !important;
        margin: 0 auto !important;
        width: 100% !important;
    }
    
    .Header_appHeader__3lDdI {
        width: 100% !important;
        left: 0 !important;
        transform: none !important;
        max-width: 100% !important;
    }
    
    .Header_appHeader__3lDdI.menu-opened {
        width: 100% !important;
        left: 0 !important;
        transform: none !important;
        max-width: 100% !important;
    }
}

/* Hide unwanted artifacts on Home Page Carousel */
.SorteioTpl_infosFlutuante__3Fahl,
.SorteioTpl_avisos__1Rrk {
    display: none !important;
}

/* Ensure Carousel Controls are hidden if not needed */
.carousel-control-prev,
.carousel-control-next,
.carousel-indicators {
    display: none !important;
}
