/* ═══════════════════════════════════════════════════════════════
   Book Pricing Table — Front-end styles
   ═══════════════════════════════════════════════════════════════ */

/* ── Reset / root ── */
.bpt-wrapper *,
.bpt-wrapper *::before,
.bpt-wrapper *::after { box-sizing: border-box; }

.bpt-wrapper {
    padding: 40px 20px 60px;
    background: var(--bpt-page-bg);
}

/* ── Tabs ── */
.bpt-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 40px;
    background: #e8eaf0;
    border-radius: 50px;
    padding: 5px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.bpt-tab-btn {
    padding: 10px 30px;
    border: none;
    background: transparent;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    transition: background .25s, color .25s, box-shadow .25s;
    white-space: nowrap;
}
.bpt-tab-btn.active {
    background: #fff;
    color: var(--bpt-heading);
    box-shadow: 0 2px 10px rgba(0,0,0,.12);
}
.bpt-tab-btn:focus-visible { outline: 3px solid var(--bpt-primary); }

/* ── Panels ── */
.bpt-panel { display: none; }
.bpt-panel.active { display: block; }

/* ── Cards grid ── */
.bpt-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1140px;
    margin: 0 auto;
    align-items: start;
}

/* ── Card ── */
.bpt-card {
    background: var(--bpt-card-bg);
    border-radius: var(--bpt-radius);
    padding: 32px 28px 28px;
    box-shadow: 0 4px 24px rgba(0,0,0,.07);
    position: relative;
    transition: transform .25s, box-shadow .25s;
    border: 2px solid transparent;
}
.bpt-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,.12);
}
.bpt-card.bpt-popular {
    border-color: var(--bpt-accent);
    box-shadow: 0 8px 40px rgba(0,0,0,.13);
}

/* ── Popular badge ── */
.bpt-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bpt-accent);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 4px 18px;
    border-radius: 50px;
    white-space: nowrap;
}

/* ── Card head ── */
.bpt-card-head { margin-bottom: 20px; }

.bpt-plan-icon.dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    color: var(--bpt-icon);
    display: block;
    margin-bottom: 10px;
}
.bpt-emoji-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 10px;
}

.bpt-plan-name {
    font-size: 26px;
    font-weight: 800;
    color: var(--bpt-heading);
    margin: 0 0 6px;
}
.bpt-plan-tagline {
    font-size: 14px;
    color: var(--bpt-text);
    line-height: 1.5;
    margin: 0;
}

/* ── Price area ── */
.bpt-price-area { margin: 20px 0; }

.bpt-price-amount {
    display: block;
    font-size: 38px;
    font-weight: 900;
    color: var(--bpt-heading);
    letter-spacing: -.02em;
    line-height: 1;
    margin-bottom: 14px;
    transition: opacity .2s;
}

.bpt-payment-select-wrap {
    position: relative;
    margin-bottom: 6px;
}
.bpt-payment-select {
    width: 100%;
    padding: 9px 38px 9px 12px;
    border: 1.5px solid #d8dce6;
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
    color: var(--bpt-text);
    appearance: none;
    cursor: pointer;
    transition: border-color .2s;
}
.bpt-payment-select:focus { border-color: var(--bpt-primary); outline: none; }
.bpt-select-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--bpt-text);
    font-size: 12px;
}

.bpt-membership-note {
    font-size: 12px;
    color: #aaa;
    margin: 4px 0 0;
}

/* ── CTA Button ── */
.bpt-cta-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: var(--bpt-btn-bg);
    color: var(--bpt-btn-text);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin: 18px 0;
    transition: opacity .2s, transform .15s;
    letter-spacing: .02em;
}
.bpt-cta-btn:hover { opacity: .88; transform: scale(1.02); }
.bpt-cta-btn:active { transform: scale(.98); }

/* ── Features ── */
.bpt-features {
    list-style: none;
    margin: 0;
    padding: 0;
}
.bpt-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--bpt-text);
    padding: 6px 0;
    border-bottom: 1px solid rgba(0,0,0,.05);
    line-height: 1.5;
}
.bpt-features li:last-child { border-bottom: none; }
.bpt-check {
    color: var(--bpt-icon);
    font-size: 18px !important;
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ── Add-ons ── */
.bpt-addons {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1.5px solid #eee;
}
.bpt-addons-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #aaa;
    margin: 0 0 10px;
}
.bpt-addons ul {
    list-style: none;
    margin: 0; padding: 0;
}
.bpt-addons li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--bpt-text);
    padding: 5px 0;
    border-bottom: 1px solid rgba(0,0,0,.04);
}
.bpt-addons li:last-child { border-bottom: none; }
.bpt-addon-price { font-weight: 600; }
.bpt-addon-price.bpt-included { color: var(--bpt-primary); }

/* ── Overlay / Popup ── */
.bpt-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: bptFadeIn .2s ease;
}
.bpt-overlay.open { display: flex; }

@keyframes bptFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.bpt-popup {
    background: #fff;
    border-radius: var(--bpt-radius);
    max-width: 480px;
    width: 100%;
    padding: 40px 36px 36px;
    position: relative;
    box-shadow: 0 24px 80px rgba(0,0,0,.18);
    animation: bptSlideUp .25s ease;
}
@keyframes bptSlideUp {
    from { transform: translateY(30px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.bpt-popup-close {
    position: absolute;
    top: 14px; right: 18px;
    background: none; border: none;
    font-size: 20px; cursor: pointer;
    color: #999; line-height: 1;
    transition: color .15s;
}
.bpt-popup-close:hover { color: #333; }

.bpt-popup-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--bpt-heading);
    margin: 0 0 12px;
}
.bpt-popup-desc {
    font-size: 15px;
    color: var(--bpt-text);
    line-height: 1.6;
    margin: 0 0 24px;
}
.bpt-popup-btn {
    display: block;
    text-align: center;
    padding: 15px;
    background: var(--bpt-btn-bg);
    color: var(--bpt-btn-text);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: opacity .2s;
}
.bpt-popup-btn:hover { opacity: .88; color: var(--bpt-btn-text); }

/* ── Responsive ── */
@media (max-width: 700px) {
    .bpt-cards-grid { grid-template-columns: 1fr; }
    .bpt-tab-btn    { padding: 9px 18px; font-size: 14px; }
    .bpt-plan-name  { font-size: 22px; }
    .bpt-price-amount { font-size: 30px; }
}
