.expert-membership-page {
    min-height: 700px;
    padding: clamp(54px, 7vw, 92px) 24px;
    background:
        radial-gradient(circle at 6% 8%, rgba(51, 170, 147, 0.13), transparent 25rem),
        radial-gradient(circle at 94% 85%, rgba(201, 164, 89, 0.1), transparent 24rem),
        #f7f5ef;
}

.expert-membership-inner {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.expert-membership-hero {
    max-width: 700px;
    margin: 0 auto 45px;
    text-align: center;
}

.expert-membership-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 13px;
    color: #0b7c6c;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.expert-membership-hero h1 {
    margin: 0;
    color: #153f38;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(38px, 5vw, 56px);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.expert-membership-hero p {
    max-width: 620px;
    margin: 17px auto 0;
    color: #627a74;
    font-size: 14px;
    line-height: 1.75;
}

.expert-plan-alert {
    max-width: 700px;
    margin: 0 auto 25px;
    padding: 13px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-radius: 13px;
    font-size: 12px;
    line-height: 1.5;
}

.expert-plan-alert--error {
    color: #8a3f39;
    background: #fff0ee;
    border: 1px solid #f0d0cc;
}

.expert-plan-alert--success {
    color: #176354;
    background: #e9f7f1;
    border: 1px solid #cae8dc;
}

.expert-plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(285px, 360px));
    justify-content: center;
    gap: 22px;
    align-items: stretch;
}

.expert-plan-card {
    position: relative;
    min-width: 0;
    padding: 30px 27px 27px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #d9e4de;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 18px 48px rgba(14, 72, 62, 0.09);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.expert-plan-card:hover {
    border-color: #bbd5ca;
    transform: translateY(-5px);
    box-shadow: 0 25px 58px rgba(14, 72, 62, 0.14);
}

.expert-plan-card--featured {
    border-color: #2b927f;
    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        linear-gradient(145deg, #5dbca7, #cba65e) border-box;
    box-shadow: 0 24px 60px rgba(8, 105, 92, 0.15);
}

.expert-plan-badge {
    align-self: flex-start;
    margin-bottom: 18px;
    padding: 7px 10px;
    border-radius: 999px;
    background: #e8f4ef;
    color: #087466;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.expert-plan-card--featured .expert-plan-badge {
    background: #0a7667;
    color: #ffffff;
}

.expert-plan-name {
    margin: 0;
    color: #163f38;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 30px;
    font-weight: 500;
    line-height: 1.15;
}

.expert-plan-price {
    margin: 17px 0 4px;
    display: flex;
    align-items: baseline;
    gap: 7px;
    color: #0a665a;
}

.expert-plan-price strong {
    font-size: 33px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
}

.expert-plan-price span {
    color: #6a807a;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.06em;
}

.expert-plan-duration {
    margin-bottom: 22px;
    color: #788b86;
    font-size: 11px;
}

.expert-plan-fee {
    margin: 0 0 18px;
    padding: 11px 12px;
    display: flex;
    align-items: center;
    gap: 9px;
    border-radius: 11px;
    background: #fff5e7;
    color: #825f27;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.45;
}

.expert-plan-features {
    margin: 0 0 25px;
    padding: 0;
    display: grid;
    gap: 11px;
    list-style: none;
}

.expert-plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: #526d66;
    font-size: 12px;
    line-height: 1.55;
}

.expert-plan-features i {
    margin-top: 3px;
    flex: 0 0 auto;
    color: #15917d;
}

