/* =========================================
   BASE E CORES GERAIS
   ========================================= */
body {
    color: #f8f8f8 !important;
    background: linear-gradient(180deg, #0c0c0c 0%, #393d41 100%) !important;
    padding-top: 120px !important; /* CORREÇÃO AQUI: 120px empurra o site para baixo do menu fixo! */
    font-family: 'Poppins', sans-serif !important;
}

.lnk-dyn { color: #ffbe33 !important; }
.lnk-dyn:hover { color: #d19d2c !important; }

/* Botões Modernos (Efeito Glow) */
.btn-dyn {
    display: inline-block;
    font-weight: 700 !important;
    text-align: center;
    text-transform: uppercase;
    color: #000 !important;
    background: linear-gradient(135deg, #ffbe33 0%, #d19d2c 100%) !important;
    border: none !important;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 12px !important;
    box-shadow: 0 4px 15px rgba(255, 190, 51, 0.3) !important;
    transition: all 0.3s ease !important;
}

.btn-dyn:hover {
    transform: scale(1.02);
    box-shadow: 0 0 25px rgba(255, 190, 51, 0.5) !important;
    color: #000 !important;
}

.bg-screen-dyn { background-color: #0c0c0c !important; }
.bg-box-dyn { background-color: #1f252d !important; }
.bg-sld-dyn { background-color: #ffbe33 !important; color: #222831 !important; }

/* =========================================
   MENU SUPERIOR FIXO (GLASS EFFECT)
   ========================================= */
.glass-nav {
    background: rgba(12, 12, 12, 0.85) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* Limita a altura do logotipo para o menu não engolir o site no telemóvel */
.navbar-brand img {
    width: auto;
}

.menu-icon {
    margin-right: 6px;
    color: #ffbe33;
    font-size: 1.1em;
}

/* =========================================
   1. PÁGINA INICIAL: GRID DE RIFAS
   ========================================= */
.offer-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
    margin: 0 !important;
}

/* =======================================
   PÁGINA DO SORTEIO (HERO CENTRALIZADO)
   ======================================= */
.raffle-hero {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    margin: 0 auto 35px auto; /* Centraliza a caixa inteira na tela */
    max-width: 800px; /* Impede que estique demais no PC */
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.05);
}

.raffle-hero img {
    width: 100%;
    height: 400px; /* Aumentamos a altura da imagem */
    object-fit: cover;
}

.raffle-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 50px 20px 30px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 50%, transparent 100%);
    text-align: center; /* Centraliza todos os textos */
}

.raffle-hero-title {
    font-weight: 900;
    font-size: 2.2rem; /* Título bem maior */
    color: #fff;
    margin-bottom: 5px;
    line-height: 1.2;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
}

.raffle-hero-price {
    color: #ffbe33;
    font-weight: 900;
    font-size: 1.8rem; /* Preço maior */
    margin-bottom: 15px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
}

/* O novo aviso de +18 (Fininho e Elegante) */
.badge-age-limit {
    display: inline-block;
    border: 1px solid rgba(255, 190, 51, 0.5); /* Bordinha amarela fininha */
    color: rgba(255, 190, 51, 0.9); /* Texto levemente amarelado */
    background: rgba(0, 0, 0, 0.4); /* Fundo quase transparente */
    font-size: 0.85rem; /* Aumentamos o tamanho da letra */
    font-weight: 400;
    padding: 6px 16px;
    border-radius: 50px;
    letter-spacing: 0.5px;
    backdrop-filter: blur(5px);
}

.col-offer {
    width: 100% !important;
    padding: 0 !important;
}

.raffle-card {
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease;
    margin-bottom: 0 !important;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important;
}

.raffle-card:hover {
    transform: translateY(-5px);
    border-color: #ffbe33 !important;
}

.raffle-card .img-container {
    position: relative;
}

.raffle-card .price-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: #ffbe33;
    color: #000;
    padding: 5px 12px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.85rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.raffle-card .detail-box {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 15px !important;
}

/* Destaque Maior (Primeira Rifa da Lista) */
.col-offer:first-of-type { grid-column: span 2 !important; }
.col-offer:first-of-type .img-container img {
    height: 300px;
    width: 100%;
    object-fit: cover;
    object-position: center;
}
.col-offer:first-of-type .raffle-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 10px;
}
.col-offer:first-of-type .btn-buy-now {
    background: linear-gradient(135deg, #ffbe33 0%, #d19d2c 100%) !important;
    color: #000 !important;
    text-align: center;
    padding: 15px;
    border-radius: 12px;
    font-weight: 700;
    display: block;
    text-transform: uppercase;
    font-size: 1.1rem;
}

/* Rifas Menores Lado a Lado (Restantes) */
.col-offer:not(:first-of-type) .img-container img {
    height: 140px !important;
    width: 100%;
    object-fit: cover;
}
.col-offer:not(:first-of-type) .detail-box {
    padding: 10px !important;
}
.col-offer:not(:first-of-type) .raffle-title {
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 5px;
}
.col-offer:not(:first-of-type) .btn-buy-now {
    background: linear-gradient(135deg, #ffbe33 0%, #d19d2c 100%) !important;
    color: #000 !important;
    text-align: center;
    padding: 8px;
    border-radius: 8px;
    font-weight: 700;
    display: block;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-top: 10px;
}
.col-offer:not(:first-of-type) .price-badge {
    font-size: 0.75rem;
    padding: 4px 8px;
    bottom: 5px;
    right: 5px;
}

/* =========================================
   2. PÁGINA DE RIFAS (BOTÕES DE NÚMEROS E COTAS)
   ========================================= */
.progress {
    height: 14px !important;
    border-radius: 20px !important;
    background-color: #1a1d23 !important;
    border: 1px solid #2a313c;
    margin-top: 15px;
    margin-bottom: 10px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, #d19d2c 0%, #ffbe33 100%) !important;
    border-radius: 20px !important;
    box-shadow: 0 0 10px rgba(255, 190, 51, 0.4);
}

.cotas-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    margin-top: 20px;
    margin-bottom: 25px;
}

.btn-cota {
    flex: 1 1 calc(33.333% - 12px);
    background-color: #1f252d;
    border: 2px solid #2a313c;
    border-radius: 12px;
    padding: 15px 5px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-cota:hover, .btn-cota:active {
    border-color: #ffbe33;
    background-color: rgba(255, 190, 51, 0.05);
    transform: scale(1.03);
}

.btn-cota .num {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: #ffbe33;
    line-height: 1;
    margin-bottom: 4px;
}

.btn-cota .text {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 600;
    color: #888;
}

.grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    padding: 10px 0;
}

.grid .number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 10px !important;
    background-color: #1f252d !important;
    border: 1px solid #323b48 !important;
    color: #f8f8f8 !important;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0 !important;
}

.grid .number:not(.paid):not(.pending):hover {
    border-color: #ffbe33 !important;
    background-color: #2a313c !important;
}

.grid .number.active, .grid .number.selected {
    background-color: #ffbe33 !important;
    color: #0c0c0c !important;
    border-color: #ffbe33 !important;
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(255, 190, 51, 0.4);
}

.grid .number.paid {
    background-color: rgba(40, 167, 69, 0.1) !important; 
    border-color: rgba(40, 167, 69, 0.3) !important;
    color: #28a745 !important;
    opacity: 0.6;
}

.grid .number.pending {
    background-color: rgba(255, 190, 51, 0.1) !important; 
    border-color: rgba(255, 190, 51, 0.3) !important;
    color: #ffbe33 !important;
    opacity: 0.6;
}

/* =========================================
   3. RODAPÉ (FOOTER E CARDS DE PASSOS)
   ========================================= */
.footer_section {
    background: #0c0c0c !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.steps .px-2 {
    margin-bottom: 25px;
}

.steps .detail-box {
    background: #1f252d !important;
    border-radius: 16px;
    padding: 25px 20px;
    height: 100%;
    border: 1px solid #2a313c;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.steps .step {
    position: absolute;
    top: -15px;
    right: 20px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(255, 190, 51, 0.4);
    background: linear-gradient(135deg, #ffbe33 0%, #d19d2c 100%) !important;
    color: #000 !important;
}

.steps .detail-box h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #f8f8f8;
}
.steps .detail-box p {
    font-size: 0.85rem;
    color: #bbb;
}
.btn-success {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
    color: #fff !important;
    border-radius: 8px !important;
}
/* Estilo da Tarja Disponível no Card */
.offer_section .box .detail-box h6 span {
    background-color: #ffbe33 !important; /* Amarelo */
    color: #000 !important;
    padding: 5px 12px !important;
    border-radius: 50px !important;
    font-weight: bold !important;
    font-size: 12px !important;
    text-transform: uppercase !important;
    display: inline-block !important;
    margin-bottom: 10px !important;
}

/* Preço em destaque */
.offer_section .box .detail-box h5 {
    color: #fff !important;
    font-weight: 800 !important;
    margin-top: 10px !important;
}


/* =======================================
   DESIGN PREMIUM: LISTA HÍBRIDA (PRO)
   ======================================= */
.raffle-item .raffle-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    background: rgba(31, 37, 45, 0.8) !important;
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    padding: 15px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.raffle-item .raffle-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 190, 51, 0.4);
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
}

/* Tarja de Status - Estilo Badge Moderno */
.raffle-item .status-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    color: white;
    padding: 5px 14px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 800;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Container da Imagem */
.raffle-item .img-container {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.raffle-item .img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.raffle-item .raffle-card:hover .img-container img {
    transform: scale(1.1);
}

/* Detalhes e Títulos */
.raffle-item .detail-box {
    flex-grow: 1;
    padding-left: 20px;
    text-align: left;
}

.raffle-item .raffle-title {
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 8px;
    line-height: 1.2;
    color: #ffffff;
    letter-spacing: -0.5px;
    text-transform: capitalize;
}

.raffle-item .price-text {
    color: #ffbe33;
    font-weight: 900;
    font-size: 1.3rem;
    margin-bottom: 12px;
    font-family: 'Inter', sans-serif;
}

.raffle-item .btn-participar {
    font-weight: 700;
    border-radius: 10px;
    padding: 8px 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #ffbe33 0%, #ff9f00 100%);
    color: #000;
    border: none;
    display: inline-block;
}

/* =======================================
   O DESTAQUE (PRIMEIRA RIFA)
   ======================================= */
.raffle-item:first-of-type .raffle-card {
    flex-direction: column;
    padding: 0;
    border: 1px solid rgba(255, 190, 51, 0.3);
}

.raffle-item:first-of-type .img-container {
    width: 100%;
    height: 280px;
    border-radius: 0;
}

.raffle-item:first-of-type .detail-box {
    padding: 25px;
    text-align: center;
    width: 100%;
}

.raffle-item:first-of-type .raffle-title {
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.raffle-item:first-of-type .price-text {
    font-size: 1.8rem;
}

.raffle-item:first-of-type .btn-participar {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    border-radius: 15px;
}




/* =======================================
   PÁGINA DO SORTEIO (CORREÇÕES PRO)
   ======================================= */
/* Grelha de Números */
.filters_menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.filters_menu li {
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    cursor: pointer;
    background: #1f252d;
    border: 1px solid #333;
    color: #fff;
    list-style: none;
}

.filters_menu li.active {
    background: #ffbe33 !important;
    color: #000 !important;
    border-color: #ffbe33;
}

.raffle_section .number {
    width: auto !important;
    min-width: 65px;
    height: 45px;
    padding: 0 10px;
    margin: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(31, 37, 45, 0.9);
    cursor: pointer;
    transition: all 0.2s;
}

.raffle_section .number span {
    display: inline-block;
}

.raffle_section .number.free:hover {
    background: #ffbe33;
    color: #000;
    transform: scale(1.05);
}

.raffle_section .number.paid { background: #28a745 !important; color: #fff !important; opacity: 0.7; cursor: not-allowed; }
.raffle_section .number.pending { background: #ffc107 !important; color: #000 !important; opacity: 0.7; cursor: not-allowed; }
.raffle_section .number.selected { 
    background: #ffbe33 !important; 
    color: #000 !important; 
    border-color: #fff;
    transform: scale(1.05);
}

/* Barra Flutuante de Compra */
.checkout_section {
    background: #191e26 !important;
    border-top: 2px solid #ffbe33;
    padding: 15px 0;
    z-index: 1050;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.5);
}