/* ==========================================================================
   DYSPH.RU — STYLE SHEET v4 (Enhanced)
   ========================================================================== */

:root {
    --bg-main: #0a0b0e;
    --font-primary: 'Space Grotesk', 'Inter', -apple-system, sans-serif;

    --color-discord: #5865F2;
    --color-discord-hover: #4752C4;
    --color-text-main: #f3f4f6;
    --color-text-muted: #9ca3af;
    --color-text-muted-light: #6c6f78;

    --accent-glow: linear-gradient(135deg, #5865F2 0%, #a370f7 50%, #00e5ff 100%);
    --accent-glow-hover: linear-gradient(135deg, #4752C4 0%, #8a5fe0 50%, #00ccee 100%);
    --blob-1-color: rgba(88, 101, 242, 0.15);
    --blob-2-color: rgba(163, 112, 247, 0.12);
    --blob-3-color: rgba(0, 229, 255, 0.10);

    --accent-red: #ff4757;
    --accent-glow-red: linear-gradient(135deg, #ff4757 0%, #ff6b81 100%);

    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: blur(20px);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);

    --green: #2ecc71;
    --cyan: #00d2d3;
    --yellow: #f1c40f;
    --orange: #e67e22;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    width: 100%; min-height: 100%;
    background-color: var(--bg-main);
    color: var(--color-text-main);
    font-family: var(--font-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
}

body {
    display: flex; flex-direction: column;
    min-height: 100vh; position: relative;
}

/* ===== Background ===== */
.bg-blobs {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

/* Градиентная сетка вместо blob'ов */
.bg-blobs::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(88, 101, 242, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(88, 101, 242, 0.08) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

/* Мягкий радиальный градиент по центру */
.bg-blobs::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, 
        rgba(88, 101, 242, 0.15) 0%,
        rgba(163, 112, 247, 0.1) 30%,
        rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

/* Анимированные частицы */
.particles {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(88, 101, 242, 0.4);
    border-radius: 50%;
    animation: float 15s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-20vh) rotate(360deg);
        opacity: 0;
    }
}

/* ===== Glass Effect ===== */
.glass {
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* ===== Header ===== */

.header { 
    width: 100%; 
    padding: 24px 20px 0; 
    z-index: 100; 
    display: flex; 
    justify-content: center; 
}

/* Применяем ультра-матовое заснеженное стекло к внутренней части хедера */
.header-inner {
    width: 100%; 
    max-width: 1200px; 
    padding: 12px 24px; 
    border-radius: 20px;
    display: flex; 
    align-items: center; 
    gap: 20px;
    
    /* Свойства стекла напрямую (Твой Вариант 3, адаптированный под Хедер) */
    background: rgba(255, 255, 255, 0.03); /* Светлая, прозрачная основа */
    backdrop-filter: blur(25px); /* Сильное матовое размытие */
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.08); /* Светлая аккуратная грань */
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Эффект при наведении на сам Хедер */
.header-inner:hover {
    background: rgba(255, 255, 255, 0.06); /* Слегка становится светлее и плотнее */
    border-color: rgba(255, 255, 255, 0.12); /* Грань становится капельку четче */
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4); 
}

/* --- ЛОГОТИП --- */
.logo-link { 
    display: flex; 
    align-items: center; 
    gap: 14px; 
    text-decoration: none; 
    color: var(--color-text-main); 
    flex-shrink: 0; 
    transition: all 0.25s ease; 
}

/* Иконка логотипа */
.logo-mark { 
    width: 40px; 
    height: 40px; 
    background: var(--color-discord); 
    border-radius: 12px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); /* Мягкий пружинящий эффект */
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.3);
}

.logo-mark i { 
    color: white; 
    font-size: 1.25rem; 
}

/* Текст логотипа */
.logo-text { 
    font-size: 1.4rem; 
    font-weight: 800; 
    letter-spacing: 0.06em; 
    background: var(--accent-glow); 
    -webkit-background-clip: text; 
    background-clip: text; 
    -webkit-text-fill-color: transparent;
    transition: filter 0.3s ease;
}

/* Ховер-эффект на весь логотип */
.logo-link:hover .logo-mark { 
    transform: rotate(12deg) scale(1.08); 
    background: var(--color-discord-hover);
    box-shadow: 0 6px 16px rgba(88, 101, 242, 0.5);
}

.logo-link:hover .logo-text {
    filter: drop-shadow(0 0 8px rgba(163, 112, 247, 0.3)); /* Мягкое свечение букв */
}

/* --- КНОПКИ НАВИГАЦИИ --- */
.nav-btn {
    display: flex; 
    align-items: center; 
    gap: 8px; 
    text-decoration: none;
    color: var(--color-text-muted); 
    font-size: 0.9rem; 
    font-weight: 600; 
    padding: 10px 20px; 
    border-radius: 12px; 
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0);
    white-space: nowrap; 
    flex-shrink: 0;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Обычная кнопка при наведении */
.nav-btn:hover { 
    color: #fff; 
    background: rgba(255, 255, 255, 0.05); /* Легкая светлая плашка */
    border-color: rgba(255, 255, 255, 0.08); 
    transform: translateY(-1px); 
}

/* Акцентная/Основная кнопка (Градиентная) */
.nav-btn-primary { 
    background: var(--accent-glow) !important; 
    color: #fff !important; 
    border: none; 
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.2);
}

/* Акцентная кнопка при наведении */
.nav-btn-primary:hover { 
    background: var(--accent-glow-hover) !important; 
    transform: translateY(-2px); 
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.4), 0 0 12px rgba(0, 229, 255, 0.2); 
}

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

