/* --- Контейнер и Сетка --- */
.nullify-shop-wrapper {
    width: 100%;
    margin-top: 20px;
}

.nullify-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

/* --- Навигация (Категории) --- */
.nullify-category-nav {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 20px;
    margin-bottom: 10px;
    scrollbar-width: none; /* Firefox */
}
.nullify-category-nav::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.cat-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 10px 24px;
    border-radius: 50px; /* Pills shape */
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.cat-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.cat-btn.active {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 20px rgba(147, 51, 234, 0.4);
}

/* --- Карточка Товара --- */
.nullify-card {
    position: relative;
    background: rgba(30, 30, 40, 0.6); /* Темная подложка */
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
}

/* Эффект при скрытии фильтром */
.nullify-card.hidden {
    display: none;
}

/* Ховер эффект карточки */
.nullify-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 
                0 0 20px rgba(79, 70, 229, 0.2); /* Blue glow */
}

/* Бейдж Popular */
.card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    border: 1px solid var(--accent-magenta);
    color: var(--accent-magenta);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 800;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Изображение */
.card-image {
    height: 200px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.nullify-card:hover .card-image img {
    transform: scale(1.1);
}

.img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9), transparent);
    z-index: 2;
}

/* Контент карточки */
.card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex-grow: 1;
    z-index: 3;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 5px;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
}

.card-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
    white-space: nowrap;
}
.card-price small {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Кнопка */
.card-actions {
    margin-top: auto;
}

.btn-buy {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 12px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

/* Градиент при наведении на кнопку */
.btn-buy::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: 0.5s;
}

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

.btn-buy:hover {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    box-shadow: 0 0 20px rgba(79, 70, 229, 0.4);
}

/* Модальное окно (стили из предыдущего ответа остаются актуальными) */
.glass-input {
    width: 100%;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 10px;
    color: white;
    outline: none;

}
.glass-input:focus {
    border-color: var(--accent-purple);
}
/* 1. Задаем отступы самому контейнеру с фоном (Ваш запрос) */
.page-card.glass-card {
    margin-top: 15px;
    margin-left: 100px;  /* Как у sidebar */
    margin-right: 150px; /* Как у sidebar */
    
    padding: 40px; /* Внутренний отступ, чтобы товары не прилипали к границам стекла */
    width: auto;   /* Позволяем блоку занимать оставшееся место с учетом margin */
    box-sizing: border-box;
}

/* 2. Сбрасываем отступы у внутренней обертки магазина */
/* (Это важно, чтобы не было двойных отступов) */
.nullify-shop-wrapper {
    margin: 0 !important; 
    width: 100%;
}

/* 3. Адаптивность для мобильных (ОБЯЗАТЕЛЬНО) */
/* Иначе на телефоне отступы 100px/150px сплющат контент в линию */
@media (max-width: 1024px) {
    .page-card.glass-card {
        margin-left: 20px;
        margin-right: 20px;
        padding: 20px;
    }
    
    .sidebar {
        /* На всякий случай адаптив и для сайдбара, если его нет */
        margin-left: 20px;
        margin-right: 20px;
    }
}
/* --- Модальное окно (FIX) --- */

.nullify-modal {
    position: fixed; /* Фиксируем относительно окна браузера */
    top: 0; 
    left: 0; 
    width: 100vw; 
    height: 100vh;
    z-index: 100000; /* Очень высокий слой, чтобы быть поверх всего */
    
    display: none; /* Скрыто по умолчанию */
    justify-content: center; /* Центровка по горизонтали */
    align-items: center; /* Центровка по вертикали */
}

/* Затемнение фона */
.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
	z-index: 100000; /* Очень высокий слой, чтобы быть поверх всего */

    backdrop-filter: blur(5px); /* Размытие заднего плана */

}
.nullify-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 80vh;
    z-index: 100000;
    display: none;
    justify-content: center;
    align-items: center;
}
/* Само окно */
.modal-content.glass-panel {
    position: relative; /* Чтобы быть выше бэкдропа */
    z-index: 100001; /* Контент выше фона */
    
    width: 90%;
    max-width: 400px;
    padding: 30px;
    
    /* Сброс стилей, если они наследуются криво */
    margin: 0 auto; 
    background: rgba(30, 30, 40, 0.85); /* Чуть плотнее фон для читаемости */
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.3s;
    line-height: 1;
}

.close-modal:hover {
    color: #fff;
}
/* --- Стили для Модального Окна (Дополнение) --- */

.modal-content.glass-panel {
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: linear-gradient(160deg, rgba(30, 30, 45, 0.95) 0%, rgba(20, 20, 30, 0.98) 100%);
    padding: 0; /* Убираем падинг, сделаем его внутри блоков */
    overflow: hidden;
    max-width: 420px;
    box-shadow: 0 0 50px rgba(0,0,0,0.8), inset 0 0 0 1px rgba(255,255,255,0.05);
}

/* Заголовок */
.modal-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 25px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-header h3 {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
    color: white;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.product-summary {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.summary-value {
    color: var(--accent-blue);
    font-weight: 600;
}

/* Тело модалки */
.modal-body {
    padding: 30px;
}

/* Карточка пользователя */
.modal-user-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 25px;
}

.modal-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid var(--accent-purple);
}

