/*
 * Muffak Pricing Plugin - Swiss Precision Design
 * All styles are scoped under .muffak-pricing-wrapper
 */

/* ─── RESET & BASE ─── */
.muffak-pricing-wrapper {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1e293b;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

.muffak-pricing-wrapper img {
    max-width: 100%;
}

/* ─── CONTAINER ─── */
.muffak-pricing-wrapper .muffak-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ─── GRID ─── */
.muffak-pricing-wrapper .muffak-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* ─── HERO SECTION ─── */
.muffak-pricing-wrapper .muffak-hero {
    position: relative;
    padding: 100px 0 80px;
    overflow: hidden;
    background: #ffffff;
}

.muffak-pricing-wrapper .muffak-hero-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(37, 99, 235, 0.5) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.5) 1px, transparent 1px);
    background-size: 64px 64px;
    opacity: 0.025;
}

.muffak-pricing-wrapper .muffak-hero-content {
    position: relative;
    max-width: 768px;
    margin: 0 auto;
    text-align: center;
}

.muffak-pricing-wrapper .muffak-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 50px;
    border: 1px solid rgba(37, 99, 235, 0.2);
    background: rgba(37, 99, 235, 0.04);
    font-size: 13px;
    font-weight: 500;
    color: #2563EB;
    margin-bottom: 36px;
}

.muffak-pricing-wrapper .muffak-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #2563EB;
}

.muffak-pricing-wrapper .muffak-hero-title {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.025em;
    color: #0f172a;
    margin: 0 0 24px;
}

.muffak-pricing-wrapper .muffak-highlight {
    color: #2563EB;
}

.muffak-pricing-wrapper .muffak-hero-subtitle {
    font-size: 17px;
    color: #64748b;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ─── PRICING CARDS ─── */
.muffak-pricing-wrapper .muffak-pricing-cards {
    padding: 40px 0 80px;
    background: #ffffff;
}

.muffak-pricing-wrapper .muffak-card {
    position: relative;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.muffak-pricing-wrapper .muffak-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.muffak-pricing-wrapper .muffak-card-featured {
    border-color: #2563EB;
    box-shadow: 0 4px 24px rgba(37, 99, 235, 0.1);
}

.muffak-pricing-wrapper .muffak-card-premium {
    border-color: #d97706;
    box-shadow: 0 4px 24px rgba(217, 119, 6, 0.08);
}

.muffak-pricing-wrapper .muffak-card-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: #2563EB;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 5px 16px;
    border-radius: 6px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.muffak-pricing-wrapper .muffak-badge-premium {
    background: linear-gradient(135deg, #d97706, #b45309);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.25);
}

.muffak-pricing-wrapper .muffak-card-header {
    text-align: center;
    padding-top: 12px;
}

.muffak-pricing-wrapper .muffak-plan-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #94a3b8;
    margin-bottom: 12px;
}

.muffak-pricing-wrapper .muffak-plan-title {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 4px;
    letter-spacing: -0.02em;
}

.muffak-pricing-wrapper .muffak-plan-subtitle {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 20px;
}

.muffak-pricing-wrapper .muffak-plan-price {
    margin-bottom: 4px;
}

.muffak-pricing-wrapper .muffak-price-amount {
    font-size: 34px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.muffak-pricing-wrapper .muffak-price-unit {
    font-size: 14px;
    color: #94a3b8;
    font-weight: 500;
    margin-left: 4px;
}

.muffak-pricing-wrapper .muffak-card-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #e2e8f0, transparent);
    margin: 20px 0;
}

.muffak-pricing-wrapper .muffak-info-box {
    background: rgba(37, 99, 235, 0.04);
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 12px;
    color: #2563EB;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 500;
    line-height: 1.5;
}

.muffak-pricing-wrapper .muffak-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    flex: 1;
}

.muffak-pricing-wrapper .muffak-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 7px 0;
    font-size: 13.5px;
    color: #475569;
    line-height: 1.5;
}

.muffak-pricing-wrapper .muffak-feature-check {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    border-radius: 50%;
    background: rgba(22, 163, 74, 0.08);
    position: relative;
}

.muffak-pricing-wrapper .muffak-feature-check::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 5.5px;
    width: 5px;
    height: 8px;
    border-right: 2px solid #16a34a;
    border-bottom: 2px solid #16a34a;
    transform: rotate(45deg);
}

