* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    font-family: Arial, sans-serif;
    color: white;

    background:
        radial-gradient(
            circle at 15% 10%,
            #5b4210,
            transparent 28%
        ),
        radial-gradient(
            circle at 85% 80%,
            #0c5966,
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #06151b,
            #082d36,
            #06151b
        );
}

.topbar {
    height: 75px;
    padding: 0 6%;

    display: flex;
    align-items: center;
    justify-content: space-between;

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

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

    backdrop-filter: blur(15px);
}

.back-btn {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border-radius: 12px;

    color: white;
    text-decoration: none;

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

    font-size: 22px;
}

.topbar h2 {
    font-size: 20px;
}

.profile-mini {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #0c6b78,
            #18c4d8
        );

    font-weight: bold;
}

.premium-page {
    width: 92%;
    max-width: 1000px;

    margin: auto;

    padding: 35px 0 60px;
}


/* HERO */

.premium-hero {
    display: flex;
    align-items: center;

    gap: 20px;

    margin-bottom: 25px;
}

.premium-icon {
    width: 78px;
    height: 78px;

    display: grid;
    place-items: center;

    border-radius: 22px;

    font-size: 40px;

    background:
        rgba(255,190,60,.12);

    border:
        1px solid rgba(255,190,60,.3);

    box-shadow:
        0 0 30px
        rgba(255,190,60,.1);
}

.premium-hero p,
.section-title span,
.coin-card small,
.status-card small,
.unlock-card small {
    color: #7cebf5;

    font-size: 11px;

    letter-spacing: 1px;

    font-weight: 600;
}

.premium-hero h1 {
    font-size: 35px;

    margin: 6px 0;
}

.premium-hero span {
    color: #91a8ad;
}


/* COINS */

.coin-card {
    position: relative;

    display: flex;
    align-items: center;

    gap: 16px;

    padding: 24px;

    border-radius: 20px;

    background:
        linear-gradient(
            135deg,
            rgba(255,190,60,.12),
            rgba(255,255,255,.05)
        );

    border:
        1px solid rgba(255,190,60,.2);

    margin-bottom: 15px;
}

.coin-icon {
    width: 58px;
    height: 58px;

    display: grid;
    place-items: center;

    border-radius: 17px;

    font-size: 29px;

    background:
        rgba(255,190,60,.12);
}

.coin-card h2 {
    font-size: 28px;

    margin-top: 4px;
}

.coin-label {
    margin-left: auto;

    color: #91a8ad;

    font-size: 12px;
}


/* STATUS */

.status-card {
    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 20px;

    margin-bottom: 35px;

    border-radius: 18px;

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

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

.status-card h2 {
    margin-top: 6px;

    font-size: 19px;
}

.status-card > span {
    padding: 8px 13px;

    border-radius: 20px;

    font-size: 11px;

    font-weight: bold;

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

    color: #91a8ad;
}


/* SECTION */

.section-title {
    margin-bottom: 18px;
}

.section-title h2 {
    margin-top: 5px;
}


/* BENEFITS */

.benefits-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 14px;
}

.benefit-card {
    display: flex;

    align-items: center;

    gap: 15px;

    padding: 20px;

    border-radius: 18px;

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

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

    transition: .25s ease;
}

.benefit-card:hover {
    transform: translateY(-2px);

    border-color:
        rgba(24,196,216,.3);
}

.benefit-icon {
    min-width: 52px;
    height: 52px;

    display: grid;
    place-items: center;

    border-radius: 15px;

    font-size: 25px;

    background:
        rgba(24,196,216,.1);
}

.benefit-card p {
    color: #91a8ad;

    font-size: 13px;

    line-height: 1.4;

    margin-top: 5px;
}


/* UNLOCK */

.unlock-card {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    margin-top: 30px;

    padding: 25px;

    border-radius: 20px;

    background:
        linear-gradient(
            135deg,
            rgba(24,196,216,.1),
            rgba(255,255,255,.05)
        );

    border:
        1px solid rgba(24,196,216,.2);
}

.unlock-card h2 {
    margin-top: 6px;
}

.unlock-card p {
    color: #91a8ad;

    font-size: 13px;

    margin-top: 6px;
}

.unlock-action {
    display: flex;

    align-items: center;

    gap: 15px;
}

.price {
    white-space: nowrap;

    font-size: 18px;
}

.price strong {
    font-size: 22px;
}

.unlock-action button {
    border: none;

    padding: 13px 20px;

    border-radius: 12px;

    color: white;

    font-weight: bold;

    cursor: pointer;

    background:
        linear-gradient(
            135deg,
            #0c6b78,
            #18c4d8
        );

    transition: .2s ease;
}

.unlock-action button:hover {
    transform: translateY(-2px);
}


/* EARNING */

