* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    background: linear-gradient(135deg, #1a0f2e 0%, #2d1b4e 50%, #1a0f2e 100%);
    background-attachment: fixed;
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* === СКРОЛЛБАР (НЕВИДИМЫЙ) === */
::-webkit-scrollbar { width: 0px; height: 0px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: transparent; }
* { scrollbar-width: none; scrollbar-color: transparent transparent; }

/* === АНИМАЦИИ === */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInLeft { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeInRight { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: scale(1); } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(100%); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.7; transform: scale(1.1); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes shimmer { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(-30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes modalSlideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
@keyframes floatUp {
    0% { opacity: 1; transform: translateY(0) scale(1); }
    100% { opacity: 0; transform: translateY(-50px) scale(1.5); }
}
@keyframes buttonPulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(76, 117, 163, 0.3); }
    50% { box-shadow: 0 6px 25px rgba(76, 117, 163, 0.5); }
}
@keyframes arrowBounce {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(3px); }
}

/* === ПОИСКОВАЯ СТРОКА === */
.top-search-bar {
    position: absolute;
    top: 20px;
    left: 50%;
    margin-left: -300px;
    width: 600px;
    z-index: 100;
    animation: slideDown 0.6s ease-out;
}
.search-input-wrapper {
    position: relative;
    background: rgba(45, 27, 78, 0.95);
    border-radius: 16px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}
.search-input-wrapper:hover { border-color: rgba(139, 92, 246, 0.6); box-shadow: 0 6px 30px rgba(139, 92, 246, 0.4); }
.search-input-wrapper > i.bi-search {
    position: absolute; left: 20px; top: 50%;
    transform: translateY(-50%);
    color: #8b5cf6; font-size: 18px;
    pointer-events: none; z-index: 2;
}
.search-input-wrapper input {
    width: 100%; padding: 14px 20px 14px 55px;
    background: transparent; border: none;
    color: #ffffff; font-size: 15px;
    border-radius: 16px; outline: none;
}
.search-input-wrapper input::placeholder { color: #8b7aa8; }
.search-input-wrapper input:focus { box-shadow: inset 0 0 0 2px rgba(139, 92, 246, 0.3); }

/* Результаты поиска */
.search-results {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    background: rgba(45, 27, 78, 0.98);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 16px; backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    padding: 10px; max-height: 400px; overflow-y: auto;
    z-index: 99; display: none;
}
.search-result-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px; border-radius: 10px;
    color: #b8a9d4; cursor: pointer;
    transition: all 0.2s ease;
}
.search-result-item:hover { background: rgba(139, 92, 246, 0.2); color: #ffffff; }
.search-result-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    display: flex; align-items: center; justify-content: center;
    font-weight: bold; flex-shrink: 0; overflow: hidden;
}
.search-result-avatar img { width: 100%; height: 100%; object-fit: cover; }
.search-result-text { flex: 1; min-width: 0; }
.search-result-text small { color: #8b7aa8; }
.no-results { padding: 20px; text-align: center; color: #8b7aa8; }

/* === ОСНОВНАЯ РАЗМЕТКА === */
.main-wrapper {
    display: flex; padding: 20px; gap: 20px;
    max-width: 1600px; margin: 0 auto;
    padding-top: 100px; flex: 1; width: 100%;
}

/* === ЛЕВЫЙ САЙДБАР === */
.left-sidebar {
    width: 260px; flex-shrink: 0;
    background: rgba(45, 27, 78, 0.6);
    border-radius: 20px; padding: 25px 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    display: flex; flex-direction: column;
    position: sticky; top: 100px;
    height: fit-content;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    animation: fadeInLeft 0.8s ease-out;
    transition: all 0.3s ease;
}

.left-sidebar:hover {
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.3);
}

.logo-section {
    display: flex; align-items: center; gap: 10px;
    font-size: 24px; font-weight: bold;
    margin-bottom: 20px; padding-left: 10px;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    animation: fadeInUp 0.6s ease-out;
}
.logo-section i {
    font-size: 26px; color: #fbbf24;
    -webkit-text-fill-color: #fbbf24;
    filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.6));
}

