.wl-membership-page {
    --wl-primary: #D7242C;
    --wl-primary-deep: #D7242C;
    --wl-text: #111827;
    --wl-muted: #6b7280;
    --wl-line: rgba(17, 24, 39, 0.10);
    --wl-surface: #ffffff;
    --wl-soft: #fff7ed;
    --wl-shadow: 0 20px 45px rgba(215, 36, 44, 0.10);
    padding: 28px 0 56px;
    background: #fffaf5;
}

.wl-membership-page,
.wl-membership-page * {
    box-sizing: border-box;
}

.wl-membership-page .wl-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: min(960px, calc(100% - 32px));
    margin: 0 auto;
}

.wl-membership-page .wl-main {
    min-width: 0;
}

.wl-membership-hero {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
    padding: 28px;
    border: 1px solid rgba(215, 36, 44, 0.12);
    border-radius: 22px;
    background: linear-gradient(135deg, #ffffff 0%, #fff7ed 100%);
    box-shadow: var(--wl-shadow);
}

.wl-membership-hero span,
.wl-membership-status span,
.wl-plan-head span {
    display: block;
    color: var(--wl-primary-deep);
    font-size: 30px;
    /* font-weight: 800; */
    letter-spacing: 0;
    text-transform: uppercase;
}

.wl-membership-hero h1 {
    margin: 8px 0 10px;
    color: var(--wl-text);
    font-size: 30px;
    line-height: 1.18;
}

.wl-membership-hero p {
    max-width: 650px;
    margin: 0;
    color: var(--wl-muted);
    font-size: 15px;
    line-height: 1.7;
}

.wl-membership-status {
    flex: 0 0 190px;
    display: grid;
    place-content: center;
    gap: 8px;
    min-height: 126px;
    padding: 18px;
    border-radius: 18px;
    text-align: center;
    background: #ffffff;
    border: 1px solid rgba(215, 36, 44, 0.12);
}

.wl-membership-status strong {
    color: var(--wl-text);
    font-size: 20px;
    line-height: 1.25;
}

.wl-plan-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    max-width: 860px;
}

.wl-plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 430px;
    padding: 24px;
    overflow: hidden;
    border: 1px solid var(--wl-line);
    border-radius: 22px;
    background: var(--wl-surface);
    box-shadow: 0 16px 34px rgba(17, 24, 39, 0.08);
}

.wl-plan-card.is-featured {
    border-color: rgba(215, 36, 44, 0.24);
    box-shadow: 0 24px 42px rgba(215, 36, 44, 0.14);
}

.wl-plan-ribbon {
    position: absolute;
    top: 18px;
    right: 18px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #fff;
    background: var(--wl-primary-deep);
    font-size: 12px;
    font-weight: 800;
}

.wl-plan-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: 18px;
    border-radius: 16px;
    color: var(--wl-primary-deep);
    background: var(--wl-soft);
    font-size: 22px;
}

.wl-plan-head h2,
.wl-plan-head p {
    margin: 0;
}

.wl-plan-title-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.wl-plan-head h2 {
    color: var(--wl-text);
    font-size: 26px;
    line-height: 1.2;
}

.wl-plan-price {
    color: var(--wl-primary-deep);
    font-size: 26px;
    font-weight: 600;
    line-height: 1.2;
}

.wl-plan-head p {
    margin-top: 8px;
    color: var(--wl-muted);
    font-weight: 700;
}

.wl-plan-card ul {
    display: grid;
    gap: 13px;
    margin: 24px 0;
    padding: 0;
    list-style: none;
}

.wl-plan-card li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #374151;
    line-height: 1.5;
}

.wl-plan-card li i {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
    border-radius: 50%;
    color: #0f766e;
    background: #ccfbf1;
    font-size: 11px;
}

.wl-plan-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    margin-top: auto;
    padding: 12px 16px;
    border-radius: 14px;
    color: #ffffff !important;
    background: linear-gradient(135deg, #D7242C 0%, #D7242C 52%, #D7242C 100%);
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wl-plan-btn:hover,
.wl-plan-btn:focus {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(215, 36, 44, 0.18);
    text-decoration: none;
}

.wl-plan-btn *,
.wl-plan-pay-btn * {
    color: #ffffff !important;
}

@media (max-width: 1199px) {
    .wl-membership-page .wl-shell {
        grid-template-columns: 1fr;
    }

    .wl-plan-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: none;
    }
}

