/* ═══════════════════════════════════════════════════════════
   CORERUST GAMESTORES - КАСТОМНЫЙ ДИЗАЙН
   Автор: Anon
   Платформа: GameStores
   Цвета: #5DADE2 (CoreRust Blue)
   ═══════════════════════════════════════════════════════════ */

:root {
    --core-primary: #5DADE2;
    --core-secondary: #4A9FCC;
    --core-accent: #3498DB;
    --core-glow: rgba(93, 173, 226, 0.6);
    --core-dark: #1a1d29;
    --core-darker: #13151f;
    --core-card: #252834;
    --core-text: #ffffff;
    --core-text-muted: #b8c1d9;
}

/* ═══════════════════════════════════════════════════════════
   HEADER СТИЛИЗАЦИЯ - CORERUST
   ═══════════════════════════════════════════════════════════ */

/* Основной header - прозрачный с blur */
.Header-module__wrapper {
    background: rgba(32, 32, 32, 0.7) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border-bottom: 1px solid rgba(93, 173, 226, 0.2) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
}

/* Логотип CORE RUST - градиентный текст */
.Header-module__logo {
    background: linear-gradient(135deg, #5DADE2, #3498DB) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    font-weight: 700 !important;
}

.Header-module__logo:hover {
    opacity: 0.9 !important;
}

/* Кнопка "Магазин" - в стиле ВОЙТИ */
.HeaderNav-module__link {
    background: linear-gradient(135deg, #2a6fa8, #1f5580) !important;
    color: #ffffff !important;
    padding: 8px 20px !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(42, 111, 168, 0.3) !important;
    text-decoration: none !important;
}

.HeaderNav-module__link:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(42, 111, 168, 0.5) !important;
}

/* Кнопка языка RU - в стиле МАГАЗИН/ВОЙТИ */
.LangSwitcher-module__btn {
    background: linear-gradient(135deg, #2a6fa8, #1f5580) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 6px 14px !important;
    border-radius: 4px !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(42, 111, 168, 0.3) !important;
    min-width: auto !important;
    line-height: 1 !important;
    height: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.LangSwitcher-module__btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(42, 111, 168, 0.5) !important;
}

/* Убираем JS эффекты свечения на языковой кнопке */
.LangSwitcher-module__btn *,
.LangSwitcher-module__btn::before,
.LangSwitcher-module__btn::after,
.LangSwitcher-module__wrapper *,
.LangSwitcher-module__wrapper::before,
.LangSwitcher-module__wrapper::after {
    box-shadow: none !important;
    filter: none !important;
    text-shadow: none !important;
    animation: none !important;
}

/* Текущий язык */
.LangSwitcher-module__currentLang {
    color: #ffffff !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    line-height: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
    display: inline-block !important;
}

/* Кнопка "Войти" - темнее */
.PlayerMenu-module__loginLink {
    background: linear-gradient(135deg, #2a6fa8, #1f5580) !important;
    color: #ffffff !important;
    padding: 8px 20px !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(42, 111, 168, 0.3) !important;
}

.PlayerMenu-module__loginLink:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(42, 111, 168, 0.5) !important;
}

/* Dropdown списки */
.LangSwitcher-module__list {
    background: #1a1d29 !important;
    border: 1px solid rgba(42, 111, 168, 0.4) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6) !important;
    margin-top: 5px !important;
}

.LangSwitcher-module__lang {
    color: rgba(255, 255, 255, 0.8) !important;
    transition: all 0.2s ease !important;
}

.LangSwitcher-module__lang:hover {
    background: rgba(42, 111, 168, 0.2) !important;
    color: #ffffff !important;
}

/* Кнопка БАЛАНС - в стиле МАГАЗИН/ВОЙТИ */
.PlayerBalance-module__btn {
    background: linear-gradient(135deg, #2a6fa8, #1f5580) !important;
    color: #ffffff !important;
    padding: 6px 14px !important;
    border-radius: 4px !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(42, 111, 168, 0.3) !important;
    border: none !important;
    line-height: 1 !important;
    height: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.PlayerBalance-module__btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(42, 111, 168, 0.5) !important;
}

/* Убираем свечение с кнопки баланса */
.PlayerBalance-module__btn *,
.PlayerBalance-module__btn::before,
.PlayerBalance-module__btn::after {
    box-shadow: none !important;
    filter: none !important;
    text-shadow: none !important;
    animation: none !important;
}

/* Убираем стили с wrapper баланса - делаем прозрачным */
.PlayerBalance-module__wrapper,
.PlayerMenu-module__balance {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
}

.PlayerBalance-module__wrapper > *:not(.PlayerBalance-module__btn) {
    display: none !important;
}

/* Кнопка ПРОФИЛЬ - в стиле МАГАЗИН/ВОЙТИ */
.PlayerMenu-module__profileLink,
a[href*="/profile"] {
    background: linear-gradient(135deg, #2a6fa8, #1f5580) !important;
    color: #ffffff !important;
    padding: 8px 20px !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(42, 111, 168, 0.3) !important;
    border: none !important;
    text-decoration: none !important;
}

.PlayerMenu-module__profileLink:hover,
a[href*="/profile"]:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(42, 111, 168, 0.5) !important;
}

/* Заголовок "Мониторинг" - в стиле кнопок */
.MonitoringWidget-module__header {
    background: linear-gradient(135deg, #2a6fa8, #1f5580) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    text-align: center !important;
    padding: 12px 15px !important;
    border-radius: 2px 2px 0 0 !important;
    box-shadow: 0 2px 8px rgba(42, 111, 168, 0.3) !important;
}

/* ═══════════════════════════════════════════════════════════
   СКРЫТИЕ КАТЕГОРИЙ И НЕНУЖНЫХ ЭЛЕМЕНТОВ
   ═══════════════════════════════════════════════════════════ */

/* Скрываем категории полностью */
.gs-categories,
.gs-categories-list,
.categories-sidebar,
[class*="category"],
[class*="categories"] {
    display: none !important;
}

/* Скрываем переключатель категорий */
.gs-categories-toggle,
.categories-button {
    display: none !important;
}

/* Растягиваем контент на всю ширину */
.gs-products-wrapper,
.gs-items-wrapper,
.products-grid {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
}

/* Скрываем только ТЕКСТ "Мониторинг", но оставляем функционал */
.gs-sidebar h2,
.sidebar h2,
.gs-sidebar h3,
.sidebar h3,
.gs-sidebar-title,
.sidebar-title,
[class*="MonitoringWidget"] h2,
[class*="Widget-module__header"] h2,
[class*="monitoring"] h2 {
    font-size: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    line-height: 0 !important;
    visibility: hidden !important;
}

/* Уменьшаем логотип/заголовок */
.gs-header__title,
.header-title,
h1.server-name,
.gs-logo,
.logo,
h1 {
    font-size: 36px !important;
    max-width: 600px !important;
}

/* Уменьшаем подзаголовок */
.gs-header__subtitle,
.header-subtitle,
h2 {
    font-size: 18px !important;
}

/* ═══════════════════════════════════════════════════════════
   ГЛОБАЛЬНЫЕ СТИЛИ И АНИМАЦИИ
   ═══════════════════════════════════════════════════════════ */

/* Плавная загрузка страницы */
body {
    animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Фоновая анимация (тонкие световые волны) */
.gs-main-wrapper::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at 50% 50%,
        rgba(93, 173, 226, 0.03) 0%,
        transparent 50%
    );
    animation: pulseGlow 15s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

/* ═══════════════════════════════════════════════════════════
   КАРТОЧКИ ТОВАРОВ - КРАСИВЫЕ АНИМАЦИИ
   ═══════════════════════════════════════════════════════════ */

.gs-product,
.gs-item {
    position: relative !important;
    overflow: hidden !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    animation: slideUp 0.6s ease-out backwards;
}

/* Анимация появления карточек (по очереди) */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.gs-product:nth-child(1) { animation-delay: 0.1s; }
.gs-product:nth-child(2) { animation-delay: 0.2s; }
.gs-product:nth-child(3) { animation-delay: 0.3s; }
.gs-product:nth-child(4) { animation-delay: 0.4s; }
.gs-product:nth-child(5) { animation-delay: 0.5s; }
.gs-product:nth-child(6) { animation-delay: 0.6s; }
.gs-product:nth-child(n+7) { animation-delay: 0.7s; }

/* Светящаяся анимированная рамка при наведении */
.gs-product::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(
        45deg,
        var(--core-primary),
        var(--core-accent),
        var(--core-primary)
    );
    background-size: 400% 400%;
    border-radius: 14px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.gs-product:hover::before {
    opacity: 1;
    filter: blur(8px);
}

.gs-product:hover {
    transform: translateY(-10px) scale(1.03) !important;
    box-shadow: 
        0 10px 40px rgba(93, 173, 226, 0.3),
        0 0 60px rgba(93, 173, 226, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

/* Эффект "свечения" внутри карточки */
.gs-product::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, var(--core-glow), transparent);
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
}

.gs-product:hover::after {
    width: 300px;
    height: 300px;
    opacity: 0.15;
}

/* Анимация изображения товара */
.gs-product__image,
.gs-item__image {
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    filter: brightness(0.9);
}

.gs-product:hover .gs-product__image,
.gs-product:hover .gs-item__image {
    transform: scale(1.1) rotate(2deg);
    filter: brightness(1.1) drop-shadow(0 10px 20px rgba(93, 173, 226, 0.4));
}

/* Анимация цены при наведении */
.gs-product__price {
    transition: all 0.3s ease !important;
    position: relative !important;
    display: inline-block !important;
}

.gs-product:hover .gs-product__price {
    transform: scale(1.15);
    text-shadow: 
        0 0 20px var(--core-glow),
        0 0 40px var(--core-glow),
        0 0 60px var(--core-glow);
    animation: priceGlow 1.5s ease-in-out infinite;
}

@keyframes priceGlow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.3); }
}