.expert-plan-select {
    width: 100%;
    min-height: 50px;
    margin-top: auto;
    padding: 12px 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 13px;
    background: linear-gradient(135deg, #15917d, #086457);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.055em;
    text-transform: uppercase;
    box-shadow: 0 12px 25px rgba(8, 105, 92, 0.19);
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.expert-plan-select:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(8, 105, 92, 0.26);
}

.expert-checkout {
    position: fixed;
    inset: 0;
    z-index: 2000;
    padding: 22px;
    display: grid;
    place-items: center;
    visibility: hidden;
    opacity: 0;
    background: rgba(4, 38, 34, 0.72);
    backdrop-filter: blur(11px);
    transition: opacity 180ms ease, visibility 180ms ease;
}

.expert-checkout.is-open {
    visibility: visible;
    opacity: 1;
}

.expert-checkout-dialog {
    position: relative;
    width: min(760px, 100%);
    max-height: calc(100dvh - 44px);
    overflow: auto;
    display: grid;
    grid-template-columns: 0.78fr 1.22fr;
    border-radius: 25px;
    background: #ffffff;
    box-shadow: 0 30px 90px rgba(2, 34, 29, 0.34);
    transform: translateY(16px) scale(0.98);
    transition: transform 180ms ease;
}

.expert-checkout.is-open .expert-checkout-dialog {
    transform: translateY(0) scale(1);
}

.expert-checkout-summary {
    padding: 40px 32px;
    color: #ffffff;
    background:
        radial-gradient(circle at 12% 4%, rgba(102, 205, 178, 0.28), transparent 34%),
        linear-gradient(155deg, #0b695c, #06463f);
}

.expert-checkout-summary h2 {
    margin: 10px 0 25px;
    color: #ffffff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 32px;
    font-weight: 500;
}

.expert-checkout-meta {
    display: grid;
    gap: 10px;
}

.expert-checkout-meta > div {
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.08);
}

.expert-checkout-meta small {
    display: block;
    margin-bottom: 5px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.expert-checkout-meta strong {
    color: #ffffff;
    font-size: 16px;
}

.expert-checkout-form {
    padding: 45px 38px 38px;
}

.expert-checkout-form h3 {
    margin: 0;
    color: #163f38;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 32px;
    font-weight: 500;
}

.expert-checkout-form > p {
    margin: 10px 0 24px;
    color: #71847f;
    font-size: 12px;
    line-height: 1.6;
}

.expert-checkout-field {
    margin-bottom: 14px;
}

.expert-checkout-field label {
    display: block;
    margin-bottom: 7px;
    color: #31554e;
    font-size: 11px;
    font-weight: 750;
}

.expert-checkout-field input,
.expert-checkout-field select {
    width: 100%;
    height: 50px;
    padding: 12px 14px;
    border: 1px solid #d7e3dd;
    border-radius: 13px;
    outline: 0;
    background: #f7faf8;
    color: #173f38;
    font-size: 13px;
    box-shadow: none;
}

.expert-checkout-field input:focus,
.expert-checkout-field select:focus {
    border-color: #25907f;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(37, 144, 127, 0.12);
}

.expert-checkout-submit,
.expert-login-button {
    width: 100%;
    min-height: 50px;
    margin-top: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 0;
    border-radius: 13px;
    background: linear-gradient(135deg, #15917d, #086457);
    color: #ffffff !important;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.055em;
    text-decoration: none !important;
    text-transform: uppercase;
    cursor: pointer;
}

.expert-login-notice {
    margin: 24px 0 18px;
    padding: 14px;
    border: 1px solid #efd8b2;
    border-radius: 12px;
    background: #fff8eb;
    color: #775c2e;
    font-size: 12px;
    line-height: 1.55;
}

.expert-checkout-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid #d7e3dd;
    border-radius: 50%;
    background: #f5f8f6;
    color: #24584f;
    font-size: 20px;
    cursor: pointer;
}

body.expert-checkout-open {
    overflow: hidden;
}

@media (max-width: 760px) {
    .expert-membership-page {
        padding: 42px 16px;
    }

    .expert-checkout {
        padding: 12px;
    }

    .expert-checkout-dialog {
        grid-template-columns: 1fr;
        border-radius: 21px;
    }

    .expert-checkout-summary {
        padding: 31px 25px 26px;
    }

    .expert-checkout-meta {
        grid-template-columns: repeat(2, 1fr);
    }

    .expert-checkout-form {
        padding: 32px 25px 28px;
    }
}

@media (max-width: 420px) {
    .expert-plan-grid {
        grid-template-columns: 1fr;
    }

    .expert-plan-card {
        padding: 26px 21px 23px;
    }

    .expert-checkout-meta {
        grid-template-columns: 1fr;
    }
}
