/* =========================================================================
   Shahid Malla Pricing Table — Frontend Styles
   shahidmalla.com
   ========================================================================= */

.smpt-wrap {
    max-width: 1200px;
    margin: 32px auto;
    padding: 32px 18px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1a1f36;
    box-sizing: border-box;
}
.smpt-wrap *, .smpt-wrap *::before, .smpt-wrap *::after {
    box-sizing: border-box;
}

/* ---- Heading ---- */
.smpt-heading { text-align: center; margin-bottom: 28px; }
.smpt-heading h2 {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 6px;
    color: #1a1f36;
}
.smpt-heading p {
    font-size: 16px;
    color: #4a5568;
    margin: 0;
}

/* ---- Tabs (top toggle) ---- */
.smpt-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    background: #fff;
    border-radius: 100px;
    padding: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
    margin: 0 auto 32px;
    max-width: 100%;
    flex-wrap: wrap;
    width: fit-content;
}
.smpt-tab {
    padding: 12px 26px;
    background: transparent;
    border: 0;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 600;
    color: #4a5568;
    cursor: pointer;
    transition: all .2s ease;
    font-family: inherit;
    white-space: nowrap;
}
.smpt-tab:hover { color: #1a1f36; }
.smpt-tab.active {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    box-shadow: 0 4px 12px rgba(37,99,235,.35);
}

/* ---- Panels (one per tab) ---- */
.smpt-panel { display: none; }
.smpt-panel.active { display: block; animation: smpt-fade .25s ease; }
@keyframes smpt-fade {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---- Cards grid ---- */
.smpt-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    align-items: stretch;
}
.smpt-cards-single { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }

/* ---- Card ---- */
.smpt-card {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 32px 26px 28px;
    box-shadow: 0 4px 12px rgba(0,0,0,.05);
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease;
}
.smpt-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,.1);
}
.smpt-card-popular {
    border-color: #3b82f6;
    border-width: 2px;
    box-shadow: 0 8px 24px rgba(37,99,235,.18);
}

.smpt-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #60a5fa, #2563eb);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 100px;
    box-shadow: 0 4px 10px rgba(37,99,235,.35);
    letter-spacing: .02em;
    white-space: nowrap;
}

.smpt-card-title {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 18px;
    color: #1a1f36;
}

.smpt-card-price {
    text-align: center;
    font-size: 42px;
    font-weight: 800;
    color: #2563eb;
    line-height: 1.1;
    margin-bottom: 6px;
}
/* Woo's price_html may include currency symbol + nested spans — keep it readable. */
.smpt-card-price .woocommerce-Price-amount,
.smpt-card-price bdi {
    color: inherit;
    font-weight: inherit;
}
.smpt-card-price del {
    color: #94a3b8;
    font-weight: 600;
    font-size: 22px;
    margin-right: 8px;
}
.smpt-card-price ins {
    background: transparent;
    text-decoration: none;
}

.smpt-card-subtitle {
    text-align: center;
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 22px;
}
.smpt-card-price + .smpt-card-features { margin-top: 22px; }

.smpt-card-features {
    list-style: none;
    margin: 0 0 26px;
    padding: 0;
    border-top: 1px solid #e5e7eb;
    padding-top: 20px;
    flex-grow: 1;
}
.smpt-card-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    color: #374151;
    font-size: 15px;
}
.smpt-card-features li svg {
    color: #2563eb;
    flex-shrink: 0;
}

.smpt-card-button {
    display: block;
    text-align: center;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff !important;
    font-weight: 600;
    font-size: 15px;
    padding: 13px 22px;
    border-radius: 10px;
    text-decoration: none !important;
    transition: all .2s ease;
    margin-top: auto;
    box-shadow: 0 4px 10px rgba(37,99,235,.25);
}
.smpt-card-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37,99,235,.4);
    color: #fff !important;
}
.smpt-card-popular .smpt-card-button {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

/* ---- Mobile ---- */
@media (max-width: 640px) {
    .smpt-tabs {
        border-radius: 14px;
        padding: 4px;
    }
    .smpt-tab {
        padding: 10px 18px;
        font-size: 14px;
    }
    .smpt-cards { gap: 18px; }
    .smpt-card { padding: 28px 22px 24px; }
    .smpt-card-price { font-size: 36px; }
    .smpt-heading h2 { font-size: 26px; }
}

/* ---- Optional dark theme — apply by adding .smpt-dark to .smpt-wrap ---- */
.smpt-wrap.smpt-dark .smpt-card {
    background: #0f172a;
    border-color: #1e293b;
    color: #e2e8f0;
}
.smpt-wrap.smpt-dark .smpt-card-title { color: #f8fafc; }
.smpt-wrap.smpt-dark .smpt-card-price { color: #60a5fa; }
.smpt-wrap.smpt-dark .smpt-card-features { border-color: #1e293b; }
.smpt-wrap.smpt-dark .smpt-card-features li { color: #cbd5e1; }
.smpt-wrap.smpt-dark .smpt-tabs { background: #1e293b; }
.smpt-wrap.smpt-dark .smpt-tab { color: #94a3b8; }
.smpt-wrap.smpt-dark .smpt-tab:hover { color: #f8fafc; }
