/* ------------------------------------------------------------------
   Subscription pricing cards — refinements on top of the theme styles
   ------------------------------------------------------------------ */

.pricing-section {
    --pc-accent: var(--vr-theme-color, #0f9d76);
    --pc-muted: var(--vr-gray-500);
    --pc-border: var(--vr-gray-200);
    --pc-surface: var(--vr-gray-50);
}

[data-bs-theme="dark"] .pricing-section {
    --pc-muted: var(--vr-gray-400);
    --pc-border: var(--vr-gray-700);
    --pc-surface: rgba(255, 255, 255, .04);
}

/* --- Card ---------------------------------------------------------- */

.pricing-section .pricing-card {
    border-radius: 14px;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.pricing-section .pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .09);
}

.pricing-section .pricing-card.featured {
    box-shadow: 0 14px 36px rgba(0, 0, 0, .1);
}

.pricing-section .pricing-card.featured:hover {
    transform: translateY(-6px);
}

.pricing-section .plan-name {
    font-size: 1.25rem;
    letter-spacing: -.2px;
}

.pricing-section .plan-desc {
    min-height: 3.25rem;
    color: var(--pc-muted);
    font-size: .875rem;
    line-height: 1.55;
}

.pricing-section .plan-price {
    font-size: 2.5rem;
    letter-spacing: -1.5px;
}

.pricing-section .price-period-suffix {
    color: var(--pc-muted);
    letter-spacing: 0;
}

/* --- Highlights ---------------------------------------------------- */

.plan-highlights {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    padding: .875rem 1rem;
    border: 1px solid var(--pc-border);
    border-radius: 10px;
    background: var(--pc-surface);
}

.plan-highlight {
    display: flex;
    align-items: center;
    gap: .625rem;
}

.plan-highlight-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--pc-accent) 14%, transparent);
    color: var(--pc-accent);
}

.plan-highlight-text {
    font-size: .8125rem;
    line-height: 1.4;
}

.plan-highlight-text strong {
    font-size: .9375rem;
    font-weight: 700;
}

/* --- Feature list -------------------------------------------------- */

.pricing-section .feature-item {
    font-size: .875rem;
    line-height: 1.5;
}

.pricing-section .feature-item .icon-wrapper {
    width: 20px;
    height: 20px;
}

.pricing-section .feature-item .icon-wrapper svg {
    width: 13px;
    height: 13px;
}

.pricing-section .feature-item.disabled {
    opacity: .5;
}

/* --- Button -------------------------------------------------------- */

.pricing-section .btn-plan {
    padding: .8125rem 1rem;
    font-size: .875rem;
    letter-spacing: .3px;
    transition: all .25s ease;
}

.pricing-section .btn-plan:disabled {
    opacity: .5;
    cursor: not-allowed;
}

/* --- Badge --------------------------------------------------------- */

.pricing-section .custom-badge {
    font-size: .6875rem;
    letter-spacing: 1px;
    white-space: nowrap;
}

@media (max-width: 991.98px) {
    .pricing-section .plan-desc {
        min-height: 0;
    }
}

/* ------------------------------------------------------------------
   Daily article allowance shown in the submit-article modal
   ------------------------------------------------------------------ */

.post-quota-bar {
    display: flex;
    align-items: center;
    gap: .625rem;
    margin-bottom: 1.25rem;
    padding: .75rem 1rem;
    border: 1px solid rgba(15, 157, 118, .3);
    border-radius: 10px;
    background: rgba(15, 157, 118, .08);
    color: var(--vr-gray-700, #374151);
    font-size: .875rem;
}

.post-quota-bar svg {
    flex-shrink: 0;
    color: #0f9d76;
}

.post-quota-bar.is-used-up {
    border-color: rgba(220, 53, 69, .3);
    background: rgba(220, 53, 69, .07);
}

.post-quota-bar.is-used-up svg {
    color: #dc3545;
}

.post-quota-bar a {
    font-weight: 600;
    text-decoration: underline;
}

[data-bs-theme="dark"] .post-quota-bar {
    color: var(--vr-gray-300);
}

.format-card.is-disabled {
    opacity: .45;
    pointer-events: none;
    cursor: not-allowed;
}