/* === БЛОКИ ЭНЕРГИИ И РЕЙТИНГА === */
.resource-blocks {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 10px; margin-bottom: 25px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    position: relative;
    z-index: 10;
}
.resource-block {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 14px; padding: 14px 12px;
    text-align: center; cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
    z-index: 10;
}
.resource-block:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3); }
.resource-block.energy { border-color: rgba(251, 191, 36, 0.3); background: rgba(251, 191, 36, 0.08); }
.resource-block.energy:hover { box-shadow: 0 8px 20px rgba(251, 191, 36, 0.3); border-color: rgba(251, 191, 36, 0.5); }
.resource-block.rating { border-color: rgba(167, 139, 250, 0.3); background: rgba(167, 139, 250, 0.08); }
.resource-block.rating:hover { box-shadow: 0 8px 20px rgba(167, 139, 250, 0.3); border-color: rgba(167, 139, 250, 0.5); }

.resource-icon { font-size: 22px; margin-bottom: 6px; }
.resource-block.energy .resource-icon { color: #fbbf24; filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.5)); }
.resource-block.rating .resource-icon { color: #a78bfa; filter: drop-shadow(0 0 6px rgba(167, 139, 250, 0.5)); }

.resource-value { font-size: 18px; font-weight: bold; color: #ffffff; margin-bottom: 2px; }
.resource-label { font-size: 11px; color: #8b7aa8; text-transform: uppercase; letter-spacing: 0.5px; }
.resource-decay { font-size: 10px; color: #ef4444; margin-top: 2px; }

/* === МОДАЛЬНОЕ ОКНО ЗАТУХАНИЯ РЕЙТИНГА (ПОД БЛОКОМ) === */
.rating-decay-tooltip {
    position: fixed !important;
    width: 320px;
    background: rgba(26, 15, 46, 0.98);
    border: 2px solid rgba(139, 92, 246, 0.5);
    border-radius: 16px;
    padding: 20px;
    z-index: 10000 !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0.3s;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(139, 92, 246, 0.4);
    backdrop-filter: blur(20px);
    pointer-events: none;
}

.rating-decay-tooltip.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.rating-decay-tooltip.hiding {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
}

.tooltip-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 18px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(139, 92, 246, 0.3);
}

.tooltip-header i {
    color: #8b5cf6;
    font-size: 20px;
}

.tooltip-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.decay-tier {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 12px;
    border: 2px solid rgba(139, 92, 246, 0.2);
    transition: all 0.3s;
    gap: 10px;
}

.decay-tier.active {
    background: rgba(139, 92, 246, 0.25);
    border-color: rgba(139, 92, 246, 0.6);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.tier-range {
    font-size: 14px;
    color: #ffffff;
    font-weight: 600;
    flex: 1;
}

.tier-rate {
    padding: 6px 12px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    color: white;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

.tier-desc {
    font-size: 12px;
    color: #b8a9d4;
    font-weight: 500;
    flex: 1;
    text-align: right;
}

.tooltip-footer {
    margin-top: 18px;
    padding-top: 15px;
    border-top: 2px solid rgba(139, 92, 246, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #b8a9d4;
    font-weight: 500;
}

.tooltip-footer i {
    color: #fbbf24;
    font-size: 16px;
}

/* === МЕНЮ НАВИГАЦИИ === */
.nav-menu { list-style: none; padding: 0; margin-bottom: 20px; animation: fadeInUp 0.8s ease-out 0.3s both; }
.nav-menu li { margin-bottom: 6px; }
.nav-menu a {
    color: #b8a9d4; text-decoration: none;
    display: flex; align-items: center; gap: 12px;
    padding: 10px 14px; border-radius: 12px;
    transition: all 0.3s; font-size: 14px;
    position: relative;
}
.nav-menu a:hover, .nav-menu a.active {
    background: rgba(139, 92, 246, 0.25);
    color: #ffffff; transform: translateX(5px);
}
.nav-menu a.active {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.4), rgba(236, 72, 153, 0.3));
}
.nav-menu i { font-size: 18px; width: 22px; text-align: center; }
.nav-menu .badge { margin-left: auto; font-size: 10px; padding: 2px 6px; }

.nav-divider { height: 1px; background: rgba(139, 92, 246, 0.15); margin: 10px 0; }
.nav-section-title { font-size: 11px; text-transform: uppercase; color: #8b7aa8; padding: 5px 14px; letter-spacing: 1px; }

/* === КНОПКА ВЫХОДА (БОЛЬШАЯ) === */
.logout-button {
    margin-top: 20px; 
    height: 80px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    opacity: 0.95; cursor: pointer;
    transition: all 0.3s;
    font-weight: 600; font-size: 18px;
    color: white; text-decoration: none;
    border: 1px solid rgba(239, 68, 68, 0.4);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
    animation: fadeInUp 0.6s ease-out 0.9s both;
    padding: 0 25px;
}
.logout-button:hover {
    opacity: 1; transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(239, 68, 68, 0.6);
    color: white;
}
.logout-button:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}
.logout-button form { margin: 0; width: 100%; height: 100%; display: flex; }
.logout-button button {
    all: unset; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    gap: 12px; width: 100%; height: 100%;
    font-weight: 600; font-size: 18px; color: white;
}

/* === ЦЕНТРАЛЬНАЯ ОБЛАСТЬ === */
.center-content {
    flex: 1; min-width: 0;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

/* === ПРАВЫЙ САЙДБАР === */
.right-sidebar {
    width: 300px; flex-shrink: 0;
    background: rgba(45, 27, 78, 0.6);
    border-radius: 20px; padding: 25px 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    position: sticky; top: 100px;
    height: fit-content;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    animation: fadeInRight 0.8s ease-out 0.3s both;
    transition: all 0.3s ease;
}

.right-sidebar:hover {
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.3);
}

.profile-section {
    text-align: center; margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}
.profile-avatar {
    width: 90px; height: 90px; border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    margin: 0 auto 15px;
    display: flex; align-items: center; justify-content: center;
    font-size: 36px; font-weight: bold;
    border: 3px solid rgba(139, 92, 246, 0.5);
    box-shadow: 0 5px 20px rgba(139, 92, 246, 0.4);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative; overflow: hidden;
    text-decoration: none; color: white;
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.profile-avatar:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.6), 0 0 60px rgba(236, 72, 153, 0.4);
}

.profile-name { font-size: 17px; font-weight: bold; margin-bottom: 4px; }
.profile-username { color: #b8a9d4; font-size: 13px; }

.section-label {
    font-size: 15px; font-weight: 600;
    margin-bottom: 12px;
    display: flex; justify-content: space-between; align-items: center;
}

/* === СТИЛИ ДЛЯ ССЫЛКИ "ВСЕ →" === */
.section-label a {
    color: #a78bfa;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 8px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Ripple-эффект */
.section-label a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: 0;
}

/* Подчёркивание снизу */
.section-label a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #8b5cf6, #ec4899);
    transform: translateX(-50%);
    transition: width 0.3s ease;
    z-index: 1;
}

.section-label a > * {
    position: relative;
    z-index: 2;
}

.section-label a:hover::before {
    width: 200px;
    height: 200px;
}

.section-label a:hover::after {
    width: 80%;
}

.section-label a:hover {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.2));
    border-color: rgba(236, 72, 153, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.section-label a:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.2);
}

.member-item {
    display: flex; align-items: center; gap: 12px;
    padding: 8px; border-radius: 12px;
    transition: all 0.3s; margin-bottom: 4px;
    text-decoration: none; color: inherit;
}
.member-item:hover { background: rgba(139, 92, 246, 0.2); transform: translateX(5px); color: inherit; }

.member-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; font-weight: bold;
    flex-shrink: 0; overflow: hidden;
}
.member-avatar img { width: 100%; height: 100%; object-fit: cover; }

.member-info { flex: 1; min-width: 0; }
.member-name { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.member-meta { font-size: 11px; color: #8b7aa8; }

/* === РАЗДЕЛИТЕЛЬ МЕЖДУ СЕКЦИЯМИ === */
.right-sidebar .members-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(139, 92, 246, 0.2);
}

.right-sidebar .members-section:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

/* === VK КНОПКА === */
.follow-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(139, 92, 246, 0.2);
}

.vk-button {
    display: flex; align-items: center; justify-content: center;
    gap: 12px; padding: 14px;
    background: linear-gradient(135deg, #4C75A3, #5181b8);
    border-radius: 12px; text-decoration: none;
    color: #ffffff; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600; font-size: 15px;
    box-shadow: 0 4px 15px rgba(76, 117, 163, 0.3);
    margin-top: 15px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(76, 117, 163, 0.5);
}

.vk-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.vk-button:hover::before {
    width: 300px;
    height: 300px;
}

.vk-button:hover {
    background: linear-gradient(135deg, #5181b8, #6494c4);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(76, 117, 163, 0.5);
    color: white;
    border-color: rgba(100, 148, 196, 0.7);
}

.vk-button:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(76, 117, 163, 0.4);
}

.vk-icon { width: 24px; height: 24px; flex-shrink: 0; }

/* === МОДАЛЬНОЕ ОКНО ОБМЕНА === */
.exchange-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10, 5, 20, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease-out;
}

.exchange-modal-content {
    background: linear-gradient(135deg, rgba(45, 27, 78, 0.98), rgba(26, 15, 46, 0.98));
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 20px;
    padding: 35px 40px;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6),
                0 0 40px rgba(139, 92, 246, 0.3);
    position: relative;
    animation: modalSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.exchange-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: #8b7aa8;
    cursor: pointer;
    transition: all 0.3s;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    line-height: 1;
}

