/**
 * MediaBUZZ pricing page — matches front-page pricing section design.
 */

.mbm-pricing-page {
    --mbm-pr-bg: #f0f2f5;
    --mbm-pr-card: #ffffff;
    --mbm-pr-text: #1a1d21;
    --mbm-pr-muted: #5c6370;
    --mbm-pr-border: #e2e5eb;
    --mbm-pr-navy: #0d1b2a;
    --mbm-pr-navy-light: #152a40;
    --mbm-pr-accent-red: #e53935;
    --mbm-pr-accent-green: #00c853;
    --mbm-pr-shadow: 0 4px 24px rgba(13, 27, 42, 0.08);
    --mbm-pr-radius: 16px;

    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 20px 80px;
    font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--mbm-pr-bg);
    color: var(--mbm-pr-text);
    -webkit-font-smoothing: antialiased;
    box-sizing: border-box;
}

.mbm-pricing-page *,
.mbm-pricing-page *::before,
.mbm-pricing-page *::after {
    box-sizing: border-box;
}

.mbm-pricing-page .mbm-pr-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
}

.mbm-pricing-page .mbm-pr-brand img {
    width: 88px;
    height: auto;
    display: block;
}

.mbm-pricing-page .mbm-pr-hero-title {
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    max-width: 920px;
    margin: 0;
    letter-spacing: -0.02em;
    color: var(--mbm-pr-text);
}

.mbm-pricing-page .mbm-pr-hero-sub {
    font-size: 1rem;
    color: var(--mbm-pr-muted);
    text-align: center;
    max-width: 720px;
    margin: 0;
    line-height: 1.55;
}

.mbm-pricing-page .mbm-pr-toggle {
    display: flex;
    justify-content: center;
    margin-top: 28px;
    margin-bottom: 40px;
}

.mbm-pricing-page .mbm-pr-toggle-inner {
    display: inline-flex;
    padding: 4px;
    background: #fff;
    border: 1px solid var(--mbm-pr-border);
    border-radius: 999px;
    box-shadow: var(--mbm-pr-shadow);
}

.mbm-pricing-page .mbm-pr-toggle-btn {
    padding: 10px 28px;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--mbm-pr-muted);
    cursor: pointer;
    border-radius: 999px;
    transition: background 0.2s, color 0.2s;
}

.mbm-pricing-page .mbm-pr-toggle-btn.is-active {
    background: var(--mbm-pr-navy);
    color: #fff;
}

@media (hover: hover) {
    .mbm-pricing-page .mbm-pr-toggle-btn:not(.is-active):hover {
        color: var(--mbm-pr-text);
        background: rgba(13, 27, 42, 0.06);
    }
}

.mbm-pricing-page .mbm-pr-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: clamp(12px, 1.5vw, 20px);
    align-items: stretch;
    width: 100%;
    max-width: none;
}

.mbm-pricing-page .mbm-pr-card {
    background: var(--mbm-pr-card);
    border-radius: var(--mbm-pr-radius);
    border: 1px solid var(--mbm-pr-border);
    padding: 22px 18px 20px;
    display: flex;
    flex-direction: column;
    text-align: left;
    box-shadow: var(--mbm-pr-shadow);
    position: relative;
    min-height: 100%;
    min-width: 0;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

@media (hover: hover) {
    .mbm-pricing-page .mbm-pr-card:not(.is-current-plan):hover {
        transform: translateY(-6px);
        box-shadow: 0 14px 40px rgba(13, 27, 42, 0.14);
        border-color: #c5cad3;
    }

    .mbm-pricing-page .mbm-pr-card.is-dark:not(.is-current-plan):hover {
        box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
        border-color: #2d5575;
    }

    .mbm-pricing-page .mbm-pr-card.is-current-plan:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 36px rgba(0, 200, 83, 0.18), 0 0 0 2px var(--mbm-pr-accent-green);
    }
}

@media (prefers-reduced-motion: reduce) {
    .mbm-pricing-page .mbm-pr-card {
        transition: none;
    }
}

