/* Добавьте в конец файла bell.css */
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.pricing-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease;
    position: relative; /* for top-hanging badges */
}

.pricing-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}


/* Для темной темы */
.dark .pricing-card {
    background: #082842;
    color: white;
    border-color: #64646488;
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.card-logo {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    object-fit: cover;
}

.card-info {
    margin-left: 0.75rem;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.dark .card-title {
    color: white;
}

.card-stats {
    display: flex;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #969696;
    margin-top: 0.25rem;
}

.dark .card-stats {
    color: #9ca3af;
}

.card-footer {
    border-top: 1px solid #e5e7eb;
    padding-top: 0.5rem;
    position: relative;
}

.dark .card-footer {
    border-color: #4b88eb;
}

.card-description {
    font-size: 0.875rem;
    color: #797b80;
    margin: 0;
    line-height: 1.25rem;
    max-height: 1.25rem; /* collapse to one line */
    overflow: hidden;
    transition: max-height 0.2s ease;
}

.dark .card-description {
    color: #9ca3af;
}

/* Top-hanging badge positioning */
.card-badge {
    position: absolute;
    top: -1px;
    right: 13px;
    width: 52px;
    height: 52px;
    z-index: 5;
}

/* Hover to expand long descriptions */
.card-footer.has-overflow:hover .card-description {
    max-height: 200px;
}

/* Chevron indicator */
.card-footer.has-overflow::after {
    content: '\25BE';
    position: absolute;
    right: 0;
    top: 0.5rem;
    font-size: 0.9rem;
    color: #9ca3af;
    line-height: 1;
    transition: transform 0.2s ease, color 0.2s ease;
}

.card-footer.has-overflow:hover::after {
    transform: rotate(180deg);
    color: #6b7280;
}

.dark .card-footer.has-overflow::after {
    color: #6b7280;
}

.dark .card-footer.has-overflow:hover::after {
    color: #d1d5db;
}

/* Добавьте в ваш bell.css файл */

/* Панель фильтров */
.filter-panel {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 2rem;
    padding: 0 1rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.filter-dropdown {
    position: relative;
}

.filter-button {
    padding: 0.5rem;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.filter-button:hover {
    background: #f9fafb;
}

.dropdown-menu {
    position: absolute;
    top: 2.5rem;
    right: 0;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 50;
    min-width: 12rem;
    display: none;
}

.dropdown-menu.visible {
    display: block;
}

.dropdown-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    transition: background 0.2s ease;
}

.dropdown-item:hover {
    background: #f3f4f6;
}

.checkbox {
    width: 1rem;
    height: 1rem;
    border: 1px solid #d1d5db;
    border-radius: 3px;
    margin-right: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
}

.checkbox.checked {
    background: #3b82f6;
    border-color: #3b82f6;
}

.checkbox.checked::after {
    content: '✓';
    color: white;
    font-size: 0.75rem;
}

.search-container {
    display: flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: white;
    overflow: hidden;
    transition: all 0.3s ease;
}

.search-input {
    border: none;
    padding: 0.5rem;
    outline: none;
    font-size: 0.875rem;
    width: 0;
    transition: width 0.3s ease;
}

.search-input.expanded {
    width: 12rem;
}

.search-button {
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

.pricing-card.hidden {
    display: none;
}