/* ============================================
   BUSINESS UPGRADE MODAL
   Single global modal triggered by UpgradeRequiredError.
   ============================================ */

.biz-upgrade-modal {
    position: fixed;
    inset: 0;
    z-index: 11500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.biz-upgrade-modal[hidden] {
    display: none;
}

.biz-upgrade-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 12, 22, 0.85);
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.biz-upgrade-modal__card {
    position: relative;
    width: min(520px, 100%);
    max-height: calc(100vh - 3rem);
    overflow-y: auto;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(20, 30, 55, 0.98));
    border: 1px solid rgba(94, 234, 212, 0.22);
    border-radius: 18px;
    padding: 2rem;
    box-shadow: 0 24px 60px rgba(8, 12, 22, 0.7);
}

.biz-upgrade-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: #98a9c6;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.biz-upgrade-modal__close:hover {
    color: #f8fbff;
    background: rgba(255, 255, 255, 0.08);
}

.biz-upgrade-modal__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f8fbff;
    margin: 0 0 0.75rem;
    line-height: 1.3;
}

.biz-upgrade-modal__title [data-slot="action"] {
    background: linear-gradient(135deg, #5eead4, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.biz-upgrade-modal__body {
    color: #98a9c6;
    margin: 0 0 1.25rem;
    line-height: 1.55;
}

.biz-upgrade-modal__body strong {
    color: #f8fbff;
    font-weight: 600;
}

.biz-upgrade-modal__perks {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.biz-upgrade-modal__perks li {
    color: #cdd6e0;
    font-size: 0.92rem;
    padding-left: 1.4rem;
    position: relative;
}

.biz-upgrade-modal__perks li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #5eead4;
    font-weight: 700;
}

.biz-upgrade-modal__actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.biz-upgrade-modal__cancel,
.biz-upgrade-modal__upgrade {
    padding: 0.7rem 1.25rem;
    border-radius: 10px;
    border: none;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.biz-upgrade-modal__cancel {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #98a9c6;
}

.biz-upgrade-modal__cancel:hover {
    background: rgba(255, 255, 255, 0.04);
    color: #f8fbff;
}

.biz-upgrade-modal__upgrade {
    background: linear-gradient(135deg, #5eead4, #3b82f6);
    color: #0b1220;
}

.biz-upgrade-modal__upgrade:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(94, 234, 212, 0.25);
}

/* ── Tiered upgrade modal (3 tier cards: Solo/Shop/Pro) ── */
/* The tiered card is wider than the legacy card to fit 3 columns
   on desktop. Falls back to a single-column stack on mobile. */
.biz-upgrade-modal__card--tiered {
    width: min(960px, 100%);
    max-width: 960px;
    padding: 2rem 1.75rem;
}

.biz-upgrade-modal__tier-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 1rem 0 1.25rem;
}

.biz-upgrade-tier {
    position: relative;
    background: linear-gradient(180deg,
        rgba(20, 28, 44, 0.85),
        rgba(14, 22, 36, 0.85));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 22px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.biz-upgrade-tier:hover {
    transform: translateY(-2px);
    border-color: rgba(94, 234, 212, 0.30);
    box-shadow: 0 14px 32px rgba(8, 12, 22, 0.5);
}

.biz-upgrade-tier--featured {
    border-color: rgba(94, 234, 212, 0.40);
    background:
        linear-gradient(180deg, rgba(59, 130, 246, 0.08), rgba(34, 211, 166, 0.04)),
        linear-gradient(180deg, rgba(20, 28, 44, 0.92), rgba(14, 22, 36, 0.92));
    box-shadow: 0 8px 28px rgba(94, 234, 212, 0.10);
}

.biz-upgrade-tier__flag {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #3b82f6, #22d3a6);
    color: #0b1220;
    padding: 3px 12px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.biz-upgrade-tier__name {
    font-size: 18px;
    font-weight: 800;
    color: #f8fbff;
}

.biz-upgrade-tier__tagline {
    font-size: 12px;
    color: #98a9c6;
    margin-top: -4px;
}

.biz-upgrade-tier__price-row {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin: 4px 0;
}

.biz-upgrade-tier__amount {
    font-size: 30px;
    font-weight: 800;
    background: linear-gradient(135deg, #5eead4, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.biz-upgrade-tier__period {
    font-size: 13px;
    color: #98a9c6;
}

.biz-upgrade-tier__perks {
    list-style: none;
    padding: 0;
    margin: 4px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.biz-upgrade-tier__perks li {
    font-size: 12.5px;
    color: #cdd6e0;
    line-height: 1.45;
    padding-left: 18px;
    position: relative;
}

.biz-upgrade-tier__perks li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #5eead4;
    font-weight: 700;
    font-size: 12px;
}

/* "Everything in X, plus:" lead-in row gets no checkmark and is
   visually distinct from the perks below it */
.biz-upgrade-tier__perks-prev {
    font-weight: 700 !important;
    color: #f8fbff !important;
    padding-left: 0 !important;
    padding-bottom: 4px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
    margin-bottom: 2px;
}

.biz-upgrade-tier__perks-prev::before {
    display: none !important;
}

.biz-upgrade-tier__cta {
    margin-top: 8px;
    padding: 11px 14px;
    border-radius: 10px;
    border: 1px solid rgba(94, 234, 212, 0.25);
    background: rgba(94, 234, 212, 0.06);
    color: #5eead4;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.biz-upgrade-tier__cta:hover {
    background: rgba(94, 234, 212, 0.14);
    border-color: rgba(94, 234, 212, 0.5);
    transform: translateY(-1px);
}

/* Featured tier gets a solid gradient CTA */
.biz-upgrade-tier--featured .biz-upgrade-tier__cta {
    background: linear-gradient(135deg, #3b82f6, #22d3a6);
    color: #fff;
    border-color: transparent;
}

.biz-upgrade-tier--featured .biz-upgrade-tier__cta:hover {
    box-shadow: 0 8px 20px rgba(94, 234, 212, 0.30);
    transform: translateY(-2px);
}

.biz-upgrade-modal__foot {
    text-align: center;
    margin-top: 4px;
    font-size: 11.5px;
    color: rgba(152, 169, 198, 0.7);
}

@media (min-width: 760px) {
    .biz-upgrade-modal__tier-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    .biz-upgrade-tier--featured {
        transform: translateY(-6px);
    }
    .biz-upgrade-tier--featured:hover {
        transform: translateY(-10px);
    }
}

/* Trial pill in sidebar */
.biz-trial-pill {
    display: inline-block;
    padding: 2px 8px;
    margin-left: 6px;
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 999px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.biz-trial-pill[hidden] {
    display: none;
}

/* ─── Top trial-mode banner ─────────────────────────────────────────
   Sticky bar at the very top of .biz-content that's shown when
   window.__bizTrialMode is true. The sidebar TRIAL pill is too easy
   to miss (audit 2026-05-09) — this gives an unmissable page-level
   signal that the data is sample, plus a one-click jump to plans. */
#biz-trial-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 10px 20px;
    background: linear-gradient(90deg, rgba(251, 191, 36, 0.14), rgba(245, 158, 11, 0.10));
    border-bottom: 1px solid rgba(251, 191, 36, 0.25);
    color: #fbbf24;
    font-size: 13px;
    font-weight: 500;
    flex-wrap: wrap;
}
#biz-trial-banner[hidden] { display: none; }
.biz-trial-banner-pill {
    background: rgba(251, 191, 36, 0.22);
    color: #fde68a;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid rgba(251, 191, 36, 0.35);
}
.biz-trial-banner-text { color: #fde68a; }
.biz-trial-banner-cta {
    background: rgba(251, 191, 36, 0.85);
    color: #1a1a1a;
    border: 0;
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.15s;
}
.biz-trial-banner-cta:hover { background: #fbbf24; }
@media (max-width: 640px) {
    #biz-trial-banner { gap: 8px; padding: 8px 12px; font-size: 12px; }
    .biz-trial-banner-text { display: none; }
}
