/* /public/css/saque.css */

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Montserrat', sans-serif;
        }

        body {
            background-color: #1a1a2e;
            color: #fff;
            /* Garante espaço para o cabeçalho fixo */
            padding-top: 90px; 
        }

        .container {
            background-color: #2a2a4e;
            border-radius: 10px;
            padding: 40px;
            text-align: center;
            max-width: 600px; 
            margin: 20px auto; /* Centraliza o container */
            width: 90%;
            box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
            border: 2px solid #f8c537;
            position: relative;
            overflow: hidden;
        }

        .header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
        }

        .back-button {
            color: #f8c537;
            font-size: 1.5rem;
            cursor: pointer;
            transition: transform 0.3s;
        }

        .back-button:hover {
            transform: translateX(-5px);
        }

        .logo {
            font-size: 1.8rem;
            font-weight: bold;
            color: #f8c537;
            text-shadow: 0 0 10px rgba(248, 197, 55, 0.5);
            flex-grow: 1;
            text-align: center;
        }

        h1 {
            color: #f8c537;
            margin-bottom: 20px;
            font-size: 1.8rem;
            text-shadow: 0 0 10px rgba(248, 197, 55, 0.5);
        }

        .pix-method {
            background-color: #3a3a5e;
            padding: 20px;
            border-radius: 8px;
            margin-bottom: 30px;
            border-left: 4px solid #f8c537;
            display: flex;
            align-items: center;
        }

        .pix-icon {
            font-size: 2rem;
            color: #f8c537;
            margin-right: 15px;
        }

        .pix-info {
            text-align: left;
        }

        .pix-name {
            font-weight: bold;
            margin-bottom: 5px;
        }

        .pix-desc {
            color: #aaa;
            font-size: 0.9rem;
        }

        .balance {
            background-color: #3a3a5e;
            padding: 15px;
            border-radius: 8px;
            margin-bottom: 30px;
            border-left: 4px solid #f8c537;
        }

        .balance-label {
            font-size: 1rem;
            color: #f8c537;
            margin-bottom: 5px;
        }

        .balance-value {
            font-size: 1.8rem;
            font-weight: bold;
        }

        .custom-amount {
            margin: 25px 0;
        }

        .custom-amount input {
            width: 100%;
            padding: 15px;
            border-radius: 8px;
            border: 2px solid #f8c537;
            background-color: #3a3a5e;
            color: white;
            font-size: 1.2rem;
            text-align: center;
            margin-bottom: 15px;
        }

        .custom-amount input::placeholder {
            color: #aaa;
        }

        .amount-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 15px;
            margin: 30px 0;
        }

        .amount-option {
            background-color: #3a3a5e;
            padding: 15px;
            border-radius: 8px;
            border: 2px solid #444466;
            cursor: pointer;
            transition: all 0.3s;
            font-weight: bold;
        }

        .amount-option:hover {
            transform: translateY(-5px);
            box-shadow: 0 5px 15px rgba(248, 197, 55, 0.2);
            border-color: #f8c537;
        }

        .amount-option.selected {
            background-color: #f8c537;
            color: #1a1a2e;
            border-color: #f8c537;
        }

        .confirm-button {
            background: linear-gradient(135deg, #f8c537, #f8a537);
            color: #1a1a2e;
            border: none;
            padding: 15px 30px;
            border-radius: 8px;
            font-size: 1.2rem;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s;
            width: 100%;
            margin-top: 20px;
        }

        .confirm-button:hover {
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(248, 197, 55, 0.4);
        }

        .info-text {
            margin-top: 30px;
            font-size: 0.9rem;
            color: #aaa;
        }

        @media (max-width: 768px) {
            .container {
                padding: 30px 20px;
            }
            
            .amount-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .logo {
                font-size: 1.5rem;
            }
        }
       
        /* Estilo para exibição do rollover_requirement */
        .rollover-status-banner {
            background-color: rgba(248, 197, 55, 0.1);
            border: 1px solid #f8c537;
            color: #f8c537;
            padding: 15px;
            border-radius: 8px;
            margin-top: 20px;
            margin-bottom: 20px;
            font-size: 1rem;
            font-weight: bold;
            text-align: center;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }

/* Botão de Histórico */
.btn-secondary {
    background: transparent;
    color: #f8c537;
    border: 2px solid #f8c537;
    padding: 13px 30px; /* Um pouco menor que o primário */
    border-radius: 8px;
    font-size: 1.1rem; /* Um pouco menor */
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    margin-top: 15px;
}

.btn-secondary:hover {
    background: #f8c537;
    color: #1a1a2e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(248, 197, 55, 0.3);
}

/* Estilos do Modal */
.modal {
    display: none; /* Oculto por padrão */
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #2a2a4e;
    margin: auto;
    padding: 25px;
    border: 1px solid #f8c537;
    border-radius: 10px;
    width: 90%;
    max-width: 700px;
    box-shadow: 0 5px 25px rgba(248, 197, 55, 0.2);
    position: relative;
    animation: slide-down 0.4s ease-out;
}

@keyframes slide-down {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal-btn {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal-btn:hover,
.close-modal-btn:focus {
    color: #f8c537;
    text-decoration: none;
}

.modal-content h2 {
    text-align: center;
    color: #f8c537;
    margin-bottom: 20px;
}

.modal-body {
    max-height: 60vh;
    overflow-y: auto;
}

/* Estilos da Tabela de Histórico */
#history-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

#history-table th,
#history-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #3a3a5e;
}

#history-table th {
    background-color: #3a3a5e;
    color: #f8c537;
    font-weight: bold;
}

#history-table tr:hover {
    background-color: #3a3a5e;
}

.loading-message, .error-message, .no-history {
    text-align: center;
    padding: 20px;
    color: #aaa;
    font-style: italic;
}

.error-message {
    color: #e94560;
}

/* Estilos dos Badges de Status */
.status-badge {
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.85em;
    font-weight: bold;
    color: #fff;
    text-transform: capitalize;
}

.status-pending { background-color: #f39c12; }
.status-completed { background-color: #2ecc71; }
.status-failed { background-color: #e74c3c; }
.status-refunded { background-color: #3498db; }
.status-processing { background-color: #9b59b6; }

/* Adiciona quebra de linha para chaves PIX longas */
#history-table td:nth-child(3) {
    word-break: break-all;
}

/* --- RESPONSIVIDADE DO MODAL DE HISTÓRICO --- */
@media screen and (max-width: 768px) {
    .modal-content {
        padding: 15px;
    }

    #history-table thead {
        /* Esconde o cabeçalho da tabela em telas pequenas */
        display: none;
    }

    #history-table, #history-table tbody, #history-table tr, #history-table td {
        display: block;
        width: 100%;
    }

    #history-table tr {
        margin-bottom: 15px;
        border: 1px solid #4a4a6e;
        border-radius: 5px;
        padding: 10px;
    }

    #history-table td {
        text-align: right; /* Alinha o conteúdo à direita */
        padding-left: 50%; /* Cria espaço para o rótulo */
        position: relative;
        border-bottom: 1px dashed #4a4a6e;
    }

    #history-table td:last-child {
        border-bottom: none;
    }

    #history-table td::before {
        /* Usa o data-label como o rótulo da "coluna" */
        content: attr(data-label);
        position: absolute;
        left: 10px;
        width: 45%;
        padding-right: 10px;
        font-weight: bold;
        text-align: left;
        color: #f8c537;
    }
}
.status-processing { background-color: #9b59b6; }
