/* =============================================
   MHM Rentiva – Pricing Table
   Modern Glassmorphism Design – v2.0
   ============================================= */

/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ── Container ───────────────────────────────── */
.mhm-pricing-wrap {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, #0d1117 0%, #161b27 50%, #1a1040 100%);
    border-radius: 28px;
    padding: 60px 30px 50px;
    position: relative;
    overflow: hidden;

    /* Break out of narrow theme content area */
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    border-radius: 0;
    box-sizing: border-box;
}

.mhm-pricing-wrap::before {
    content: '';
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(124,58,237,0.18) 0%, transparent 70%);
    pointer-events: none;
}

/* ── Pricing Header ─────────────────────────── */
.mhm-pricing-header {
    text-align: center;
    margin-bottom: 48px;
    position: relative;
    z-index: 1;
}

.mhm-pricing-title {
    font-size: 42px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.mhm-pricing-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
    font-weight: 400;
}

/* ── Grid ────────────────────────────────────── */
.mhm-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1080px;
    margin: 0 auto;
    align-items: start; /* so cards don't over-stretch */
}

/* ── Card Base ───────────────────────────────── */
.mhm-plan {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 22px;
    padding: 36px 32px 32px;
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    color: #e2e8f0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    overflow: visible;
}

.mhm-plan:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
    border-color: rgba(124, 58, 237, 0.35);
}

/* ── Popular card ────────────────────────────── */
.mhm-plan--popular {
    background: rgba(124, 58, 237, 0.1);
    border: 2px solid rgba(124, 58, 237, 0.6);
    box-shadow: 0 8px 36px rgba(124, 58, 237, 0.22);
}

.mhm-plan--popular:hover {
    border-color: rgba(124, 58, 237, 0.9);
    box-shadow: 0 18px 52px rgba(124, 58, 237, 0.35);
}

/* Most Popular badge */
.mhm-plan__badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #7c3aed, #a855f7);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 5px 18px;
    border-radius: 30px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.45);
}

/* Save X% badge on yearly */
.mhm-plan__save-badge {
    position: absolute;
    top: -14px;
    right: 22px;
    background: linear-gradient(90deg, #059669, #10b981);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 5px 14px;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

/* ── Plan header ─────────────────────────────── */
.mhm-plan__header {
    text-align: center;
    margin-bottom: 28px;
}

.mhm-plan__name {
    display: block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 14px;
}

.mhm-plan__price {
    line-height: 1;
    margin-bottom: 6px;
}

/* Override WooCommerce price output */
.mhm-plan__price .woocommerce-Price-amount,
.mhm-plan__price .amount {
    font-size: 46px !important;
    font-weight: 800 !important;
    color: #fff !important;
    letter-spacing: -0.02em;
}

.mhm-plan__price .woocommerce-Price-currencySymbol {
    font-size: 22px !important;
    vertical-align: super;
}

.mhm-plan__period {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
}

/* ── Feature list ────────────────────────────── */
.mhm-pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px 0;
    display: flex;
    flex-direction: column;
    gap: 11px;
    flex-grow: 1;
}

.mhm-pricing-features li {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.78);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.45;
}

.mhm-pricing-features li::before {
    content: '✓';
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background: rgba(124, 58, 237, 0.22);
    color: #a78bfa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    margin-top: 1px;
}

.mhm-plan--yearly .mhm-pricing-features li:last-child::before {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

/* ── Footer / Button ─────────────────────────── */
.mhm-plan__footer {
    margin-top: auto;
    text-align: center;
}

.mhm-plan__btn {
    display: inline-block;
    width: 100%;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    box-sizing: border-box;
}

.mhm-plan__btn--primary {
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.4);
}

.mhm-plan__btn--primary:hover {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.55);
    transform: translateY(-2px);
    color: #fff !important;
    text-decoration: none;
}

.mhm-plan__btn--ghost {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.75) !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.mhm-plan__btn--ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.3);
    text-decoration: none;
}

.mhm-plan__savings-note {
    font-size: 12px;
    color: #34d399;
    margin: 10px 0 0;
    font-weight: 500;
}

/* ── Divider between header and features ──────── */
.mhm-plan__header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding-bottom: 24px;
}

.mhm-pricing-features {
    padding-top: 22px;
}

/* ── RTL ─────────────────────────────────────── */
[dir="rtl"] .mhm-pricing-features li {
    flex-direction: row-reverse;
    text-align: right;
}

/* ── Responsive ──────────────────────────────── */
@media (max-width: 900px) {
    .mhm-pricing-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
    }

    .mhm-plan--popular {
        order: -1;
    }
}

@media (max-width: 480px) {
    .mhm-pricing-wrap {
        padding: 40px 14px 36px;
    }

    .mhm-pricing-title {
        font-size: 28px;
    }

    .mhm-pricing-subtitle {
        font-size: 15px;
    }

    .mhm-plan {
        padding: 30px 20px 26px;
    }

    .mhm-plan__price .woocommerce-Price-amount,
    .mhm-plan__price .amount {
        font-size: 38px !important;
    }
}
