/* ===== NEWS PAGE ===== */

/* Tabs */
.news-tabs {
    display: flex;
    gap: 8px;
    margin: 24px 0 28px;
    flex-wrap: wrap;
}

.news-tab {
    padding: 10px 22px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
}

.news-tab:hover {
    color: var(--text-primary);
    border-color: rgba(201, 168, 76, 0.3);
}

.news-tab.on {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: #0a0a0f;
    border-color: var(--gold);
}

/* Section titles */
.news-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
}

.news-section-hint {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== PINNED (TOP) SECTION — КОМПАКТНЫЙ СТИЛЬ 160px ПО ТЗ ===== */
.news-pinned-section {
    margin-bottom: 40px;
}

.news-pinned-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.news-card-pinned {
    display: grid;
    grid-template-columns: 380px 1fr; /* Сохраняем эталонный размер аватарки */
    gap: 0;
    min-height: 160px; /* Меняем жесткую высоту на минимальную, чтобы карточка росла при открытии превью */
    height: auto;
    background: var(--bg-card);
    border: 1px solid rgba(201, 168, 76, 0.4);
    border-radius: 16px;
    overflow: hidden; /* Картинка сохранит скругление углов */
    transition: all 0.3s ease;
    box-shadow: 0 0 0 1px rgba(201, 168, 76, 0.12), 0 12px 30px rgba(201, 168, 76, 0.06);
    position: relative;
}

.news-card-pinned::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    z-index: 2;
}

.news-card-pinned:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 50px rgba(0,0,0,0.3), 0 0 0 1px rgba(201, 168, 76, 0.3);
}


.news-pinned-image {
    height: 160px;
    width: 380px; /* Идеальное совпадение с размером картинки из обычного списка */
    position: relative;
    overflow: hidden;
}

.news-pinned-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Компактные аккуратные отступы внутри тела ТОП-карточки */
.news-pinned-body {
    padding: 14px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Раскидывает элементы по высоте */
    min-width: 0; /* Фикс для предотвращения распирания флексами заголовков */
}

.news-pinned-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

/* Оптимизация шрифтов под компактную высоту */
.news-pinned-body h2 {
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem; /* Чуть уменьшили, чтобы заголовок сидел идеально */
    font-weight: 800;
    margin: 4px 0 6px 0;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* Прячет длинный текст в три точки */
}

.news-pinned-body p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Строго не более 2х строк описания в компактном режиме */
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-pinned-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
}

/* Корректировка размера авто-букв для ТОП-блока под 160px */
.news-pinned-image .news-auto-letter {
    font-size: 5.5rem;
}
.news-pinned-image .news-auto-icon {
    font-size: 1.6rem;
    bottom: 10px;
    right: 10px;
}

/* ===== REGULAR GRID ===== */
.news-all-section {
    margin-bottom: 40px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.news-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-4px);
    border-color: rgba(201, 168, 76, 0.3);
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

.news-card-image {
    height: 160px;
    position: relative;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.news-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.news-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    font-size: 0.78rem;
}

.news-card-server {
    color: var(--text-secondary);
    font-weight: 600;
}

.news-card-date {
    color: var(--text-muted);
}

/* ===== CATEGORY BADGES ===== */
.news-cat-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid;
}

.news-cat-Обновление {
    background: rgba(183, 148, 244, 0.15);
    color: #b794f4;
    border-color: rgba(183, 148, 244, 0.3);
}
.news-cat-Ивент {
    background: rgba(52, 211, 153, 0.15);
    color: #34d399;
    border-color: rgba(52, 211, 153, 0.3);
}
.news-cat-Турнир {
    background: rgba(201, 168, 76, 0.15);
    color: var(--gold);
    border-color: rgba(201, 168, 76, 0.3);
}
.news-cat-Патч {
    background: rgba(122, 163, 232, 0.15);
    color: #7aa3e8;
    border-color: rgba(122, 163, 232, 0.3);
}
.news-cat-Объявление {
    background: rgba(248, 113, 113, 0.15);
    color: #f87171;
    border-color: rgba(248, 113, 113, 0.3);
}

