/* ============================
   PAGE : CRÉDITS & FACTURATION
============================ */

/* --- Solde de crédits --- */

.credits-balance {
    text-align: center;
    margin-bottom: 20px;
}

.balance-number {
    font-size: 48px;
    font-weight: 700;
    color: #0A6EBE;
}

.balance-label {
    color: #6b7280;
    font-size: 15px;
}

.credits-info {
    text-align: center;
    margin-bottom: 20px;
}

.credits-info p {
    margin: 4px 0;
    color: #374151;
}


/* --- Packs de crédits --- */

.credit-packs {
    display: flex;
    gap: 20px;
}

.pack-card {
    flex: 1;
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #e5e7eb;
    text-align: center;
    box-shadow:
        0 10px 25px rgba(15,23,42,.05),
        0 4px 12px rgba(15,23,42,.03);
    transition: transform .15s ease, box-shadow .15s ease;
}

.pack-card:hover {
    transform: translateY(-3px);
    box-shadow:
        0 16px 35px rgba(15,23,42,.08),
        0 6px 18px rgba(15,23,42,.04);
}

.pack-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.pack-price {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}


/* --- Historique des achats --- */

/* Wrapper scrollable */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

/* Empêche le tableau de se casser */
.table-responsive .table {
    min-width: 600px;
}

.table td .link {
    font-weight: 600;
}


/* ============================
   RESPONSIVE SPÉCIFIQUE
============================ */

@media (max-width: 900px) {

    .credit-packs {
        flex-direction: column;
    }
}

@media (max-width: 600px) {

    .balance-number {
        font-size: 38px;
    }

    .pack-card {
        padding: 18px;
    }
}