.earning-card {
    display: flex;

    align-items: center;

    gap: 15px;

    margin-top: 18px;

    padding: 20px;

    border-radius: 18px;

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

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

.earning-card > span {
    font-size: 30px;
}

.earning-card p {
    color: #91a8ad;

    font-size: 13px;

    margin-top: 4px;

    line-height: 1.4;
}


/* MOBILE */

@media (max-width: 650px) {

    .topbar {
        padding: 0 4%;
    }

    .topbar h2 {
        font-size: 17px;
    }

    .profile-mini span {
        display: none;
    }

    .premium-page {
        width: 94%;

        padding-top: 25px;
    }

    .premium-hero h1 {
        font-size: 28px;
    }

    .premium-icon {
        width: 65px;
        height: 65px;

        font-size: 32px;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .unlock-card {
        flex-direction: column;

        align-items: flex-start;
    }

    .unlock-action {
        width: 100%;
    }

    .unlock-action button {
        flex: 1;
    }

    .coin-label {
        display: none;
    }
}
/* =========================================
   XP PREMIUM PLANS
========================================= */

.xp-premium-section {
    margin-top: 28px;
    padding: 24px;

    border-radius: 22px;

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

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

    box-shadow:
        0 18px 45px rgba(0,0,0,.22);
}


.xp-premium-header {
    margin-bottom: 22px;
}

.xp-premium-header > span {
    color: #8be8ef;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 1.5px;
}

.xp-premium-header h2 {
    margin-top: 6px;

    font-size: 24px;
}

.xp-premium-header p {
    margin-top: 7px;

    color: #93a9ae;

    font-size: 13px;
    line-height: 1.6;
}


/* XP BALANCE */

.premium-xp-balance {
    margin-top: 16px;

    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 9px 12px;

    border-radius: 10px;

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

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

    color: #a9bcc0;

    font-size: 12px;
}

.premium-xp-balance strong {
    color: #7cebf5;

    font-size: 14px;
}


/* =========================================
   PLAN GRID
========================================= */

.xp-plan-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 16px;
}


/* =========================================
   PLAN CARD
========================================= */

.xp-plan-card {
    position: relative;

    min-height: 220px;

    padding: 20px;

    display: flex;
    flex-direction: column;

    border-radius: 18px;

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

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

    transition:
        transform .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;
}

.xp-plan-card:hover {
    transform:
        translateY(-4px);

    border-color:
        rgba(124,235,245,.28);

    box-shadow:
        0 16px 38px rgba(0,0,0,.25);
}


.plan-icon {
    font-size: 28px;
}

.xp-plan-card h3 {
    margin-top: 12px;

    font-size: 18px;
}

.xp-plan-card p {
    margin-top: 7px;

    color: #91a8ad;

    font-size: 12px;

    line-height: 1.5;
}


.plan-price {
    margin-top: auto;
    padding-top: 18px;

    color: #7cebf5;

    font-size: 20px;
}


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

.buy-xp-premium {
    margin-top: 14px;

    padding: 11px 14px;

    border: none;
    border-radius: 11px;

    background:
        linear-gradient(
            135deg,
            #0c6b78,
            #18c4d8
        );

    color: white;

    font-size: 12px;
    font-weight: 700;

    cursor: pointer;

    transition:
        transform .2s ease,
        filter .2s ease,
        opacity .2s ease;
}

.buy-xp-premium:hover {
    transform:
        translateY(-2px);

    filter:
        brightness(1.08);
}

.buy-xp-premium:disabled {
    opacity: .5;

    cursor: not-allowed;

    transform: none;
}


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

.xp-plan-card.popular {
    border-color:
        rgba(139,92,246,.38);

    background:
        linear-gradient(
            145deg,
            rgba(139,92,246,.10),
            rgba(34,211,238,.04)
        );

    box-shadow:
        0 0 28px
        rgba(139,92,246,.08);
}

.popular-badge {
    position: absolute;

    top: 12px;
    right: 12px;

    padding: 5px 8px;

    border-radius: 7px;

    background:
        rgba(139,92,246,.16);

    border:
        1px solid rgba(139,92,246,.25);

    color: #d6c5ff;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: .8px;
}


/* =========================================
   YEAR PLAN
========================================= */

.xp-plan-card.yearly {
    background:
        linear-gradient(
            145deg,
            rgba(245,158,11,.08),
            rgba(255,255,255,.03)
        );

    border-color:
        rgba(245,158,11,.20);
}

.xp-plan-card.yearly .plan-price {
    color:
        #fcd34d;
}


/* =========================================
   PREMIUM ACTIVE STATUS
========================================= */

.xp-premium-status {
    margin-top: 22px;

    padding: 18px;

    border-radius: 16px;

    background:
        rgba(16,185,129,.08);

    border:
        1px solid rgba(16,185,129,.20);
}

.xp-premium-status > span {
    color: #6ee7b7;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 1.2px;
}

.xp-premium-status h3 {
    margin-top: 7px;

    font-size: 18px;
}

.xp-premium-status p {
    margin-top: 5px;

    color: #91a8ad;

    font-size: 12px;
}


/* =========================================
   MESSAGE
========================================= */

.xp-premium-message {
    min-height: 20px;

    margin-top: 14px;

    text-align: center;

    font-size: 13px;
}

.xp-premium-message.success {
    color: #4ade80;
}

.xp-premium-message.error {
    color: #fb7185;
}


/* =========================================
   HELPERS
========================================= */

.hidden {
    display: none !important;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 900px) {

    .xp-plan-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 600px) {

    .xp-premium-section {
        padding: 18px;
    }

    .xp-plan-grid {
        grid-template-columns: 1fr;
    }

    .xp-plan-card {
        min-height: 200px;
    }

}