/* ========== CAIXA PIX SCREEN - ESTILO OFICIAL ========== */

.caixa-pix-screen {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: #f3f4f6;
    font-family: 'Inter', sans-serif;
    overflow-y: auto;
    z-index: 9999;
}

.caixa-pix-screen.active {
    display: block;
}

/* Header Azul Caixa - Para tela PIX */
.caixa-header {
    background: #0066b3;
    padding: 25px 0;
    text-align: center;
}

.caixa-logo {
    height: 32px;
    width: auto;
}

/* Header Verde Mega-Sena - Barra DENTRO do card */
.mega-bar {
    background: #209869;
    padding: 10px 20px;
    text-align: center;
    border-radius: 4px 4px 0 0;
    margin: 0;
}

.mega-logo {
    height: 24px;
    width: auto;
}

/* Card Principal */
.caixa-pix-card {
    background: white;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    margin: 0 auto 30px;
    max-width: 450px;
    padding: 0;
    overflow: hidden;
}

.caixa-pix-card .step-title-section,
.caixa-pix-card .step-content,
.caixa-pix-card .step-footer {
    padding-left: 15px;
    padding-right: 15px;
}

.caixa-pix-card .step-footer {
    padding-bottom: 15px;
}

/* Valor e Data Row */
.valor-data-row {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
    padding: 15px;
}

.valor-col,
.data-col {
    flex: 1;
    text-align: center;
}

.valor-col {
    border-right: 1px solid #e0e0e0;
}

.valor-label,
.data-label {
    display: block;
    color: #6b7280;
    font-size: 0.7rem;
    font-weight: 700;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.valor-amount {
    display: block;
    color: #0066b3;
    font-size: 1.3rem;
    font-weight: 800;
}

.data-value {
    display: block;
    color: #0066b3;
    font-size: 0.9rem;
    font-weight: 700;
}

/* Hora em tamanho menor */
.data-value .time-part {
    font-size: 0.65rem;
    color: #0066b3;
    margin-left: 2px;
}

/* Helper to force hide main header */
body.pix-active .header {
    display: none !important;
}

/* Mensagem de Sucesso - Layout Vertical */
.success-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 15px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    color: #0066b3;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
}

.success-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: 2px solid #209869;
    border-radius: 50%;
    color: #209869;
    font-size: 14px;
    font-weight: bold;
}

/* Seção Apostador */
.apostador-section {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.section-title {
    color: #0066b3;
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0 0 12px;
    border-bottom: 2px solid #bfdbfe;
    display: inline-block;
    padding-bottom: 4px;
}

.field-label {
    color: #003f72;
    font-size: 0.7rem;
    font-weight: 700;
    margin: 0;
}

.apostador-nome {
    color: #003f72;
    font-size: 0.8rem;
    font-weight: 600;
    margin: 0 0 10px;
    text-transform: uppercase;
}

.apostador-cpf {
    color: #003f72;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: monospace;
    margin: 0;
}

/* Detalhes da Compra / Resumo */
.compra-details {
    padding: 15px;
    background: #fff;
}

.compra-item {
    margin-bottom: 12px;
    font-size: 0.75rem;
}

.compra-item-name {
    display: block;
    color: #003f72;
    font-weight: 700;
}

.compra-item-value {
    display: block;
    color: #6b7280;
    font-family: monospace;
    letter-spacing: 0.05em;
}

/* Seção de Pagamento */
.pagamento-section {
    padding: 20px 15px;
    text-align: center;
}

.countdown-title {
    color: #003f72;
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0 0 15px;
    text-transform: uppercase;
    border-bottom: 2px solid #bfdbfe;
    display: inline-block;
    padding-bottom: 4px;
}

.countdown-time {
    color: #0066b3;
}

/* QR Code Container */
.qr-code-container {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
    background: #fff;
    border: 1px solid #e5e7eb;
    padding: 20px;
    border-radius: 4px;
}

.qr-code-container img {
    max-width: 180px;
    height: auto;
}

/* Código PIX Box */
.codigo-pix-box {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 12px;
}

.codigo-label {
    display: block;
    color: #6b7280;
    font-size: 0.7rem;
    margin-bottom: 6px;
    text-align: center;
}

.codigo-text {
    font-family: monospace;
    font-size: 0.65rem;
    color: #374151;
    word-break: break-all;
    background: white;
    border: 1px solid #e5e7eb;
    padding: 8px;
    border-radius: 3px;
    text-align: center;
}

/* Status */
.status-section {
    text-align: center;
    font-size: 0.75rem;
    margin-top: 8px;
}

.status-label {
    color: #6b7280;
}

.status-value {
    color: #f97316;
    font-weight: 700;
}

/* Linha Laranja */
.orange-divider {
    height: 4px;
    background: #f97316;
    margin: 0;
    width: 100%;
}

/* Mensagem Final */
.final-message {
    text-align: center;
    color: #003f72;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 20px 15px 10px;
    margin: 0;
    text-transform: uppercase;
}

/* Botões - Padrão Unificado */
.btn-copiar-pix {
    display: block;
    width: 100%;
    max-width: 340px;
    margin: 10px auto;
    padding: 16px 24px;
    background: #f97316;
    color: white;
    border: none;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(249, 115, 22, 0.3);
    transition: all 0.2s ease;
    animation: pulse-orange-pix 2s ease-in-out infinite;
}

@keyframes pulse-orange-pix {

    0%,
    100% {
        box-shadow: 0 3px 10px rgba(249, 115, 22, 0.3);
    }

    50% {
        box-shadow: 0 3px 20px rgba(249, 115, 22, 0.5);
    }
}

.btn-copiar-pix:hover {
    background: #ea580c;
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(249, 115, 22, 0.35);
    animation: none;
}

.btn-ja-paguei {
    display: block;
    width: 100%;
    max-width: 340px;
    margin: 10px auto;
    padding: 16px 24px;
    background: #0066b3;
    color: white;
    border: none;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 102, 179, 0.25);
    transition: all 0.2s ease;
    animation: pulse-payment 2s infinite;
}

