/* ==========================================================================
   Subscription page + sidebar restriction styles
   ========================================================================== */

/* --- Subscription status card --- */
.subscription-status-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
}

/* --- Plan cards --- */
.plan-card {
    border: 1px solid #dee2e6;
    border-radius: 10px;
    overflow: hidden;
    height: 100%;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.plan-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.plan-card-current {
    border-color: #198754;
    border-width: 2px;
    position: relative;
}

.plan-card-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #198754;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-bottom-left-radius: 8px;
}

.plan-card-header {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: #fff;
    padding: 18px 20px;
    text-align: center;
}

.plan-card-header h5 {
    margin: 0;
    font-weight: 600;
    font-size: 1.1rem;
}

.plan-card-current .plan-card-header {
    background: linear-gradient(135deg, #198754 0%, #146c43 100%);
}

.plan-card-body {
    padding: 20px;
}

.plan-pricing {
    border-top: 1px solid #e9ecef;
    padding-top: 12px;
}

.plan-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
}

.plan-price-label {
    color: #6c757d;
    font-size: 0.9rem;
}

.plan-price-value {
    font-weight: 600;
    font-size: 1rem;
    color: #212529;
}

.plan-actions .btn {
    font-size: 0.78rem;
    padding: 6px 8px;
}

/* --- Navbar subscription banner --- */
.subscription-banner {
    font-size: 0.8rem;
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

/* --- Sidebar restriction --- */
.sidebar-restricted .nav-item:not(.subscription-exempt) {
    opacity: 0.35;
    pointer-events: none;
    user-select: none;
}

.sidebar-restricted .nav-item:not(.subscription-exempt) .nav-link {
    cursor: not-allowed;
}

.sidebar-restricted .nav-item.subscription-exempt {
    opacity: 1;
    pointer-events: auto;
}