/* ===== Search Box (Ультра-светлое стекло, Вариант 3) ===== */
.search-box {
    display: flex; 
    align-items: center; 
    flex: 1; 
    min-width: 0;
    
    /* Текстура легкого прозрачного стекла */
    background: rgba(255, 255, 255, 0.01); 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    
    border-radius: 14px; 
    padding: 4px 6px 4px 16px; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Эффект при клике (активности) внутри поиска */
.search-box:focus-within { 
    background: rgba(255, 255, 255, 0.03); /* Становится капельку светлее */
    border-color: rgba(255, 255, 255, 0.15); /* Проявляется аккуратная грань вместо жесткого цвета */
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2); 
}

/* Иконка лупы внутри поля */
.search-icon { 
    color: rgba(255, 255, 255, 0.25); /* Сделали чуть мягче */
    margin-right: 12px; 
    font-size: 0.9rem; 
    transition: color 0.3s ease;
}

.search-box:focus-within .search-icon {
    color: rgba(255, 255, 255, 0.5); /* Подсвечивается при фокусе */
}

/* Само текстовое поле ввода */
.search-input { 
    background: transparent; 
    border: none; 
    color: #fff; 
    font-family: var(--font-primary); 
    font-size: 0.92rem; 
    width: 100%; 
    padding: 10px 4px; 
    outline: none; 
}

.search-input::placeholder { 
    color: rgba(255, 255, 255, 0.25); /* Светлый матовый плейсхолдер */
}

/* Кнопка поиска внутри инпута */
.search-btn {
    background: rgba(255, 255, 255, 0.04); /* Полупрозрачная стеклянная кнопка */
    border: 1px solid rgba(255, 255, 255, 0.05); 
    color: rgba(255, 255, 255, 0.8); 
    padding: 8px 18px; 
    border-radius: 11px; 
    cursor: pointer; 
    font-size: 0.85rem; 
    font-family: var(--font-primary); 
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1); 
    flex-shrink: 0; 
    font-weight: 600;
}

/* Наведение на кнопку поиска */
.search-btn:hover { 
    background: rgba(255, 255, 255, 0.08); /* Приятно подсвечивается */
    border-color: rgba(255, 255, 255, 0.12);
    color: #fff;
    transform: translateY(-1px); 
}

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

/* ===== Main / Hero (Ультра-светлое стекло, Вариант 3) ===== */
.main { 
    flex: 1; 
    display: flex; 
    align-items: flex-start; 
    justify-content: center; 
    padding: 40px 20px 60px; 
    z-index: 5; 
}

.hero { 
    width: 100%; 
    max-width: 800px; 
    text-align: center; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    
    /* Добавляем мягкое появление контента при загрузке страницы */
    animation: fadeInHero 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* ===== Cards ===== */
.stats-cards {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.stat-card-mini {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 28px;
    border-radius: 24px;
    min-width: 170px;
    transition: all 0.3s ease;
}
.stat-card-mini:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.stat-icon {
    font-size: 2.2rem;
    color: var(--color-discord);
}

.stat-info {
    text-align: left;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    background: var(--accent-glow);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
/* ===== Cards (Ультра-светлое стекло, Вариант 3) ===== */
.stats-cards {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.stat-card-mini {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 28px;
    border-radius: 24px;
    min-width: 170px;
    
    /* Текстура легкого прозрачного стекла */
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Эффект при наведении на карточку статистики */
.stat-card-mini:hover {
    transform: translateY(-5px); /* Чуть выше и плавнее приподнимается */
    background: rgba(255, 255, 255, 0.04); /* Карточка плавно светлеет */
    border-color: rgba(255, 255, 255, 0.15); /* Проявляется грань */
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4); /* Тень становится глубже */
}

/* Иконка внутри карточки */
.stat-icon {
    font-size: 2.2rem;
    color: var(--color-discord);
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 10px rgba(88, 101, 242, 0.2)); /* Легкое неоновое свечение по умолчанию */
}

/* Эффект для иконки при наведении на карточку */
.stat-card-mini:hover .stat-icon {
    transform: scale(1.08); /* Иконка аккуратно увеличивается */
    filter: drop-shadow(0 6px 15px rgba(88, 101, 242, 0.45)); /* Свечение иконки становится ярче */
}

.stat-info {
    text-align: left;
}

/* Большие цифры статистики */
.stat-number {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    background: var(--accent-glow);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: filter 0.3s ease;
}

/* Цифры начинают слегка светиться при наведении на карточку */
.stat-card-mini:hover .stat-number {
    filter: drop-shadow(0 0 10px rgba(163, 112, 247, 0.25));
}

.stat-label {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== Leaderboards ===== */
.lb-grid-full {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    width: 100%;
    margin-bottom: 40px;
}

@media (max-width: 860px) {
    .lb-grid-full {
        grid-template-columns: 1fr;
    }
}

.lb-card-full {
    padding: 24px;
    border-radius: 24px;
    transition: all 0.3s ease;
}
.lb-card-full:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.12);
}

.lb-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.lb-head .feature-icon {
    margin: 0;
    font-size: 1.4rem;
}

.lb-head .feature-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.lb-list-full {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lb-list-full .lb-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.02);
    border-radius: 14px;
    transition: all 0.2s ease;
}
.lb-list-full .lb-item:hover {
    background: rgba(255,255,255,0.05);
    transform: translateX(4px);
}

.lb-list-full .lb-user {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    min-width: 180px;
    flex: 2;
}

.lb-list-full .lb-place {
    font-weight: 800;
    width: 36px;
    font-size: 1rem;
}

.lb-list-full .lb-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: transform 0.2s;
}
.lb-list-full .lb-user:hover .lb-avatar {
    transform: scale(1.05);
}

