/* ============ 1. СБРОС СТИЛЕЙ И ГЛОБАЛЬНЫЕ НАСТРОЙКИ ============ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0f0c29;
    --bg-secondary: #0b091a;
    --bg-dark-panel: #110f24;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.65);
    --card-bg: rgba(255, 255, 255, 0.04);
    --border-color: rgba(255, 255, 255, 0.08);
    --discord-blurple: #5865F2;
    --discord-dark: #313338;
    --discord-channel: #2b2d31;
    --gold-glow: 0 0 20px rgba(255, 215, 0, 0.6);
    --neon-blue: #00f2fe;
    --neon-purple: #4facfe;
}

body.light-theme {
    --bg-primary: #eef1f8;
    --bg-secondary: #ffffff;
    --bg-dark-panel: #f5f7fc;
    --text-primary: #12131f;
    --text-secondary: #4a5068;
    --card-bg: rgba(255, 255, 255, 0.92);
    --border-color: rgba(15, 16, 30, 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #0f0c29, #1b183a, #0b091a);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

body.light-theme {
    background: linear-gradient(160deg, #eef1f8 0%, #e0e6f5 50%, #f5f7fc 100%);
}
body.light-theme header { background: rgba(255,255,255,.92); box-shadow: 0 2px 20px rgba(0,0,0,.06); }
body.light-theme .card { box-shadow: 0 4px 24px rgba(0,0,0,.06); }
body.light-theme .banner-blur-overlay { background: linear-gradient(135deg, rgba(255,255,255,.82), rgba(230,235,250,.88)); }
body.light-theme .glow-text { color: #b8860b; text-shadow: none; }

.wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Плавные переходы для смены темы */
body, .wrapper, header, footer, main, .card, .stats-card, .history-card,
.theme-toggle, .tab-btn, .hist-item, .att-hist-item, .boost-btn {
    transition: background-color .4s ease, color .4s ease, border-color .4s ease, box-shadow .4s ease, transform .3s ease;
}