.btn-ja-paguei:hover {
    background: #0077cc;
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(0, 102, 179, 0.35);
}

@keyframes pulse-payment {

    0%,
    100% {
        box-shadow: 0 3px 10px rgba(0, 102, 179, 0.25);
    }

    50% {
        box-shadow: 0 3px 20px rgba(0, 102, 179, 0.5);
    }
}

.btn-ja-paguei:hover {
    background: #1e5c9e;
}

.btn-ja-paguei.loading {
    background-color: #94a3b8;
    animation: none;
}

.btn-ja-paguei.success {
    background-color: #209869;
    animation: none;
}

.btn-ja-paguei.error {
    background-color: #ef4444;
    animation: none;
}

.btn-nova-aposta {
    background: none;
    border: none;
    color: #fff;
    text-decoration: underline;
    font-size: 0.8rem;
    margin: 10px auto;
    display: block;
    cursor: pointer;
}

/* Spinner for Manual Check */
.spinner {
    display: inline-block;
    animation: rotate 1s linear infinite;
    margin-right: 5px;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Helper to force hide main header */
.header-hidden {
    display: none !important;
}

/* Copy feedback toast */
.copy-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 600;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.copy-toast.show {
    opacity: 1;
    visibility: visible;
}

.copy-toast .toast-icon {
    color: #209869;
    font-size: 1.2rem;
    font-weight: bold;
}

/* ========================================
   BOLÃO SIMPLIFICADO - Estilo PIX Polido
   ======================================== */

.bolao-card {
    padding: 0 !important;
    margin-top: 20px !important;
}

.bolao-title-section {
    text-align: center;
    padding: 20px 20px 15px;
    background: white;
    border-bottom: 1px solid #e5e7eb;
}

.bolao-main-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0066b3;
    margin: 0 0 6px 0;
    margin-bottom: 5px;
}

.bolao-subtitle {
    font-size: 0.85rem;
    color: #6b7280;
}

/* Lista de pacotes */
.bolao-simple-list {
    padding: 0;
}

.bolao-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
}

.bolao-item:last-child {
    border-bottom: none;
}

.bolao-item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bolao-item-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
}

.bolao-item-cotas {
    font-size: 0.8rem;
    color: #6b7280;
}

.bolao-item-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.bolao-item-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0066b3;
}

/* Controle de quantidade */
.bolao-qty {
    display: flex;
    align-items: center;
    background: #0066b3;
    border-radius: 6px;
    overflow: hidden;
}

.bolao-qty-btn {
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.bolao-qty-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.bolao-qty-num {
    min-width: 30px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
}

/* Footer com total e botões */
.bolao-footer-simple {
    padding: 20px;
    border-top: 1px solid #e0e0e0;
}

.bolao-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1rem;
    color: #333;
}

.bolao-total-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0066b3;
}

.bolao-btn-continuar {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 12px;
    transition: all 0.2s;
    box-shadow: 0 3px 8px rgba(249, 115, 22, 0.35);
}

.bolao-btn-continuar:hover {
    background: linear-gradient(135deg, #ea580c 0%, #dc2626 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

.bolao-btn-voltar {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.bolao-btn-voltar:hover {
    background: #f3f4f6;
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .bolao-item {
        padding: 12px 15px;
    }

    .bolao-item-title {
        font-size: 0.9rem;
    }

    .bolao-item-price {
        font-size: 1rem;
    }
}

/* Ver Números toggle button */
.bolao-ver-numeros {
    display: block;
    width: 100%;
    padding: 8px;
    background: transparent;
    border: none;
    border-top: 1px dashed #e0e0e0;
    color: #0066b3;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}

.bolao-ver-numeros:hover {
    background: #f0f7ff;
}

/* Item row wrapper */
.bolao-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

/* Fix bolao-item to be column for expandable */
.bolao-item {
    display: flex;
    flex-direction: column;
    padding: 0;
    border-bottom: 1px solid #e0e0e0;
}

/* Numbers list */
.bolao-numeros-lista {
    background: #f8fafc;
    padding: 12px 15px;
    border-top: 1px solid #e9ecef;
}

.bolao-jogo {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.8rem;
    color: #333;
    padding: 5px 0;
    border-bottom: 1px dotted #e0e0e0;
}

.bolao-jogo:last-child {
    border-bottom: none;
}

.jogo-label {
    font-weight: 600;
    color: #0066b3;
    margin-right: 8px;
}