﻿.rifa-detail-page {
    background: #2E3239;
    color: white;
    min-height: 100vh;
    padding: 40px 18px 70px;
}

.rifa-detail-container {
    max-width: 1120px;
    margin: 0 auto;
}

.rifa-breadcrumb {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    color: #9ca3af;
    font-size: 13px;
    margin-bottom: 24px;
}

    .rifa-breadcrumb a {
        color: #5F7ADB;
        text-decoration: none;
    }

.rifa-detail-hero {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 28px;
    align-items: center;
    margin-bottom: 55px;
}

.rifa-detail-image img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    background: white;
    border-radius: 18px;
    box-shadow: 0 20px 45px rgba(0,0,0,.35);
}

.rifa-detail-info h1 {
    font-size: clamp(30px, 5vw, 48px);
    font-weight: 900;
    line-height: 1.05;
    margin: 12px 0;
}

.rifa-detail-info p {
    color: #d1d5db;
    line-height: 1.5;
}

.rifa-detail-badge {
    display: inline-flex;
    background: #5F7ADB;
    color: white;
    padding: 8px 13px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.rifa-detail-panel {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 18px;
    padding: 18px;
    margin-top: 22px;
}

.rifa-live {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(34,197,94,.16);
    color: #22c55e;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 14px;
}

    .rifa-live span {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #22c55e;
    }

.rifa-detail-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    color: #e5e7eb;
}

.rifa-progress {
    height: 9px;
    background: rgba(255,255,255,.12);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 8px;
}

    .rifa-progress div {
        height: 100%;
        background: #5F7ADB;
    }

.rifa-faq-box {
    max-width: 820px;
    margin: 0 auto 55px;
}

    .rifa-faq-box h2,
    .rifa-numbers-section h2 {
        text-align: center;
        font-size: 30px;
        font-weight: 900;
        margin-bottom: 24px;
    }

    .rifa-faq-box details {
        background: rgba(255,255,255,.05);
        border: 1px solid rgba(255,255,255,.08);
        border-radius: 14px;
        padding: 16px;
        margin-bottom: 10px;
    }

    .rifa-faq-box summary {
        cursor: pointer;
        font-weight: 800;
    }

    .rifa-faq-box p {
        color: #cbd5e1;
        margin: 10px 0 0;
    }

.rifa-numbers-section {
    max-width: 920px;
    margin: 0 auto;
}

.rifa-login-warning {
    background: rgba(245,158,11,.15);
    border: 1px solid rgba(245,158,11,.35);
    color: #fef3c7;
    padding: 14px;
    border-radius: 14px;
    margin-bottom: 18px;
    text-align: center;
}

    .rifa-login-warning a {
        color: white;
        font-weight: 900;
    }

.rifa-number-tools {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    margin-bottom: 18px;
}

    .rifa-number-tools input {
        background: rgba(255,255,255,.05);
        border: 1px solid rgba(255,255,255,.12);
        color: white;
        border-radius: 12px;
        padding: 13px 14px;
        outline: none;
    }

.rifa-qty-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.07);
    border-radius: 12px;
    padding: 5px;
}

    .rifa-qty-box button {
        width: 38px;
        height: 38px;
        border: none;
        border-radius: 10px;
        background: rgba(255,255,255,.08);
        color: white;
        font-weight: 900;
    }

    .rifa-qty-box span {
        min-width: 38px;
        text-align: center;
        font-weight: 900;
    }

.rifa-number-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(48px, 1fr));
    gap: 8px;
    max-height: 520px;
    overflow-y: auto;
    padding: 4px 4px 12px;
}

.rifa-numero {
    border: none;
    border-radius: 9px;
    padding: 10px 0;
    color: white;
    font-size: 13px;
    font-weight: 800;
}

.numero-disponivel {
    background: #334155;
    cursor: pointer;
}

    .numero-disponivel:hover {
        background: #5F7ADB;
    }

.numero-vendido,
.numero-reservado {
    background: #6b7280;
    opacity: .65;
    cursor: not-allowed;
}

.numero-selecionado {
    background: #5F7ADB !important;
}

.numero-destaque {
    outline: 3px solid #facc15;
}

.rifa-number-legend {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin: 18px 0 24px;
}

    .rifa-number-legend span {
        display: flex;
        align-items: center;
        gap: 7px;
        color: #e5e7eb;
        font-size: 13px;
    }

.legenda {
    width: 16px;
    height: 16px;
    border-radius: 5px;
}

    .legenda.disponivel {
        background: #334155;
    }

    .legenda.vendido {
        background: #6b7280;
    }

    .legenda.selecionado {
        background: #5F7ADB;
    }

.rifa-selected-box {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 20px;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 20px;
    margin-bottom: 18px;
}

.rifa-selected-list {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    margin-top: 8px;
}

    .rifa-selected-list span {
        background: rgba(95,122,219,.22);
        border: 1px solid rgba(95,122,219,.45);
        padding: 5px 9px;
        border-radius: 8px;
        font-size: 12px;
    }

.rifa-total-box span {
    display: block;
    color: #cbd5e1;
    font-size: 13px;
}

.rifa-total-box strong {
    font-size: 22px;
}

.rifa-action-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}

    .rifa-action-buttons button,
    .rifa-pay-button {
        background: #5F7ADB;
        color: white;
        border: none;
        border-radius: 12px;
        padding: 14px;
        font-weight: 900;
        text-transform: uppercase;
    }

.rifa-pay-button {
    width: 100%;
}

@media (max-width: 900px) {
    .rifa-detail-hero {
        grid-template-columns: 1fr;
    }

    .rifa-detail-image img {
        height: 320px;
    }

    .rifa-selected-box {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .rifa-detail-page {
        padding: 24px 12px 50px;
    }

    .rifa-number-tools,
    .rifa-action-buttons {
        grid-template-columns: 1fr;
    }

    .rifa-detail-row {
        flex-direction: column;
    }

    .rifa-number-grid {
        grid-template-columns: repeat(auto-fill, minmax(42px, 1fr));
        gap: 6px;
    }

    .rifa-numero {
        font-size: 11px;
        padding: 9px 0;
    }
}


.rifa-modal-content {
    background: #2E3239;
    color: white;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 20px;
}

.rifa-modal-icon {
    font-size: 54px;
    color: #5F7ADB;
}

.rifa-modal-content small {
    color: #cbd5e1;
}