body:not(.dashboard-body) .wl-membership-page,
body:not(.dashboard-body) .wl-payment-page {
    padding-top: 118px;
}

.wl-payment-standalone-body .wl-payment-page {
    min-height: 100vh;
    display: grid;
    align-items: center;
    padding-top: 32px;
    padding-bottom: 32px;
}

.wl-qr-only-page {
    min-height: 100vh;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 24px;
    padding: 28px 16px;
    background: #fffaf5;
}

.wl-qr-logo {
    width: 170px;
    height: auto;
    display: block;
}

.wl-qr-card {
    width: min(360px, 100%);
    display: grid;
    justify-items: center;
    gap: 18px;
    padding: 22px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 18px 38px rgba(17, 24, 39, 0.12);
}

.wl-qr-image {
    width: 280px;
    height: 280px;
    display: grid;
    place-items: center;
}

.wl-qr-image img,
.wl-qr-image canvas {
    display: block;
    width: 280px !important;
    height: 280px !important;
}

.wl-qr-amount {
    color: #D7242C;
    font-size: 20px;
    font-weight: 600;
    line-height: 1;
}

.wl-qr-help {
    display: grid;
    justify-items: center;
    gap: 8px;
    text-align: center;
}

.wl-qr-help h2 {
    margin: 0;
    color: #111827;
    font-size: 24px;
    line-height: 1.2;
}

.wl-qr-help p {
    margin: 0;
    color: #6b7280;
    font-size: 16px;
}

.wl-qr-help .wl-qr-note {
    max-width: 310px;
    color: #111827;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.45;
}

.wl-qr-help a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    color: #D7242C;
    font-size: 15px;
    font-weight: 900;
    text-decoration: none;
}

.wl-qr-upi {
    margin-top: 4px !important;
    color: #111827 !important;
    font-size: 13px !important;
    font-weight: 800;
}

.wl-qr-help i {
    transform: rotate(90deg);
}

.wl-plan-details-icon {
    width: 62px;
    height: 62px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border-radius: 18px;
    color: #D7242C;
    background: #fff7ed;
    font-size: 26px;
}

.wl-plan-details-payment-card {
    grid-template-columns: minmax(0, 1fr) 360px;
}

.wl-plan-details-pay-panel {
    display: grid;
    justify-items: stretch;
    align-content: center;
    min-height: 330px;
    padding: 28px;
    border-radius: 20px;
    background: #fff7ed;
}

.wl-plan-details-pay-panel h2 {
    margin: 0 0 18px;
    color: #111827;
    font-size: 24px;
    line-height: 1.25;
    text-align: center;
}

.wl-plan-details-summary {
    display: grid;
    gap: 12px;
    margin-bottom: 24px;
}

.wl-plan-details-summary div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #ffffff;
}

.wl-plan-details-summary strong {
    color: #6b7280;
    font-size: 13px;
    text-transform: uppercase;
}

.wl-plan-details-summary span {
    color: #111827;
    font-weight: 900;
}

.wl-plan-details-feature-list {
    display: grid;
    gap: 12px;
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
}

.wl-plan-details-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #374151;
    font-weight: 700;
    line-height: 1.45;
}

.wl-plan-details-feature-list i {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
    border-radius: 50%;
    color: #0f766e;
    background: #ccfbf1;
    font-size: 11px;
}

.wl-plan-pay-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    border-radius: 14px;
    color: #ffffff !important;
    background: #D7242C;
    font-weight: 900;
    text-decoration: none;
}

@media (max-width: 767px) {
    .wl-plan-details-payment-card {
        grid-template-columns: 1fr;
    }
}

.wl-plan-pay-btn:hover,
.wl-plan-pay-btn:focus {
    color: #ffffff !important;
    text-decoration: none;
}

