/* ==========================================================================
   Modern Pricing Plans v1.1 — Frontend Styles
   ========================================================================== */

.mpp-wrapper {
    --mpp-primary: #6366f1;
    --mpp-accent: #a855f7;
    --mpp-highlight-bg: #0f172a;
    --mpp-highlight-tx: #ffffff;
    --mpp-card-bg: #ffffff;
    --mpp-card-tx: #1f2937;
    --mpp-muted: #6b7280;
    --mpp-check: #10b981;
    --mpp-page-bg: #f8fafc;
    --mpp-radius: 20px;

    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--mpp-card-tx);
    max-width: 1600px;
    margin: 0 auto;
    padding: 48px 20px;
    box-sizing: border-box;
    line-height: 1.5;
}

.mpp-wrapper *,
.mpp-wrapper *:before,
.mpp-wrapper *:after { box-sizing: border-box; }

.mpp-wrapper a { text-decoration: none; }

/* ==========================================================================
   TOGGLE
   ========================================================================== */
.mpp-toggle-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 56px;
}
.mpp-toggle {
    position: relative;
    display: inline-flex;
    background: #f1f5f9;
    border-radius: 999px;
    padding: 6px;
    border: 1px solid rgba(15,23,42,0.06);
    box-shadow: inset 0 1px 2px rgba(15,23,42,0.04);
}
.mpp-toggle-btn {
    position: relative;
    z-index: 2;
    border: 0;
    background: transparent;
    padding: 12px 48px 12px 25px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    transition: color 0.3s ease;
    font-family: inherit;
    white-space: nowrap;
}
.mpp-toggle-slider {
    position: absolute;
    z-index: 1;
    top: 6px;
    bottom: 6px;
    left: 6px;
    width: calc(50% - 6px);
    background: linear-gradient(135deg, var(--mpp-primary), var(--mpp-accent));
    border-radius: 999px;
    transition: transform 0.4s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 6px 18px rgba(99,102,241,0.4);
}
button.mpp-toggle-btn.is-active {
    color: #fff;
}
.mpp-toggle[data-active="monthly"] .mpp-toggle-slider { transform: translateX(100%); }

/* ==========================================================================
   GRID
   ========================================================================== */
.mpp-grid {
    display: grid;
    gap: 24px;
    align-items: stretch;
}
.mpp-cols-3 .mpp-grid { grid-template-columns: repeat(3, 1fr); max-width: 1080px; margin: 0 auto; }
.mpp-cols-4 .mpp-grid { grid-template-columns: repeat(4, 1fr); }
.mpp-cols-5 .mpp-grid { grid-template-columns: repeat(5, 1fr); gap: 20px; }

@media (max-width: 1200px) {
    .mpp-cols-5 .mpp-grid { grid-template-columns: repeat(3, 1fr); }
    .mpp-cols-4 .mpp-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 800px) {
    .mpp-cols-3 .mpp-grid,
    .mpp-cols-4 .mpp-grid,
    .mpp-cols-5 .mpp-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
}

/* ==========================================================================
   CARD - BASE
   ========================================================================== */
.mpp-card {
    position: relative;
    border-radius: var(--mpp-radius);
    transition: transform 0.4s cubic-bezier(.4,0,.2,1), box-shadow 0.4s ease;
    display: flex;
}
.mpp-card-inner {
    background: var(--mpp-card-bg);
    border-radius: var(--mpp-radius);
    padding: 36px 28px 32px;
    display: flex;
    flex-direction: column;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   CARD HEAD
   ========================================================================== */
.mpp-card-head {
    text-align: center;
    margin-bottom: 24px;
}
.mpp-plan-name {
    font-size: 25px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0 0 6px;
    color: var(--mpp-muted);
}
.mpp-tagline {
    font-size: 13px;
    color: #1b72d6;
    margin: 0 0 20px;
    line-height: 1.4;
    min-height: 18px;
}
.mpp-price-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    margin-bottom: 6px;
}
.mpp-currency {
    font-size: 20px;
    font-weight: 700;
    color: var(--mpp-card-tx);
    margin-right: 2px;
}
.mpp-price {
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
    color: var(--mpp-card-tx);
    letter-spacing: -1px;
}
.mpp-period {
    font-size: 14px;
    color: var(--mpp-muted);
    margin-left: 4px;
    font-weight: 500;
}
.mpp-billed {
    font-size: 12px;
    color: var(--mpp-muted);
    min-height: 16px;
    margin-bottom: 24px;
    font-weight: 500;
}

/* ==========================================================================
   BUTTON
   ========================================================================== */
