/* ==========================================
   RAJ MOCK TEST V2.0
   SUBSCRIPTION
========================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


body {

    font-family: "Poppins", sans-serif;

    background:
        linear-gradient(
            135deg,
            #f5f7fb,
            #eef3ff
        );

    color: #1f2937;

    min-height: 100vh;

}


/* ==========================================
   HEADER
========================================== */

.subscription-header {

    height: 72px;

    background: #ffffff;

    border-bottom: 1px solid #e5e7eb;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 0 5%;

    position: sticky;

    top: 0;

    z-index: 100;

}


.brand {

    display: flex;

    align-items: center;

    gap: 12px;

}


.brand-icon {

    width: 42px;

    height: 42px;

    border-radius: 12px;

    background: #2563eb;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 21px;

}


.brand strong {

    display: block;

    font-size: 16px;

    color: #111827;

}


.brand span {

    display: block;

    font-size: 11px;

    color: #6b7280;

}


/* ==========================================
   BACK BUTTON
========================================== */

.back-btn {

    border: none;

    background: #f8fafc;

    color: #2563eb;

    padding: 10px 17px;

    border-radius: 9px;

    font-family: inherit;

    font-weight: 600;

    cursor: pointer;

}


.back-btn:hover {

    background: #eff6ff;

}


/* ==========================================
   MAIN
========================================== */

.subscription-container {

    width: min(1050px, 92%);

    margin: 40px auto;

}


/* ==========================================
   TITLE
========================================== */

.subscription-title {

    text-align: center;

    margin-bottom: 30px;

}


.subscription-title h1 {

    font-size: 30px;

    margin-bottom: 6px;

}


.subscription-title p {

    color: #6b7280;

    font-size: 14px;

}


/* ==========================================
   CURRENT SUBSCRIPTION
========================================== */

.current-subscription {

    background: #ffffff;

    border-radius: 16px;

    padding: 20px 24px;

    display: flex;

    align-items: center;

    gap: 16px;

    margin-bottom: 30px;

    box-shadow:
        0 5px 20px rgba(0,0,0,.06);

}


.current-icon {

    width: 52px;

    height: 52px;

    border-radius: 14px;

    background: #eff6ff;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 25px;

}


.current-info {

    flex: 1;

}


.current-info span,
.expiry-info span {

    display: block;

    color: #6b7280;

    font-size: 11px;

}


.current-info strong {

    display: block;

    font-size: 18px;

    margin-top: 2px;

}


.current-info small {

    color: #16a34a;

    font-size: 11px;

}


.expiry-info {

    text-align: right;

}


.expiry-info strong {

    display: block;

    margin-top: 3px;

    font-size: 14px;

}


/* ==========================================
   PLANS GRID
========================================== */

.plans-grid {

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 24px;

}


/* ==========================================
   PLAN CARD
========================================== */

.plan-card {

    background: #ffffff;

    border-radius: 20px;

    padding: 28px;

    position: relative;

    box-shadow:
        0 7px 25px rgba(0,0,0,.07);

    border: 1px solid #e5e7eb;

    transition:
        transform .2s ease,
        box-shadow .2s ease;

}


.plan-card:hover {

    transform: translateY(-3px);

    box-shadow:
        0 12px 30px rgba(0,0,0,.10);

}


.premium-plan {

    border: 2px solid #2563eb;

}


/* ==========================================
   POPULAR
========================================== */

.premium-badge {

    position: absolute;

    top: -13px;

    right: 20px;

    background: #2563eb;

    color: #ffffff;

    padding: 6px 13px;

    border-radius: 20px;

    font-size: 10px;

    font-weight: 700;

}


/* ==========================================
   PLAN HEADER
========================================== */

.plan-header {

    text-align: center;

}


.plan-icon {

    width: 58px;

    height: 58px;

    border-radius: 16px;

    background: #f3f4f6;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 28px;

    margin: 0 auto 12px;

}


.premium-icon {

    background: #eff6ff;

}


.plan-header h2 {

    font-size: 22px;

}


.plan-header p {

    color: #6b7280;

    font-size: 12px;

    margin-top: 3px;

}


/* ==========================================
   PRICE
========================================== */

.price {

    text-align: center;

    margin: 22px 0;

}


.price strong {

    font-size: 35px;

    color: #111827;

}


.price span {

    color: #6b7280;

    font-size: 12px;

}


/* ==========================================
   FEATURES
========================================== */

.features {

    list-style: none;

    border-top: 1px solid #e5e7eb;

    padding-top: 18px;

}


.features li {

    font-size: 13px;

    padding: 8px 0;

    color: #374151;

}


/* ==========================================
   BUTTON
========================================== */

.plan-btn {

    width: 100%;

    border: none;

    padding: 13px;

    border-radius: 10px;

    font-family: inherit;

    font-weight: 700;

    cursor: pointer;

    margin-top: 18px;

}


.free-btn {

    background: #f3f4f6;

    color: #6b7280;

    cursor: default;

}


.premium-btn {

    background: #2563eb;

    color: white;

}


.premium-btn:hover {

    background: #1d4ed8;

}


/* ==========================================
   NOTE
========================================== */

.subscription-note {

    margin-top: 25px;

    background: #ffffff;

    border-radius: 12px;

    padding: 14px 18px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    box-shadow:
        0 4px 15px rgba(0,0,0,.04);

}


.subscription-note p {

    color: #6b7280;

    font-size: 11px;

}


/* ==========================================
   FOOTER
========================================== */

footer {

    text-align: center;

    padding: 25px;

    color: #6b7280;

    font-size: 11px;

}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 700px) {

    .subscription-header {

        padding: 0 4%;

    }


    .brand strong {

        font-size: 14px;

    }


    .subscription-container {

        width: 94%;

        margin: 28px auto;

    }


    .subscription-title h1 {

        font-size: 24px;

    }


    .plans-grid {

        grid-template-columns: 1fr;

    }


    .current-subscription {

        align-items: flex-start;

    }


    .expiry-info {

        text-align: left;

    }

}


@media (max-width: 450px) {

    .current-subscription {

        flex-wrap: wrap;

    }


    .expiry-info {

        width: 100%;

        padding-left: 68px;

    }


    .back-btn {

        padding: 9px 12px;

    }

}