.news-pin-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: #0a0a0f;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== AUTO-GENERATED IMAGE ===== */
.news-auto-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.news-auto-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 30%, rgba(255,255,255,0.15), transparent 60%);
    z-index: 1;
}

.news-auto-letter {
    font-family: 'Cinzel', serif;
    font-size: 5rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    z-index: 2;
    line-height: 1;
}

.news-pinned-image .news-auto-letter {
    font-size: 7rem;
}

.news-auto-icon {
    position: absolute;
    bottom: 14px;
    right: 14px;
    font-size: 1.8rem;
    opacity: 0.6;
    z-index: 2;
}

.news-pinned-image .news-auto-icon {
    font-size: 2.5rem;
    bottom: 20px;
    right: 20px;
}

/* Auto gradients by category */
.news-grad-Обновление { background: linear-gradient(135deg, #6b3fa0, #4a2870); }
.news-grad-Ивент { background: linear-gradient(135deg, #1d7a4e, #0f5c38); }
.news-grad-Турнир { background: linear-gradient(135deg, #a07c2a, #7a5d1d); }
.news-grad-Патч { background: linear-gradient(135deg, #2a4a8a, #1c3360); }
.news-grad-Объявление { background: linear-gradient(135deg, #8b2030, #62141f); }

/* No-image placeholder */
.news-no-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 3rem;
    opacity: 0.4;
}

/* ===== IMAGE MODE SELECTOR (form) ===== */
.image-mode-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.image-mode-option {
    cursor: pointer;
}

.image-mode-option input[type="radio"] {
    display: none;
}

.image-mode-card {
    padding: 18px 14px;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 12px;
    text-align: center;
    transition: all 0.2s;
}

.image-mode-option:hover .image-mode-card {
    border-color: rgba(201, 168, 76, 0.4);
    background: var(--bg-card);
}

.image-mode-option input[type="radio"]:checked + .image-mode-card {
    border-color: var(--gold);
    background: rgba(201, 168, 76, 0.08);
}

.image-mode-icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.image-mode-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.image-mode-hint {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Upload area */
.image-upload-area-news {
    position: relative;
    padding: 30px;
    background: var(--bg-secondary);
    border: 2px dashed var(--border);
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.image-upload-area-news:hover {
    border-color: var(--gold-dark);
}

.image-upload-area-news input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.upload-text-news {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ===== READ MODAL ===== */
.read-modal-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    position: relative;
    border-radius: 20px 20px 0 0;
}

.read-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.read-modal-body {
    padding: 32px;
}

.read-modal-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.read-modal-body h2 {
    font-family: 'Inter', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 14px;
    line-height: 1.3;
}

.read-modal-meta {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.read-modal-text {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.95rem;
    white-space: pre-wrap;
    margin-bottom: 24px;
}

.read-modal-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .news-card-pinned {
        grid-template-columns: 1fr;
    }
    .news-pinned-image {
        min-height: 200px;
    }
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
    .news-pinned-body {
        padding: 22px;
    }
    .news-pinned-body h2 {
        font-size: 1.2rem;
    }
    .image-mode-selector {
        grid-template-columns: 1fr;
    }
    .read-modal-image {
        height: 200px;
    }
    .read-modal-body {
        padding: 22px;
    }
}

/* ===== TIMELINE ВНУТРИ МОДАЛКИ НОВОСТИ ===== */
.server-news-timeline-wrap {
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

.snt-header {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.server-news-timeline {
    position: relative;
    padding-left: 24px;
    border-left: 2px dashed var(--border);
    margin-left: 6px;
}

.snews-item {
    position: relative;
    margin-bottom: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 18px;
    transition: all 0.2s;
    cursor: default;
}

.snews-item:last-child { margin-bottom: 0; }

.snews-item:hover {
    border-color: rgba(201, 168, 76, 0.2);
}

.snews-item.snews-pinned {
    border-color: rgba(201, 168, 76, 0.4);
    background: linear-gradient(180deg, rgba(201, 168, 76, 0.05), var(--bg-secondary));
    box-shadow: 0 0 0 1px rgba(201, 168, 76, 0.12);
}

.snews-dot {
    position: absolute;
    left: -32px;
    top: 22px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 3px solid var(--bg-card);
    box-shadow: 0 0 0 2px var(--bg-secondary);
}

.snews-content { min-width: 0; }

.snews-header-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.snews-cat {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid;
    background: rgba(0, 0, 0, 0.2);
}

.snews-pin {
    font-size: 0.7rem;
    font-weight: 800;
    padding: 3px 10px;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: #0a0a0f;
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.snews-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-left: auto;
}

.snews-title {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1.4;
}

.snews-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 10px;
}

.snews-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gold);
    text-decoration: none;
    transition: all 0.2s;
}

.snews-link:hover {
    color: var(--gold-light);
    letter-spacing: 0.5px;
}

@media (max-width: 600px) {
    .server-news-timeline { padding-left: 20px; }
    .snews-dot { left: -28px; }
    .snews-header-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .snews-date { margin-left: 0; }
}

/* ===== VIP СИНХРОНИЗАЦИЯ И ПЕРЕЛИВЫ КОНТУРОВ ===== */
@keyframes vipBlinkShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes vipCosmicPulse {
    0%, 100% { filter: drop-shadow(0 0 2px #ff416c); transform: scale(1); }
    50% { filter: drop-shadow(0 0 6px #ff416c); transform: scale(1.05); }
}

@keyframes vipGoldPulse {
    0%, 100% { filter: drop-shadow(0 0 2px #d4af37); transform: scale(1); }
    50% { filter: drop-shadow(0 0 5px #fff5cc); transform: scale(1.03); }
}

/* Космический Супер-VIP (План top) */
.news-card.vip-tier-cosmic, .news-card-pinned.vip-tier-cosmic {
    position: relative;
    border: 1px solid transparent !important;
    background: linear-gradient(90deg, rgba(24, 14, 36, 0.95), rgba(15, 15, 22, 0.95), rgba(38, 12, 28, 0.95), rgba(24, 14, 36, 0.95)) padding-box,
                linear-gradient(90deg, #ff416c, #8a2387, #e94057, #ff416c) border-box !important;
    background-size: 200% auto !important;
    animation: vipBlinkShift 4s linear infinite !important;
    box-shadow: 0 0 16px rgba(233, 64, 87, 0.22), inset 0 0 12px rgba(255, 65, 108, 0.12) !important;
}

.news-card.vip-tier-cosmic:hover, .news-card-pinned.vip-tier-cosmic:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 16px 40px rgba(233, 64, 87, 0.35), inset 0 0 18px rgba(255, 65, 108, 0.25) !important;
}

/* Золотой VIP (План premium) */
.news-card.vip-tier-gold, .news-card-pinned.vip-tier-gold {
    position: relative;
    border: 1px solid transparent !important;
    background: linear-gradient(rgba(18, 18, 24, 0.95), rgba(18, 18, 24, 0.95)) padding-box,
                linear-gradient(90deg, #d4af37, #fff5cc, #aa841b, #d4af37) border-box !important;
    background-size: 200% auto !important;
    animation: vipBlinkShift 4s linear infinite !important;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.15) !important;
}

.news-card.vip-tier-gold:hover, .news-card-pinned.vip-tier-gold:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 16px 40px rgba(212, 175, 55, 0.35) !important;
}

/* Изолированные контейнеры SVG-анимаций */
.animated-vip-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    flex-shrink: 0;
}
.vip-icon-cosmic { animation: vipCosmicPulse 1.5s infinite ease-in-out; }
.vip-icon-gold { animation: vipGoldPulse 2s infinite ease-in-out; }

/* ===== ИНТЕРАКТИВНЫЙ ПОЛЬЗОВАТЕЛЬСКИЙ ИНТЕРФЕЙС КАРТОЧЕК ===== */
.news-actions-panel {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    flex-shrink: 0;
}

.news-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-action-btn:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.3);
    color: var(--gold);
}

/* Анимация смещения зрачка в иконке глаза */
.news-action-btn:hover .eye-pupil {
    transform: translate(1.5px, -0.5px);
}
.eye-pupil {
    transition: transform 0.2s ease;
}

/* Кнопка Копирования при успешном событии */
.news-action-btn.copy-success {
    background: rgba(52, 211, 153, 0.15) !important;
    border-color: rgba(52, 211, 153, 0.4) !important;
    color: #34d399 !important;
}

/* ===== СТАНДАРТ ИНЛАЙН-АККОРДЕОНА ПРЕВЬЮ ===== */
.news-accordion-preview {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.35s ease;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 8px;
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--text-secondary);
    padding: 0 16px;
    margin-top: 0;
    border: 1px solid transparent;
}

.news-accordion-preview.expanded {
    margin-top: 12px;
    padding: 12px 16px;
    border-color: rgba(255, 255, 255, 0.04);
}

/* ===== СИНХРОНИЗАЦИЯ VIP-ТАРИФОВ И ГЕОМЕТРИИ ИКОНОК ===== */

/* Эталонная анимация непрерывного движения перелива контура из clans.css */
@keyframes vipBlinkShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Пульсация иконок планов */
@keyframes vipCosmicPulse {
    0%, 100% { filter: drop-shadow(0 0 2px #ff416c); transform: scale(1); }
    50% { filter: drop-shadow(0 0 5px #ff416c); transform: scale(1.05); }
}
@keyframes vipGoldPulse {
    0%, 100% { filter: drop-shadow(0 0 2px #d4af37); transform: scale(1); }
    50% { filter: drop-shadow(0 0 4px #fff5cc); transform: scale(1.03); }
}

.animated-vip-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    flex-shrink: 0;
}
.vip-icon-cosmic { animation: vipCosmicPulse 1.5s infinite ease-in-out; }
.vip-icon-gold { animation: vipGoldPulse 2s infinite ease-in-out; }

/* ПЛАН "TOP" (Космический Супер-VIP) — Наследование разметки clans.css */
.news-card.vip-tier-cosmic, .news-card-pinned.vip-tier-cosmic {
    position: relative;
    border: 1px solid transparent !important;
    background: linear-gradient(90deg, rgba(24, 14, 36, 0.95), rgba(15, 15, 22, 0.95), rgba(38, 12, 28, 0.95), rgba(24, 14, 36, 0.95)) padding-box,
                linear-gradient(90deg, #ff416c, #8a2387, #e94057, #ff416c) border-box !important;
    background-size: 200% auto !important;
    animation: vipBlinkShift 4s linear infinite !important;
    box-shadow: 0 0 16px rgba(233, 64, 87, 0.22), inset 0 0 12px rgba(255, 65, 108, 0.12) !important;
}

/* Ховер космического тарифа: глубокий внутренний блик */
.news-card.vip-tier-cosmic:hover, .news-card-pinned.vip-tier-cosmic:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 16px 40px rgba(233, 64, 87, 0.35), inset 0 0 22px rgba(255, 65, 108, 0.3) !important;
}

/* ПЛАН "PREMIUM" (Золотой VIP) — Наследование разметки clans.css */
.news-card.vip-tier-gold, .news-card-pinned.vip-tier-gold {
    position: relative;
    border: 1px solid transparent !important;
    background: linear-gradient(rgba(18, 18, 24, 0.95), rgba(18, 18, 24, 0.95)) padding-box,
                linear-gradient(90deg, #d4af37, #fff5cc, #aa841b, #d4af37) border-box !important;
    background-size: 200% auto !important;
    animation: vipBlinkShift 4s linear infinite !important;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.15) !important;
}

.news-card.vip-tier-gold:hover, .news-card-pinned.vip-tier-gold:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 16px 40px rgba(212, 175, 55, 0.35) !important;
}

/* ГЕОМЕТРИЯ И СТИЛИЗАЦИЯ ИНЛАЙН-БАННЕРА ИЗ КОНТЕКСТА ПРОЕКТА */
.ann-toolbar-ad {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 555px;
    height: 70px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed var(--border);
    border-radius: 8px;
    backdrop-filter: blur(5px);
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
}
.ann-toolbar-ad-inner { display: flex; align-items: center; gap: 12px; font-family: 'Inter', sans-serif; color: var(--text-muted); }
.ann-toolbar-ad-tag { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 1px; color: var(--gold); font-weight: 700; background: rgba(212, 175, 55, 0.1); padding: 2px 6px; border-radius: 4px; border: 1px solid rgba(212, 175, 55, 0.2); }
.ann-toolbar-ad-slot { font-size: 0.8rem; font-weight: 600; opacity: 0.6; }

/* ===== СИНХРОНИЗАЦИЯ VIP-ТАРИФОВ И ГЕОМЕТРИИ ИКОНОК (КЛАНЫ -> НОВОСТИ) ===== */

@keyframes vipBlinkShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes vipCosmicPulse {
    0%, 100% { filter: drop-shadow(0 0 2px #ff416c); transform: scale(1); }
    50% { filter: drop-shadow(0 0 5px #ff416c); transform: scale(1.05); }
}
@keyframes vipGoldPulse {
    0%, 100% { filter: drop-shadow(0 0 2px #d4af37); transform: scale(1); }
    50% { filter: drop-shadow(0 0 4px #fff5cc); transform: scale(1.03); }
}

.animated-vip-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    flex-shrink: 0;
}
.vip-icon-cosmic { animation: vipCosmicPulse 1.5s infinite ease-in-out; }
.vip-icon-gold { animation: vipGoldPulse 2s infinite ease-in-out; }

/* ТАРИФ VIP 1: Космический Супер-VIP (План top) */
.news-card.vip-tier-cosmic, .news-card-pinned.vip-tier-cosmic {
    position: relative;
    border: 1px solid transparent !important;
    background: linear-gradient(90deg, rgba(24, 14, 36, 0.95), rgba(15, 15, 22, 0.95), rgba(38, 12, 28, 0.95), rgba(24, 14, 36, 0.95)) padding-box,
                linear-gradient(90deg, #ff416c, #8a2387, #e94057, #ff416c) border-box !important;
    background-size: 200% auto !important;
    animation: vipBlinkShift 4s linear infinite !important;
    box-shadow: 0 0 16px rgba(233, 64, 87, 0.22), inset 0 0 12px rgba(255, 65, 108, 0.12) !important;
}

.news-card.vip-tier-cosmic:hover, .news-card-pinned.vip-tier-cosmic:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 16px 40px rgba(233, 64, 87, 0.35), inset 0 0 22px rgba(255, 65, 108, 0.3) !important;
}

/* ТАРИФ VIP 2: Золотой VIP (План premium) */
.news-card.vip-tier-gold, .news-card-pinned.vip-tier-gold {
    position: relative;
    border: 1px solid transparent !important;
    background: linear-gradient(rgba(18, 18, 24, 0.95), rgba(18, 18, 24, 0.95)) padding-box,
                linear-gradient(90deg, #d4af37, #fff5cc, #aa841b, #d4af37) border-box !important;
    background-size: 200% auto !important;
    animation: vipBlinkShift 4s linear infinite !important;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.15) !important;
}

.news-card.vip-tier-gold:hover, .news-card-pinned.vip-tier-gold:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 16px 40px rgba(212, 175, 55, 0.35) !important;
}