.mpp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: #0f172a;
    color: #fff !important;
    padding: 14px 24px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 4px 14px rgba(15,23,42,0.18);
}
.mpp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(15,23,42,0.28);
    color: #fff !important;
}
.mpp-btn:hover .mpp-btn-arrow { transform: translateX(3px); }
.mpp-btn-arrow { transition: transform 0.3s ease; }

/* ==========================================================================
   DIVIDER
   ========================================================================== */
.mpp-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(15,23,42,0.1), transparent);
    margin: 0 0 24px;
}

/* ==========================================================================
   FEATURES
   ========================================================================== */
.mpp-card-body { flex: 1; }
.mpp-highlight-text {
    text-align: center;
    color: #ec4899;
    font-weight: 700;
    font-size: 16px;
    margin: 0 0 20px;
    line-height: 1.4;
}
.mpp-features {
    list-style: none;
    padding: 0 !important;
    margin: 0;
}
.mpp-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 9px 0;
    font-size: 13.5px;
    line-height: 1.45;
    color: var(--mpp-card-tx);
}
.mpp-check {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(16,185,129,0.12);
    color: var(--mpp-check);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}
.mpp-feature-text { flex: 1; }

/* ==========================================================================
   BADGE — proper ribbon at top, not cut off
   ========================================================================== */
.mpp-badge-wrap {
    position: absolute;
    top: -14px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    z-index: 3;
    pointer-events: none;
}
.mpp-badge {
    background: linear-gradient(135deg, var(--mpp-primary), var(--mpp-accent));
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 7px 18px;
    border-radius: 999px;
    box-shadow: 0 6px 16px rgba(99,102,241,0.45);
    text-transform: uppercase;
    white-space: nowrap;
}

/* ==========================================================================
   STYLE: MODERN  (default — clean white, dark highlight with glow)
   ========================================================================== */
.mpp-style-modern .mpp-card .mpp-card-inner {
    background: var(--mpp-card-bg);
    border: 1px solid rgba(15,23,42,0.08);
    box-shadow: 0 4px 24px rgba(15,23,42,0.05);
    transition: box-shadow 0.4s ease;
}
.mpp-style-modern.mpp-anim .mpp-card:hover .mpp-card-inner {
    box-shadow: 0 20px 50px rgba(15,23,42,0.12);
}
.mpp-style-modern.mpp-anim .mpp-card:hover {
    transform: translateY(-6px);
}

/* Highlighted plan — bold dark card with gradient glow */
.mpp-style-modern .mpp-card-highlight { transform: scale(1.05); }
.mpp-style-modern.mpp-anim .mpp-card-highlight:hover { transform: scale(1.05) translateY(-6px); }
.mpp-style-modern .mpp-card-highlight .mpp-card-inner {
    background: var(--mpp-highlight-bg);
    color: var(--mpp-highlight-tx);
    border: none;
    box-shadow:
        0 20px 60px rgba(99,102,241,0.35),
        0 0 0 1px rgba(255,255,255,0.05);
    overflow: hidden;
}
/* Gradient glow behind highlighted card */
.mpp-style-modern .mpp-card-highlight::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: calc(var(--mpp-radius) + 2px);
    background: linear-gradient(135deg, var(--mpp-primary), var(--mpp-accent));
    z-index: 0;
    opacity: 0.6;
    filter: blur(20px);
}
/* Decorative gradient orb inside highlighted card */
.mpp-style-modern .mpp-card-highlight .mpp-card-inner::after {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--mpp-primary), transparent 70%);
    opacity: 0.4;
    pointer-events: none;
}

.mpp-style-modern .mpp-card-highlight .mpp-plan-name,
.mpp-style-modern .mpp-card-highlight .mpp-currency,
.mpp-style-modern .mpp-card-highlight .mpp-price { color: var(--mpp-highlight-tx); }
.mpp-style-modern .mpp-card-highlight .mpp-tagline,
.mpp-style-modern .mpp-card-highlight .mpp-period,
.mpp-style-modern .mpp-card-highlight .mpp-billed { color: rgba(255,255,255,0.65); }
.mpp-style-modern .mpp-card-highlight .mpp-features li { color: rgba(255,255,255,0.92); }
.mpp-style-modern .mpp-card-highlight .mpp-check {
    background: rgba(255,255,255,0.15);
    color: #fff;
}
.mpp-style-modern .mpp-card-highlight .mpp-divider {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
}
.mpp-style-modern .mpp-card-highlight .mpp-highlight-text {
    color: #f9a8d4;
}
.mpp-style-modern .mpp-card-highlight .mpp-btn {
    background: linear-gradient(135deg, var(--mpp-primary), var(--mpp-accent));
    box-shadow: 0 8px 20px rgba(99,102,241,0.5);
}
.mpp-style-modern .mpp-card-highlight .mpp-btn:hover {
    box-shadow: 0 12px 28px rgba(99,102,241,0.65);
}

