/* Добавьте в конец файла bell.css */
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Увеличиваем ширину карточек на мобильных (iPhone 12 Pro и меньше) */
@media (max-width: 480px) {
    .pricing-grid {
        padding: 0 0.5rem;
        gap: 1rem;
    }
    
    .pricing-card {
        padding: 1.25rem;
    }
}

@media (min-width: 640px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* iPad Mini и iPad Air в портретной ориентации - 2 колонки */
@media (min-width: 768px) and (max-width: 834px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
        padding: 0 1rem;
    }
    
    .pricing-card {
        padding: 1.5rem;
    }
}

/* iPad в ландшафтной ориентации и больше - 3 колонки */
@media (min-width: 835px) {
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.pricing-card {
    background: linear-gradient(135deg, #faf8f3 0%, #f5f1e8 50%, #ede8d8 100%);
    border-radius: 14px;
    box-shadow: 
        0 4px 6px -1px rgba(180, 160, 140, 0.15),
        0 2px 4px -1px rgba(180, 160, 140, 0.1),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(180, 160, 140, 0.3);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative; /* for top-hanging badges */
}

.pricing-card:hover {
    box-shadow: 
        0 10px 15px -3px rgba(180, 160, 140, 0.25),
        0 4px 6px -2px rgba(180, 160, 140, 0.15),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.8);
    transform: translateY(-3px);
    border-color: rgba(180, 160, 140, 0.5);
    background: linear-gradient(135deg, #f5f1e8 0%, #ede8d8 50%, #e6dfcc 100%);
}


/* Для темной темы */
.dark .pricing-card {
    background: linear-gradient(135deg, #3d2f1f 0%, #4a3826 50%, #5a4530 100%);
    color: white;
    border-color: rgba(139, 111, 71, 0.4);
    box-shadow: 
        0 4px 6px -1px rgba(139, 111, 71, 0.25),
        0 2px 4px -1px rgba(139, 111, 71, 0.2),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
}

.dark .pricing-card:hover {
    box-shadow: 
        0 10px 15px -3px rgba(139, 111, 71, 0.35),
        0 4px 6px -2px rgba(139, 111, 71, 0.25),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(139, 111, 71, 0.6);
    background: linear-gradient(135deg, #4a3826 0%, #5a4530 50%, #6b543a 100%);
}

.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: #d1d5db;
}

.card-footer {
    border-top: 1px solid #e5e7eb;
    padding-top: 0.5rem;
    padding-right: 2rem;
    position: relative;
}

.dark .card-footer {
    border-color: #d8d8d8;
}

.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;
}

/* Для структурированного контента показываем только первую строку */
.card-description:not(.expanded) {
    max-height: 1.25rem;
    overflow: hidden;
}

.card-description.expanded {
    max-height: 500px;
    overflow: visible;
}

.dark .card-description {
    color: #f3f4f6;
}

/* Стили для структурированного контента в карточках */
.card-description p {
    margin: 0 0 0.5rem 0;
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.card-description ul {
    margin: 0.25rem 0 0.5rem 0;
    padding-left: 1rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.card-description li {
    margin: 0.125rem 0;
}

.card-description strong {
    font-weight: 600;
    color: #374151;
}

.dark .card-description strong {
    color: #f3f4f6;
}

/* Top-hanging badge positioning */
.card-badge {
    position: absolute;
    top: -1px;
    right: 13px;
    width: 52px;
    height: 52px;
    z-index: 5;
}

/* Переопределяем inline-стили из JavaScript */
.pricing-card .card-badge {
    left: auto !important;
}

/* Позиционирование бейджей по data-badge-position */

/* Десктоп */
@media (min-width: 1025px) {
    /* Одиночный бейдж (любого типа) - всегда справа */
    .pricing-card .card-badge[data-badge-position="single"] {
        right: 13px !important;
    }
    
    /* Если два бейджа - первый (position=0, обычно желтый Recommended) левее */
    .pricing-card .card-badge[data-badge-position="0"] {
        right: 68px !important;
    }
    
    /* Второй бейдж (position=1, обычно красный Hot) - справа */
    .pricing-card .card-badge[data-badge-position="1"] {
        right: 13px !important;
    }
}

/* Планшеты (iPad Mini, iPad Air, Surface Pro, Nest Hub, Asus Zen Book) */
@media (max-width: 1024px) and (min-width: 481px) {
    /* Одиночный бейдж (любого типа) - всегда справа */
    .pricing-card .card-badge[data-badge-position="single"] {
        right: 12px !important;
    }
    
    /* Если два бейджа - первый (position=0) левее */
    .pricing-card .card-badge[data-badge-position="0"] {
        right: 68px !important;
    }
    
    /* Второй бейдж (position=1) - справа */
    .pricing-card .card-badge[data-badge-position="1"] {
        right: 12px !important;
    }
}

/* Мобильные устройства (iPhone 12 Pro и меньше) */
@media (max-width: 480px) {
    .pricing-card .card-badge {
        width: 48px;
        height: 48px;
    }
    
    /* Одиночный бейдж (любого типа) - всегда справа */
    .pricing-card .card-badge[data-badge-position="single"] {
        right: 8px !important;
    }
    
    /* Если два бейджа - первый (position=0) левее */
    .pricing-card .card-badge[data-badge-position="0"] {
        right: 58px !important;
    }
    
    /* Второй бейдж (position=1) - справа */
    .pricing-card .card-badge[data-badge-position="1"] {
        right: 8px !important;
    }
}

/* Hover to expand long descriptions - ТОЛЬКО ДЛЯ ДЕСКТОПА */
@media (hover: hover) and (pointer: fine) {
    .card-footer.has-overflow:hover .card-description {
        max-height: 500px;
        overflow: visible;
    }

    .card-footer.has-overflow:hover::after {
        transform: rotate(180deg);
    }

    .dark .card-footer.has-overflow:hover::after {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23d1d5db'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E");
    }
}

/* Chevron indicator - SVG */
.card-footer.has-overflow::after {
    content: '';
    position: absolute;
    right: 0.25rem;
    top: 0.5rem;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%239ca3af'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.2s ease;
}

.dark .card-footer.has-overflow::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236b7280'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E");
}

/* Мобильная версия - раскрытие по клику */
.card-footer.has-overflow.mobile-expanded .card-description {
    max-height: 500px;
    overflow: visible;
}

.card-footer.has-overflow.mobile-expanded::after {
    transform: rotate(180deg);
}

.dark .card-footer.has-overflow.mobile-expanded::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23d1d5db'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E");
}

/* Делаем footer кликабельным на touch-устройствах */
@media (hover: none) and (pointer: coarse) {
    .card-footer.has-overflow {
        cursor: pointer;
    }
}

/* ====== Профессиональная панель фильтров ====== */

/* Убираем z-index у pricing секции чтобы dropdown работал */
#pricing {
    z-index: auto !important;
}

/* Navbar всегда поверх всего */
.ud-header {
    z-index: 100000 !important;
}

/* Панель фильтров */
.filter-panel {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 0.75rem 1rem;
    max-width: 1200px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    background: linear-gradient(135deg, #faf8f3 0%, #f5f1e8 50%, #ede8d8 100%);
    border-radius: 16px;
    box-shadow: 
        0 4px 6px -1px rgba(180, 160, 140, 0.15),
        0 2px 4px -1px rgba(180, 160, 140, 0.1);
    border: 1px solid rgba(180, 160, 140, 0.3);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 10000;
    box-sizing: border-box;
}

.dark .filter-panel {
    background: linear-gradient(135deg, #3d2f1f 0%, #4a3826 50%, #5a4530 100%);
    border-color: rgba(139, 111, 71, 0.4);
    box-shadow: 
        0 4px 6px -1px rgba(139, 111, 71, 0.25),
        0 2px 4px -1px rgba(139, 111, 71, 0.2);
}

/* Группа фильтров справа */
.filter-group {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

/* Кнопка Place Order */
.place-order-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 50%, #b91c1c 100%);
    color: white;
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 12px rgba(239, 68, 68, 0.3),
        0 2px 6px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.place-order-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.place-order-btn:hover::before {
    left: 100%;
}

.place-order-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 20px rgba(239, 68, 68, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #f87171 0%, #ef4444 50%, #dc2626 100%);
}

.place-order-btn:active {
    transform: translateY(0);
    box-shadow: 
        0 4px 12px rgba(239, 68, 68, 0.3),
        0 2px 6px rgba(0, 0, 0, 0.15);
}

.place-order-btn svg {
    transition: transform 0.3s ease;
}

.place-order-btn:hover svg {
    transform: scale(1.1) rotate(-5deg);
}

.dark .place-order-btn {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 50%, #7f1d1d 100%);
    border-color: rgba(239, 68, 68, 0.3);
    box-shadow: 
        0 4px 12px rgba(239, 68, 68, 0.25),
        0 2px 6px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
}

.dark .place-order-btn:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 50%, #991b1b 100%);
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow: 
        0 8px 20px rgba(239, 68, 68, 0.35),
        0 4px 12px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.15);
}

.filter-dropdown {
    position: relative;
    z-index: 10001;
}

/* Кнопки фильтров */
.filter-button {
    padding: 0.625rem 0.75rem;
    background: linear-gradient(135deg, #faf8f3 0%, #f5f1e8 100%);
    border: 1px solid rgba(180, 160, 140, 0.3);
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 1px 3px 0 rgba(180, 160, 140, 0.15),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.6);
    color: #8b6f47;
    font-weight: 500;
}

.filter-button svg {
    color: #8b6f47;
    transition: transform 0.3s ease, color 0.2s ease;
}

.filter-button:hover {
    background: linear-gradient(135deg, #f5f1e8 0%, #ede8d8 100%);
    border-color: rgba(180, 160, 140, 0.5);
    transform: translateY(-2px);
    box-shadow: 
        0 4px 6px -1px rgba(180, 160, 140, 0.2),
        0 2px 4px -1px rgba(180, 160, 140, 0.15),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.7);
}

.filter-button:hover svg {
    color: #a0825d;
}

.filter-button:active {
    transform: translateY(0);
}

.dark .filter-button {
    background: linear-gradient(135deg, #4a3826 0%, #5a4530 100%);
    border-color: rgba(139, 111, 71, 0.4);
    color: #d4c4a8;
    box-shadow: 
        0 1px 3px 0 rgba(139, 111, 71, 0.25),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
}

.dark .filter-button svg {
    color: #d4c4a8;
}

.dark .filter-button:hover {
    background: linear-gradient(135deg, #5a4530 0%, #6b5440 100%);
    border-color: rgba(139, 111, 71, 0.6);
    color: #e8dcc4;
    box-shadow: 
        0 4px 6px -1px rgba(139, 111, 71, 0.35),
        0 2px 4px -1px rgba(139, 111, 71, 0.25),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.15);
}

.dark .filter-button:hover svg {
    color: #e8dcc4;
}

/* Dropdown меню */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: linear-gradient(135deg, #faf8f3 0%, #f5f1e8 50%, #ede8d8 100%);
    border: 1px solid rgba(180, 160, 140, 0.3);
    border-radius: 12px;
    box-shadow: 
        0 20px 25px -5px rgba(180, 160, 140, 0.15),
        0 10px 10px -5px rgba(180, 160, 140, 0.1),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.6);
    z-index: 999999;
    min-width: 14rem;
    display: none;
    padding: 0.5rem;
    backdrop-filter: blur(10px);
}

.dropdown-menu.visible {
    display: block;
    animation: dropdownFadeIn 0.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.dark .dropdown-menu {
    background: linear-gradient(135deg, #3d2f1f 0%, #4a3826 50%, #5a4530 100%);
    border-color: rgba(139, 111, 71, 0.4);
    box-shadow: 
        0 20px 25px -5px rgba(139, 111, 71, 0.25),
        0 10px 10px -5px rgba(139, 111, 71, 0.2),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
}

/* Dropdown items */
.dropdown-item {
    padding: 0.625rem 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    color: #8b6f47;
    font-weight: 500;
    position: relative;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, #f5f1e8 0%, #ede8d8 100%);
    transform: translateX(4px);
}

.dropdown-item:active {
    transform: translateX(2px);
}

.dark .dropdown-item {
    color: #d4c4a8;
}

.dark .dropdown-item:hover {
    background: linear-gradient(135deg, #5a4530 0%, #6b5440 100%);
}

/* Dropdown divider */
.dropdown-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #e5e7eb, transparent);
    margin: 0.5rem 0;
}

.dark .dropdown-divider {
    background: linear-gradient(90deg, transparent, rgba(139, 111, 71, 0.4), transparent);
}

/* Clear filters item */
.clear-filters-item {
    color: #ef4444;
    margin-top: 0.25rem;
}

.clear-filters-item svg {
    margin-right: 0.5rem;
}

.dark .clear-filters-item {
    color: #f87171;
}

.clear-filters-item:hover {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #dc2626;
}

.dark .clear-filters-item:hover {
    background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 100%);
    color: #fca5a5;
}

/* Checkbox */
.checkbox {
    width: 1.125rem;
    height: 1.125rem;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    margin-right: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.checkbox.checked {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-color: #3b82f6;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
    transform: scale(1.05);
}

.checkbox.checked::after {
    content: '✓';
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    animation: checkPop 0.2s ease;
}

@keyframes checkPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.dark .checkbox {
    border-color: #4b5563;
    background: #1f2937;
}

.dark .checkbox.checked {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-color: #2563eb;
}

/* Search container */
.search-container {
    display: flex;
    align-items: center;
    border: 1px solid rgba(180, 160, 140, 0.3);
    border-radius: 12px;
    background: linear-gradient(135deg, #faf8f3 0%, #f5f1e8 100%);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 
        0 1px 3px 0 rgba(180, 160, 140, 0.15),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.6);
}

.search-container:hover {
    border-color: rgba(180, 160, 140, 0.5);
    box-shadow: 
        0 4px 6px -1px rgba(180, 160, 140, 0.2),
        0 2px 4px -1px rgba(180, 160, 140, 0.15);
}

.search-container:focus-within {
    border-color: rgba(139, 111, 71, 0.6);
    box-shadow: 
        0 0 0 3px rgba(139, 111, 71, 0.15),
        0 4px 6px -1px rgba(180, 160, 140, 0.2);
}

.dark .search-container {
    border-color: rgba(139, 111, 71, 0.4);
    background: linear-gradient(135deg, #3d2f1f 0%, #4a3826 100%);
    box-shadow: 
        0 1px 3px 0 rgba(139, 111, 71, 0.25),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
}

.dark .search-container:hover {
    border-color: rgba(139, 111, 71, 0.6);
}

.dark .search-container:focus-within {
    border-color: rgba(139, 111, 71, 0.7);
    box-shadow: 
        0 0 0 3px rgba(139, 111, 71, 0.3),
        0 4px 6px -1px rgba(139, 111, 71, 0.3);
}

.search-input {
    border: none;
    padding: 0.625rem;
    outline: none;
    font-size: 0.875rem;
    width: 0;
    transition: width 0.3s ease;
    background: transparent;
    color: #8b6f47;
    font-weight: 500;
}

.search-input.expanded {
    width: 12rem;
}

.search-input::placeholder {
    color: #a0825d;
}

.dark .search-input {
    color: #d4c4a8;
}

.dark .search-input::placeholder {
    color: #b8a082;
}

.search-button {
    padding: 0.625rem 0.75rem;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: #8b6f47;
}

.search-button svg {
    color: #8b6f47;
    transition: all 0.2s ease;
}

.search-button:hover {
    color: #a0825d;
    transform: scale(1.1);
}

.search-button:hover svg {
    color: #a0825d;
}

.dark .search-button {
    color: #d4c4a8;
}

.dark .search-button svg {
    color: #d4c4a8;
}

.dark .search-button:hover {
    color: #e8dcc4;
}

.dark .search-button:hover svg {
    color: #e8dcc4;
}

/* Скрытая карточка */
.pricing-card.hidden {
    display: none;
}

/* ====== Patched Store Styles - Overlay with Icon ====== */

/* Карточка с патчем */
.pricing-card.patched {
    position: relative;
}

/* Полупрозрачный overlay - светлый */
.pricing-card.patched::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(248, 250, 252, 0.75) 0%, 
        rgba(241, 245, 249, 0.85) 50%,
        rgba(248, 250, 252, 0.75) 100%
    );
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border-radius: 14px;
    z-index: 1;
    transition: all 0.3s ease;
}

/* Иконка замка */
.pricing-card.patched::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ef4444' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: drop-shadow(0 4px 8px rgba(239, 68, 68, 0.5));
    z-index: 2;
    pointer-events: none;
    animation: lockPulse 2s ease-in-out infinite;
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

@keyframes lockPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        filter: drop-shadow(0 4px 8px rgba(239, 68, 68, 0.5));
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        filter: drop-shadow(0 6px 12px rgba(239, 68, 68, 0.7));
    }
}

/* Контент карточки */
.pricing-card.patched .card-header,
.pricing-card.patched .card-footer {
    position: relative;
    z-index: 0;
}

/* Текст PATCHED */
.pricing-card.patched .patch-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 35px);
    color: #dc2626;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-align: center;
    z-index: 10;
    text-shadow: 
        0 2px 4px rgba(255, 255, 255, 0.9),
        0 0 10px rgba(220, 38, 38, 0.3);
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Скрыть PATCHED при hover */
.pricing-card.patched:hover .patch-label {
    opacity: 0;
    transform: translate(-50%, 10px) scale(0.9);
}