.modal-user-info {
    display: flex;
    flex-direction: column;
}

.auth-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-name {
    font-size: 1rem;
    font-weight: 600;
    color: white;
}

/* Инпуты */
.input-group-wrapper {
    margin-bottom: 25px;
}

.input-group-wrapper label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.input-row {
    display: flex;
    gap: 10px;
}

.glass-input {
    flex-grow: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 12px 15px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.glass-input:focus {
    border-color: var(--accent-blue);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 15px rgba(79, 70, 229, 0.2);
    outline: none;
}

/* Кнопка Вставить */
.btn-icon {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 0 15px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: var(--accent-purple);
}

/* Кнопка Оплаты */
.glow-button {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
    border: none;
    padding: 16px;
    border-radius: 12px;
    color: white;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(79, 70, 229, 0.3);
}

.glow-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(147, 51, 234, 0.5);
    filter: brightness(1.1);
}

/* Лоадер */
.modal-loader {
    padding: 15px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    background: rgba(0,0,0,0.2);
    margin: 0;
}
/* Кнопки в карточке */
.card-actions-row {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.btn-buy {
    flex-grow: 1; /* Кнопка купить занимает место */
    /* ... старые стили градиента ... */
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border: none;
    color: white;
    padding: 10px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
}

.btn-details {
    width: 42px; /* Квадратная кнопка */
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-details:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: var(--accent-blue);
}

/* --- МОДАЛКА ПОДРОБНОСТЕЙ (Большая) --- */
.details-content {
    max-width: 800px !important; /* Широкое окно */
    padding: 0 !important;
    overflow: hidden;
}

.details-grid {
    display: flex;
    flex-direction: row;
    height: 500px; /* Фиксированная высота для десктопа */
}

/* Левая колонка (Картинка) */
.details-image-col {
    width: 45%;
    background: #000;
    position: relative;
}
.details-image-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

/* Правая колонка (Текст) */
.details-info-col {
    width: 55%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    overflow-y: auto; /* Скролл если текста много */
    background: linear-gradient(160deg, rgba(30, 30, 45, 0.98), rgba(20, 20, 30, 1));
}

.details-info-col h2 {
    font-size: 1.8rem;
    color: white;
    margin-bottom: 10px;
    line-height: 1.2;
}

.details-price-badge {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-magenta);
    margin-bottom: 20px;
}

.details-description {
    font-size: 0.95rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 30px;
    flex-grow: 1;
}
/* Стили для контента из редактора WP */
.details-description ul { padding-left: 20px; margin-bottom: 1rem; }
.details-description p { margin-bottom: 1rem; }

.details-footer {
    margin-top: auto;
}

/* АДАПТИВНОСТЬ МОДАЛКИ (Телефон) */
@media (max-width: 768px) {
    .details-grid {
        flex-direction: column;
        height: auto;
        max-height: 85vh;
        overflow-y: auto;
    }
    .details-image-col { width: 100%; height: 200px; }
    .details-info-col { width: 100%; padding: 20px; }
}

/* Стили для Checkout модалки (Узкая) */
.checkout-content {
    max-width: 400px;
}


/* Убедитесь, что класс соответствует вашему курсору (посмотрите через F12) */
/* 1. Делаем курсор самым главным элементом на странице */
.css-cursor {
    z-index: 2147483647 !important; /* Максимально возможное число */
    pointer-events: none !important; /* Обязательно! Чтобы клики проходили сквозь картинку курсора */
}

/* 2. Модальное окно делаем чуть ниже курсора */
.nullify-modal {
    /* Ставим число меньше, чем у курсора, но больше, чем у всего остального сайта */
    z-index: 2147483600 !important; 
}

/* 3. (Опционально) Если у курсора есть "хвост" или второй элемент */
.css-cursor-follower, .cursor-dot {
    z-index: 2147483646 !important;
    pointer-events: none !important;
}

.btn-details {
    width: 130px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}/* ============================= */
/* КНОПКА "СМЕНИТЬ СЕРВЕР"       */
/* ============================= */

.shop-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

/* Glass кнопка */
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    padding: 10px 22px;
    border-radius: 50px;

    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);

    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* SVG стиль */
.btn-back svg {
    transition: transform 0.3s ease;
    opacity: 0.8;
}

/* Hover эффект */
.btn-back:hover {
    background: linear-gradient(
        135deg,
        rgba(79, 70, 229, 0.25),
        rgba(147, 51, 234, 0.25)
    );
    border-color: rgba(147, 51, 234, 0.5);
    color: var(--text-primary);

    transform: translateY(-3px);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.35),
        0 0 20px rgba(147, 51, 234, 0.35);
}

/* Анимация стрелки */
.btn-back:hover svg {
    transform: translateX(-4px);
    opacity: 1;
}

/* Active состояние */
.btn-back:active {
    transform: scale(0.96);
}

/* Badge выбранного сервера */
.current-server-badge {
    padding: 10px 18px;
    border-radius: 50px;

    background: rgba(30, 30, 40, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);

    backdrop-filter: blur(20px);

    color: var(--text-secondary);
    font-size: 0.9rem;
}

.current-server-badge span {
    color: var(--text-primary);
    font-weight: 600;
}