/* ==========================================================================
   STYLE: GLASS (glassmorphism)
   ========================================================================== */
.mpp-style-glass {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--mpp-radius);
    padding: 72px 24px 60px;
}
.mpp-style-glass .mpp-card .mpp-card-inner {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.18);
    color: #fff;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}
.mpp-style-glass .mpp-plan-name,
.mpp-style-glass .mpp-currency,
.mpp-style-glass .mpp-price,
.mpp-style-glass .mpp-features li { color: #fff; }
.mpp-style-glass .mpp-tagline,
.mpp-style-glass .mpp-period,
.mpp-style-glass .mpp-billed { color: rgba(255,255,255,0.75); }
.mpp-style-glass .mpp-divider {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
}
.mpp-style-glass .mpp-check {
    background: rgba(255,255,255,0.18);
    color: #fff;
}
.mpp-style-glass .mpp-btn {
    background: #fff;
    color: #1f2937 !important;
}
.mpp-style-glass .mpp-btn:hover { color: #1f2937 !important; }
.mpp-style-glass .mpp-card-highlight { transform: scale(1.04); }
.mpp-style-glass .mpp-card-highlight .mpp-card-inner {
    background: rgba(255,255,255,0.22);
    border-color: rgba(255,255,255,0.4);
}
.mpp-style-glass .mpp-toggle {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.25);
}
.mpp-style-glass .mpp-toggle-btn { color: rgba(255,255,255,0.85); }

/* ==========================================================================
   STYLE: MINIMAL (flat with bordered highlight)
   ========================================================================== */
.mpp-style-minimal .mpp-card .mpp-card-inner {
    background: var(--mpp-card-bg);
    border: 1px solid #e5e7eb;
    box-shadow: none;
}
.mpp-style-minimal .mpp-card-highlight { transform: scale(1.03); }
.mpp-style-minimal .mpp-card-highlight .mpp-card-inner {
    border-color: var(--mpp-primary);
    border-width: 2px;
    box-shadow: 0 12px 30px rgba(99,102,241,0.15);
}
.mpp-style-minimal .mpp-card-highlight .mpp-btn {
    background: var(--mpp-primary);
    box-shadow: 0 6px 18px color-mix(in srgb, var(--mpp-primary) 40%, transparent);
}

/* ==========================================================================
   STYLE: GRADIENT (gradient outlined cards)
   ========================================================================== */
.mpp-style-gradient .mpp-card .mpp-card-inner {
    background: var(--mpp-card-bg);
    box-shadow: 0 4px 20px rgba(15,23,42,0.06);
}
.mpp-style-gradient .mpp-card::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    border-radius: var(--mpp-radius);
    background: linear-gradient(135deg, var(--mpp-primary), var(--mpp-accent));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}
.mpp-style-gradient .mpp-card-highlight::before { opacity: 1; padding: 3px; }
.mpp-style-gradient .mpp-card-highlight {
    transform: scale(1.05);
    box-shadow: 0 20px 50px rgba(168,85,247,0.22);
}
.mpp-style-gradient .mpp-card-highlight .mpp-btn {
    background: linear-gradient(135deg, var(--mpp-primary), var(--mpp-accent));
    box-shadow: 0 8px 22px rgba(168,85,247,0.4);
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
.mpp-anim .mpp-card { animation: mppFadeUp 0.6s cubic-bezier(.4,0,.2,1) backwards; }
.mpp-anim .mpp-card:nth-child(1) { animation-delay: 0.05s; }
.mpp-anim .mpp-card:nth-child(2) { animation-delay: 0.12s; }
.mpp-anim .mpp-card:nth-child(3) { animation-delay: 0.19s; }
.mpp-anim .mpp-card:nth-child(4) { animation-delay: 0.26s; }
.mpp-anim .mpp-card:nth-child(5) { animation-delay: 0.33s; }

@keyframes mppFadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
/* keep scaled cards animated correctly */
.mpp-anim .mpp-card.mpp-card-highlight { animation-name: mppFadeUpHighlight; }
@keyframes mppFadeUpHighlight {
    from { opacity: 0; transform: translateY(24px) scale(1.05); }
    to   { opacity: 1; transform: scale(1.05); }
}
.mpp-style-glass.mpp-anim .mpp-card.mpp-card-highlight,
.mpp-style-minimal.mpp-anim .mpp-card.mpp-card-highlight {
    animation-name: mppFadeUpHighlightSm;
}
@keyframes mppFadeUpHighlightSm {
    from { opacity: 0; transform: translateY(24px) scale(1.03); }
    to   { opacity: 1; transform: scale(1.03); }
}