/* ═══════════════════════════════════════════════════════════
   КНОПКИ - КРАСИВЫЕ АНИМАЦИИ
   ═══════════════════════════════════════════════════════════ */

.gs-button,
button,
.btn {
    position: relative !important;
    overflow: hidden !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

/* Волновой эффект при клике */
.gs-button::before,
button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.gs-button:active::before,
button:active::before {
    width: 300px;
    height: 300px;
}

.gs-button:hover,
button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 10px 30px var(--core-glow),
        0 0 40px var(--core-glow);
    filter: brightness(1.2);
}

.gs-button:active,
button:active {
    transform: translateY(-1px) scale(0.98);
}

/* ═══════════════════════════════════════════════════════════
   ПОИСК И ИНПУТЫ
   ═══════════════════════════════════════════════════════════ */

input[type="text"],
input[type="search"],
.gs-search-input {
    transition: all 0.3s ease !important;
}

input:focus,
.gs-search-input:focus {
    transform: scale(1.02);
    box-shadow: 
        0 0 20px var(--core-glow),
        0 0 40px rgba(93, 173, 226, 0.2);
    animation: inputPulse 2s ease-in-out infinite;
}

@keyframes inputPulse {
    0%, 100% { box-shadow: 0 0 20px var(--core-glow); }
    50% { box-shadow: 0 0 30px var(--core-glow), 0 0 50px rgba(93, 173, 226, 0.3); }
}