.lb-list-full .lb-name {
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lb-list-full .lb-value {
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 80px;
    text-align: right;
}

.lb-list-full .lb-bar {
    flex: 3;
    height: 6px;
    background: rgba(255,255,255,0.08);
    border-radius: 4px;
    overflow: hidden;
}

.lb-list-full .lb-bar-fill {
    display: block;
    height: 100%;
    background: var(--accent-glow);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* ===== Feature Cards ===== */
.features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
}

@media (max-width: 640px) {
    .features {
        grid-template-columns: 1fr;
    }
}

.feature {
    padding: 24px;
    border-radius: 24px;
    text-align: left;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.feature:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    font-size: 1.5rem;
    margin-bottom: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(88, 101, 242, 0.15);
    transition: all 0.3s;
}
.feature:hover .feature-icon {
    background: var(--color-discord);
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4);
}

.feature-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-text-muted-light);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    background: var(--accent-glow);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
    margin-top: 4px;
}

.stat-sub {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 4px;
}

.stat-card-wide {
    grid-column: 1 / -1;
}
/* ===== Leaderboards (Ультра-светлое стекло, Вариант 3) ===== */
.lb-grid-full {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    width: 100%;
    margin-bottom: 40px;
}

@media (max-width: 860px) {
    .lb-grid-full {
        grid-template-columns: 1fr;
    }
}

/* Сама большая карточка топа */
.lb-card-full {
    padding: 24px;
    border-radius: 24px;
    
    /* Текстура легкого прозрачного стекла */
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lb-card-full:hover {
    transform: translateY(-5px); /* Плавно приподнимается */
    background: rgba(255, 255, 255, 0.04); /* Слегка наполняется светом */
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

/* Шапка таблицы лидеров */
.lb-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.lb-head .feature-icon {
    margin: 0;
    font-size: 1.4rem;
}

.lb-head .feature-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.lb-list-full {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Строка участника в топе */
.lb-list-full .lb-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 14px;
    
    /* Более прозрачная вложенная стеклянная подложка */
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Эффект наведения на строку участника */
.lb-list-full .lb-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
    transform: translateX(6px); /* Приятный интерактивный сдвиг вправо */
}

.lb-list-full .lb-user {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    min-width: 180px;
    flex: 2;
}

.lb-list-full .lb-place {
    font-weight: 800;
    width: 36px;
    font-size: 1rem;
}

.lb-list-full .lb-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lb-list-full .lb-user:hover .lb-avatar {
    transform: scale(1.1) rotate(5deg); /* Аватарка слегка пружинит при наведении */
}

.lb-list-full .lb-name {
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lb-list-full .lb-value {
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 80px;
    text-align: right;
}

/* Линия прогресс-бара */
.lb-list-full .lb-bar {
    flex: 3;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
}

/* Заполнение полосы прогресса */
.lb-list-full .lb-bar-fill {
    display: block;
    height: 100%;
    background: var(--accent-glow);
    border-radius: 4px;
    transition: width 0.4s ease;
}

/* Полоса прогресса загорается неоном при наведении на строку */
.lb-list-full .lb-item:hover .lb-bar-fill {
    filter: drop-shadow(0 0 6px rgba(88, 101, 242, 0.6));
}


/* ===== Feature Cards (Ультра-светлое стекло, Вариант 3) ===== */
.features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
}

@media (max-width: 640px) {
    .features {
        grid-template-columns: 1fr;
    }
}

/* Карточки фичей/подробной статистики */
.feature {
    padding: 24px;
    border-radius: 24px;
    text-align: left;
    
    /* Текстура легкого прозрачного стекла */
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

/* Квадратная иконка фичи */
.feature-icon {
    font-size: 1.5rem;
    margin-bottom: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    
    /* Стеклянное размытое оформление для иконки по дефолту */
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--color-discord);
    
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 4px 10px rgba(88, 101, 242, 0.15));
}

/* Иконка плавно наливается цветом бренда при наведении на карточку */
.feature:hover .feature-icon {
    background: var(--color-discord);
    border-color: var(--color-discord-hover);
    color: #fff;
    transform: scale(1.05) rotate(4deg);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.45);
    filter: drop-shadow(0 0 8px rgba(88, 101, 242, 0.3));
}

.feature-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-text-muted); /* Исправили блеклый цвет для лучшей читаемости */
}

/* Значения статистики внутри фич */
.stat-value {
    font-size: 2rem;
    font-weight: 700;
    background: var(--accent-glow);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
    margin-top: 4px;
    transition: filter 0.3s ease;
}

.feature:hover .stat-value {
    filter: drop-shadow(0 0 12px rgba(163, 112, 247, 0.25)); /* Мягкое неоновое свечение больших цифр */
}

.stat-sub {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 4px;
}

.stat-card-wide {
    grid-column: 1 / -1;
}