/* Описание patched - скрыто по умолчанию */
.pricing-card.patched .patch-description {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.8125rem;
    font-weight: 600;
    text-align: center;
    z-index: 10;
    max-width: 90%;
    line-height: 1.5;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 50%, #f87171 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(220, 38, 38, 0.3));
}

/* Показать описание при hover - простой fade in */
.pricing-card.patched:hover .patch-description {
    opacity: 1;
    pointer-events: auto;
}

/* Hover эффект */
.pricing-card.patched:hover::before {
    background: linear-gradient(135deg, 
        rgba(248, 250, 252, 0.80) 0%, 
        rgba(241, 245, 249, 0.90) 50%,
        rgba(248, 250, 252, 0.80) 100%
    );
}

/* Скрыть замок при hover */
.pricing-card.patched:hover::after {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
}

@keyframes lockShake {
    0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
    25% { transform: translate(-50%, -50%) rotate(-5deg); }
    75% { transform: translate(-50%, -50%) rotate(5deg); }
}

/* Темная тема */
.dark .pricing-card.patched::before {
    background: linear-gradient(135deg, 
        rgba(30, 41, 59, 0.70) 0%, 
        rgba(51, 65, 85, 0.80) 50%,
        rgba(30, 41, 59, 0.70) 100%
    );
}