/* ═══════════════════════════════════════════════════════════
   МОДАЛЬНЫЕ ОКНА - АНИМАЦИИ
   ═══════════════════════════════════════════════════════════ */

.gs-modal {
    animation: modalAppear 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Пульсирующая рамка модального окна */
.gs-modal {
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 2px var(--core-primary),
        0 0 30px var(--core-glow);
    animation: modalGlow 3s ease-in-out infinite;
}

@keyframes modalGlow {
    0%, 100% { 
        box-shadow: 
            0 20px 60px rgba(0, 0, 0, 0.5),
            0 0 0 2px var(--core-primary),
            0 0 30px var(--core-glow);
    }
    50% { 
        box-shadow: 
            0 20px 60px rgba(0, 0, 0, 0.5),
            0 0 0 2px var(--core-accent),
            0 0 50px var(--core-glow);
    }
}

/* ═══════════════════════════════════════════════════════════
   КОРЗИНА - АНИМАЦИИ
   ═══════════════════════════════════════════════════════════ */

.gs-cart-icon,
.cart-button {
    transition: all 0.3s ease !important;
}

.gs-cart-icon:hover,
.cart-button:hover {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 20px var(--core-glow));
}

/* Анимация добавления в корзину */
.gs-cart-icon.added {
    animation: cartBounce 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes cartBounce {
    0% { transform: scale(1); }
    25% { transform: scale(1.3) rotate(10deg); }
    50% { transform: scale(0.9) rotate(-5deg); }
    75% { transform: scale(1.1) rotate(3deg); }
    100% { transform: scale(1) rotate(0); }
}

/* Счетчик товаров в корзине */
.gs-cart-count {
    animation: countPulse 0.4s ease-out;
}

@keyframes countPulse {
    0% { transform: scale(0); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* ═══════════════════════════════════════════════════════════
   БАДЖИ И МЕТКИ - АНИМАЦИИ
   ═══════════════════════════════════════════════════════════ */

.gs-badge,
.badge {
    animation: badgeAppear 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) backwards;
}

@keyframes badgeAppear {
    from {
        opacity: 0;
        transform: scale(0) rotate(-180deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}

/* Пульсация для скидок */
.gs-badge--discount,
.badge-discount {
    animation: discountPulse 2s ease-in-out infinite;
}

@keyframes discountPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 10px rgba(231, 76, 60, 0.5);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 0 20px rgba(231, 76, 60, 0.8);
    }
}

/* ═══════════════════════════════════════════════════════════
   ЗАГРУЗЧИК / ПРЕЛОАДЕР
   ═══════════════════════════════════════════════════════════ */

/* Скрываем все стандартные лоадеры GameStores */
.gs-preloader,
.preloader,
[class*="preloader"],
[class*="spinner"]:not(.gs-loader):not(.loader) {
	display: none !important;
}

/* Затемнение фона при загрузке */
.gs-loader-overlay,
.loader-overlay,
body.loading::before {
	content: '' !important;
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	background: rgba(19, 21, 31, 0.95) !important;
	z-index: 999998 !important;
	backdrop-filter: blur(10px) !important;
}

/* Наш красивый лоадер - строго по центру */
.gs-loader,
.loader {
	width: 50px !important;
	height: 50px !important;
	border: 4px solid rgba(93, 173, 226, 0.15) !important;
	border-radius: 50% !important;
	position: fixed !important;
	top: 50% !important;
	left: 50% !important;
	transform: translate(-50%, -50%) !important;
	animation: none !important;
	z-index: 999999 !important;
	background: transparent !important;
}

.gs-loader::after,
.loader::after {
	content: '' !important;
	position: absolute !important;
	top: 3px !important;
	left: 3px !important;
	right: 3px !important;
	bottom: 3px !important;
	border-radius: 50% !important;
	border: 4px solid transparent !important;
	border-top-color: var(--core-primary) !important;
	border-right-color: var(--core-primary) !important;
	animation: loader-spin 0.8s linear infinite !important;
	box-shadow: 0 0 20px rgba(93, 173, 226, 0.3) !important;
}

@keyframes loader-spin {
	to { transform: rotate(360deg); }
}

/* ═══════════════════════════════════════════════════════════
   СКРОЛЛБАР - КАСТОМНЫЙ
   ═══════════════════════════════════════════════════════════ */

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--core-darker);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--core-primary), var(--core-accent));
    border-radius: 10px;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--core-accent), var(--core-primary));
    box-shadow: 0 0 20px var(--core-glow);
}