/* ===== Profile Card (Ультра-светлое стекло, Вариант 3) ===== */
.profile-card {
    width: 100%;
    padding: 28px;
    border-radius: 28px;
    margin-bottom: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    
    /* Текстура легкого прозрачного стекла */
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Эффект при наведении на карточку профиля */
.profile-card:hover {
    transform: translateY(-4px); /* Мягко приподнимается */
    background: rgba(255, 255, 255, 0.04); /* Слегка наполняется концентрированным светом */
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.profile-top {
    display: flex;
    align-items: center;
    gap: 24px;
}

@media (max-width: 520px) {
    .profile-top {
        flex-direction: column;
        text-align: center;
    }
}

/* --- АВАТАР И СТАТУС --- */
.avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.profile-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    /* Красивая неоновая рамка под цвет статуса в Discord */
    border: 3px solid var(--status-color, rgba(255, 255, 255, 0.2));
    box-shadow: 0 0 20px -2px var(--status-color, rgba(0, 0, 0, 0.2));
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    background-color: rgba(0, 0, 0, 0.2);
}

/* Аватарка аккуратно пружинит при наведении на саму карточку профиля */
.profile-card:hover .profile-avatar {
    transform: scale(1.05) rotate(-3deg);
    box-shadow: 0 0 25px var(--status-color, rgba(255, 255, 255, 0.2));
}

.avatar-status-ring {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 4px solid #0a0b0e; /* Подстроили под твой глубокий основной фон сайта */
    background: var(--status-color, #80848e);
    box-shadow: 0 0 12px var(--status-color, #80848e);
    transition: transform 0.3s ease;
}

.profile-card:hover .avatar-status-ring {
    transform: scale(1.1); /* Индикатор статуса тоже интерактивно увеличивается */
}

/* --- ТЕКСТОВАЯ ИНФОРМАЦИЯ --- */
.profile-info {
    text-align: left;
    min-width: 0;
    flex: 1;
}

@media (max-width: 520px) {
    .profile-info {
        text-align: center;
    }
}

.profile-name {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Плашка "Дата захода на сервер" */
.profile-joined {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 6px 14px;
    
    /* Стеклянный полупрозрачный стиль вместо монотонного фона */
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    
    font-size: 0.8rem;
    color: #b9bbbe;
    transition: all 0.2s ease;
}

.profile-joined i {
    color: var(--color-discord);
    filter: drop-shadow(0 2px 6px rgba(88, 101, 242, 0.4));
}

.profile-card:hover .profile-joined {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* --- РОЛИ УЧАСТНИКА --- */
.roles-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
    padding: 0;
    list-style: none;
}

@media (max-width: 520px) {
    .roles-list {
        justify-content: center;
    }
}

/* Бэдж роли в стиле чистого заснеженного стекла */
.role-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    
    /* Облегченная текстура стекла */
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #f3f4f6;
    
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.3px;
    transition: all 0.25s ease;
}

/* Эффект наведения на роль */
.role-badge:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Цветная точка внутри роли */
.role-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    box-shadow: 0 0 8px currentColor; /* Родная неоновая подсветка точки на основе её цвета */
    flex-shrink: 0;
}


/* ===== Activity Card (Ультра-светлое стекло, Вариант 3) ===== */
.discord-activity-card {
    /* Полностью переходим на легкую текстуру заснеженного стекла */
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    
    border-radius: 20px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: 480px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Эффект при наведении на карточку активности */
.discord-activity-card:hover {
    transform: translateY(-3px); /* Легкое интерактивное всплытие */
    background: rgba(255, 255, 255, 0.04); /* Карточка мягко подсвечивается изнутри */
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

/* Обложка активности (логотип игры / трека) */
.activity-avatar {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Картинка аккуратно увеличивается при наведении на карточку */
.discord-activity-card:hover .activity-avatar {
    transform: scale(1.06);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.activity-details-block {
    display: flex;
    flex-direction: column;
    text-align: left;
    min-width: 0;
    flex: 1;
}

/* Небольшой заголовок вроде "ИГРАЕТ В" */
.activity-badge-title {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--color-text-muted, #949ba4);
    text-transform: uppercase;
    letter-spacing: 0.8px; /* Чуть увеличили расстояние между буквами для читаемости */
    margin-bottom: 4px;
}

/* Название игры или приложения */
.activity-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Описание статуса (например, "В главном меню") */
.activity-subtext {
    font-size: 0.8rem;
    color: #b5bac1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 2px;
    transition: color 0.2s ease;
}

/* При наведении текст становится капельку ярче */
.discord-activity-card:hover .activity-subtext {
    color: #dbdee1;
}

/* Второстепенный тусклый текст (например, время матча) */
.activity-subtext-dim {
    opacity: 0.6;
    font-size: 0.75rem;
}

/* ===== Tabs ===== */
.tabs-nav {
    display: flex;
    gap: 12px;
    margin-bottom: 28px;
    width: 100%;
}
.tab-btn {
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 10px 24px;
    cursor: pointer;
    transition: all 0.25s ease;
    border-radius: 40px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.tab-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}
.tab-btn.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.2), rgba(163, 112, 247, 0.2));
    border: 1px solid rgba(88, 101, 242, 0.4);
}
.tab-content {
    display: none;
    width: 100%;
}
.tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== Search Suggestions ===== */
.search-wrapper {
    position: relative;
    flex: 1;
    min-width: 220px;
}
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(20, 22, 28, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    margin-top: 10px;
    z-index: 100;
    display: none;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.search-suggestions.active {
    display: block;
    animation: fadeIn 0.2s ease;
}
.suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--color-text-main);
    transition: background 0.2s;
}
.suggestion-item:hover {
    background: rgba(88, 101, 242, 0.15);
}
.suggestion-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}
.suggestion-name {
    font-weight: 500;
}

/* ===== Alerts & Bars ===== */
.alert-error {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #e74c3c;
    padding: 14px 20px;
    border-radius: 16px;
    margin-bottom: 24px;
    font-size: 0.9rem;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.viewing-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    background: rgba(88, 101, 242, 0.08);
    border: 1px solid rgba(88, 101, 242, 0.2);
    padding: 12px 20px;
    border-radius: 16px;
    width: 100%;
    font-size: 0.85rem;
    color: #b9bbbe;
}
.viewing-back {
    font-size: 0.8rem;
    color: #fff;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 14px;
    border-radius: 10px;
    transition: all 0.2s;
}
.viewing-back:hover {
    background: rgba(255, 255, 255, 0.1);
}

.login-prompt {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 28px;
    border-radius: 24px;
    margin-top: 24px;
    flex-wrap: wrap;
    justify-content: center;
}
.login-prompt i {
    font-size: 1.5rem;
    color: var(--color-discord);
}

/* ===== Badge ===== */
.badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 28px;
}
.badge-dot-red {
    width: 8px;
    height: 8px;
    background: var(--accent-red);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--accent-red);
    animation: pulseDot 1.6s infinite ease-in-out;
}