.dark .pricing-card.patched::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f87171' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E");
    filter: drop-shadow(0 4px 8px rgba(248, 113, 113, 0.5));
}

.dark .pricing-card.patched .patch-label {
    color: #f87171;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.9),
        0 0 15px rgba(248, 113, 113, 0.5);
}

.dark .pricing-card.patched .patch-description {
    background: linear-gradient(135deg, #f87171 0%, #fca5a5 50%, #fecaca 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 6px rgba(248, 113, 113, 0.5));
}

/* Responsive */
/* iPad Mini / iPad Air - оптимизация панели фильтров */
@media (min-width: 768px) and (max-width: 834px) {
    .filter-panel {
        padding: 1rem;
        gap: 1rem;
    }
    
    .place-order-btn,
    .saved-stores-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9375rem;
    }
    
    .filter-button {
        padding: 0.625rem;
        width: 44px;
        height: 44px;
    }
    
    .search-input {
        font-size: 0.9375rem;
    }
    
    .search-input.expanded {
        width: 12rem;
    }
}

@media (max-width: 768px) {
    /* Убираем stacking context чтобы dropdown работал */
    #pricing {
        z-index: auto !important;
    }
    
    .pricing-grid {
        z-index: auto !important;
    }
    
    .pricing-card {
        z-index: auto !important;
    }

    .filter-panel {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.75rem;
        padding: 0.75rem 1rem;
        position: relative;
        z-index: 10000;
        overflow: visible !important;
        backdrop-filter: none !important;
    }

    .place-order-btn {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
        flex-shrink: 0;
    }

    .place-order-btn span {
        display: none;
    }

    .place-order-btn svg {
        width: 22px;
        height: 22px;
    }

    .filter-group {
        gap: 0.5rem;
        flex-shrink: 0;
    }

    .filter-dropdown {
        position: relative !important;
        z-index: 10001;
    }

    .filter-button {
        padding: 0.5rem;
    }

    .dropdown-menu {
        min-width: 12rem;
        max-width: 90vw;
        z-index: 999999 !important;
    }

    .search-input.expanded {
        width: 8rem;
    }
}