/* ═══════════════════════════════════════════════════════════
   ДОПОЛНИТЕЛЬНЫЕ ЭФФЕКТЫ
   ═══════════════════════════════════════════════════════════ */

/* Плавный скролл */
html {
    scroll-behavior: smooth;
}

/* Эффект параллакса для фона (опционально) */
.gs-header,
.gs-banner {
    position: relative;
    transition: transform 0.3s ease-out;
}

/* Текстовая анимация для заголовков */
h1, h2, h3, .gs-title {
    animation: textGlow 3s ease-in-out infinite;
}

@keyframes textGlow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(93, 173, 226, 0.3);
    }
    50% {
        text-shadow: 0 0 20px rgba(93, 173, 226, 0.6);
    }
}

/* Анимация для выделенного текста */
::selection {
    background: var(--core-primary);
    color: var(--core-text);
    text-shadow: 0 0 10px var(--core-glow);
}

/* ═══════════════════════════════════════════════════════════
   ОПТИМИЗАЦИЯ ПРОИЗВОДИТЕЛЬНОСТИ
   ═══════════════════════════════════════════════════════════ */

/* Используем GPU для плавных анимаций */
.gs-product,
.gs-button,
.gs-modal {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Отключаем анимации на мобильных для экономии батареи */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
/* ═══════════════════════════════════════════════════════════
   CORERUST СОЦИАЛЬНЫЕ ВИДЖЕТЫ - НОВЫЙ СТИЛЬ
   Дизайн как на x1000000.ru
   ═══════════════════════════════════════════════════════════ */

/* Основной контейнер виджета */
.corerust-social-widget {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 12px 15px 18px;
    border-radius: 16px;
    overflow: hidden;
    min-height: 80px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Фоновый градиент */
.social-widget-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    opacity: 1;
    transition: opacity 0.4s ease;
}

/* Telegram градиент (синий) */
.telegram-widget .social-widget-bg {
    background: linear-gradient(135deg, #2481cc 0%, #1c5f96 100%);
}

/* Discord градиент (фиолетовый) */
.discord-widget .social-widget-bg {
    background: linear-gradient(135deg, #7289da 0%, #5865f2 100%);
}

/* Иконка слева */
.social-widget-icon {
    position: relative;
    z-index: 2;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.social-widget-icon svg {
    width: 28px;
    height: 28px;
    color: #ffffff;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.2));
}

/* Контент (текст) */
.social-widget-content {
    position: relative;
    z-index: 2;
    flex: 1;
    margin-left: 12px;
    margin-right: 10px;
}

.social-widget-label {
    font-size: 9px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    margin-bottom: 2px;
}

.social-widget-name {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Кнопка справа */
.social-widget-button {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.widget-btn {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.widget-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.widget-btn:active {
    transform: translateY(0);
}

/* Длинная кнопка (для "ПРИСОЕДИНИТЬСЯ") */
.widget-btn-long {
    padding: 9px 8px !important;
    font-size: 8.5px !important;
    letter-spacing: 0.2px !important;
    line-height: 1.2 !important;
}

/* ═══════════════════════════════════════════════════════════
   АНИМАЦИИ ПРИ НАВЕДЕНИИ
   ═══════════════════════════════════════════════════════════ */

.corerust-social-widget:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.corerust-social-widget:hover .social-widget-icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(255, 255, 255, 0.25);
}

.corerust-social-widget:hover .social-widget-bg {
    opacity: 0.9;
}

/* ═══════════════════════════════════════════════════════════
   ДОПОЛНИТЕЛЬНЫЕ ЭФФЕКТЫ
   ═══════════════════════════════════════════════════════════ */

/* Светящийся эффект по краям */
.corerust-social-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.3),
        rgba(255, 255, 255, 0.1)
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.corerust-social-widget:hover::before {
    opacity: 1;
}

/* Блики света */
.corerust-social-widget::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.corerust-social-widget:hover::after {
    opacity: 1;
}

/* ═══════════════════════════════════════════════════════════
   АНИМАЦИЯ ПОЯВЛЕНИЯ
   ═══════════════════════════════════════════════════════════ */

.corerust-social-widget {
    animation: slideInUp 0.6s ease-out backwards;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Задержка для второго виджета */
.Widgets-module__widgetWrapper:nth-child(2) .corerust-social-widget {
    animation-delay: 0.15s;
}

/* ═══════════════════════════════════════════════════════════
   АДАПТИВНОСТЬ
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .corerust-social-widget {
        padding: 15px 20px;
        min-height: 80px;
    }

    .social-widget-icon {
        width: 50px;
        height: 50px;
    }

    .social-widget-icon svg {
        width: 35px;
        height: 35px;
    }

    .social-widget-content {
        margin-left: 15px;
        margin-right: 15px;
    }

    .social-widget-name {
        font-size: 18px;
    }

    .social-widget-label {
        font-size: 10px;
    }

    .widget-btn {
        padding: 10px 20px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .corerust-social-widget {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .social-widget-content {
        margin: 15px 0;
    }

    .widget-btn {
        width: 100%;
    }
}

/* ═══════════════════════════════════════════════════════════
   ВАРИАНТ С ПАТТЕРНОМ (ОПЦИОНАЛЬНО)
   ═══════════════════════════════════════════════════════════ */

/* Раскомментируй для добавления паттерна на фон */
/*
.social-widget-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(255, 255, 255, 0.03) 10px,
            rgba(255, 255, 255, 0.03) 20px
        );
}
*/

/* ═══════════════════════════════════════════════════════════
   ДОПОЛНИТЕЛЬНЫЕ ЦВЕТОВЫЕ СХЕМЫ
   ═══════════════════════════════════════════════════════════ */

/* Если хочешь другие цвета для Telegram */
/*
.telegram-widget .social-widget-bg {
    background: linear-gradient(135deg, #0088cc 0%, #229ED9 100%);
}
*/

/* Если хочешь другие цвета для Discord */
/*
.discord-widget .social-widget-bg {
    background: linear-gradient(135deg, #5865F2 0%, #7289DA 100%);
}
*/