@keyframes pulseDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.6; }
}

/* ===== Footer ===== */
.footer {
    width: 100%;
    padding: 32px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    z-index: 10;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    margin-top: 20px;
}

/* ===== 404 Page ===== */
.logo-mark-red { background: var(--accent-red); }
.page-404 .cta-primary {
    background: linear-gradient(135deg, var(--accent-red), #ff6b81);
    box-shadow: 0 4px 20px rgba(255, 71, 87, 0.3);
}
.page-404 .cta-primary:hover {
    background: linear-gradient(135deg, #ff6b81, var(--accent-red));
    box-shadow: 0 6px 28px rgba(255, 71, 87, 0.5);
}

.astronaut {
    font-size: 3.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 16px;
    animation: floatAstro 5s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(255, 71, 87, 0.4));
}
@keyframes floatAstro {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50% { transform: translateY(-16px) rotate(3deg); }
}

.error-big-text {
    font-size: 8rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    background: linear-gradient(180deg, #fff 30%, rgba(255, 255, 255, 0.1) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
@media (max-width: 600px) {
    .error-big-text { font-size: 5rem; }
}
.error-big-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 180px;
    background: var(--accent-red);
    filter: blur(90px);
    opacity: 0.3;
    z-index: -1;
    pointer-events: none;
}

.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
}
.glitch::before {
    color: var(--accent-red);
    z-index: -1;
    animation: glitchA 2.6s infinite linear alternate;
}
.glitch::after {
    color: #00e5ff;
    z-index: -2;
    animation: glitchB 3.1s infinite linear alternate;
}
@keyframes glitchA {
    0%, 90%, 100% { transform: translate(0,0); opacity: 0; }
    92% { transform: translate(-3px,2px); opacity: 0.7; }
    96% { transform: translate(3px,-2px); opacity: 0.7; }
}
@keyframes glitchB {
    0%, 90%, 100% { transform: translate(0,0); opacity: 0; }
    93% { transform: translate(3px,1px); opacity: 0.6; }
    97% { transform: translate(-3px,-1px); opacity: 0.6; }
}

/* ===== CTA ===== */
.cta-group {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    justify-content: center;
    flex-wrap: wrap;
}
.cta {
    padding: 14px 32px;
    border-radius: 40px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}
.cta-primary {
    background: linear-gradient(135deg, var(--color-discord), var(--color-discord-hover));
    color: #fff;
    box-shadow: 0 4px 20px rgba(88, 101, 242, 0.3);
}
.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(88, 101, 242, 0.5);
}
.cta-ghost {
    color: var(--color-text-main);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.cta-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}
.cta-arrow {
    transition: transform 0.25s ease;
}
.cta-primary:hover .cta-arrow {
    transform: translateX(5px);
}

/* ===== Дополнительные классы для убранных инлайн-стилей ===== */

/* Баннер профиля */
.profile-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 160px;
    background-size: cover;
    background-position: center;
    z-index: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Отступ для профиля при наличии баннера */
.profile-card.has-banner {
    padding-top: 130px;
}

/* Сдвиг контента поверх баннера */
.profile-top-overlay {
    position: relative;
    z-index: 2;
}

.profile-top-overlay.margin-negative {
    margin-top: -40px;
}

/* Для баннера в мобильной версии */
@media (max-width: 520px) {
    .profile-card.has-banner {
        padding-top: 110px;
    }
    .profile-top-overlay.margin-negative {
        margin-top: -30px;
    }
}

/* ===== 404 Page Styles ===== */
.page-404 .error-container {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
}

.page-404 .error-code {
    font-size: clamp(6rem, 15vw, 12rem);
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, #ff4757 0%, #ff6b81 50%, #ffa502 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
}

.page-404 .error-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
    font-weight: 600;
    margin-bottom: 16px;
    color: #fff;
}

.page-404 .error-message {
    font-size: 1rem;
    color: #9ca3af;
    margin-bottom: 32px;
    max-width: 400px;
    line-height: 1.6;
}

.page-404 .error-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.page-404 .error-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-404 .error-btn-primary {
    background: linear-gradient(135deg, #ff4757, #ff6b81);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
}

.page-404 .error-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 71, 87, 0.4);
}

.page-404 .error-btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #f3f4f6;
}

.page-404 .error-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.page-404 .error-astronaut {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: floatAstro 4s ease-in-out infinite;
    display: inline-block;
}

