/**
 * ==========================================================
 * RAGO ACCOUNT
 * Billing Module - Responsive Dark Theme
 * ==========================================================
 */

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Main Billing Page */

.rago-billing-page {
    width: 100%;
    max-width: 1450px;
    min-width: 0;
    min-height: 720px;
    margin: 0 auto;
    padding: 55px;
    overflow-x: hidden;
    color: #f5f7fb;
    background: #080d18;
}

/* Header */

.rago-billing-header {
    width: 100%;
    min-width: 0;
    margin-bottom: 35px;
}

.rago-billing-eyebrow {
    margin-bottom: 12px;
    color: #8ea8ff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.rago-billing-title {
    max-width: 100%;
    margin: 0;
    color: #ffffff;
    font-size: 48px;
    line-height: 1.15;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.rago-billing-description {
    max-width: 850px;
    margin: 14px 0 0;
    color: #aeb8ca;
    font-size: 17px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

/* Grid */

.rago-billing-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
    width: 100%;
    min-width: 0;
}

/* Cards */

.rago-billing-card {
    min-width: 0;
    min-height: 290px;
    padding: 36px;
    overflow: hidden;
    background: #111827;
    border: 1px solid #29354a;
    border-radius: 22px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
}

.rago-billing-card-wide {
    grid-column: 1 / -1;
    min-height: 250px;
}

.rago-billing-card h2 {
    margin: 0 0 13px;
    color: #ffffff;
    font-size: 27px;
    line-height: 1.3;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.rago-billing-card p {
    margin: 0;
    color: #aeb8ca;
    font-size: 16px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

/* Icons */

.rago-billing-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin-bottom: 25px;
    background: #1d2b46;
    border: 1px solid #35496d;
    border-radius: 17px;
    font-size: 29px;
}

/* Status */

.rago-billing-status {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    margin-top: 28px;
    padding: 12px 16px;
    color: #9ff2bd;
    background: #102c23;
    border: 1px solid #245c43;
    border-radius: 11px;
    font-size: 14px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.rago-billing-status::before {
    content: "";
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    margin-right: 9px;
    background: #35d477;
    border-radius: 50%;
}

/* Plan */

.rago-billing-plan {
    display: inline-block;
    max-width: 100%;
    margin-top: 28px;
    padding: 13px 20px;
    color: #ffffff;
    background: linear-gradient(135deg, #4169e1, #6948d8);
    border-radius: 12px;
    font-size: 17px;
    line-height: 1.4;
    font-weight: 800;
    overflow-wrap: anywhere;
}

/* Empty State */

.rago-billing-empty {
    width: 100%;
    margin-top: 28px;
    padding: 22px;
    color: #8f9db5;
    background: #0b1220;
    border: 1px dashed #34435c;
    border-radius: 13px;
    font-size: 15px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

/* Tablet */

@media (max-width: 1100px) {

    .rago-billing-page {
        padding: 45px 30px 70px;
    }

    .rago-billing-grid {
        gap: 22px;
    }

    .rago-billing-card {
        padding: 28px;
    }

    .rago-billing-title {
        font-size: 42px;
    }

}

/* Mobile Landscape / Small Tablet */

@media (max-width: 900px) {

    .rago-billing-page {
        width: 100%;
        max-width: 100%;
        padding: 38px 22px 65px;
    }

    .rago-billing-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .rago-billing-card-wide {
        grid-column: auto;
    }

    .rago-billing-card {
        min-height: auto;
        padding: 28px 24px;
    }

}

/* Mobile */

@media (max-width: 600px) {

    .rago-billing-page {
        width: 100%;
        max-width: 100%;
        min-height: auto;
        margin: 0;
        padding: 30px 14px 55px;
        overflow-x: hidden;
    }

    .rago-billing-header {
        margin-bottom: 24px;
    }

    .rago-billing-eyebrow {
        margin-bottom: 9px;
        font-size: 11px;
        letter-spacing: 1.2px;
    }

    .rago-billing-title {
        font-size: 30px;
        line-height: 1.2;
    }

    .rago-billing-description {
        margin-top: 10px;
        font-size: 14px;
        line-height: 1.6;
    }

    .rago-billing-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .rago-billing-card,
    .rago-billing-card-wide {
        width: 100%;
        min-width: 0;
        min-height: auto;
        padding: 22px 18px;
        border-radius: 16px;
    }

    .rago-billing-card h2 {
        margin-bottom: 10px;
        font-size: 22px;
        line-height: 1.3;
    }

    .rago-billing-card p {
        font-size: 14px;
        line-height: 1.6;
    }

    .rago-billing-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 18px;
        border-radius: 13px;
        font-size: 23px;
    }

    .rago-billing-status {
        display: flex;
        width: 100%;
        margin-top: 20px;
        padding: 10px 12px;
        font-size: 12px;
        line-height: 1.5;
    }

    .rago-billing-plan {
        display: block;
        width: 100%;
        margin-top: 20px;
        padding: 12px 14px;
        font-size: 15px;
        text-align: center;
    }

    .rago-billing-empty {
        margin-top: 20px;
        padding: 16px;
        font-size: 13px;
        line-height: 1.6;
    }

}

/* Very Small Mobile */

@media (max-width: 380px) {

    .rago-billing-page {
        padding: 25px 11px 45px;
    }

    .rago-billing-title {
        font-size: 27px;
    }

    .rago-billing-card,
    .rago-billing-card-wide {
        padding: 20px 15px;
        border-radius: 14px;
    }

    .rago-billing-card h2 {
        font-size: 20px;
    }

    .rago-billing-card p {
        font-size: 13px;
    }

}

/* Remove White Side Gaps */

.rago-billing-page {
    position: relative;
    z-index: 1;
    box-shadow: 0 0 0 100vmax #080d18;
    clip-path: inset(0 -100vmax);
}



















/* ==========================================================
   BILLING - MOBILE PAYMENT TABLE FIX
   ========================================================== */

.rago-billing-card-wide {
    overflow: hidden;
}

.rago-billing-card-wide table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    border-collapse: collapse;
}

.rago-billing-card-wide table th,
.rago-billing-card-wide table td {
    white-space: nowrap;
}

/* Mobile */

@media (max-width: 600px) {

    .rago-billing-card-wide {
        padding: 22px 16px;
        overflow: hidden;
    }

    .rago-billing-card-wide table {
        font-size: 13px;
    }

    .rago-billing-card-wide table th,
    .rago-billing-card-wide table td {
        padding: 12px 14px;
    }
}















/* ==========================================================
   BILLING - MOBILE TOP SPACE FIX
   ========================================================== */

@media (max-width: 600px) {

    .rago-billing-page {
        padding-top: 170px !important;
    }

}