/* Очень маленькие экраны - скрываем Place Order если не помещается */
@media (max-width: 480px) {
    .filter-panel {
        flex-wrap: wrap;
    }
    
    /* Скрываем Place Order на очень маленьких экранах */
    .place-order-btn {
        display: none !important;
    }
}

/* ====== On Hold Store Styles - Overlay with Pause Icon ====== */

/* Карточка с On Hold */
.pricing-card.on-hold {
    position: relative;
}

/* Полупрозрачный overlay - светлый */
.pricing-card.on-hold::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(248, 250, 252, 0.75) 0%, 
        rgba(241, 245, 249, 0.85) 50%,
        rgba(248, 250, 252, 0.75) 100%
    );
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border-radius: 14px;
    z-index: 1;
    transition: all 0.3s ease;
}

/* Иконка паузы */
.pricing-card.on-hold::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f59e0b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='4' width='4' height='16'/%3E%3Crect x='14' y='4' width='4' height='16'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: drop-shadow(0 4px 8px rgba(245, 158, 11, 0.5));
    z-index: 2;
    pointer-events: none;
    animation: pausePulse 2s ease-in-out infinite;
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

@keyframes pausePulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        filter: drop-shadow(0 4px 8px rgba(245, 158, 11, 0.5));
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        filter: drop-shadow(0 6px 12px rgba(245, 158, 11, 0.7));
    }
}