@keyframes floatAstro {
    0%, 100% { transform: translateY(0px) rotate(-5deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}

@media (max-width: 600px) {
    .page-404 .error-actions {
        flex-direction: column;
        align-items: center;
    }
    .page-404 .error-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Специфичные стили для 404 страницы */
.page-404 .logo-mark {
    background: linear-gradient(135deg, #ff4757, #ff6b81);
}

/* ===== Адаптация для 4 карточек статистики ===== */
.stats-cards {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.stat-card-mini {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    border-radius: 20px;
    min-width: 140px;
    transition: all 0.3s ease;
}

.stat-card-mini:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.15);
}

.stat-icon {
    font-size: 1.8rem;
    color: var(--color-discord);
}

.stat-number {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.2;
}

@media (max-width: 680px) {
    .stats-cards {
        gap: 12px;
    }
    .stat-card-mini {
        padding: 10px 16px;
        min-width: 120px;
    }
    .stat-icon {
        font-size: 1.4rem;
    }
    .stat-number {
        font-size: 1.3rem;
    }
    .stat-label {
        font-size: 0.7rem;
    }
}

@media (max-width: 520px) {
    .stats-cards {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .stat-card-mini {
        justify-content: center;
    }
}

/* ===== Мигающий онлайн-индикатор ===== */
.online-indicator {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.online-indicator i {
    font-size: 1.8rem;
    color: #23a55a;
}

.online-indicator::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #23a55a;
    opacity: 0;
    animation: pulse-green 2s ease-in-out infinite;
}

@keyframes pulse-green {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.4);
        opacity: 0;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* Альтернативный вариант — просто пульсирующая иконка */
.pulse-icon {
    animation: pulse-icon 1.5s ease-in-out infinite;
}

@keyframes pulse-icon {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

/* Для карточки статистики — добавляем мягкое свечение */
.stat-card-mini:hover .online-indicator i {
    text-shadow: 0 0 8px #23a55a;
    animation: pulse-icon 1s ease-in-out infinite;
}

/* Основной контейнер */
.staff-section {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    max-width: 850px;
    margin: 30px auto;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    color: #e3e5e8;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* Заголовок */
.staff-header {
    margin-bottom: 35px;
    position: relative;
}

.staff-header div {
    display: flex;
    align-items: center;
    gap: 12px;
}

.staff-header span {
    font-size: 1.4rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
}

.staff-header p {
    font-size: 0.85rem;
    color: #949ba4;
    margin: 4px 0 0 34px; /* Выравнивание под текст заголовка */
    text-transform: uppercase;
    letter-spacing: 2px;
}

.staff-header i {
    color: #5865F2;
    font-size: 1.3rem;
    filter: drop-shadow(0 0 8px rgba(88, 101, 242, 0.6));
}

/* Контейнер таймлайна и сама вертикальная линия */
.timeline {
    position: relative;
    padding-left: 32px; /* Отступ для линии */
}

/* Отрисовка вертикальной линии */
.timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.15), rgba(255,255,255,0.02));
    border-radius: 2px;
}

/* Элемент списка (обертка) */
.timeline-item {
    position: relative;
    margin-bottom: 24px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* Точки на линии (индикаторы) */
.timeline-item::before {
    content: '';
    position: absolute;
    left: -32px; /* Возвращаем в область линии */
    top: 22px;   /* Центрируем напротив шапки карточки */
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #5865F2; /* Дефолтный цвет, если что-то пойдет не так */
    border: 2px solid #1e1f22; /* Цвет заднего фона вашего сайта, чтобы перекрывать линию */
    box-shadow: 0 0 10px rgba(88, 101, 242, 0.5);
    z-index: 2;
    transition: transform 0.2s ease;
}

/* Карточка роли */
.timeline-card {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.25s ease;
}

.timeline-card:hover {
    background: rgba(0, 0, 0, 0.35);
    border-color: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Шапка роли внутри карточки */
.timeline-role {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.timeline-role i {
    font-size: 1.2rem;
    filter: drop-shadow(0 0 6px currentColor);
}

.role-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

/* Бадж количества участников */
.role-count-badge {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.05);
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #949ba4;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

/* Сетка юзеров */
.timeline-members {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    max-height: none;
}

/* Ссылка на пользователя */
.member-timeline {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.02);
    padding: 12px;
    border-radius: 10px;
    text-decoration: none;
    color: #e3e5e8;
    border: 1px solid rgba(255, 255, 255, 0.02);
    transition: all 0.2s ease;
}

.member-timeline:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Аватарка юзера */
.member-timeline-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    background-color: #2b2d31;
}



/* Пустая вакансия */
.empty-timeline {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
    font-style: italic;
    padding: 4px 0;
}

/* Динамический цвет точки из PHP */
.timeline-item::before {
    background: var(--role-color, #5865F2);
    box-shadow: 0 0 10px var(--role-color, rgba(88, 101, 242, 0.5));
}

/* ===== Дополнительные улучшения для таймлайна ===== */

/* Анимация появления элементов при загрузке */
.timeline-item {
    opacity: 0;
    animation: fadeInUp 0.4s ease forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.05s; }
.timeline-item:nth-child(2) { animation-delay: 0.1s; }
.timeline-item:nth-child(3) { animation-delay: 0.15s; }
.timeline-item:nth-child(4) { animation-delay: 0.2s; }

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

/* Эффект свечения для точки при наведении на карточку */
.timeline-item:hover::before {
    transform: scale(1.3);
    box-shadow: 0 0 18px var(--role-color, #5865F2);
}

/* Иконка роли — мягкое свечение */
.timeline-role i {
    transition: text-shadow 0.2s ease;
}

.timeline-card:hover .timeline-role i {
    text-shadow: 0 0 8px currentColor;
}

/* Счётчик участников при наведении */
.role-count-badge {
    transition: all 0.2s ease;
}

.timeline-card:hover .role-count-badge {
    background: rgba(88, 101, 242, 0.2);
    color: #fff;
}

/* Адаптив для сетки участников */
@media (max-width: 500px) {
    .timeline-members {
        grid-template-columns: 1fr;
    }
    
    .staff-section {
        padding: 20px;
        margin: 20px;
    }
    
    .timeline {
        padding-left: 24px;
    }
    
    .timeline-item::before {
        left: -26px;
        width: 8px;
        height: 8px;
    }
}

/* Стиль для скроллбара (если много участников) */
.timeline-members {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    max-height: none;
}

.timeline-members::-webkit-scrollbar {
    width: 5px;
}

.timeline-members::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
}

.timeline-members::-webkit-scrollbar-thumb {
    background: rgba(88, 101, 242, 0.4);
    border-radius: 4px;
}

.timeline-members::-webkit-scrollbar-thumb:hover {
    background: rgba(88, 101, 242, 0.7);
}

/* --- ОБНОВЛЕННЫЙ ТАЙМЛАЙН С ЦИТАТАМИ --- */

.staff-section {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    max-width: 900px; /* Немного расширил для удобства чтения цитат */
    margin: 30px auto;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    color: #e3e5e8;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.staff-header {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 35px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.03);
    color: #fff;
}

.staff-header i {
    color: #5865F2;
    filter: drop-shadow(0 0 8px rgba(88, 101, 242, 0.6));
}

.timeline {
    position: relative;
    padding-left: 32px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 12px;
    bottom: 12px;
    width: 2px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.02));
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 28px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* Динамическая точка таймлайна, берущая цвет из HTML */
.timeline-item::before {
    content: '';
    position: absolute;
    left: -32px;
    top: 22px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--role-color, #5865F2);
    border: 2px solid #111214; /* Подгони под фоновый цвет твоего сайта */
    box-shadow: 0 0 10px var(--role-color, rgba(88, 101, 242, 0.5));
    z-index: 2;
    transition: transform 0.2s ease;
}

.timeline-item:hover::before {
    transform: scale(1.3);
}

.timeline-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.25s ease;
}

.timeline-card:hover {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.06);
    transform: translateX(4px);
}

.timeline-role {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.timeline-role i {
    font-size: 1.2rem;
    filter: drop-shadow(0 0 6px currentColor);
}

.role-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

.role-count-badge {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.05);
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #949ba4;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

/* Адаптивная сетка для карточек пользователей */
.timeline-members {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    max-height: none;
}


.member-timeline-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    background-color: #2b2d31;
    flex-shrink: 0; /* Чтобы аватарка не сжималась при длинном тексте */
}


/* Стилизация цитаты под ником */
.member-quote {
    font-size: 0.7rem;
    color: #7c818a;
    font-style: italic;
    line-height: 1.3;
    white-space: normal;
    word-break: break-word;
    display: block;
    margin-top: 2px;
}

.member-timeline:hover .member-quote {
    color: #dbdee1; /* Подсветка цитаты при наведении */
}

.empty-timeline {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
    font-style: italic;
    padding: 6px 4px;
}

/* Контейнер для кнопок действий */
.profile-actions {
    display: flex;
    justify-content: flex-end; /* Сдвигает кнопку вправо. Если нужно по центру — замени на center */
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Кнопка редактирования цитаты (переопределение/дополнение к .nav-btn) */
.profile-actions .nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(88, 101, 242, 0.1); /* Прозрачный фирменный цвет Discord */
    color: #5865F2;
    border: 1px solid rgba(88, 101, 242, 0.2);
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.profile-actions .nav-btn i {
    font-size: 0.85rem;
    transition: transform 0.25s ease;
}

/* Эффекты при наведении */
.profile-actions .nav-btn:hover {
    background: #5865F2; /* Кнопка полностью заливается цветом */
    color: #fff;
    border-color: #5865F2;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
    transform: translateY(-1px);
}

.profile-actions .nav-btn:hover i {
    transform: scale(1.1) rotate(-10deg); /* Иконка кавычки слегка подергивается */
}

.profile-actions .nav-btn:active {
    transform: translateY(1px);
}

/* ===== Цитата участника в таймлайне ===== */
.member-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.member-timeline-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


.member-quote::before {
    content: '“';
    opacity: 0.5;
}

.member-quote::after {
    content: '”';
    opacity: 0.5;
}

.member-timeline:hover .member-quote {
    color: #b5bac1;
}

/* ==========================================================================
   ФИКСЫ ДЛЯ СТРАНИЦЫ РЕДАКТИРОВАНИЯ ЦИТАТЫ (EDIT_QUOTE.PHP)
   ========================================================================== */

/* Исправление обертки инпута */
.quote-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    margin-top: 10px;
}

/* Сам инпут — выравниваем высоту, внутренние отступы и центрируем текст */
.quote-input-wrapper .quote-input {
    width: 100%;
    height: 54px; /* Фиксированная высота */
    background: rgba(0, 0, 0, 0.25) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px !important;
    padding: 0 45px !important; /* Отступы слева и справа, чтобы текст не заходил на кавычки */
    color: #fff !important;
    font-size: 0.95rem !important;
    font-family: var(--font-primary) !important;
    line-height: 52px; /* Выравнивание текста строго по вертикали */
    box-sizing: border-box;
    transition: all 0.25s ease;
}

/* Идеальное позиционирование кавычек строго по центру инпута */
.quote-input-wrapper .quote-icon-left,
.quote-input-wrapper .quote-icon-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%); /* Центрирование по вертикали */
    color: rgba(255, 255, 255, 0.2) !important;
    font-size: 0.9rem !important;
    pointer-events: none;
    z-index: 2;
}