.exchange-modal-close:hover {
    color: #ffffff;
    background: rgba(239, 68, 68, 0.2);
    transform: rotate(90deg);
}

.exchange-modal-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

.exchange-modal-description {
    color: #b8a9d4;
    text-align: center;
    margin-bottom: 25px;
    font-size: 14px;
}

.exchange-modal-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.exchange-modal-label {
    color: #b8a9d4;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
}

.exchange-modal-input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(26, 15, 46, 0.6);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    color: #ffffff;
    font-size: 16px;
    outline: none;
    transition: all 0.3s;
    box-sizing: border-box;
}

.exchange-modal-input:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
    background: rgba(26, 15, 46, 0.8);
}

.exchange-modal-button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
    position: relative;
    overflow: hidden;
}

.exchange-modal-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.exchange-modal-button:hover::before {
    width: 300px;
    height: 300px;
}

.exchange-modal-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(139, 92, 246, 0.6);
}

.exchange-modal-button:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

/* === FOOTER === */
.site-footer {
    background: rgba(45, 27, 78, 0.4);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(139, 92, 246, 0.2);
    padding: 25px 20px;
    animation: fadeInUp 0.8s ease-out 1.2s both;
    position: relative; overflow: hidden;
    margin-top: auto;
}
.site-footer::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #8b5cf6, #ec4899, #8b5cf6, transparent);
    animation: shimmer 3s ease-in-out infinite;
}
.footer-content { max-width: 1600px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.footer-logo { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: bold; background: linear-gradient(135deg, #8b5cf6, #ec4899); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; animation: float 3s ease-in-out infinite; }
.footer-logo i { font-size: 24px; color: #fbbf24; -webkit-text-fill-color: #fbbf24; filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.6)); animation: pulse 2s ease-in-out infinite; }
.footer-text { color: #8b7aa8; font-size: 14px; text-align: center; line-height: 1.6; }
.footer-text .highlight { color: #b8a9d4; font-weight: 500; }

/* === МОБИЛЬНОЕ НИЖНЕЕ МЕНЮ === */
.mobile-bottom-nav {
    display: none;
    position: fixed; bottom: 0; left: 0; right: 0;
    background: rgba(45, 27, 78, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(139, 92, 246, 0.3);
    padding: 10px 0 15px;
    z-index: 1000;
    animation: slideUp 0.5s ease-out;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}
.mobile-nav-container { display: flex; justify-content: space-around; align-items: center; max-width: 600px; margin: 0 auto; }
.mobile-nav-item {
    display: flex; flex-direction: column; align-items: center;
    gap: 4px; padding: 8px 16px; border-radius: 12px;
    text-decoration: none; color: #8b7aa8;
    transition: all 0.3s ease;
    position: relative; cursor: pointer;
}
.mobile-nav-item.active { color: #ffffff; }
.mobile-nav-item.active::before {
    content: '';
    position: absolute; top: -10px; left: 50%;
    transform: translateX(-50%);
    width: 30px; height: 3px;
    background: linear-gradient(90deg, #8b5cf6, #ec4899);
    border-radius: 3px;
}
.mobile-nav-item i { font-size: 24px; transition: all 0.3s ease; }
.mobile-nav-item.active i { color: #8b5cf6; transform: scale(1.1); }
.mobile-nav-item span { font-size: 11px; font-weight: 500; }
.mobile-nav-badge {
    position: absolute; top: 2px; right: 8px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white; font-size: 10px; font-weight: bold;
    padding: 2px 6px; border-radius: 10px;
    min-width: 18px; text-align: center;
}

/* === НЕПРОЧИТАННЫЕ СООБЩЕНИЯ (ТОЧКА) === */
.unread-dot {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    display: inline-block;
    margin-left: 6px;
    animation: pulse 2s infinite;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}

/* === МОБИЛЬНОЕ МОДАЛЬНОЕ ОКНО "ЕЩЁ" === */
.mobile-extra-menu-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 100000;
    align-items: flex-end;
    justify-content: center;
    animation: fadeIn 0.2s ease-out;
}

.mobile-extra-menu-modal.active {
    display: flex;
}

.mobile-extra-menu-content {
    background: linear-gradient(135deg, #2d1b4e, #1a0f2e);
    width: 100%;
    max-height: 80vh;
    border-radius: 24px 24px 0 0;
    padding: 20px;
    overflow-y: auto;
    border: 1px solid rgba(139, 92, 246, 0.3);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
    animation: modalSlideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mobile-extra-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.mobile-extra-menu-header h3 {
    margin: 0;
    color: #e0d4ff;
    font-size: 1.2rem;
    font-weight: 700;
}

.mobile-extra-menu-close {
    background: none;
    border: none;
    color: #e0d4ff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    width: 36px;
    height: 36px;
}

.mobile-extra-menu-close:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    transform: rotate(90deg);
}

.mobile-extra-menu-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-extra-menu-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    color: #e0d4ff;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.mobile-extra-menu-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.mobile-extra-menu-item:hover::before {
    width: 300px;
    height: 300px;
}

.mobile-extra-menu-item:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.4);
    transform: translateX(5px);
    color: #ffffff;
}

.mobile-extra-menu-item:active {
    transform: translateX(2px);
}

.mobile-extra-menu-item i {
    font-size: 1.3rem;
    color: #8b5cf6;
    width: 24px;
    text-align: center;
}

.mobile-extra-menu-item span {
    font-weight: 600;
}

/* === МОБИЛЬНЫЕ БЛОКИ РЕСУРСОВ === */
.mobile-resource-blocks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.mobile-resource-block {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.mobile-resource-block::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.mobile-resource-block:hover::before {
    width: 200px;
    height: 200px;
}

.mobile-resource-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.mobile-resource-block:active {
    transform: translateY(-1px);
}

.mobile-resource-block.energy {
    border-color: rgba(251, 191, 36, 0.3);
    background: rgba(251, 191, 36, 0.08);
}

.mobile-resource-block.energy:hover {
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.mobile-resource-block.rating {
    border-color: rgba(167, 139, 250, 0.3);
    background: rgba(167, 139, 250, 0.08);
}

.mobile-resource-block.rating:hover {
    box-shadow: 0 4px 12px rgba(167, 139, 250, 0.3);
}

.mobile-resource-icon {
    font-size: 20px;
    margin-bottom: 5px;
}

.mobile-resource-block.energy .mobile-resource-icon {
    color: #fbbf24;
}

.mobile-resource-block.rating .mobile-resource-icon {
    color: #a78bfa;
}

.mobile-resource-value {
    font-size: 16px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 2px;
}

.mobile-resource-label {
    font-size: 10px;
    color: #8b7aa8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-resource-decay {
    font-size: 9px;
    color: #ef4444;
    margin-top: 2px;
}

/* === УВЕДОМЛЕНИЯ ОБ ЭНЕРГИИ === */
.energy-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #1a1a2e;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateX(150%);
    transition: transform 0.3s ease;
    z-index: 10000;
}

.energy-notification.show {
    transform: translateX(0);
}

.energy-notification.hide {
    transform: translateX(150%);
}

.energy-notification.error {
    background: #e74c3c;
}

.energy-notification.info {
    background: #3498db;
}

/* === TOAST УВЕДОМЛЕНИЯ === */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100001;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 350px;
}

.toast {
    background: rgba(45, 27, 78, 0.95);
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 12px;
    padding: 12px 18px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    animation: modalSlideIn 0.3s ease;
    backdrop-filter: blur(10px);
}

.toast.success { border-left: 4px solid #10b981; }
.toast.error { border-left: 4px solid #ef4444; }
.toast.warning { border-left: 4px solid #fbbf24; }
.toast.info { border-left: 4px solid #3b82f6; }

.toast-icon { font-size: 1.3rem; }
.toast-message { flex: 1; font-size: 0.95rem; }
.toast-close {
    background: none;
    border: none;
    color: #8b7aa8;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: all 0.3s ease;
}

.toast-close:hover {
    color: #ef4444;
    transform: scale(1.2);
}

.toast.hiding {
    opacity: 0;
    transform: translateX(150%);
    transition: all 0.3s ease;
}

/* === АДАПТИВНОСТЬ === */
@media (max-width: 1200px) { .right-sidebar { display: none; } }
@media (max-width: 1024px) {
    .main-wrapper { padding: 20px 15px; gap: 15px; }
    .left-sidebar { width: 240px; padding: 20px 15px; }
}
@media (max-width: 768px) {
    .left-sidebar { display: none; }
    .top-search-bar { width: 90%; margin-left: -45%; }
    .mobile-bottom-nav { display: block; }
    body { padding-bottom: 90px; }
    .site-footer { display: none; }
}
@media (max-width: 600px) {
    .main-wrapper { padding: 15px 10px; gap: 15px; padding-top: 90px; }
    .top-search-bar { top: 15px; width: calc(100% - 20px); left: 10px; margin-left: 0; }
    .footer-logo { font-size: 18px; }
    .footer-text { font-size: 12px; }
    .exchange-modal-content { padding: 25px 20px; }
    .rating-decay-tooltip { width: 280px; }
    .mobile-extra-menu-content { padding: 18px; }
    .mobile-extra-menu-item { padding: 12px; font-size: 0.95rem; }
    .mobile-resource-blocks { padding: 12px; gap: 8px; }
    .mobile-resource-block { padding: 10px; }
    .mobile-resource-value { font-size: 14px; }
}
@media (max-width: 480px) {
    .main-wrapper { padding: 10px 8px; padding-top: 85px; }
    .top-search-bar { top: 10px; left: 8px; width: calc(100% - 16px); }
    .search-input-wrapper input { padding: 12px 15px 12px 45px; font-size: 14px; }
    .mobile-nav-item { padding: 6px 12px; }
    .mobile-nav-item i { font-size: 22px; }
    .mobile-nav-item span { font-size: 10px; }
    .mobile-extra-menu-header h3 { font-size: 1.1rem; }
    .mobile-extra-menu-item i { font-size: 1.2rem; }
    .mobile-extra-menu-item span { font-size: 0.9rem; }
    .toast-container { max-width: 280px; right: 10px; top: 10px; }
    .toast { padding: 10px 14px; font-size: 0.9rem; }
    .vk-button { padding: 12px; font-size: 14px; }
}
@media (max-width: 360px) {
    .main-wrapper { padding: 8px 6px; padding-top: 80px; }
    .top-search-bar { top: 8px; left: 6px; width: calc(100% - 12px); }
}
@media (hover: none) {
    .resource-block:hover, .nav-menu a:hover, .member-item:hover,
    .mobile-extra-menu-item:hover, .mobile-resource-block:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}


.sidebar-online-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: #10b981;
    border: 2px solid rgba(45, 27, 78, 0.95);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
    animation: sidebarOnlinePulse 2s ease-in-out infinite;
}

@keyframes badgePop {
    0% { transform: scale(1); }
    50% { transform: scale(1.5); background-color: #ff2222 !important; }
    100% { transform: scale(1); }
}
.badge-updated {
    animation: badgePop 0.4s ease-out;
}