/* Контент карточки */
.pricing-card.on-hold .card-header,
.pricing-card.on-hold .card-footer {
    position: relative;
    z-index: 0;
}

/* Текст ON HOLD */
.pricing-card.on-hold .patch-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 35px);
    color: #d97706;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-align: center;
    z-index: 10;
    text-shadow: 
        0 2px 4px rgba(255, 255, 255, 0.9),
        0 0 10px rgba(217, 119, 6, 0.3);
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Скрыть ON HOLD при hover */
.pricing-card.on-hold:hover .patch-label {
    opacity: 0;
    transform: translate(-50%, 10px) scale(0.9);
}

/* Описание on-hold - скрыто по умолчанию */
.pricing-card.on-hold .patch-description {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.8125rem;
    font-weight: 600;
    text-align: center;
    z-index: 10;
    max-width: 90%;
    line-height: 1.5;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 50%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(217, 119, 6, 0.3));
}

/* Показать описание при hover - простой fade in */
.pricing-card.on-hold:hover .patch-description {
    opacity: 1;
    pointer-events: auto;
}

/* Hover эффект */
.pricing-card.on-hold:hover::before {
    background: linear-gradient(135deg, 
        rgba(248, 250, 252, 0.75) 0%, 
        rgba(241, 245, 249, 0.85) 50%,
        rgba(248, 250, 252, 0.75) 100%
    );
}