/* ─── BUTTONS ─── */
.muffak-pricing-wrapper .muffak-btn {
    display: block;
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.muffak-pricing-wrapper .muffak-btn:active {
    transform: scale(0.97);
}

.muffak-pricing-wrapper .muffak-btn-primary {
    background: #2563EB;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.2);
}

.muffak-pricing-wrapper .muffak-btn-primary:hover {
    background: #1d4ed8;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

.muffak-pricing-wrapper .muffak-btn-outline {
    background: transparent;
    color: #2563EB;
    border: 1.5px solid #2563EB;
}

.muffak-pricing-wrapper .muffak-btn-outline:hover {
    background: rgba(37, 99, 235, 0.04);
}

.muffak-pricing-wrapper .muffak-btn-gold {
    background: linear-gradient(135deg, #d97706, #b45309);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.2);
}

.muffak-pricing-wrapper .muffak-btn-gold:hover {
    background: linear-gradient(135deg, #b45309, #92400e);
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.3);
}

.muffak-pricing-wrapper .muffak-btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: auto;
    padding: 16px 32px;
    font-size: 15px;
}

.muffak-pricing-wrapper .muffak-arrow {
    font-size: 18px;
}

/* ─── COMPARISON TABLE ─── */
.muffak-pricing-wrapper .muffak-comparison {
    padding: 80px 0;
    background: #f8fafc;
}

.muffak-pricing-wrapper .muffak-section-header {
    text-align: center;
    margin-bottom: 48px;
}

.muffak-pricing-wrapper .muffak-section-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px;
    letter-spacing: -0.02em;
}

.muffak-pricing-wrapper .muffak-section-header p {
    font-size: 16px;
    color: #64748b;
    margin: 0;
}

.muffak-pricing-wrapper .muffak-table-wrapper {
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.muffak-pricing-wrapper .muffak-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}

.muffak-pricing-wrapper .muffak-table th {
    padding: 16px 20px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    border-bottom: 2px solid #e2e8f0;
    color: #475569;
}

.muffak-pricing-wrapper .muffak-table th:first-child {
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.muffak-pricing-wrapper .muffak-col-highlight {
    color: #2563EB !important;
    background: rgba(37, 99, 235, 0.03);
}

.muffak-pricing-wrapper .muffak-col-gold {
    color: #d97706 !important;
    background: rgba(217, 119, 6, 0.03);
}

.muffak-pricing-wrapper .muffak-table td {
    padding: 14px 20px;
    text-align: center;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
    color: #475569;
}

.muffak-pricing-wrapper .muffak-table td:first-child {
    text-align: left;
    font-weight: 500;
    color: #334155;
}

.muffak-pricing-wrapper .muffak-table-section-row td {
    background: #f8fafc;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    padding: 10px 20px;
}

.muffak-pricing-wrapper .muffak-col-highlight-cell {
    background: rgba(37, 99, 235, 0.02);
}

.muffak-pricing-wrapper .muffak-col-gold-cell {
    background: rgba(217, 119, 6, 0.02);
}

.muffak-pricing-wrapper .muffak-check-yes {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(22, 163, 74, 0.08);
    position: relative;
}

.muffak-pricing-wrapper .muffak-check-yes::after {
    content: '';
    width: 5px;
    height: 8px;
    border-right: 2px solid #16a34a;
    border-bottom: 2px solid #16a34a;
    transform: rotate(45deg);
    position: absolute;
    top: 7px;
    left: 8.5px;
}

.muffak-pricing-wrapper .muffak-check-no {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.04);
    position: relative;
}

.muffak-pricing-wrapper .muffak-check-no::after {
    content: '';
    width: 8px;
    height: 2px;
    background: #cbd5e1;
    position: absolute;
    border-radius: 1px;
}

.muffak-pricing-wrapper .muffak-feature-name {
    font-weight: 500;
    color: #334155;
}

/* ─── WHY MUFFAK ─── */
.muffak-pricing-wrapper .muffak-why {
    padding: 80px 0;
    background: #ffffff;
}

.muffak-pricing-wrapper .muffak-why-grid {
    gap: 20px;
}

.muffak-pricing-wrapper .muffak-why-card {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    padding: 28px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.muffak-pricing-wrapper .muffak-why-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
    border-color: rgba(37, 99, 235, 0.2);
}

.muffak-pricing-wrapper .muffak-why-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    position: relative;
}

.muffak-pricing-wrapper .muffak-icon-zap::before {
    content: '⚡';
    font-size: 20px;
}

.muffak-pricing-wrapper .muffak-icon-lock::before {
    content: '🔒';
    font-size: 20px;
}

.muffak-pricing-wrapper .muffak-icon-phone::before {
    content: '📱';
    font-size: 20px;
}

.muffak-pricing-wrapper .muffak-icon-headset::before {
    content: '🎧';
    font-size: 20px;
}

.muffak-pricing-wrapper .muffak-why-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 6px;
    letter-spacing: -0.01em;
}

.muffak-pricing-wrapper .muffak-why-card p {
    font-size: 13.5px;
    color: #64748b;
    margin: 0;
    line-height: 1.6;
}

/* ─── CTA SECTION ─── */
.muffak-pricing-wrapper .muffak-cta {
    padding: 80px 0;
    background: #ffffff;
    text-align: center;
}

.muffak-pricing-wrapper .muffak-cta h2 {
    font-size: 26px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}

.muffak-pricing-wrapper .muffak-cta p {
    font-size: 16px;
    color: #64748b;
    max-width: 440px;
    margin: 0 auto 28px;
    line-height: 1.6;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1200px) {
    .muffak-pricing-wrapper .muffak-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .muffak-pricing-wrapper .muffak-container {
        padding: 0 20px;
    }

    .muffak-pricing-wrapper .muffak-hero {
        padding: 60px 0 50px;
    }

    .muffak-pricing-wrapper .muffak-hero-title {
        font-size: 32px;
    }

    .muffak-pricing-wrapper .muffak-grid-4 {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .muffak-pricing-wrapper .muffak-section-header h2 {
        font-size: 24px;
    }

    .muffak-pricing-wrapper .muffak-table-wrapper {
        margin: 0 -20px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .muffak-pricing-wrapper .muffak-why-grid {
        grid-template-columns: 1fr;
    }

    .muffak-pricing-wrapper .muffak-cta h2 {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .muffak-pricing-wrapper .muffak-hero-title {
        font-size: 28px;
    }

    .muffak-pricing-wrapper .muffak-hero-subtitle {
        font-size: 15px;
    }

    .muffak-pricing-wrapper .muffak-price-amount {
        font-size: 28px;
    }
}