.wl-payment-page {
    --wl-primary: #D7242C;
    --wl-text: #111827;
    --wl-muted: #6b7280;
    padding: 28px 0 56px;
    background: #fffaf5;
}

.wl-payment-shell {
    width: min(980px, calc(100% - 32px));
    margin: 0 auto;
}

.wl-payment-back {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 18px;
    color: var(--wl-primary);
    font-weight: 600;
    text-decoration: none;
}

.wl-payment-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    align-items: center;
    padding: 30px;
    border: 1px solid rgba(215, 36, 44, 0.12);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--wl-shadow);
}

.wl-payment-copy > span {
    display: block;
    color: var(--wl-primary);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.wl-payment-copy h1 {
    margin: 10px 0 12px;
    color: var(--wl-text);
    font-size: 34px;
}

.wl-payment-price {
    color: var(--wl-primary);
    font-size: 44px;
    font-weight: 600;
    line-height: 1;
}

.wl-payment-copy p {
    max-width: 470px;
    margin: 18px 0 24px;
    color: var(--wl-muted);
    line-height: 1.7;
}

.wl-payment-plan {
    display: inline-grid;
    gap: 5px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #fff7ed;
    color: var(--wl-text);
}

.wl-payment-plan strong {
    color: var(--wl-primary);
    font-size: 13px;
}

.wl-payment-qr-panel {
    display: grid;
    justify-items: center;
    text-align: center;
    padding: 18px;
    border-radius: 20px;
    background: #fff7ed;
}

.wl-payment-scan-frame {
    position: relative;
    width: min(280px, 100%);
    padding: 12px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 14px 28px rgba(17, 24, 39, 0.12);
}

.wl-payment-scan-frame img {
    display: block;
    width: 100%;
    height: auto;
}

.wl-payment-scan-frame::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    top: 50%;
    height: 3px;
    background: rgba(215, 36, 44, 0.72);
    box-shadow: 0 0 14px rgba(215, 36, 44, 0.42);
}

.wl-payment-qr-panel h2 {
    margin: 18px 0 6px;
    color: var(--wl-text);
    font-size: 22px;
}

.wl-payment-qr-panel p {
    margin: 0 0 16px;
    color: var(--wl-muted);
}

.wl-payment-help {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--wl-primary);
    font-weight: 800;
    text-decoration: none;
}

.wl-payment-help i {
    transform: rotate(90deg);
}

@media (max-width: 767px) {
    body:not(.dashboard-body) .wl-membership-page,
    body:not(.dashboard-body) .wl-payment-page {
        padding-top: 100px;
    }

    .wl-payment-page {
        padding-bottom: 82px;
    }

    .wl-payment-card {
        grid-template-columns: 1fr;
        padding: 20px;
        border-radius: 18px;
    }

    .wl-payment-copy h1 {
        font-size: 26px;
    }

    .wl-payment-price {
        font-size: 36px;
    }
}

@media (max-width: 991px) {
    .wl-membership-page .wl-shell {
        grid-template-columns: 1fr;
    }

    .wl-membership-hero {
        flex-direction: column;
    }

    .wl-membership-status {
        flex-basis: auto;
        min-height: auto;
        place-content: start;
        text-align: left;
    }
}

@media (max-width: 767px) {
    .wl-membership-page {
        padding: 18px 0 82px;
    }

    .wl-membership-page .wl-shell {
        width: min(100% - 20px, 520px);
    }

    .wl-membership-hero {
        padding: 22px;
        border-radius: 18px;
    }

    .wl-membership-hero h1 {
        font-size: 24px;
    }

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

    .wl-plan-card {
        min-height: auto;
        border-radius: 18px;
    }
}

.wl-membership-page a.wl-plan-btn,
.wl-membership-page a.wl-plan-btn:visited,
.wl-membership-page a.wl-plan-btn:hover,
.wl-membership-page a.wl-plan-btn:focus,
.wl-plan-details-page a.wl-plan-pay-btn,
.wl-plan-details-page a.wl-plan-pay-btn:visited,
.wl-plan-details-page a.wl-plan-pay-btn:hover,
.wl-plan-details-page a.wl-plan-pay-btn:focus {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}