.quote-input-wrapper .quote-icon-left {
    left: 18px;
}

.quote-input-wrapper .quote-icon-right {
    right: 18px;
}

/* Счетчик символов — делаем аккуратный отступ */
.quote-char-counter {
    text-align: right;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 4px;
    font-weight: 500;
}

/* Кнопка "Сохранить цитату" — убираем гигантизм, делаем как на основном сайте */
.quote-form .cta-primary {
    width: 100%;
    height: 48px;
    background: var(--accent-glow) !important;
    border: none !important;
    border-radius: 10px !important;
    color: #fff !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    font-family: var(--font-primary) !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.2);
}

.quote-form .cta-primary:hover {
    background: var(--accent-glow-hover) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.3);
}

.quote-form .cta-primary i {
    font-size: 0.9rem;
}

/* Кнопка "Назад в профиль" в шапке — возвращаем ей правильный размер */
.header-inner .nav-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03) !important;
    color: var(--color-text-main) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding: 8px 16px !important;
    border-radius: 8px !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    height: auto !important;
    width: auto !important; /* Отменяет растягивание на всю ширину */
    text-decoration: none;
    transition: all 0.2s;
}

.header-inner .nav-btn:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}

/* Блок предпросмотра */
.quote-preview {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.preview-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-text-muted);
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.preview-quote {
    background: rgba(0, 0, 0, 0.15);
    border: 1px dashed rgba(255, 255, 255, 0.08);
    padding: 14px 18px;
    border-radius: 8px;
    color: var(--color-text-muted);
    font-style: italic;
    font-size: 0.85rem;
    word-break: break-word;
}