.mbm-pricing-page .mbm-pr-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--mbm-pr-text);
    margin: 0 0 10px;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.mbm-pricing-page .mbm-pr-price {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 4px 0 10px;
    line-height: 1.2;
}

.mbm-pricing-page .mbm-pr-tagline {
    font-size: 0.8125rem;
    color: var(--mbm-pr-muted);
    line-height: 1.45;
    margin: 0 0 16px;
    min-height: 2.6em;
}

.mbm-pricing-page .mbm-pr-btn {
    width: 100%;
    padding: 11px 14px;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 16px;
    background: var(--mbm-pr-navy);
    color: #fff;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s, transform 0.2s ease, box-shadow 0.2s ease;
}

@media (hover: hover) {
    .mbm-pricing-page .mbm-pr-btn:not(:disabled):not(.is-current):hover {
        background: var(--mbm-pr-navy-light);
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(13, 27, 42, 0.22);
    }
}

.mbm-pricing-page .mbm-pr-btn:disabled,
.mbm-pricing-page .mbm-pr-btn.is-current {
    opacity: 0.65;
    cursor: not-allowed;
}

.mbm-pricing-page .mbm-pr-card.is-dark .mbm-pr-btn {
    background: var(--mbm-pr-accent-red);
}

@media (hover: hover) {
    .mbm-pricing-page .mbm-pr-card.is-dark .mbm-pr-btn:not(:disabled):not(.is-current):hover {
        filter: brightness(1.08);
        background: var(--mbm-pr-accent-red);
        box-shadow: 0 6px 20px rgba(229, 57, 53, 0.35);
    }
}

.mbm-pricing-page .mbm-pr-features {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.45;
    color: #3d424a;
    flex: 1;
}

.mbm-pricing-page .mbm-pr-features li {
    margin-bottom: 7px;
    padding-left: 1.15em;
    position: relative;
}

.mbm-pricing-page .mbm-pr-features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--mbm-pr-accent-green);
}

.mbm-pricing-page .mbm-pr-features li.is-locked {
    color: var(--mbm-pr-muted);
}

.mbm-pricing-page .mbm-pr-features li.is-locked::before {
    content: "🔒";
    background: none;
    font-size: 0.65rem;
    top: 0.15em;
    width: auto;
    height: auto;
}

.mbm-pricing-page .mbm-pr-card.is-dark {
    background: linear-gradient(165deg, #132032 0%, #0d1b2a 50%, #0a1520 100%);
    color: #e8eaed;
    border-color: #1e3a52;
}

.mbm-pricing-page .mbm-pr-card.is-dark h3 {
    color: #fff;
}

.mbm-pricing-page .mbm-pr-card.is-dark .mbm-pr-tagline {
    color: #9aa5b4;
}

.mbm-pricing-page .mbm-pr-card.is-dark .mbm-pr-features {
    color: #c5cdd6;
}

.mbm-pricing-page .mbm-pr-card.is-dark .mbm-pr-features li::before {
    background: #00e676;
}

.mbm-pricing-page .mbm-pr-card.is-dark .mbm-pr-features li.is-locked::before {
    color: #8899aa;
}

.mbm-pricing-page .mbm-pr-card.is-current-plan {
    box-shadow: 0 0 0 2px var(--mbm-pr-accent-green), var(--mbm-pr-shadow);
}

.mbm-pricing-page .mbm-pr-current-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--mbm-pr-accent-green);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.mbm-pricing-page .mbm-pr-messages {
    margin-top: 24px;
    text-align: center;
}

/* Match login/register page width inside theme content area */
body.mbm-pricing-page-layout .mbm-page-wrapper {
    width: 100% !important;
    max-width: 1280px !important;
    margin-left: auto;
    margin-right: auto;
    padding: 60px 20px;
}

.mbm-page-wrapper .mbm-pricing-page {
    max-width: 100%;
    margin: 0;
    padding: 48px 24px 64px;
}

@media (max-width: 520px) {
    .mbm-pricing-page {
        padding: 32px 16px 56px;
    }

    .mbm-pricing-page .mbm-pr-cards {
        grid-template-columns: 1fr;
    }
}