/* ============ 2. ШАПКА САЙТА (HEADER) ============ */
header {
    background: rgba(11, 9, 26, 0.7);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 14px 0;
}
body.light-theme header { background: rgba(255, 255, 255, 0.8); }

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}
.header-left, .header-right {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.theme-toggle {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 8px 16px;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.theme-toggle:hover { background: rgba(255, 255, 255, 0.15); transform: translateY(-1px); }
body.light-theme .theme-toggle { background: rgba(15, 16, 30, 0.05); }

/* Профиль игрока */
.user-profile { display: flex; align-items: center; gap: 12px; }
.user-avatar {
    width: 42px; height: 42px;
    border-radius: 50%;
    border: 2px solid #ffd700;
    box-shadow: var(--gold-glow);
    flex-shrink: 0;
}
.user-meta { display: flex; flex-direction: column; line-height: 1.3; }
.user-name { font-weight: 800; font-size: 14px; color: var(--text-primary); }

.user-status-wrapper { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-secondary); }
.user-status-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; background: #2ecc71; }

/* Виджет статуса Discord Бота */
.bot-status {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(88, 101, 242, 0.08);
    padding: 6px 14px;
    border-radius: 30px;
    border: 1px solid rgba(88, 101, 242, 0.2);
}
.bot-avatar-wrapper { position: relative; width: 36px; height: 36px; }
.bot-avatar { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--discord-blurple); }
.status-dot {
    position: absolute; bottom: -1px; right: -1px;
    width: 11px; height: 11px; border-radius: 50%;
    border: 2px solid var(--bg-dark-panel);
}
.status-dot.online { background: #2ecc71; animation: botPulse 2s infinite; }
.status-dot.offline { background: #e74c3c; }

@keyframes botPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.7; }
}
.bot-info { display: flex; flex-direction: column; line-height: 1.2; }
.bot-name { font-weight: 700; font-size: 12px; }
.bot-status-text { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; }
.bot-status-text.online { color: #2ecc71; }
.bot-status-text.offline { color: #e74c3c; }

/* ============ 3. КРАСИВЫЙ ИГРОВОЙ ЭКРАН ВХОДА (INTRO LANDING) ============ */
.intro-container {
    display: flex; justify-content: center; align-items: center;
    flex: 1; padding: 40px 20px; position: relative; z-index: 1;
}
.server-welcome-card {
    background: rgba(15, 12, 41, 0.65);
    border: 1px solid rgba(255, 215, 0, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 28px; padding: 45px 35px;
    max-width: 520px; width: 100%; text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(255, 215, 0, 0.05);
}
.game-logo-container {
    display: flex; justify-content: center; gap: 15px; margin-bottom: 25px; align-items: center;
}
.rok-badge-logo {
    width: 75px; height: 75px; object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(255, 140, 0, 0.6));
}
.avatar-join-circle {
    width: 70px; height: 70px; border-radius: 50%;
    border: 3px solid var(--discord-blurple);
    box-shadow: 0 0 20px rgba(88, 101, 242, 0.4);
}
.intro-server-title {
    font-size: 26px; font-weight: 900; margin-bottom: 12px;
    background: linear-gradient(135deg, #ffd700, #ff8c00, #ffffff);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}
.intro-description {
    font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 30px;
}

/* ============ 4. ГЕЙМИФИЦИРОВАННЫЙ СЧЁТЧИК ПОПЫТОК (ИКОНКА RIZAM) ============ */
.attempts-game-pill {
    display: inline-flex; align-items: center;
    background: linear-gradient(135deg, rgba(255,215,0,0.12), rgba(255,140,0,0.05));
    border: 1.5px solid #ffd700; border-radius: 16px;
    padding: 6px 16px 6px 6px; gap: 12px;
    box-shadow: inset 0 0 10px rgba(255,215,0,0.1), var(--gold-glow);
}
.rizam-icon {
    width: 44px; height: 44px; object-fit: contain;
    border-radius: 10px; background: rgba(0,0,0,0.2);
    padding: 2px; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
    animation: itemFloat 4s ease-in-out infinite;
}
@keyframes itemFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-4px) rotate(2deg); }
}
.attempts-text-block { display: flex; flex-direction: column; }
.attempts-count-value { font-size: 22px; font-weight: 900; color: #ffd700; line-height: 1; }
.attempts-label-sub { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-secondary); margin-top: 2px; }

/* ============ 5. ПОТРЯСАЮЩЕЕ СВЕТЯЩЕЕСЯ ОКНО ВЫИГРЫША (WIN MODAL) ============ */
.win-modal-overlay {
    position: fixed; inset: 0; background: rgba(5, 4, 15, 0.85);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    display: flex; justify-content: center; align-items: center;
    z-index: 1000; opacity: 0; pointer-events: none; transition: opacity 0.4s ease;
}
.win-modal-overlay.active { opacity: 1; pointer-events: auto; }

.win-modal-card {
    background: linear-gradient(145deg, #110e2e, #070514);
    border: 2px solid #ffd700; border-radius: 32px;
    width: 90%; max-width: 500px; padding: 40px 30px;
    text-align: center; position: relative;
    box-shadow: 0 0 60px rgba(255, 215, 0, 0.25), inset 0 0 30px rgba(255,215,0,0.05);
    transform: scale(0.7); transition: transform 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.win-modal-overlay.active .win-modal-card { transform: scale(1); }

/* Свечение и неон */
.glowing-neon-text {
    font-size: 28px; font-weight: 900; text-transform: uppercase;
    color: #fff; text-shadow: 0 0 10px #ffd700, 0 0 20px #ff8c00, 0 0 40px #ff4500;
    margin-bottom: 15px; letter-spacing: 1px;
}
.win-server-header {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin-bottom: 25px; background: rgba(255,255,255,0.03);
    padding: 6px 14px; border-radius: 50px; border: 1px solid var(--border-color);
}
.win-server-avatar { width: 24px; height: 24px; border-radius: 50%; }
.win-server-name { font-size: 12px; font-weight: 700; color: var(--text-secondary); }

.win-prize-box {
    background: rgba(255, 255, 255, 0.03); border: 1px dashed rgba(255,215,0,0.4);
    border-radius: 20px; padding: 25px; margin-bottom: 25px; position: relative;
}
.win-prize-icon {
    width: 85px; height: 85px; object-fit: contain; margin-bottom: 12px;
    filter: drop-shadow(0 0 15px rgba(255,215,0,0.5));
}
.win-prize-name { font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 4px; }
.win-group-badge {
    display: inline-block; font-size: 11px; font-weight: 800;
    padding: 4px 14px; border-radius: 30px; text-transform: uppercase;
}

.win-custom-desc { font-size: 14px; color: var(--text-secondary); margin-bottom: 20px; line-height: 1.5; }
.win-real-notice { font-size: 12px; color: #ff8c00; font-weight: 600; margin-bottom: 20px; background: rgba(255,140,0,0.08); padding: 8px; border-radius: 10px; }

/* Анимация отправки / Кнопка забрать призы */
.claim-btn-wrapper { position: relative; width: 100%; }
.claim-loading-overlay {
    display: none; align-items: center; justify-content: center; gap: 10px;
    font-size: 14px; font-weight: 700; color: #2ecc71;
    background: rgba(11, 9, 26, 0.95); border-radius: 50px;
    position: absolute; inset: 0; border: 1px solid #2ecc71;
}
.spinner-glowing {
    width: 18px; height: 18px; border: 2.5px solid rgba(46,204,113,0.2);
    border-top-color: #2ecc71; border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ 6. ИНТЕРФЕЙС МЕРОПРИЯТИЙ В СТИЛЕ DISCORD ============ */
.discord-layout {
    background: var(--discord-dark); border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.2); display: flex;
    min-height: 400px; overflow: hidden; margin-top: 15px;
}
.discord-sidebar {
    width: 220px; background: var(--discord-channel);
    border-right: 1px solid rgba(0,0,0,0.15); padding: 15px 10px;
    display: flex; flex-direction: column; gap: 4px;
}
.discord-sidebar-title {
    font-size: 11px; font-weight: 800; color: #949ba4;
    text-transform: uppercase; letter-spacing: 0.5px; padding-left: 8px; margin-bottom: 8px;
}
.discord-chan-link {
    display: flex; align-items: center; gap: 6px; padding: 8px;
    border-radius: 4px; color: #949ba4; text-decoration: none;
    font-weight: 600; font-size: 13.5px; cursor: pointer;
}
.discord-chan-link.active, .discord-chan-link:hover { background: rgba(78,80,88,0.3); color: #fff; }
.discord-hash { font-size: 16px; color: #80848e; font-weight: 400; }

.discord-main-view { flex: 1; padding: 25px; display: flex; flex-direction: column; background: var(--discord-dark); }
.discord-msg-header {
    border-bottom: 1px solid rgba(78,80,88,0.4); padding-bottom: 12px; margin-bottom: 20px;
    display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700;
}
.discord-embed {
    background: #1e1f22; border-left: 4px solid var(--discord-blurple);
    border-radius: 4px; padding: 16px; max-width: 520px;
}
.discord-embed-title { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.discord-embed-desc { font-size: 13.5px; color: #dbdee1; line-height: 1.5; margin-bottom: 15px; }

.discord-fields-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 15px; }
.discord-field-item { display: flex; flex-direction: column; gap: 2px; }
.discord-field-label { font-size: 11px; font-weight: 700; color: #b5bac1; text-transform: uppercase; }
.discord-field-value { font-size: 13px; color: #dbdee1; font-weight: 600; }

/* Анимированная кнопка Участвуешь */
.discord-join-btn {
    background: #248046; color: #fff; border: none; padding: 8px 16px;
    font-size: 13.5px; font-weight: 600; border-radius: 3px; cursor: pointer;
    transition: background 0.2s; display: inline-flex; align-items: center; gap: 6px;
}
.discord-join-btn:hover { background: #1a6535; }
.discord-join-btn.joined {
    background: rgba(78,80,88,0.6); color: #2ecc71; cursor: not-allowed;
    animation: pulseBorder 2s infinite; border: 1px solid rgba(46,204,113,0.3);
}
@keyframes pulseBorder {
    0%, 100% { box-shadow: 0 0 0 0 rgba(46,204,113,0.4); }
    50% { box-shadow: 0 0 10px 2px rgba(46,204,113,0.1); }
}

/* ============ 7. ВКЛАДКА: КАК ПОЛУЧИТЬ БУСТЫ (МАКСИМУМ ИНФОРМАЦИИ) ============ */
.boost-guide-section { padding: 10px 0; }
.boost-info-banner {
    background: linear-gradient(135deg, rgba(255, 115, 250, 0.15), rgba(194, 59, 219, 0.05));
    border: 1px solid rgba(255, 115, 250, 0.3); border-radius: 20px;
    padding: 25px; margin-bottom: 25px; text-align: center;
}
.boost-banner-title { font-size: 20px; font-weight: 800; color: #ff73fa; margin-bottom: 6px; }
.boost-guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.boost-tier-card {
    background: rgba(255, 255, 255, 0.02); border: 1px solid var(--border-color);
    border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 12px;
}
.boost-tier-card:hover { border-color: rgba(255, 115, 250, 0.4); transform: translateY(-2px); }
.boost-tier-badge {
    align-self: flex-start; font-size: 11px; font-weight: 800; color: #fff;
    padding: 4px 10px; border-radius: 30px; background: #c23bdb; text-transform: uppercase;
}
.boost-tier-title { font-size: 16px; font-weight: 700; }
.boost-tier-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.boost-reward-highlight {
    margin-top: auto; font-size: 13px; font-weight: 700; color: #ffd700;
    background: rgba(255,215,0,0.06); padding: 8px 12px; border-radius: 8px;
    border-left: 3px solid #ffd700;
}

/* ============ 8. СТРУКТУРНЫЕ КАРТОЧКИ И ТАБЛИЦЫ (ЛИДЕРБОРД / АЧИВКИ) ============ */
.grid-main {
    display: grid; grid-template-columns: 1fr 340px; gap: 24px; margin-bottom: 30px;
}
@media (max-width: 992px) { .grid-main { grid-template-columns: 1fr; } }

.card {
    background: var(--card-bg); border: 1px solid var(--border-color);
    border-radius: 20px; padding: 22px; width: 100%;
}
.card-title {
    font-size: 16px; font-weight: 800; margin-bottom: 18px;
    display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

/* Личный Прогресс / Статистика в Твоих попытках */
.stats-mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 15px; }
.stats-mini-box {
    background: rgba(255,255,255,0.02); border: 1px solid var(--border-color);
    padding: 10px; border-radius: 12px; display: flex; flex-direction: column; gap: 2px;
}
.stats-mini-label { font-size: 10px; color: var(--text-secondary); text-transform: uppercase; font-weight: 600; }
.stats-mini-val { font-size: 14px; font-weight: 700; color: #fff; }

/* Ачивки (Достижения) */
.achievements-grid { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.ach-card {
    display: flex; align-items: center; gap: 12px; padding: 12px;
    background: rgba(255,255,255,0.01); border: 1px solid var(--border-color);
    border-radius: 12px; opacity: 0.55; filter: grayscale(40%);
}
.ach-card.unlocked { opacity: 1; filter: none; border-color: rgba(46,204,113,0.3); background: rgba(46,204,113,0.02); }
.ach-icon-slot { font-size: 24px; flex-shrink: 0; }
.ach-info { display: flex; flex-direction: column; gap: 2px; }
.ach-name { font-size: 13px; font-weight: 700; color: var(--text-primary); }
.ach-desc { font-size: 11px; color: var(--text-secondary); }

/* Таблица лидеров */
.leaderboard-table { width: 100%; border-collapse: collapse; margin-top: 5px; }
.leaderboard-table th {
    text-align: left; font-size: 11px; color: var(--text-secondary);
    text-transform: uppercase; padding: 8px 6px; border-bottom: 1px solid var(--border-color);
}
.leaderboard-table td { padding: 10px 6px; border-bottom: 1px solid rgba(255,255,255,0.03); font-size: 13px; }
.leaderboard-row:last-child td { border: none; }
.lb-user-cell { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.lb-avatar { width: 26px; height: 26px; border-radius: 50%; }
.lb-rank { font-weight: 800; color: #ffd700; width: 18px; }

/* Магазин Скинов */
.skins-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; margin-top: 12px; }
.skin-item-card {
    background: rgba(255,255,255,0.02); border: 1px solid var(--border-color);
    border-radius: 14px; padding: 12px; text-align: center; cursor: pointer;
}
.skin-item-card.active { border-color: #ffd700; background: rgba(255,215,0,0.04); }
.skin-preview-circle {
    width: 50px; height: 50px; border-radius: 50%; margin: 0 auto 8px;
    background: conic-gradient(from 0deg, #ffd700, #ff8c00, #ffd700);
}
.skin-name-text { font-size: 12px; font-weight: 700; margin-bottom: 6px; }

/* ПОДВАЛ (FOOTER) */
footer {
    margin-top: auto; padding: 20px 0; text-align: center;
    font-size: 13px; color: var(--text-secondary); border-top: 1px solid var(--border-color);
    background: rgba(0,0,0,0.1);
}

/* ============ 9. КНОПКИ И СТАНДАРТНЫЕ ЭЛЕМЕНТЫ ============ */
.btn {
    display: inline-block; padding: 10px 24px; border: none;
    border-radius: 30px; font-weight: 700; font-size: 13.5px;
    cursor: pointer; text-decoration: none; text-align: center;
}
.btn-primary { background: linear-gradient(135deg, #5865F2, #4752c4); color: #fff; transition: transform .2s, box-shadow .2s; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(88,101,242,0.35); }
.btn-success { background: #2ecc71; color: #fff; transition: transform .2s, background .2s; }
.btn-success:hover { background: #27ae60; transform: translateY(-1px); }
.btn-secondary { background: rgba(255,255,255,0.06); color: #fff; border: 1px solid var(--border-color); transition: transform .2s, background .2s; }
.btn-secondary:hover { background: rgba(255,255,255,0.12); transform: translateY(-1px); }
.btn-spin { transition: transform .2s, box-shadow .2s, filter .2s; }
.btn-spin:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(255,215,0,.45); }

/* Кнопка Забустить */
.boost-row { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.boost-btn {
    display: inline-flex; align-items: center; gap: 10px;
    background: linear-gradient(135deg, #ff73fa, #c23bdb);
    color: #fff; padding: 12px 22px 12px 10px; border-radius: 50px;
    font-weight: 800; font-size: 13.5px; text-decoration: none;
    box-shadow: 0 6px 24px rgba(194,59,219,0.3);
}
.boost-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(194,59,219,0.5); }
.boost-icon { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,0.5); }

/* Панель уведомлений слева снизу */
.status-pin { position: fixed; left: 16px; bottom: 16px; z-index: 60; pointer-events: none; user-select: none; }
.status-pin .pin-pill {
    padding: 8px 14px; border-radius: 50px; font-size: 11px; font-weight: 700;
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(11, 9, 26, 0.88); backdrop-filter: blur(8px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.25); cursor: default;
}
@keyframes pinFadeIn { from { opacity: 0; transform: translateX(-15px); } to { opacity: 1; transform: translateX(0); } }
.pin-pill.ok { border: 1px solid #2ecc71; color: #2ecc71; }
.pin-pill.warn { border: 1px solid #e74c3c; color: #e74c3c; }
.pin-pill.gold { border: 1px solid #ffd700; color: #ffd700; }

/* Вкладки на главной */
.tabs { display: flex; gap: 6px; margin-bottom: 15px; background: rgba(0,0,0,0.15); padding: 4px; border-radius: 12px; }
.tab-btn {
    flex: 1; background: transparent; border: none; color: var(--text-secondary);
    padding: 8px 12px; border-radius: 8px; font-size: 12px; font-weight: 700; cursor: pointer;
    transition: background .25s, color .25s, transform .15s;
}
.tab-btn:hover { color: var(--text-primary); background: rgba(255,255,255,.04); transform: translateY(-1px); }
.tab-btn.active { background: var(--card-bg); color: var(--text-primary); box-shadow: 0 2px 8px rgba(0,0,0,0.15); }

.history-list { max-height: 290px; overflow-y: auto; padding-right: 2px; }
.history-list::-webkit-scrollbar { width: 4px; }
.history-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

.hist-item { display: flex; align-items: center; gap: 10px; padding: 10px 4px; border-bottom: 1px solid var(--border-color); font-size: 13px; }
.sidebar-panel-card .hist-item {
    margin: 4px 0;
    padding: 10px 8px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.05);
    background: rgba(255,255,255,.02);
}
.sidebar-panel-card .hist-item:hover {
    background: rgba(88,101,242,.12);
    border-color: rgba(88,101,242,.35);
    transform: translateY(-1px);
}
.hist-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.hist-name { flex: 1; font-weight: 600; }
.hist-group { font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: 10px; text-transform: uppercase; }
.hist-date { font-size: 11px; color: var(--text-secondary); }

.att-hist-item { display: flex; align-items: center; gap: 10px; padding: 10px 4px; border-bottom: 1px solid var(--border-color); font-size: 13px; }
.attempts-grants-list .attempts-grant-row {
    width: 100%; text-align: left; border: none; background: transparent; color: inherit; cursor: pointer;
    border-radius: 10px; padding: 8px 10px; transition: background .15s;
}
.attempts-grants-list .attempts-grant-row:hover { background: rgba(255,215,0,.08); }
.chat-event-card.ended { border-color: rgba(149,165,166,.4); background: linear-gradient(135deg, rgba(149,165,166,.12), rgba(0,0,0,.2)); opacity: .92; }
.chat-msg-ended .chat-event-badge { color: #95a5a6; }
.att-reason { flex: 1; font-weight: 600; }
.att-amount { font-weight: 900; color: #ffd700; }

.empty-hint { font-size: 13px; text-align: center; padding: 25px; font-style: italic; color: var(--text-secondary); }

/* Оверлей фоновых сфер */
.bg-orbs { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.18; animation: orbFloat 9s ease-in-out infinite; }
.orb-1 { width: 450px; height: 450px; background: #5865F2; top: -120px; left: -120px; }
.orb-2 { width: 380px; height: 380px; background: #ff73fa; bottom: -100px; right: -100px; animation-delay: -3s; }
.orb-3 { width: 320px; height: 320px; background: #ffd700; top: 45%; left: 40%; animation-delay: -6s; }

@keyframes orbFloat {
    0%, 100% { transform: translate(0,0) scale(1); }
    50% { transform: translate(25px, -20px) scale(1.05); }
}

/* ============ 10. МОДАЛЬНОЕ ОКНО ПРЕДЛОЖЕНИЯ ИВЕНТА ПРИ ЗАХОДЕ ============ */
.promo-modal-overlay {
    position: fixed; inset: 0; background: rgba(5, 4, 15, 0.8);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    display: flex; justify-content: center; align-items: center; z-index: 999;
    opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.promo-modal-overlay.active { opacity: 1; pointer-events: auto; }
.promo-modal-card {
    background: #1e1f22; border: 1px solid var(--discord-blurple);
    border-radius: 12px; width: 90%; max-width: 440px; padding: 25px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5); transform: translateY(20px); transition: transform 0.3s ease;
}
.promo-modal-overlay.active .promo-modal-card { transform: translateY(0); }

/* Ссылка на админку */
.admin-link {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.2), rgba(142, 68, 173, 0.1));
    border: 1px solid rgba(155, 89, 182, 0.3); color: #c39af0; padding: 12px;
    border-radius: 14px; font-weight: 700; font-size: 13.5px; text-decoration: none; margin-top: 15px;
}
.admin-link:hover { background: rgba(155, 89, 182, 0.3); transform: translateY(-1px); }

/* ============ 11. ТОСТ-АНИМАЦИЯ ПОЛУЧЕНИЯ ПОПЫТОК (ГЕЙМИФИКАЦИЯ) ============ */
.attempts-grant-toast {
    position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0);
    background: linear-gradient(135deg, #110e2e, #070514); border: 1.5px solid #ffd700;
    border-radius: 24px; padding: 35px; text-align: center; z-index: 1100;
    max-width: 380px; width: 90vw; box-shadow: 0 25px 60px rgba(0,0,0,0.65), var(--gold-glow);
    animation: toastIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.15) forwards;
}
@keyframes toastIn { to { transform: translate(-50%, -50%) scale(1); } }
.toast-icon-wrap { position: relative; width: 80px; height: 80px; margin: 0 auto 15px; }
.toast-attempts-img { width: 80px; height: 80px; object-fit: contain; position: relative; z-index: 2; }
.toast-ring { position: absolute; border-radius: 50%; border: 2px solid transparent; animation: spin 1.2s linear infinite; }
.toast-ring-1 { inset: -8px; border-top-color: #ffd700; }
.toast-ring-2 { inset: -15px; border-top-color: rgba(255,215,0,0.3); animation-direction: reverse; animation-duration: 1.8s; }

.toast-title { font-size: 18px; font-weight: 900; color: #fff; margin-bottom: 5px; }
.toast-amount { font-size: 46px; font-weight: 900; color: #ffd700; text-shadow: var(--gold-glow); line-height: 1; }
.toast-amount-label { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }
.toast-reason { font-size: 13px; color: rgba(255,255,255,0.5); margin-top: 12px; font-style: italic; }

/* ============ 12. ДИСПЛЕЙ ОШИБКИ / КРАСИВЫЙ БОТ ОФЛАЙН ЭКРАН ============ */
.error-offline-screen {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    flex: 1; padding: 40px 20px; text-align: center;
}
.error-animated-card {
    background: rgba(231, 76, 60, 0.04); border: 1px solid rgba(231, 76, 60, 0.25);
    border-radius: 24px; padding: 40px; max-width: 460px; width: 100%;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4), 0 0 30px rgba(231, 76, 60, 0.05);
}
.offline-bot-pulse {
    width: 80px; height: 80px; border-radius: 50%; background: rgba(231, 76, 60, 0.1);
    border: 2px solid #e74c3c; display: flex; align-items: center; justify-content: center;
    font-size: 36px; margin: 0 auto 20px; animation: errorShake 3s ease-in-out infinite;
}
@keyframes errorShake {
    0%, 100% { transform: scale(1) rotate(0deg); }
    10%, 20% { transform: scale(0.95) rotate(-3deg); }
    30%, 50%, 70% { transform: scale(1.05) rotate(3deg); }
    40%, 60%, 80% { transform: scale(1) rotate(-3deg); }
    90% { transform: scale(1.02) rotate(1deg); }
}

/* ============ 13. АДАПТИВНОСТЬ ДЛЯ ТЕЛЕФОНОВ И ПЛАНШЕТОВ ============ */
@media (max-width: 768px) {
    .header-content { justify-content: center; flex-direction: column; text-align: center; padding: 8px 0; }
    .header-left, .header-right { justify-content: center; width: 100%; gap: 12px; }
    .discord-layout { flex-direction: column; }
    .discord-sidebar { width: 100%; border-right: none; border-bottom: 1px solid rgba(0,0,0,0.15); max-height: 160px; overflow-y: auto; }
    .discord-fields-grid { grid-template-columns: 1fr; gap: 8px; }
    .status-pin { left: 10px; bottom: 10px; max-width: 210px; }
    .status-pin .pin-pill { font-size: 11px; padding: 8px 12px; }
    .server-welcome-card { padding: 30px 20px; }
    .intro-server-title { font-size: 22px; }
}

.no-copy-ui, .no-copy-ui .btn, .no-copy-ui .tab-btn, .no-copy-ui .card,
.no-copy-ui header, .no-copy-ui footer, .no-copy-ui .dc-action-btn,
.no-copy-ui .boost-toggle-btn { user-select: none; -webkit-user-select: none; }
.no-copy-ui input, .no-copy-ui textarea { user-select: text; -webkit-user-select: text; }

.attempts-inline-icon { width: 18px; height: 18px; vertical-align: -4px; margin-right: 4px; object-fit: contain; }
.attempts-pulse { animation: attemptsPulse .5s ease; color: #ffd700 !important; }
@keyframes attemptsPulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.25)} }

.fantasy-header-bg {
    position: fixed; top: 0; left: 0; right: 0; height: 280px; z-index: 0; pointer-events: none;
    background: radial-gradient(ellipse 80% 100% at 50% -20%, rgba(88,101,242,.25) 0%, transparent 70%),
        radial-gradient(ellipse 40% 60% at 20% 0%, rgba(255,115,250,.12) 0%, transparent 60%);
    animation: fantasyShift 12s ease-in-out infinite alternate;
}
@keyframes fantasyShift { from { opacity: .85; } to { opacity: 1; filter: hue-rotate(12deg); } }
.live-bg-canvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .55; }
.wrapper { position: relative; z-index: 1; }

.top-banner-wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.top-fantasy-banner {
    position: relative; overflow: hidden; height: 88px; border-radius: 0 0 22px 22px;
    border: 1px solid rgba(255,215,0,.25); border-top: none;
    box-shadow: 0 10px 40px rgba(0,0,0,.4);
}
.banner-gif-layer {
    position: absolute; inset: 0; background-image: var(--banner-img);
    background-size: cover; background-position: center center;
    filter: blur(1px) saturate(1.5) brightness(0.95);
    transform: scale(1.03);
    opacity: 0.92;
}
.banner-blur-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(15,12,41,.18) 0%, rgba(15,12,41,.42) 100%);
}
.glass-banner-row {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(18px) saturate(1.4);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    border-radius: 0 0 20px 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-top: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.glass-chip {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 6px 14px;
}
.top-fantasy-banner { height: 100px; border: none; box-shadow: none; background: transparent; }
.top-banner-wrap { padding-top: 0; }

.notify-wrap { position: relative; flex-shrink: 0; z-index: 15; }
.banner-top-row > * { position: relative; z-index: 5; }
.notify-bell {
    flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
    border: 1px solid rgba(255,215,0,.35); background: rgba(255,215,0,.1);
    font-size: 18px; cursor: pointer; transition: transform .2s, box-shadow .2s;
    position: relative; z-index: 10;
}
.notify-bell:hover { transform: scale(1.08); box-shadow: 0 0 16px rgba(255,215,0,.35); }
.notify-bell.active { background: rgba(88,101,242,.22); border-color: rgba(88,101,242,.45); box-shadow: 0 0 18px rgba(88,101,242,.35); }
.notify-bell.notify-muted { background: rgba(231,76,60,.12); border-color: rgba(231,76,60,.35); opacity: .9; }
.notify-dropdown {
    position: absolute; top: calc(100% + 8px); left: 0; width: min(340px, 92vw);
    background: rgba(15, 12, 41, 0.95); border: 1px solid rgba(255,215,0,.25);
    border-radius: 16px; box-shadow: 0 20px 50px rgba(0,0,0,.5);
    display: none; z-index: 200; overflow: hidden;
    backdrop-filter: blur(20px);
}
.notify-dropdown.open { display: block; animation: tabIn .3s ease; }
.notify-dropdown-head { padding: 14px 16px; font-weight: 800; border-bottom: 1px solid var(--border-color); }
.notify-panel-body { padding: 12px 16px 16px; max-height: 420px; overflow-y: auto; }
.notify-taunt {
    font-size: 14px; font-weight: 800; color: #ffd700; text-align: center; padding: 10px;
    background: rgba(255,215,0,.08); border-radius: 12px; margin-bottom: 12px;
    text-shadow: 0 0 12px rgba(255,215,0,.3);
}
.notify-section-title { font-size: 11px; font-weight: 800; text-transform: uppercase; color: var(--text-secondary); margin: 12px 0 8px; }
.notify-leaders { display: flex; flex-direction: column; gap: 8px; }
.notify-leader {
    display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px;
    background: rgba(255,255,255,.04); border: 1px solid var(--border-color);
}
.notify-leader.gold {
    border-color: rgba(255,215,0,.5); background: linear-gradient(135deg, rgba(255,215,0,.12), rgba(255,115,250,.06));
    animation: goldPulse 2s ease-in-out infinite;
}
.notify-leader img { width: 40px; height: 40px; border-radius: 50%; }
.notify-medal { font-size: 20px; width: 28px; text-align: center; }
.notify-name { font-weight: 800; font-size: 14px; }
.notify-sub { font-size: 11px; color: var(--text-secondary); }
.notify-event-card {
    padding: 12px; border-radius: 12px; background: rgba(88,101,242,.1);
    border: 1px solid rgba(88,101,242,.25); margin-bottom: 8px;
}
.notify-event-title { font-weight: 800; font-size: 13px; }
.notify-event-sub { font-size: 11px; color: var(--text-secondary); margin: 4px 0 8px; }
.notify-event-go {
    padding: 6px 14px; border-radius: 8px; border: none; background: #248046;
    color: #fff; font-weight: 700; font-size: 12px; cursor: pointer;
}

.chat-pinned-bar {
    margin-bottom: 10px; border-radius: 12px; overflow: hidden;
    border: 1px solid rgba(255,215,0,.25); background: rgba(255,215,0,.06);
}
.chat-pinned-inner { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.chat-pinned-icon { font-size: 18px; }
.chat-pinned-text { flex: 1; min-width: 0; }
.chat-pinned-title { font-weight: 800; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-pinned-sub { font-size: 10px; color: var(--text-secondary); }
.chat-pinned-go {
    padding: 6px 12px; border-radius: 8px; border: none; background: #5865F2;
    color: #fff; font-weight: 700; font-size: 11px; cursor: pointer; flex-shrink: 0;
}

.role-tag {
    display: inline-block; font-size: 9px; font-weight: 800; padding: 2px 6px;
    border-radius: 6px; margin-left: 4px; vertical-align: middle;
}
.role-tag.admin { background: rgba(255,215,0,.2); color: #ffd700; border: 1px solid rgba(255,215,0,.4); }
.role-tag.booster { background: rgba(255,115,250,.15); color: #ff73fa; border: 1px solid rgba(255,115,250,.35); }
.role-tag.officer { background: rgba(88,101,242,.2); color: #a5b3ff; border: 1px solid rgba(88,101,242,.35); }

.sidebar-player-group { margin-bottom: 12px; }
.sidebar-group-title { font-size: 10px; font-weight: 800; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 6px; padding-left: 4px; }
.sidebar-player-avatar-wrap { position: relative; flex-shrink: 0; }
.sidebar-status-dot { position: absolute; bottom: -1px; right: -1px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--bg-dark-panel); }
.sidebar-player-info { flex: 1; min-width: 0; }

.chat-emoji-pop {
    position: relative; display: none; flex-wrap: wrap; gap: 4px;
    padding: 8px 0 0; width: 100%;
}
.chat-emoji-pop.open { display: flex; }
.chat-guild-emoji-pop { max-height: 140px; overflow-y: auto; }
.chat-guild-emoji-pop .guild-mini img { width: 24px; height: 24px; }
.emoji-pick-item {
    width: 36px; height: 36px; border: none; border-radius: 8px; background: rgba(255,255,255,.05);
    font-size: 20px; cursor: pointer; transition: background .15s, transform .15s;
}
.emoji-pick-item:hover { background: rgba(88,101,242,.25); transform: scale(1.1); }
.chat-send-btn:hover { transform: scale(1.06); box-shadow: 0 6px 20px rgba(88,101,242,.55); }

.chat-context-menu {
    position: fixed; z-index: 9999; min-width: 160px; padding: 6px;
    background: rgba(20, 18, 40, 0.98); border: 1px solid var(--border-color);
    border-radius: 10px; box-shadow: 0 12px 40px rgba(0,0,0,.5);
}
.chat-context-menu button {
    display: block; width: 100%; text-align: left; padding: 10px 14px;
    border: none; background: none; color: var(--text-primary); font-size: 13px;
    font-weight: 600; cursor: pointer; border-radius: 8px;
}
.chat-context-menu button:hover { background: rgba(88,101,242,.2); }
.chat-context-menu button.danger { color: #e74c3c; }
.chat-edit-input {
    width: 100%; padding: 6px 10px; border-radius: 8px; border: 1px solid #5865F2;
    background: rgba(0,0,0,.3); color: var(--text-primary); font-size: 13px;
}
.chat-msg-device { font-size: 11px; opacity: .7; }
.edited-mark { font-style: normal; opacity: .6; font-size: 10px; }
.tg-emoji {
    display: inline-block;
    font-size: 26px;
    line-height: 1;
    animation: tgEmojiPulse 1.6s ease-in-out infinite;
}
@keyframes tgEmojiPulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(88,101,242,0)); }
    50% { transform: scale(1.18); filter: drop-shadow(0 0 8px rgba(88,101,242,.45)); }
}

.boost-btn {
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, #ff73fa, #c23bdb, #5865F2) !important;
    box-shadow: 0 0 24px rgba(255,115,250,.45), 0 8px 28px rgba(88,101,242,.3) !important;
    animation: boostBtnGlow 2.5s ease-in-out infinite;
}
@keyframes boostBtnGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(255,115,250,.35), 0 8px 24px rgba(88,101,242,.25); }
    50% { box-shadow: 0 0 36px rgba(255,115,250,.6), 0 8px 32px rgba(255,215,0,.25); }
}
.boost-btn::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.25) 50%, transparent 60%);
    animation: bannerShimmer 3s ease-in-out infinite;
}

.page-salute-canvas { position: fixed; inset: 0; pointer-events: none; z-index: 4400; }
.top-fantasy-banner canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.banner-top-row {
    position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between;
    height: 100%; padding: 0 14px; gap: 10px;
}
.banner-top-row::before,
.banner-top-row::after {
    content: '';
    position: absolute;
    inset: 8px 10px;
    pointer-events: none;
    border-radius: 16px;
    background:
      radial-gradient(circle at 15% 35%, rgba(255,255,255,.20) 0, rgba(255,255,255,0) 24px),
      radial-gradient(circle at 32% 70%, rgba(255,255,255,.14) 0, rgba(255,255,255,0) 18px),
      radial-gradient(circle at 63% 42%, rgba(255,255,255,.18) 0, rgba(255,255,255,0) 22px),
      radial-gradient(circle at 81% 66%, rgba(255,255,255,.14) 0, rgba(255,255,255,0) 20px);
    mix-blend-mode: screen;
    animation: waterBubbles 18s linear infinite;
    z-index: 2;
    opacity: .95;
}
.banner-top-row::after { animation-duration: 26s; animation-direction: reverse; opacity: .7; }
@keyframes waterBubbles {
    0% { transform: translate3d(0,0,0); }
    25% { transform: translate3d(4px,-2px,0); }
    50% { transform: translate3d(-3px,2px,0); }
    75% { transform: translate3d(2px,3px,0); }
    100% { transform: translate3d(0,0,0); }
}
.banner-content {
    display: flex; align-items: center; justify-content: center; gap: 10px; flex: 1; flex-wrap: wrap;
}
.banner-top-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.lang-switch { display: flex; border-radius: 50px; overflow: hidden; border: 1px solid var(--border-color); }
.lang-btn {
    padding: 6px 12px; border: none; background: rgba(255,255,255,.05); color: var(--text-secondary);
    font-weight: 800; font-size: 11px; cursor: pointer;
}
.lang-btn.active { background: rgba(88,101,242,.35); color: #fff; }
.banner-settings-btn {
    padding: 8px 14px; border-radius: 50px; border: 1px solid rgba(255,215,0,.4);
    background: rgba(255,215,0,.12); color: #ffd700; font-size: 12px; font-weight: 800;
    text-decoration: none; white-space: nowrap; transition: transform .2s;
}
.banner-settings-btn:hover { transform: translateY(-2px); }
.event-top-widget { flex: 1; min-width: 0; max-width: 340px; }
.event-top-widget.collapsed { display: none; }
.ev-widget-inner {
    display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 12px;
    background: rgba(0,0,0,.35); border: 1px solid rgba(255,215,0,.2);
}
.ev-widget-pulse { animation: bannerFloat 2s ease-in-out infinite; }
.ev-widget-title { font-size: 12px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-widget-sub { font-size: 10px; color: rgba(255,255,255,.65); }
.ev-widget-go, .ev-widget-toggle {
    padding: 4px 10px; border-radius: 8px; border: none; font-size: 11px; font-weight: 700; cursor: pointer;
}
.ev-widget-go { background: #248046; color: #fff; }
.ev-widget-toggle { background: rgba(255,255,255,.1); color: #949ba4; }
.ev-widget-show-btn {
    display: none; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--border-color);
    background: rgba(255,255,255,.06); cursor: pointer;
}
.event-top-widget.collapsed ~ .ev-widget-show-btn { display: block; }
.ev-podium-item.p1 { color: #ffd700; font-weight: 800; }
.ev-podium-item.p2 { color: #c0c0c0; }
.ev-podium-item.p3 { color: #cd7f32; }
.ev-widget-inner.ev-random {
    border-color: rgba(241,196,15,.45);
    background: linear-gradient(135deg, rgba(241,196,15,.12), rgba(0,0,0,.35));
    animation: evWidgetPulse 2.5s ease-in-out infinite;
}
.ev-widget-timer { color: #ffd700; font-weight: 800; margin-left: 4px; }
@keyframes evWidgetPulse {
    0%,100% { box-shadow: 0 0 0 rgba(241,196,15,0); }
    50% { box-shadow: 0 0 18px rgba(241,196,15,.25); }
}
.new-event-prompt-overlay {
    position: fixed; inset: 0; z-index: 4500; display: flex; align-items: flex-start; justify-content: center;
    padding-top: 72px; background: rgba(0,0,0,.55); opacity: 0; transition: opacity .35s;
}
.new-event-prompt-overlay.active { opacity: 1; }
.new-event-prompt-overlay.fade-out { opacity: 0; pointer-events: none; }
.new-event-prompt-card {
    position: relative; max-width: 420px; width: calc(100% - 32px); padding: 22px 24px; border-radius: 18px;
    background: linear-gradient(145deg, #1a1a32, #121225); border: 1px solid rgba(88,101,242,.4);
    text-align: center; transform: translateY(-20px); animation: newEvSlide .45s ease forwards;
}
.new-event-prompt-card.random { border-color: rgba(241,196,15,.5); }
.new-event-prompt-glow {
    position: absolute; inset: -1px; border-radius: 18px; pointer-events: none;
    background: radial-gradient(circle at top, rgba(255,215,0,.15), transparent 60%);
}
.new-event-prompt-icon { font-size: 36px; margin-bottom: 8px; animation: bannerFloat 2s ease-in-out infinite; }
.new-event-prompt-title { font-size: 18px; font-weight: 900; margin-bottom: 6px; }
.new-event-prompt-sub { font-size: 13px; color: var(--text-secondary); margin-bottom: 10px; }
.new-event-prompt-timer { font-size: 15px; font-weight: 800; color: #ffd700; margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.new-event-prompt-actions { display: flex; gap: 10px; justify-content: center; }
@keyframes newEvSlide { to { transform: translateY(0); } }
.event-countdown-wrap {
    margin-top: 10px; padding: 8px 12px; border-radius: 10px;
    background: rgba(255,215,0,.08); border: 1px solid rgba(255,215,0,.2);
    font-size: 13px; font-weight: 700;
}
.event-countdown { color: #ffd700; font-variant-numeric: tabular-nums; }
.dc-action-btn.random-join {
    background: linear-gradient(135deg, #f1c40f, #e67e22) !important;
    color: #1a1a1a !important;
    box-shadow: 0 4px 16px rgba(241,196,15,.35);
}
.dc-action-meta { font-size: 12px; color: #ffd700; font-weight: 700; align-self: center; }
.random-event-banner {
    margin-top: 12px; padding: 12px 14px; border-radius: 12px;
    background: linear-gradient(135deg, rgba(241,196,15,.12), rgba(230,126,34,.08));
    border: 1px solid rgba(241,196,15,.3);
}
.random-event-banner-title { font-weight: 900; font-size: 13px; margin-bottom: 8px; }
.random-event-banner-stats { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; }
.random-stat.gold { color: #ffd700; font-weight: 800; }
#notifyBell.notify-has-events { animation: bellRing 2s ease-in-out infinite; }
@keyframes bellRing { 0%,100%{transform:rotate(0)} 10%{transform:rotate(12deg)} 20%{transform:rotate(-10deg)} 30%{transform:rotate(8deg)} 40%{transform:rotate(0)} }
.notify-event-card.random { border-color: rgba(241,196,15,.35); }
.grant-winner-theme .grant-cinema-fog { background: rgba(30,20,0,.92); }
.grant-winner-stats { display: flex; gap: 16px; justify-content: center; margin: 12px 0; font-weight: 800; color: #ffd700; }

.boost-top-bar {
    display: flex; align-items: center; gap: 12px; max-width: 1200px; margin: 8px auto 0;
    padding: 0 16px; flex-wrap: wrap;
}
.boost-lb-trigger {
    flex-shrink: 0; padding: 8px 16px; border-radius: 50px; border: 1px solid rgba(255,215,0,.4);
    background: linear-gradient(135deg, rgba(255,215,0,.15), rgba(255,115,250,.1));
    color: #ffd700; font-weight: 800; font-size: 12px; cursor: pointer;
    transition: transform .2s, box-shadow .2s;
}
.boost-lb-trigger:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(255,215,0,.25); }
.boost-lb-ticker { display: flex; gap: 10px; overflow-x: auto; flex: 1; min-width: 0; scrollbar-width: none; }
.boost-lb-ticker::-webkit-scrollbar { display: none; }
.boost-ticker-item {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 50px;
    background: rgba(255,255,255,.04); border: 1px solid var(--border-color); font-size: 11px;
    font-weight: 700; white-space: nowrap; flex-shrink: 0;
}
.boost-ticker-item img { width: 22px; height: 22px; border-radius: 50%; }
.boost-ticker-item.gold {
    border-color: rgba(255,215,0,.5); background: rgba(255,215,0,.1); color: #ffd700;
    animation: goldPulse 2s ease-in-out infinite;
}
@keyframes goldPulse { 0%,100%{box-shadow:0 0 0 rgba(255,215,0,0)} 50%{box-shadow:0 0 16px rgba(255,215,0,.35)} }

.boost-lb-modal {
    position: fixed; inset: 0; z-index: 5000; background: rgba(0,0,0,.75);
    display: none; align-items: center; justify-content: center; padding: 20px;
}
.boost-lb-modal.active { display: flex; }
.boost-lb-modal-card {
    position: relative; background: #151528; border: 1px solid rgba(255,215,0,.3);
    border-radius: 20px; padding: 24px; max-width: 440px; width: 100%; max-height: 80vh; overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.boost-salute-canvas { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.boost-lb-close { position: absolute; top: 12px; right: 14px; background: none; border: none; color: #949ba4; font-size: 18px; cursor: pointer; z-index: 3; }
.boost-lb-modal-title { font-size: 20px; font-weight: 900; margin-bottom: 4px; }
.boost-lb-modal-sub { font-size: 12px; color: var(--text-secondary); margin-bottom: 16px; }
.boost-lb-list { display: flex; flex-direction: column; gap: 8px; position: relative; z-index: 2; }
.boost-lb-row {
    display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px;
    background: rgba(255,255,255,.03); border: 1px solid var(--border-color);
}
.boost-lb-row.gold {
    border-color: rgba(255,215,0,.5); background: linear-gradient(135deg, rgba(255,215,0,.12), rgba(255,115,250,.06));
    animation: goldPulse 2.5s ease-in-out infinite;
}
.boost-lb-row img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid rgba(255,255,255,.15); }
.boost-lb-row.gold img { border-color: #ffd700; box-shadow: 0 0 12px rgba(255,215,0,.4); }
.boost-lb-rank { width: 28px; text-align: center; font-size: 18px; }
.boost-lb-meta { flex: 1; min-width: 0; }
.boost-lb-name { font-weight: 800; font-size: 14px; }
.boost-lb-sub { font-size: 11px; color: var(--text-secondary); }
.boost-lb-count { color: #ff73fa; font-size: 14px; }

.boost-splash-overlay {
    position: fixed; inset: 0; z-index: 4500; display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,.6); opacity: 0; transition: opacity .5s; pointer-events: none;
}
.boost-splash-overlay.active { opacity: 1; }
.boost-splash-overlay.fade-out { opacity: 0; }
.boost-splash-card {
    position: relative; text-align: center; padding: 32px 40px; border-radius: 24px;
    background: linear-gradient(135deg, rgba(255,115,250,.2), rgba(88,101,242,.15));
    border: 2px solid rgba(255,115,250,.5); box-shadow: 0 0 60px rgba(255,115,250,.3);
    animation: boostPop .6s cubic-bezier(.2,.8,.2,1);
}
@keyframes boostPop { from{transform:scale(.7);opacity:0} to{transform:scale(1);opacity:1} }
.boost-splash-glow { position: absolute; inset: -20px; border-radius: 32px; background: radial-gradient(circle, rgba(255,115,250,.3), transparent 70%); animation: boostGlow 2s ease-in-out infinite; }
@keyframes boostGlow { 0%,100%{opacity:.5} 50%{opacity:1} }
.boost-splash-icon { font-size: 48px; margin-bottom: 8px; position: relative; }
.boost-splash-title { font-size: 14px; font-weight: 700; color: #ff73fa; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; position: relative; }
.boost-splash-avatar { width: 72px; height: 72px; border-radius: 50%; border: 3px solid #ff73fa; box-shadow: 0 0 24px rgba(255,115,250,.5); position: relative; }
.boost-splash-name { font-size: 22px; font-weight: 900; color: #fff; margin: 12px 0 6px; position: relative; }
.boost-splash-reward { font-size: 14px; color: #ffd700; font-weight: 700; position: relative; }

.grant-phase-reward.show { animation: grantRewardIn .8s ease both; }
@keyframes grantRewardIn { from{opacity:0;transform:scale(.8)} to{opacity:1;transform:none} }
.grant-reward-title { font-size: 18px; color: #949ba4; margin-bottom: 12px; }
.grant-reward-fly { display: flex; align-items: center; justify-content: center; gap: 12px; }
.grant-reward-sub { font-size: 20px; font-weight: 700; color: #fff; margin-top: 4px; }
.grant-reward-reason { font-size: 13px; color: #949ba4; margin-top: 16px; max-width: 360px; margin-left: auto; margin-right: auto; }

.grant-cinema-overlay { position: fixed; inset: 0; z-index: 4000; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .6s; }
.grant-cinema-overlay.active { opacity: 1; }
.grant-cinema-overlay.fade-out { opacity: 0; pointer-events: none; }
.grant-cinema-fog { position: absolute; inset: 0; background: rgba(0,0,0,.88); backdrop-filter: blur(14px); }
.grant-cinema-content { position: relative; z-index: 2; text-align: center; }
.grant-hello-text { font-size: clamp(24px, 5vw, 36px); font-weight: 900; color: #fff; }
.grant-neon-name { color: #ffd700; text-shadow: 0 0 20px rgba(255,215,0,.6); }
.grant-fly-icon { width: 72px; height: 72px; }
.grant-fly-amount { font-size: 56px; font-weight: 900; color: #ffd700; }
.grant-flying-token { position: fixed; z-index: 4001; display: flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 50px; border: 1px solid #ffd700; color: #ffd700; font-weight: 900; pointer-events: none; }
.grant-flying-token img { width: 32px; height: 32px; }

.winners-splash-overlay { position: fixed; inset: 0; z-index: 3500; background: rgba(0,0,0,.8); display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; transition: opacity .4s; }
.winners-splash-overlay.active { opacity: 1; }
.winners-splash-card { background: #151528; border: 1px solid rgba(255,215,0,.25); border-radius: 20px; padding: 24px; max-width: 420px; width: 100%; }
.winner-splash-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.winner-splash-row img { width: 40px; height: 40px; border-radius: 50%; }
.glow-text { color: #ffd700; text-shadow: 0 0 10px rgba(255,215,0,.4); font-weight: 800; }

.events-filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.events-filter-btn { padding: 8px 14px; border-radius: 20px; border: 1px solid var(--border-color); background: rgba(255,255,255,.04); font-size: 12px; font-weight: 700; cursor: pointer; }
.events-filter-btn.active { background: rgba(88,101,242,.25); border-color: #5865F2; color: #fff; }
.history-event-card { background: rgba(255,255,255,.02); border: 1px solid var(--border-color); border-radius: 14px; padding: 14px; margin-bottom: 10px; }

@keyframes bannerFloat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-4px)} }
.banner-shimmer {
    position: absolute; inset: 0; pointer-events: none; z-index: 2;
    background: linear-gradient(105deg, transparent 40%, rgba(255,215,0,.1) 50%, transparent 60%);
    animation: bannerShimmer 4s ease-in-out infinite;
}
@keyframes bannerShimmer { 0%,100%{transform:translateX(-100%)} 50%{transform:translateX(100%)} }
.banner-emoji { font-size: 22px; animation: bannerFloat 3s ease-in-out infinite; }
.banner-title { font-size: clamp(16px, 3vw, 22px); font-weight: 900; }
.banner-tag { font-size: 13px; font-weight: 800; color: #ff73fa; padding: 2px 10px; border-radius: 20px; background: rgba(255,115,250,.15); border: 1px solid rgba(255,115,250,.35); }
.btn-header { padding: 8px 14px; font-size: 12px; border-radius: 50px; }

.right-sidebar-tab {
    position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 200;
    width: 28px; height: 72px; border-radius: 12px 0 0 12px; border: 1px solid var(--border-color);
    border-right: none; background: rgba(88,101,242,.25); color: #fff; font-size: 20px; font-weight: 900;
    cursor: pointer; transition: background .2s, width .2s;
}
.right-sidebar-tab:hover { width: 34px; background: rgba(88,101,242,.45); }
.right-sidebar {
    position: fixed; right: 0; top: 0; bottom: 0; width: min(400px, 94vw); z-index: 300;
    background: var(--bg-dark-panel); border-left: 1px solid var(--border-color);
    transform: translateX(100%); transition: transform .35s cubic-bezier(.2,.8,.2,1);
    display: flex; flex-direction: column; padding: 16px; box-shadow: -8px 0 40px rgba(0,0,0,.35);
}
.right-sidebar.open { transform: translateX(0); }
.sidebar-close { align-self: flex-end; background: none; border: none; color: var(--text-secondary); font-size: 18px; cursor: pointer; margin-bottom: 8px; }
.sidebar-section { flex: 1; min-height: 0; display: flex; flex-direction: column; margin-bottom: 12px; }
.sidebar-section h3 { font-size: 14px; margin-bottom: 10px; }
.sidebar-players { overflow-y: auto; max-height: 200px; }
.sidebar-player { display: flex; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--border-color); }
.sidebar-player img { width: 36px; height: 36px; border-radius: 50%; }
.sidebar-player-name { font-weight: 700; font-size: 13px; }
.sidebar-player-st { font-size: 11px; color: var(--text-secondary); }
.sidebar-chat { flex: 2; min-height: 0; }
.chat-messages {
    flex: 1; overflow-y: auto; min-height: 200px; max-height: min(52vh, 480px);
    padding: 10px 12px; scroll-behavior: smooth;
    border: 1px solid rgba(255,255,255,.06); border-radius: 14px;
    background: rgba(0,0,0,.12);
}
.chat-msg { display: flex; gap: 10px; margin-bottom: 12px; align-items: flex-start; }
.chat-msg img.chat-msg-avatar { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; }
.chat-msg-body { flex: 1; min-width: 0; position: relative; }
.chat-msg-head {
    display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
    font-size: 11px; color: var(--text-secondary); margin-bottom: 4px;
}
.chat-msg-head strong { color: var(--text-primary); font-size: 13px; }
.chat-msg-text { font-size: 14px; line-height: 1.45; margin: 0; word-break: break-word; }
.chat-msg-menu-btn {
    margin-left: auto; width: 28px; height: 28px; border-radius: 8px; border: 1px solid transparent;
    background: transparent; color: var(--text-secondary); cursor: pointer; font-size: 16px; line-height: 1;
    opacity: 0; transition: opacity .15s, background .15s;
}
.chat-msg:hover .chat-msg-menu-btn { opacity: 1; }
.chat-msg-menu-btn:hover { background: rgba(255,255,255,.08); border-color: var(--border-color); }
.chat-reacts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.chat-react, .chat-react-add { padding: 3px 8px; border-radius: 999px; border: 1px solid var(--border-color); background: rgba(255,255,255,.04); font-size: 12px; cursor: pointer; }
.chat-react.active { border-color: #5865F2; background: rgba(88,101,242,.2); }
.chat-compose {
    position: relative; margin-top: 10px; padding: 0; border: none; background: transparent; flex-wrap: nowrap;
}
.chat-compose-main {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 10px; border-radius: 16px;
    border: 1px solid rgba(255,255,255,.1); background: rgba(0,0,0,.2);
}
.chat-compose-main input {
    flex: 1; min-width: 0; padding: 10px 12px; border-radius: 12px;
    border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.06);
    color: var(--text-primary); font-size: 14px;
}
.chat-tools-btn {
    width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0;
    border: 1px solid rgba(255,215,0,.25); background: rgba(255,215,0,.08);
    font-size: 16px; cursor: pointer;
}
.chat-send-btn {
    width: 42px; height: 42px; min-width: 42px; border-radius: 50%; border: none; flex-shrink: 0;
    background: linear-gradient(135deg, #5865F2, #4752c4); color: #fff;
    font-size: 18px; line-height: 1; padding: 0;
    cursor: pointer; box-shadow: 0 4px 16px rgba(88,101,242,.4);
    display: flex; align-items: center; justify-content: center;
}
.chat-tools-pop {
    position: absolute; bottom: calc(100% + 8px); left: 0; right: 0;
    display: none; padding: 12px; border-radius: 14px;
    background: rgba(15,12,41,.98); border: 1px solid var(--border-color);
    box-shadow: 0 12px 40px rgba(0,0,0,.45); z-index: 60;
}
.chat-tools-pop.open { display: block; animation: tabIn .2s ease; }
.chat-tools-label { font-size: 10px; font-weight: 800; text-transform: uppercase; color: var(--text-secondary); margin: 6px 0 4px; }
.chat-tools-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.chat-tools-row button, .chat-tools-wide {
    padding: 7px 12px; border-radius: 10px; border: 1px solid var(--border-color);
    background: rgba(255,255,255,.05); color: var(--text-primary); font-size: 12px; font-weight: 700; cursor: pointer;
}
.chat-tools-wide { flex: 1; min-width: 120px; }
.chat-ctx-section { font-size: 10px; font-weight: 800; text-transform: uppercase; color: #949ba4; padding: 6px 10px 4px; }
.chat-ctx-reacts { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px 8px 8px; border-bottom: 1px solid rgba(255,255,255,.06); margin-bottom: 4px; }
.chat-ctx-reacts button {
    width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border-color);
    background: rgba(255,255,255,.05); font-size: 18px; cursor: pointer;
}
.chat-ctx-reacts button:hover { background: rgba(88,101,242,.2); }

.grant-boost-theme .grant-cinema-fog { background: rgba(20,0,40,.9); }
.grant-boost-rays { position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, rgba(255,115,250,.25), transparent 60%); animation: boostGlow 2s ease-in-out infinite; }
.attempts-merge-glow { animation: mergeGlow .8s ease; box-shadow: 0 0 30px rgba(255,215,0,.5); border-radius: 16px; }
@keyframes mergeGlow { 0%,100%{box-shadow:0 0 0 rgba(255,215,0,0)} 50%{box-shadow:0 0 40px rgba(255,215,0,.6)} }

.rewards-block { margin-bottom: 12px; }
.rewards-block-title { font-size: 12px; font-weight: 800; margin-bottom: 6px; color: var(--text-secondary); }
.reward-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 13px; border-bottom: 1px solid rgba(255,255,255,.04); }
.reward-row.received .hist-dot { box-shadow: 0 0 8px rgba(46,204,113,.5); }

.admin-player-picker { max-width: 560px; }
.admin-search-input { width: 100%; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--border-color); background: rgba(255,255,255,.05); color: var(--text-primary); margin-bottom: 12px; font-size: 14px; }
.admin-player-list { max-height: 280px; overflow-y: auto; margin-bottom: 14px; border: 1px solid var(--border-color); border-radius: 12px; }
.admin-player-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: none; border-bottom: 1px solid var(--border-color); background: transparent; color: var(--text-primary); text-align: left; cursor: pointer; }
.admin-player-row:hover, .admin-player-row.active { background: rgba(88,101,242,.15); }
.admin-player-row img { width: 40px; height: 40px; border-radius: 50%; }
.admin-selected-player { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: rgba(255,215,0,.08); border: 1px solid rgba(255,215,0,.25); margin-bottom: 14px; }
.admin-selected-player img { width: 48px; height: 48px; border-radius: 50%; }
.admin-attempts-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.admin-num-input { padding: 10px 14px; border-radius: 10px; border: 1px solid var(--border-color); background: rgba(255,255,255,.05); color: var(--text-primary); width: 80px; }
.btn-admin { padding: 10px 18px; border-radius: 10px; border: 1px solid var(--border-color); font-weight: 800; font-size: 13px; cursor: pointer; background: rgba(255,255,255,.06); color: var(--text-primary); transition: transform .15s; }
.btn-admin:hover { transform: translateY(-1px); }
.btn-admin.primary { background: linear-gradient(135deg,#248046,#1a6334); border-color: #248046; color: #fff; }
.btn-admin.warn { background: linear-gradient(135deg,#922,#711); border-color: #922; color: #fff; }

.feedback-star-btn {
    width: 34px; height: 34px; border-radius: 50%;
    border: 1px solid rgba(255,215,0,.45); background: rgba(255,215,0,.12);
    color: #ffd700; font-size: 16px; cursor: pointer; flex-shrink: 0;
    box-shadow: 0 0 14px rgba(255,215,0,.25); animation: starPulse 2.2s ease-in-out infinite;
}
@keyframes starPulse {
    0%,100% { transform: scale(1); box-shadow: 0 0 10px rgba(255,215,0,.2); }
    50% { transform: scale(1.1); box-shadow: 0 0 18px rgba(255,215,0,.45); }
}
.feedback-modal {
    position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 6000;
    display: none; align-items: center; justify-content: center; padding: 16px;
}
.feedback-modal.open { display: flex; }
.feedback-modal-card {
    width: min(560px, 96vw); max-height: 88vh; overflow: hidden auto;
    background: linear-gradient(145deg, rgba(17,15,36,.96), rgba(12,10,28,.98));
    border: 1px solid rgba(255,255,255,.14); border-radius: 20px; padding: 18px 18px 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,.55);
}
.feedback-hero { padding: 12px 0 6px; }
.feedback-hero-title { font-size: 22px; font-weight: 900; }
.feedback-hero-sub { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }
.feedback-hero-rating { margin-top: 10px; padding: 10px 12px; border-radius: 14px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.03); }
.feedback-avg { font-weight: 900; color: #ffd700; }
.feedback-stars-big { font-size: 18px; letter-spacing: 2px; color: #ffd700; text-shadow: 0 0 14px rgba(255,215,0,.35); }
.feedback-count { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }
.feedback-cta-row { display:flex; gap: 10px; margin-top: 10px; }
.feedback-cta {
    flex:1; border: 1px solid var(--border-color); background: rgba(255,255,255,.05);
    color:#eee; border-radius: 12px; padding: 10px 12px; cursor:pointer; font-weight: 900;
}
.feedback-cta.primary { background: linear-gradient(135deg,#5865F2,#4752c4); border-color: rgba(88,101,242,.45); color:#fff; }
.feedback-compose { margin-top: 10px; padding: 12px; border-radius: 16px; border: 1px solid rgba(255,255,255,.12); background: rgba(0,0,0,.22); }
.feedback-compose-head { display:flex; align-items:baseline; justify-content:space-between; gap:10px; margin-bottom: 8px; flex-wrap:wrap; }
.feedback-compose-note { font-size: 12px; color: var(--text-secondary); }
.feedback-compose textarea { width:100%; }
.feedback-compose-actions { display:flex; gap:10px; margin-top: 8px; }

.terms-modal { position: fixed; inset:0; background: rgba(0,0,0,.65); display:none; align-items:center; justify-content:center; z-index: 6500; padding:16px; }
.terms-modal.open { display:flex; }
.terms-card { width: min(520px, 96vw); background: linear-gradient(145deg, rgba(17,15,36,.96), rgba(12,10,28,.98)); border: 1px solid rgba(255,255,255,.14); border-radius: 20px; padding: 18px; box-shadow: 0 20px 60px rgba(0,0,0,.55); }
.terms-title { font-size: 18px; font-weight: 900; margin-bottom: 8px; }
.terms-text { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }
.terms-check { display:flex; align-items:center; gap:10px; margin-top: 12px; font-weight: 800; }
.terms-ok { margin-top: 12px; width:100%; border:none; border-radius: 12px; padding: 10px 12px; background: linear-gradient(135deg,#248046,#1a6334); color:#fff; font-weight: 900; cursor:pointer; opacity:.6; }
.terms-ok:disabled { cursor:not-allowed; }
.terms-ok:not(:disabled) { opacity: 1; }
.feedback-close { float: right; background: transparent; border: none; color: #aaa; font-size: 18px; cursor: pointer; }
.feedback-rate-head { margin-bottom: 10px; }
.feedback-rate-title { font-size: 18px; font-weight: 800; }
.feedback-rate-total { font-size: 14px; color: #ffd700; font-weight: 800; display: flex; gap: 8px; align-items: center; }
.feedback-stars-glow { letter-spacing: 1px; text-shadow: 0 0 12px rgba(255,215,0,.4); animation: starPulse 2s ease-in-out infinite; }
.feedback-filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.feedback-filter {
    border: 1px solid var(--border-color); background: rgba(255,255,255,.05); color: #ddd;
    padding: 6px 10px; border-radius: 999px; cursor: pointer; font-size: 12px; font-weight: 700;
}
.feedback-filter.active { background: rgba(88,101,242,.28); color: #fff; border-color: rgba(88,101,242,.4); }
.feedback-stars-filter {
    margin-left: auto; border: 1px solid rgba(88,101,242,.35); border-radius: 999px;
    background: rgba(15,12,41,.92); color: #ffd700; padding: 6px 12px;
    font-weight: 700; font-size: 12px; cursor: pointer;
    appearance: none; -webkit-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #ffd700 50%), linear-gradient(135deg, #ffd700 50%, transparent 50%);
    background-position: calc(100% - 14px) calc(50% - 2px), calc(100% - 9px) calc(50% - 2px);
    background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
    padding-right: 28px;
}
.feedback-stars-filter option { background: #151528; color: #ffd700; }
.feedback-cta.accent { background: linear-gradient(135deg,#248046,#1a6334); border-color: rgba(36,128,70,.45); color:#fff; }
.feedback-badge { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.06); }
.feedback-item-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.feedback-leave-btn {
    border: 1px solid rgba(255,215,0,.35); background: rgba(255,215,0,.08); color: #ffd700;
    border-radius: 8px; padding: 5px 10px; cursor: pointer; font-size: 12px; font-weight: 700;
}
.feedback-admin-reply-btn {
    border: 1px solid rgba(88,101,242,.35); background: rgba(88,101,242,.1); color: #a5b3ff;
    border-radius: 8px; padding: 5px 10px; cursor: pointer; font-size: 12px; font-weight: 700;
}
.feedback-admin-del-btn {
    border: 1px solid rgba(231,76,60,.35); background: rgba(231,76,60,.08); color: #e74c3c;
    border-radius: 8px; padding: 5px 10px; cursor: pointer; font-size: 12px; font-weight: 700;
}
.feedback-submodal {
    position: fixed; inset: 0; z-index: 6100; background: rgba(0,0,0,.55);
    display: none; align-items: center; justify-content: center; padding: 16px;
}
.feedback-submodal.open { display: flex; animation: tabIn .2s ease; }
.feedback-submodal-card {
    width: min(480px, 96vw); background: linear-gradient(145deg, rgba(17,15,36,.98), rgba(12,10,28,.99));
    border: 1px solid rgba(255,255,255,.14); border-radius: 18px; padding: 18px;
    box-shadow: 0 20px 60px rgba(0,0,0,.55); max-height: 88vh; overflow-y: auto;
}
.feedback-submodal-title { font-size: 20px; font-weight: 900; margin-bottom: 6px; }
.feedback-reply-preview {
    margin: 8px 0; padding: 10px 12px; border-radius: 10px; border-left: 3px solid rgba(88,101,242,.5);
    background: rgba(88,101,242,.08); font-size: 13px; line-height: 1.45;
}
.fmt-toolbar { display: flex; gap: 4px; margin: 8px 0; flex-wrap: wrap; }
.fmt-toolbar button {
    min-width: 32px; height: 32px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--border-color);
    background: rgba(255,255,255,.05); color: #ddd; font-weight: 700; font-size: 11px; cursor: pointer;
}
.fmt-toolbar button.fmt-discord { width: auto; padding: 0 10px; color: #a5b3ff; }
.feedback-submodal textarea, .feedback-compose textarea {
    width: 100%; min-height: 100px; resize: vertical; border: 1px solid var(--border-color);
    border-radius: 12px; background: rgba(255,255,255,.04); color: #fff; padding: 12px; font-family: inherit;
}
.guild-emoji-grid { display: flex; flex-wrap: wrap; gap: 6px; max-height: 240px; overflow-y: auto; }
.guild-emoji-item {
    width: 42px; height: 42px; border: none; border-radius: 10px; background: rgba(255,255,255,.06); cursor: pointer; padding: 4px;
}
.guild-emoji-item img { width: 100%; height: 100%; object-fit: contain; }
.notify-dropdown-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.notify-toggle-btn {
    border: 1px solid var(--border-color); background: rgba(255,255,255,.06); color: #ddd;
    border-radius: 999px; padding: 4px 10px; font-size: 11px; font-weight: 800; cursor: pointer;
}
.notify-toggle-btn.off { opacity: .65; border-color: rgba(231,76,60,.35); color: #e74c3c; }
.md-code { background: rgba(0,0,0,.35); padding: 1px 5px; border-radius: 4px; font-size: 12px; }
.chat-msg-bubble {
    display: inline-block; max-width: 100%; padding: 8px 12px; border-radius: 12px 12px 12px 4px;
    background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.chat-msg-system .chat-msg-bubble { border-color: rgba(88,101,242,.25); background: rgba(88,101,242,.08); }
.chat-msg-event { justify-content: center; }
.chat-event-card {
    position: relative; overflow: hidden;
    display: flex; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 14px;
    border: 1px solid rgba(88,101,242,.35); background: linear-gradient(135deg, rgba(88,101,242,.12), rgba(255,215,0,.06));
    box-shadow: 0 4px 20px rgba(88,101,242,.15); animation: tabIn .25s ease;
}
.chat-event-card.random {
    border-color: rgba(241,196,15,.45);
    background: linear-gradient(135deg, rgba(241,196,15,.14), rgba(88,101,242,.08));
}
.chat-event-card.winner {
    border-color: rgba(255,215,0,.55);
    background: linear-gradient(135deg, rgba(255,215,0,.18), rgba(230,126,34,.1));
}
.chat-msg-event-animated { animation: chatEvIn .4s ease; }
@keyframes chatEvIn { from { opacity:0; transform:translateY(8px) scale(.98); } to { opacity:1; transform:none; } }
.chat-event-shimmer {
    position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.08) 50%, transparent 60%);
    animation: chatShimmer 3s ease-in-out infinite;
}
@keyframes chatShimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.chat-event-badge {
    font-size: 9px; font-weight: 900; letter-spacing: .08em; color: #ffd700; margin-bottom: 4px;
}
.chat-event-stats { font-size: 11px; font-weight: 700; color: #ffd700; margin-bottom: 6px; }
.chat-event-timer { font-size: 12px; font-weight: 800; color: #ffd700; margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.chat-event-reward { font-size: 12px; color: #fff; margin-top: 4px; }
.chat-pinned-timer { color: #ffd700; font-weight: 800; margin-left: 6px; font-variant-numeric: tabular-nums; }
.chat-pinned-bar {
    position: sticky; top: 0; z-index: 2; margin-bottom: 8px;
    padding: 8px 10px; border-radius: 10px;
    background: linear-gradient(135deg, rgba(241,196,15,.15), rgba(88,101,242,.12));
    border: 1px solid rgba(255,215,0,.25);
}
.chat-event-icon { font-size: 28px; flex-shrink: 0; }
.chat-event-title { font-weight: 800; font-size: 13px; margin-bottom: 4px; }
.chat-event-desc { font-size: 12px; color: var(--text-secondary); margin-bottom: 8px; }
.chat-event-go {
    padding: 6px 14px; border-radius: 8px; border: none; background: linear-gradient(135deg,#5865F2,#4752c4);
    color: #fff; font-weight: 800; font-size: 11px; cursor: pointer;
    box-shadow: 0 4px 14px rgba(88,101,242,.35); transition: transform .15s;
}
.chat-event-go:hover { transform: translateY(-1px); }
.sidebar-chat { border-top: 1px solid rgba(88,101,242,.2); padding-top: 12px; }
.feedback-start-wrap { margin-bottom: 10px; }
.feedback-start-btn, .feedback-submit-btn {
    width: 100%; border: none; border-radius: 12px; padding: 10px 14px;
    background: linear-gradient(135deg,#5865F2,#4752c4); color: #fff; font-weight: 800; cursor: pointer;
}
.feedback-form { display: grid; gap: 8px; margin-bottom: 10px; }
.feedback-kind-switch { display: flex; gap: 6px; }
.feedback-kind { flex: 1; border: 1px solid var(--border-color); background: rgba(255,255,255,.05); color: #ddd; padding: 8px; border-radius: 10px; cursor: pointer; font-weight: 700; }
.feedback-kind.active { background: rgba(88,101,242,.25); color: #fff; }
.feedback-stars-pick button {
    border: none; background: transparent; color: #666; font-size: 24px; cursor: pointer;
    transition: transform .15s, color .15s;
}
.feedback-stars-pick button.on { color: #ffd700; transform: scale(1.1); }
.feedback-form textarea {
    min-height: 90px; resize: vertical; border: 1px solid var(--border-color);
    border-radius: 10px; background: rgba(255,255,255,.04); color: #fff; padding: 10px 12px;
}
.feedback-list { display: grid; gap: 8px; }
.feedback-item {
    border: 1px solid var(--border-color); background: rgba(255,255,255,.03); border-radius: 12px; padding: 10px;
}
.feedback-item-head { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; font-size: 12px; color: #bbb; }
.feedback-item-head img { width: 26px; height: 26px; border-radius: 50%; }
.feedback-item-text { font-size: 13px; line-height: 1.45; }
.feedback-item-rating { color: #ffd700; margin-left: auto; }
.feedback-reply {
    margin-top: 8px; border-left: 3px solid rgba(88,101,242,.5); background: rgba(88,101,242,.09);
    padding: 8px 10px; border-radius: 8px; font-size: 12px;
}
.discord-emoji { height: 1.25em; width: auto; vertical-align: -0.2em; display: inline; }

/* RoK декоративные акценты */
.rok-panel-deco {
    position: relative;
}
.rok-panel-deco::before {
    content: '⚔️ 🏰 🛡️';
    position: absolute; top: 6px; right: 10px; font-size: 11px; opacity: .12;
    letter-spacing: 4px; pointer-events: none;
}
.feedback-modal-card { position: relative; }
.feedback-modal-card::after {
    content: '🏆'; position: absolute; bottom: 12px; right: 16px; font-size: 42px; opacity: .04; pointer-events: none;
}
.empty-hint::before { content: '✨ '; opacity: .7; }
.tab-btn { position: relative; overflow: hidden; }
.tab-btn::after {
    content: ''; position: absolute; inset: 0; opacity: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.08) 50%, transparent 60%);
    transition: opacity .3s;
}
.tab-btn:hover::after { opacity: 1; }
    margin-top: 6px; border: 1px solid var(--border-color); background: rgba(255,255,255,.05);
    color: #ddd; border-radius: 8px; padding: 5px 10px; cursor: pointer; font-size: 12px; font-weight: 700;
}
/* ============ МОБИЛЬНАЯ АДАПТАЦИЯ (ОБЩАЯ) ============ */
@media (max-width: 600px) {
    .container { padding: 0 10px; }
    .card { padding: 14px; border-radius: 16px; }
    .card-title { font-size: 14px; margin-bottom: 12px; }
    .grid-main { gap: 14px; margin-bottom: 18px; }
    .boost-guide-grid { grid-template-columns: 1fr; gap: 12px; }
    .server-welcome-card { padding: 20px 14px; }
    .intro-server-title { font-size: 19px; }
    .event-top-widget { max-width: 100%; }
    .top-fantasy-banner { height: 76px; }
    .notify-dropdown { width: calc(100vw - 24px); left: -8px; }
}
@media (max-width: 380px) {
    .container { padding: 0 6px; }
    .card { padding: 10px; }
}

/* ---- Мобильный "воздух": увеличенные зоны нажатия и расстояния между
   элементами на телефоне — по фидбеку "тесновато и неудобно" ---- */
@media (max-width: 600px) {
    .btn, .btn-primary, .btn-secondary, .btn-success, .btn-admin {
        min-height: 44px; padding-top: 12px; padding-bottom: 12px;
    }
    .tab-btn { min-height: 40px; padding: 10px 10px; font-size: 12.5px; }
    .tabs { gap: 8px; }
    .grid-main { gap: 18px; }
    .card + .card, .card { margin-bottom: 2px; }
    .stats-mini-grid { gap: 8px; }
    .stats-mini-box { padding: 12px 10px; }
    /* Модалки — больше воздуха по краям и не впритык к верхнему краю экрана */
    .discord-msg-card, .kd-modal-card, .boost-lb-card, .winners-splash-card {
        padding: 20px 16px; max-height: 88vh; overflow-y: auto;
    }
    .discord-emoji-row button, .discord-var-quick button {
        min-height: 38px; padding: 8px 10px;
    }
    /* Кнопки, идущие в ряд — не давать им слипаться друг с другом на узком экране */
    .boost-row, .discord-msg-actions, .kd-modal-actions { gap: 12px; }
}