/* ==========================================================================
   БАННЕР-НОВОСТЬ: МАЙНКРАФТ СЕРВЕР
   ========================================================================== */

.minecraft-announcement {
    width: 100%;
    padding: 24px 32px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.15), rgba(0, 229, 255, 0.08));
    border: 1px solid rgba(88, 101, 242, 0.2);
    box-shadow: 0 8px 32px rgba(88, 101, 242, 0.1);
    margin-bottom: 40px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Анимированный фон баннера */
.minecraft-announcement::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(88, 101, 242, 0.05) 0%, transparent 60%),
        radial-gradient(circle at 70% 50%, rgba(0, 229, 255, 0.05) 0%, transparent 60%);
    animation: announcementGlow 8s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes announcementGlow {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(10%, 5%) scale(1.1);
    }
}

.minecraft-announcement:hover {
    transform: translateY(-3px);
    border-color: rgba(88, 101, 242, 0.4);
    box-shadow: 0 12px 40px rgba(88, 101, 242, 0.2);
}

.announcement-content {
    display: flex;
    align-items: center;
    gap: 24px;
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
}

.announcement-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.announcement-icon i {
    font-size: 2.8rem;
    color: #5865F2;
    animation: cubeFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(88, 101, 242, 0.3));
}

@keyframes cubeFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-8px) rotate(12deg);
    }
}

.announcement-badge {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 3px 10px;
    border-radius: 20px;
    background: linear-gradient(135deg, #ff4757, #ff6b81);
    color: #fff;
    animation: pulseBadge 2s ease-in-out infinite;
}

@keyframes pulseBadge {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.announcement-text {
    flex: 1;
    min-width: 200px;
}

.announcement-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px 0;
    background: linear-gradient(135deg, #fff 60%, #5865F2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.announcement-desc {
    font-size: 0.92rem;
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.5;
}

.announcement-ip {
    color: #5865F2;
    background: rgba(88, 101, 242, 0.15);
    padding: 2px 12px;
    border-radius: 6px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: 1px solid rgba(88, 101, 242, 0.2);
}

.announcement-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 40px;
    background: linear-gradient(135deg, #5865F2, #a370f7);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(88, 101, 242, 0.3);
    flex-shrink: 0;
    white-space: nowrap;
}

.announcement-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(88, 101, 242, 0.5);
    background: linear-gradient(135deg, #4752C4, #8a5fe0);
}

.announcement-btn i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.announcement-btn:hover i {
    transform: translateX(3px) rotate(-10deg);
}

/* Адаптив для баннера */
@media (max-width: 768px) {
    .minecraft-announcement {
        padding: 18px 20px;
        border-radius: 18px;
    }

    .announcement-content {
        gap: 16px;
        flex-direction: column;
        align-items: flex-start;
    }

    .announcement-icon {
        flex-direction: row;
        gap: 12px;
        width: 100%;
    }

    .announcement-icon i {
        font-size: 2rem;
    }

    .announcement-title {
        font-size: 1.1rem;
    }

    .announcement-btn {
        width: 100%;
        justify-content: center;
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .minecraft-announcement {
        padding: 14px 16px;
        border-radius: 14px;
    }

    .announcement-title {
        font-size: 0.95rem;
    }

    .announcement-desc {
        font-size: 0.8rem;
    }

    .announcement-btn {
        font-size: 0.8rem;
        padding: 8px 16px;
    }
}