/* Скрыть паузу при hover */
.pricing-card.on-hold:hover::after {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
}

/* Темная тема */
.dark .pricing-card.on-hold::before {
    background: linear-gradient(135deg, 
        rgba(30, 41, 59, 0.70) 0%, 
        rgba(51, 65, 85, 0.80) 50%,
        rgba(30, 41, 59, 0.70) 100%
    );
}

.dark .pricing-card.on-hold::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fbbf24' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='4' width='4' height='16'/%3E%3Crect x='14' y='4' width='4' height='16'/%3E%3C/svg%3E");
    filter: drop-shadow(0 4px 8px rgba(251, 191, 36, 0.5));
}

.dark .pricing-card.on-hold .patch-label {
    color: #fbbf24;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.9),
        0 0 15px rgba(251, 191, 36, 0.5);
}

.dark .pricing-card.on-hold .patch-description {
    background: linear-gradient(135deg, #fbbf24 0%, #fcd34d 50%, #fde68a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 6px rgba(251, 191, 36, 0.5));
}

/* ====== New Store Styles - Badge in Corner ====== */

/* Карточка с New */
.pricing-card.new-store {
    position: relative;
}

/* Плашка NEW в правом верхнем углу */
.pricing-card.new-store .new-label {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #8b6f47 0%, #a0825d 50%, #b8966a 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    padding: 0.375rem 0.75rem;
    border-radius: 12px;
    z-index: 10;
    box-shadow: 
        0 4px 12px rgba(139, 111, 71, 0.4),
        0 2px 6px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.375rem;
    animation: newBadgePulse 2s ease-in-out infinite;
}

@keyframes newBadgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 
            0 4px 12px rgba(139, 111, 71, 0.4),
            0 2px 6px rgba(0, 0, 0, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 
            0 6px 16px rgba(139, 111, 71, 0.5),
            0 3px 8px rgba(0, 0, 0, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
}

/* Hover эффект на плашке */
.pricing-card.new-store .new-label:hover {
    transform: scale(1.1);
    background: linear-gradient(135deg, #a0825d 0%, #b8966a 50%, #c4a878 100%);
    box-shadow: 
        0 6px 20px rgba(139, 111, 71, 0.5),
        0 4px 10px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Скрытая плашка */
.pricing-card.new-store .new-label.hidden {
    opacity: 0;
    transform: scale(0);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Темная тема */
.dark .pricing-card.new-store .new-label {
    background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 50%, #b91c1c 100%);
    box-shadow: 
        0 4px 12px rgba(185, 28, 28, 0.4),
        0 2px 6px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.dark .pricing-card.new-store .new-label:hover {
    background: linear-gradient(135deg, #991b1b 0%, #b91c1c 50%, #dc2626 100%);
    box-shadow: 
        0 6px 20px rgba(185, 28, 28, 0.5),
        0 4px 10px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}