
/* ================= CREDIT BALANCE ================= */

.credits-balance{

    background:rgba(255,255,255,.05);

    border:1px solid rgba(255,255,255,.08);

    border-radius:20px;

    padding:25px;

    margin-bottom:40px;

    text-align:center;
}

.credits-balance span{
    font-size:18px;
    font-weight:600;
}

.credits-balance h2{
    font-size:72px;
    font-weight:800;
    line-height:1;
    margin:10px 0 20px;
}


/* ================= HEADER ================= */

.credits-header{
    text-align:center;
    margin-bottom:30px;
}

.credits-header h1{
    font-size:2.5rem;
    margin-bottom:10px;
}

.credits-header p{
    opacity:.8;
    max-width:600px;
    margin:auto;
}

/* ================= CARDS ================= */

.credit-cards{

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(280px,1fr));

    gap:25px;
}

.credit-card{

    background:rgba(255,255,255,.05);

    border:1px solid rgba(255,255,255,.08);

    border-radius:24px;

    padding:30px;

    position:relative;

    transition:.3s;
}

.credit-card:hover{

    transform:translateY(-8px);

    border-color:#3b82f6;
}

.credit-card h3{
    font-size:1.5rem;
    margin-bottom:20px;
}

.price{

    font-size:3rem;
    font-weight:700;

    margin-bottom:25px;

    color:#60a5fa;
}

.credit-card ul{

    list-style:none;

    margin-bottom:30px;
}

.credit-card ul li{

    margin-bottom:12px;

    opacity:.9;
}

/* ================= BUTTON ================= */

.credit-card button{

    width:100%;

    border:none;

    border-radius:14px;

    padding:14px;

    font-size:1rem;

    font-weight:600;

    cursor:pointer;

    background:#2563eb;
    color:white;

    transition:.3s;
}

.credit-card button:hover{
    transform:translateY(-2px);
}

/* ================= POPULAR ================= */

.popular{

    border:2px solid #2563eb;

    transform:scale(1.03);
}

.badge{

    position:absolute;

    top:-12px;
    right:20px;

    background:#2563eb;

    color:white;

    padding:6px 12px;

    border-radius:999px;

    font-size:.8rem;

    font-weight:600;
}




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

.history-table-wrapper {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,.05);
}

.history-table {
    width: 100%;
    border-collapse: collapse;
}

.history-table th,
.history-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.history-table th {
    font-weight: 600;
}

.credits-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top:20px;
}
.credits-link {
    display: inline-block;
    padding: 10px 18px;

    background: linear-gradient(
        135deg,
        #4f6ef7,
        #6dcff6
    );

    color: white;
    text-decoration: none;

    border-radius: 12px;

    font-size: 14px;
    font-weight: 600;

    transition: 0.2s;
}

.credits-link:hover {
    transform: translateY(-2px);
}

.history-page{
    max-width:1200px;
    margin:0 auto;
}


.history-table{
    background:white;
    border-radius:24px;
    overflow:hidden;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
}

.history-table-header,
.history-row{
    display:grid;
    grid-template-columns:
        80px
        1.2fr
        1fr
        1fr
        1fr;
}

.history-table-header{
    background:#f8f8f8;
    font-weight:700;
}

.history-table-header div,
.history-row div{
    padding:20px 24px;
}

.history-row{
    border-top:1px solid #eee;
}

.history-row:hover{
    background:#fafafa;
}

.credit-positive{

    color:#16a34a;

    font-weight:700;
}

.credit-negative{

    color:#dc2626;

    font-weight:700;
}

/* ================= MOBILE ================= */

@media(max-width:768px){

    .credits-header h1{
        font-size:2rem;
    }

    .price{
        font-size:2.4rem;
    }

    .popular{
        transform:none;
    }

.history-header h1{

        margin-top:60px;

    }


}